Lines Matching refs:device

3  * net-sysfs.c - network device class and attributes
44 static ssize_t netdev_show(const struct device *dev,
65 static ssize_t field##_show(struct device *dev, \
80 static ssize_t netdev_store(struct device *dev, struct device_attribute *attr,
117 static ssize_t iflink_show(struct device *dev, struct device_attribute *attr,
131 static ssize_t name_assign_type_show(struct device *dev,
146 static ssize_t address_show(struct device *dev, struct device_attribute *attr,
160 static ssize_t broadcast_show(struct device *dev,
178 static ssize_t carrier_store(struct device *dev, struct device_attribute *attr,
192 static ssize_t carrier_show(struct device *dev,
204 static ssize_t speed_show(struct device *dev,
230 static ssize_t duplex_show(struct device *dev,
270 static ssize_t testing_show(struct device *dev,
282 static ssize_t dormant_show(struct device *dev,
304 static ssize_t operstate_show(struct device *dev,
323 static ssize_t carrier_changes_show(struct device *dev,
335 static ssize_t carrier_up_count_show(struct device *dev,
345 static ssize_t carrier_down_count_show(struct device *dev,
362 static ssize_t mtu_store(struct device *dev, struct device_attribute *attr,
374 static ssize_t flags_store(struct device *dev, struct device_attribute *attr,
381 static ssize_t tx_queue_len_store(struct device *dev,
398 static ssize_t gro_flush_timeout_store(struct device *dev,
415 static ssize_t napi_defer_hard_irqs_store(struct device *dev,
426 static ssize_t ifalias_store(struct device *dev, struct device_attribute *attr,
457 static ssize_t ifalias_show(struct device *dev,
477 static ssize_t group_store(struct device *dev, struct device_attribute *attr,
490 static ssize_t proto_down_store(struct device *dev,
498 static ssize_t phys_port_id_show(struct device *dev,
526 static ssize_t phys_port_name_show(struct device *dev,
555 static ssize_t phys_switch_id_show(struct device *dev,
585 static ssize_t threaded_show(struct device *dev,
616 static ssize_t threaded_store(struct device *dev,
662 static ssize_t netstat_show(const struct device *d,
685 static ssize_t name##_show(struct device *d, \
1039 struct device *dev = &queue->dev->dev;
1281 * Subordinate device traffic classes are reported with the traffic
1283 * subordinate device 2 will be reported as "0-2". If the queue
1284 * belongs to the root device it will be reported with just the
1522 /* Make sure the subordinate device can't be freed */
1658 struct device *dev = &queue->dev->dev;
1739 /* Tx queue kobjects are allowed to be updated when a device is being
1744 "New queues can't be registered after device unregistration.");
1905 static int netdev_uevent(const struct device *d, struct kobj_uevent_env *env)
1926 * netdev_release -- destroy and free a dead device.
1927 * Called when last reference to device kobject is gone.
1929 static void netdev_release(struct device *d)
1936 * device is dead and about to be freed.
1942 static const void *net_namespace(const struct device *d)
1949 static void net_get_ownership(const struct device *d, kuid_t *uid, kgid_t *gid)
1968 static int of_dev_node_match(struct device *dev, const void *data)
1979 * of_find_net_device_by_node - lookup the net device for the device node
1980 * @np: OF device node
1982 * Looks up the net_device structure corresponding with the device node.
1984 * struct device refcount incremented by one, or NULL on failure. The
1989 struct device *dev;
2005 struct device *dev = &ndev->dev;
2019 /* Create sysfs entries for network device. */
2022 struct device *dev = &ndev->dev;
2034 /* Allow for a device specific group */
2067 struct device *dev = &ndev->dev;