Lines Matching refs:to_target
268 static struct netconsole_target *to_target(struct config_item *item) in to_target() function
281 return sysfs_emit(buf, "%d\n", to_target(item)->enabled); in enabled_show()
286 return sysfs_emit(buf, "%d\n", to_target(item)->extended); in extended_show()
291 return sysfs_emit(buf, "%d\n", to_target(item)->release); in release_show()
296 return sysfs_emit(buf, "%s\n", to_target(item)->np.dev_name); in dev_name_show()
301 return sysfs_emit(buf, "%d\n", to_target(item)->np.local_port); in local_port_show()
306 return sysfs_emit(buf, "%d\n", to_target(item)->np.remote_port); in remote_port_show()
311 struct netconsole_target *nt = to_target(item); in local_ip_show()
321 struct netconsole_target *nt = to_target(item); in remote_ip_show()
331 struct net_device *dev = to_target(item)->np.dev; in local_mac_show()
339 return sysfs_emit(buf, "%pM\n", to_target(item)->np.remote_mac); in remote_mac_show()
352 struct netconsole_target *nt = to_target(item); in enabled_store()
412 struct netconsole_target *nt = to_target(item); in release_store()
440 struct netconsole_target *nt = to_target(item); in extended_store()
468 struct netconsole_target *nt = to_target(item); in dev_name_store()
493 struct netconsole_target *nt = to_target(item); in local_port_store()
516 struct netconsole_target *nt = to_target(item); in remote_port_store()
539 struct netconsole_target *nt = to_target(item); in local_ip_store()
575 struct netconsole_target *nt = to_target(item); in remote_ip_store()
611 struct netconsole_target *nt = to_target(item); in remote_mac_store()
665 kfree(to_target(item)); in netconsole_target_release()
707 struct netconsole_target *nt = to_target(item); in drop_netconsole_target()