Lines Matching refs:to_target
236 static struct netconsole_target *to_target(struct config_item *item) in to_target() function
249 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->enabled); in enabled_show()
254 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->extended); in extended_show()
259 return snprintf(buf, PAGE_SIZE, "%s\n", to_target(item)->np.dev_name); in dev_name_show()
264 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->np.local_port); in local_port_show()
269 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->np.remote_port); in remote_port_show()
274 struct netconsole_target *nt = to_target(item); in local_ip_show()
284 struct netconsole_target *nt = to_target(item); in remote_ip_show()
294 struct net_device *dev = to_target(item)->np.dev; in local_mac_show()
302 return snprintf(buf, PAGE_SIZE, "%pM\n", to_target(item)->np.remote_mac); in remote_mac_show()
315 struct netconsole_target *nt = to_target(item); in enabled_store()
374 struct netconsole_target *nt = to_target(item); in extended_store()
406 struct netconsole_target *nt = to_target(item); in dev_name_store()
431 struct netconsole_target *nt = to_target(item); in local_port_store()
454 struct netconsole_target *nt = to_target(item); in remote_port_store()
477 struct netconsole_target *nt = to_target(item); in local_ip_store()
513 struct netconsole_target *nt = to_target(item); in remote_ip_store()
549 struct netconsole_target *nt = to_target(item); in remote_mac_store()
601 kfree(to_target(item)); in netconsole_target_release()
653 struct netconsole_target *nt = to_target(item); in drop_netconsole_target()