Lines Matching refs:queue
662 struct netdev_rx_queue *queue = to_rx_queue(kobj); in rx_queue_attr_show() local
667 return attribute->show(queue, buf); in rx_queue_attr_show()
674 struct netdev_rx_queue *queue = to_rx_queue(kobj); in rx_queue_attr_store() local
679 return attribute->store(queue, buf, count); in rx_queue_attr_store()
688 static ssize_t show_rps_map(struct netdev_rx_queue *queue, char *buf) in show_rps_map() argument
698 map = rcu_dereference(queue->rps_map); in show_rps_map()
710 static ssize_t store_rps_map(struct netdev_rx_queue *queue, in store_rps_map() argument
750 old_map = rcu_dereference_protected(queue->rps_map, in store_rps_map()
752 rcu_assign_pointer(queue->rps_map, map); in store_rps_map()
768 static ssize_t show_rps_dev_flow_table_cnt(struct netdev_rx_queue *queue, in show_rps_dev_flow_table_cnt() argument
775 flow_table = rcu_dereference(queue->rps_flow_table); in show_rps_dev_flow_table_cnt()
790 static ssize_t store_rps_dev_flow_table_cnt(struct netdev_rx_queue *queue, in store_rps_dev_flow_table_cnt() argument
838 old_table = rcu_dereference_protected(queue->rps_flow_table, in store_rps_dev_flow_table_cnt()
840 rcu_assign_pointer(queue->rps_flow_table, table); in store_rps_dev_flow_table_cnt()
867 struct netdev_rx_queue *queue = to_rx_queue(kobj); in rx_queue_release() local
872 map = rcu_dereference_protected(queue->rps_map, 1); in rx_queue_release()
874 RCU_INIT_POINTER(queue->rps_map, NULL); in rx_queue_release()
878 flow_table = rcu_dereference_protected(queue->rps_flow_table, 1); in rx_queue_release()
880 RCU_INIT_POINTER(queue->rps_flow_table, NULL); in rx_queue_release()
886 dev_put(queue->dev); in rx_queue_release()
891 struct netdev_rx_queue *queue = to_rx_queue(kobj); in rx_queue_namespace() local
892 struct device *dev = &queue->dev->dev; in rx_queue_namespace()
910 struct netdev_rx_queue *queue = dev->_rx + index; in rx_queue_add_kobject() local
911 struct kobject *kobj = &queue->kobj; in rx_queue_add_kobject()
917 dev_hold(queue->dev); in rx_queue_add_kobject()
982 ssize_t (*show)(struct netdev_queue *queue, char *buf);
983 ssize_t (*store)(struct netdev_queue *queue,
996 struct netdev_queue *queue = to_netdev_queue(kobj); in netdev_queue_attr_show() local
1001 return attribute->show(queue, buf); in netdev_queue_attr_show()
1010 struct netdev_queue *queue = to_netdev_queue(kobj); in netdev_queue_attr_store() local
1015 return attribute->store(queue, buf, count); in netdev_queue_attr_store()
1023 static ssize_t tx_timeout_show(struct netdev_queue *queue, char *buf) in tx_timeout_show() argument
1027 spin_lock_irq(&queue->_xmit_lock); in tx_timeout_show()
1028 trans_timeout = queue->trans_timeout; in tx_timeout_show()
1029 spin_unlock_irq(&queue->_xmit_lock); in tx_timeout_show()
1034 static unsigned int get_netdev_queue_index(struct netdev_queue *queue) in get_netdev_queue_index() argument
1036 struct net_device *dev = queue->dev; in get_netdev_queue_index()
1039 i = queue - dev->_tx; in get_netdev_queue_index()
1045 static ssize_t traffic_class_show(struct netdev_queue *queue, in traffic_class_show() argument
1048 struct net_device *dev = queue->dev; in traffic_class_show()
1049 int index = get_netdev_queue_index(queue); in traffic_class_show()
1059 static ssize_t tx_maxrate_show(struct netdev_queue *queue, in tx_maxrate_show() argument
1062 return sprintf(buf, "%lu\n", queue->tx_maxrate); in tx_maxrate_show()
1065 static ssize_t tx_maxrate_store(struct netdev_queue *queue, in tx_maxrate_store() argument
1068 struct net_device *dev = queue->dev; in tx_maxrate_store()
1069 int err, index = get_netdev_queue_index(queue); in tx_maxrate_store()
1085 queue->tx_maxrate = rate; in tx_maxrate_store()
1131 static ssize_t bql_show_hold_time(struct netdev_queue *queue, in bql_show_hold_time() argument
1134 struct dql *dql = &queue->dql; in bql_show_hold_time()
1139 static ssize_t bql_set_hold_time(struct netdev_queue *queue, in bql_set_hold_time() argument
1142 struct dql *dql = &queue->dql; in bql_set_hold_time()
1159 static ssize_t bql_show_inflight(struct netdev_queue *queue, in bql_show_inflight() argument
1162 struct dql *dql = &queue->dql; in bql_show_inflight()
1171 static ssize_t bql_show_ ## NAME(struct netdev_queue *queue, \
1174 return bql_show(buf, queue->dql.FIELD); \
1177 static ssize_t bql_set_ ## NAME(struct netdev_queue *queue, \
1180 return bql_set(buf, len, &queue->dql.FIELD); \
1207 static ssize_t xps_cpus_show(struct netdev_queue *queue, in xps_cpus_show() argument
1210 struct net_device *dev = queue->dev; in xps_cpus_show()
1216 index = get_netdev_queue_index(queue); in xps_cpus_show()
1254 static ssize_t xps_cpus_store(struct netdev_queue *queue, in xps_cpus_store() argument
1257 struct net_device *dev = queue->dev; in xps_cpus_store()
1268 index = get_netdev_queue_index(queue); in xps_cpus_store()
1299 struct netdev_queue *queue = to_netdev_queue(kobj); in netdev_queue_release() local
1302 dev_put(queue->dev); in netdev_queue_release()
1307 struct netdev_queue *queue = to_netdev_queue(kobj); in netdev_queue_namespace() local
1308 struct device *dev = &queue->dev->dev; in netdev_queue_namespace()
1326 struct netdev_queue *queue = dev->_tx + index; in netdev_queue_add_kobject() local
1327 struct kobject *kobj = &queue->kobj; in netdev_queue_add_kobject()
1333 dev_hold(queue->dev); in netdev_queue_add_kobject()
1372 struct netdev_queue *queue = dev->_tx + i; in netdev_queue_update_kobjects() local
1375 queue->kobj.uevent_suppress = 1; in netdev_queue_update_kobjects()
1377 sysfs_remove_group(&queue->kobj, &dql_group); in netdev_queue_update_kobjects()
1379 kobject_put(&queue->kobj); in netdev_queue_update_kobjects()