Lines Matching refs:kobj
476 #define to_rx_queue(obj) container_of(obj, struct netdev_rx_queue, kobj)
478 static ssize_t rx_queue_attr_show(struct kobject *kobj, struct attribute *attr, in rx_queue_attr_show() argument
482 struct netdev_rx_queue *queue = to_rx_queue(kobj); in rx_queue_attr_show()
490 static ssize_t rx_queue_attr_store(struct kobject *kobj, struct attribute *attr, in rx_queue_attr_store() argument
494 struct netdev_rx_queue *queue = to_rx_queue(kobj); in rx_queue_attr_store()
689 static void rx_queue_release(struct kobject *kobj) in rx_queue_release() argument
691 struct netdev_rx_queue *queue = to_rx_queue(kobj); in rx_queue_release()
708 memset(kobj, 0, sizeof(*kobj)); in rx_queue_release()
721 struct kobject *kobj = &queue->kobj; in rx_queue_add_kobject() local
724 kobj->kset = net->queues_kset; in rx_queue_add_kobject()
725 error = kobject_init_and_add(kobj, &rx_queue_ktype, NULL, in rx_queue_add_kobject()
728 kobject_put(kobj); in rx_queue_add_kobject()
732 kobject_uevent(kobj, KOBJ_ADD); in rx_queue_add_kobject()
755 kobject_put(&net->_rx[i].kobj); in net_rx_queue_update_kobjects()
777 #define to_netdev_queue(obj) container_of(obj, struct netdev_queue, kobj)
779 static ssize_t netdev_queue_attr_show(struct kobject *kobj, in netdev_queue_attr_show() argument
783 struct netdev_queue *queue = to_netdev_queue(kobj); in netdev_queue_attr_show()
791 static ssize_t netdev_queue_attr_store(struct kobject *kobj, in netdev_queue_attr_store() argument
796 struct netdev_queue *queue = to_netdev_queue(kobj); in netdev_queue_attr_store()
1038 static void netdev_queue_release(struct kobject *kobj) in netdev_queue_release() argument
1040 struct netdev_queue *queue = to_netdev_queue(kobj); in netdev_queue_release()
1042 memset(kobj, 0, sizeof(*kobj)); in netdev_queue_release()
1055 struct kobject *kobj = &queue->kobj; in netdev_queue_add_kobject() local
1058 kobj->kset = net->queues_kset; in netdev_queue_add_kobject()
1059 error = kobject_init_and_add(kobj, &netdev_queue_ktype, NULL, in netdev_queue_add_kobject()
1065 error = sysfs_create_group(kobj, &dql_group); in netdev_queue_add_kobject()
1070 kobject_uevent(kobj, KOBJ_ADD); in netdev_queue_add_kobject()
1075 kobject_put(kobj); in netdev_queue_add_kobject()
1099 sysfs_remove_group(&queue->kobj, &dql_group); in netdev_queue_update_kobjects()
1101 kobject_put(&queue->kobj); in netdev_queue_update_kobjects()
1116 NULL, &net->dev.kobj); in register_queue_kobjects()
1247 kobject_get(&dev->kobj); in netdev_unregister_kobject()