Lines Matching refs:to_target

247 static struct netconsole_target *to_target(struct config_item *item)  in to_target()  function
260 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->enabled); in enabled_show()
265 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->extended); in extended_show()
270 return snprintf(buf, PAGE_SIZE, "%s\n", to_target(item)->np.dev_name); in dev_name_show()
275 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->np.local_port); in local_port_show()
280 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->np.remote_port); in remote_port_show()
285 struct netconsole_target *nt = to_target(item); in local_ip_show()
295 struct netconsole_target *nt = to_target(item); in remote_ip_show()
305 struct net_device *dev = to_target(item)->np.dev; in local_mac_show()
313 return snprintf(buf, PAGE_SIZE, "%pM\n", to_target(item)->np.remote_mac); in remote_mac_show()
326 struct netconsole_target *nt = to_target(item); in enabled_store()
385 struct netconsole_target *nt = to_target(item); in extended_store()
417 struct netconsole_target *nt = to_target(item); in dev_name_store()
442 struct netconsole_target *nt = to_target(item); in local_port_store()
465 struct netconsole_target *nt = to_target(item); in remote_port_store()
488 struct netconsole_target *nt = to_target(item); in local_ip_store()
524 struct netconsole_target *nt = to_target(item); in remote_ip_store()
560 struct netconsole_target *nt = to_target(item); in remote_mac_store()
612 kfree(to_target(item)); in netconsole_target_release()
664 struct netconsole_target *nt = to_target(item); in drop_netconsole_target()