Lines Matching refs:to_target
302 static struct netconsole_target *to_target(struct config_item *item) in to_target() function
342 return sysfs_emit(buf, "%d\n", to_target(item)->enabled); in enabled_show()
347 return sysfs_emit(buf, "%d\n", to_target(item)->extended); in extended_show()
352 return sysfs_emit(buf, "%d\n", to_target(item)->release); in release_show()
357 return sysfs_emit(buf, "%s\n", to_target(item)->np.dev_name); in dev_name_show()
362 return sysfs_emit(buf, "%d\n", to_target(item)->np.local_port); in local_port_show()
367 return sysfs_emit(buf, "%d\n", to_target(item)->np.remote_port); in remote_port_show()
372 struct netconsole_target *nt = to_target(item); in local_ip_show()
382 struct netconsole_target *nt = to_target(item); in remote_ip_show()
392 struct net_device *dev = to_target(item)->np.dev; in local_mac_show()
400 return sysfs_emit(buf, "%pM\n", to_target(item)->np.remote_mac); in remote_mac_show()
405 struct netconsole_target *nt = to_target(item); in transmit_errors_show()
421 struct netconsole_target *nt = to_target(item->ci_parent); in sysdata_cpu_nr_enabled_show()
435 struct netconsole_target *nt = to_target(item->ci_parent); in sysdata_taskname_enabled_show()
448 struct netconsole_target *nt = to_target(item->ci_parent); in sysdata_release_enabled_show()
468 struct netconsole_target *nt = to_target(item); in enabled_store()
533 struct netconsole_target *nt = to_target(item); in release_store()
560 struct netconsole_target *nt = to_target(item); in extended_store()
586 struct netconsole_target *nt = to_target(item); in dev_name_store()
606 struct netconsole_target *nt = to_target(item); in local_port_store()
628 struct netconsole_target *nt = to_target(item); in remote_port_store()
650 struct netconsole_target *nt = to_target(item); in local_ip_store()
687 struct netconsole_target *nt = to_target(item); in remote_ip_store()
746 struct netconsole_target *nt = to_target(item); in remote_mac_store()
793 return to_target(&netconsole_group->cg_item); in userdata_to_target()
878 struct netconsole_target *nt = to_target(item->ci_parent); in sysdata_release_enabled_store()
912 struct netconsole_target *nt = to_target(item->ci_parent); in sysdata_taskname_enabled_store()
947 struct netconsole_target *nt = to_target(item->ci_parent); in sysdata_cpu_nr_enabled_store()
1100 kfree(to_target(item)); in netconsole_target_release()
1181 struct netconsole_target *nt = to_target(item); in drop_netconsole_target()