Lines Matching refs:kobj
703 #define to_rx_queue(obj) container_of(obj, struct netdev_rx_queue, kobj)
705 static ssize_t rx_queue_attr_show(struct kobject *kobj, struct attribute *attr, in rx_queue_attr_show() argument
709 struct netdev_rx_queue *queue = to_rx_queue(kobj); in rx_queue_attr_show()
717 static ssize_t rx_queue_attr_store(struct kobject *kobj, struct attribute *attr, in rx_queue_attr_store() argument
721 struct netdev_rx_queue *queue = to_rx_queue(kobj); in rx_queue_attr_store()
913 static void rx_queue_release(struct kobject *kobj) in rx_queue_release() argument
915 struct netdev_rx_queue *queue = to_rx_queue(kobj); in rx_queue_release()
933 memset(kobj, 0, sizeof(*kobj)); in rx_queue_release()
937 static const void *rx_queue_namespace(struct kobject *kobj) in rx_queue_namespace() argument
939 struct netdev_rx_queue *queue = to_rx_queue(kobj); in rx_queue_namespace()
949 static void rx_queue_get_ownership(struct kobject *kobj, in rx_queue_get_ownership() argument
952 const struct net *net = rx_queue_namespace(kobj); in rx_queue_get_ownership()
968 struct kobject *kobj = &queue->kobj; in rx_queue_add_kobject() local
976 kobj->kset = dev->queues_kset; in rx_queue_add_kobject()
977 error = kobject_init_and_add(kobj, &rx_queue_ktype, NULL, in rx_queue_add_kobject()
983 error = sysfs_create_group(kobj, dev->sysfs_rx_queue_group); in rx_queue_add_kobject()
988 kobject_uevent(kobj, KOBJ_ADD); in rx_queue_add_kobject()
993 kobject_put(kobj); in rx_queue_add_kobject()
1018 struct kobject *kobj = &dev->_rx[i].kobj; in net_rx_queue_update_kobjects() local
1021 kobj->uevent_suppress = 1; in net_rx_queue_update_kobjects()
1023 sysfs_remove_group(kobj, dev->sysfs_rx_queue_group); in net_rx_queue_update_kobjects()
1024 kobject_put(kobj); in net_rx_queue_update_kobjects()
1046 #define to_netdev_queue(obj) container_of(obj, struct netdev_queue, kobj)
1048 static ssize_t netdev_queue_attr_show(struct kobject *kobj, in netdev_queue_attr_show() argument
1053 struct netdev_queue *queue = to_netdev_queue(kobj); in netdev_queue_attr_show()
1061 static ssize_t netdev_queue_attr_store(struct kobject *kobj, in netdev_queue_attr_store() argument
1067 struct netdev_queue *queue = to_netdev_queue(kobj); in netdev_queue_attr_store()
1519 static void netdev_queue_release(struct kobject *kobj) in netdev_queue_release() argument
1521 struct netdev_queue *queue = to_netdev_queue(kobj); in netdev_queue_release()
1523 memset(kobj, 0, sizeof(*kobj)); in netdev_queue_release()
1527 static const void *netdev_queue_namespace(struct kobject *kobj) in netdev_queue_namespace() argument
1529 struct netdev_queue *queue = to_netdev_queue(kobj); in netdev_queue_namespace()
1539 static void netdev_queue_get_ownership(struct kobject *kobj, in netdev_queue_get_ownership() argument
1542 const struct net *net = netdev_queue_namespace(kobj); in netdev_queue_get_ownership()
1558 struct kobject *kobj = &queue->kobj; in netdev_queue_add_kobject() local
1566 kobj->kset = dev->queues_kset; in netdev_queue_add_kobject()
1567 error = kobject_init_and_add(kobj, &netdev_queue_ktype, NULL, in netdev_queue_add_kobject()
1573 error = sysfs_create_group(kobj, &dql_group); in netdev_queue_add_kobject()
1578 kobject_uevent(kobj, KOBJ_ADD); in netdev_queue_add_kobject()
1582 kobject_put(kobj); in netdev_queue_add_kobject()
1606 queue->kobj.uevent_suppress = 1; in netdev_queue_update_kobjects()
1608 sysfs_remove_group(&queue->kobj, &dql_group); in netdev_queue_update_kobjects()
1610 kobject_put(&queue->kobj); in netdev_queue_update_kobjects()
1625 NULL, &dev->dev.kobj); in register_queue_kobjects()
1814 kobject_get(&dev->kobj); in netdev_unregister_kobject()