Lines Matching defs:to_target
235 static struct netconsole_target *to_target(struct config_item *item)
248 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->enabled);
253 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->extended);
258 return snprintf(buf, PAGE_SIZE, "%s\n", to_target(item)->np.dev_name);
263 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->np.local_port);
268 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->np.remote_port);
273 struct netconsole_target *nt = to_target(item);
283 struct netconsole_target *nt = to_target(item);
293 struct net_device *dev = to_target(item)->np.dev;
301 return snprintf(buf, PAGE_SIZE, "%pM\n", to_target(item)->np.remote_mac);
314 struct netconsole_target *nt = to_target(item);
373 struct netconsole_target *nt = to_target(item);
405 struct netconsole_target *nt = to_target(item);
430 struct netconsole_target *nt = to_target(item);
453 struct netconsole_target *nt = to_target(item);
476 struct netconsole_target *nt = to_target(item);
512 struct netconsole_target *nt = to_target(item);
548 struct netconsole_target *nt = to_target(item);
600 kfree(to_target(item));
652 struct netconsole_target *nt = to_target(item);