• Home
  • Raw
  • Download

Lines Matching refs:queue

709 	struct netdev_rx_queue *queue = to_rx_queue(kobj);  in rx_queue_attr_show()  local
714 return attribute->show(queue, buf); in rx_queue_attr_show()
721 struct netdev_rx_queue *queue = to_rx_queue(kobj); in rx_queue_attr_store() local
726 return attribute->store(queue, buf, count); in rx_queue_attr_store()
735 static ssize_t show_rps_map(struct netdev_rx_queue *queue, char *buf) in show_rps_map() argument
745 map = rcu_dereference(queue->rps_map); in show_rps_map()
757 static ssize_t store_rps_map(struct netdev_rx_queue *queue, in store_rps_map() argument
797 old_map = rcu_dereference_protected(queue->rps_map, in store_rps_map()
799 rcu_assign_pointer(queue->rps_map, map); in store_rps_map()
815 static ssize_t show_rps_dev_flow_table_cnt(struct netdev_rx_queue *queue, in show_rps_dev_flow_table_cnt() argument
822 flow_table = rcu_dereference(queue->rps_flow_table); in show_rps_dev_flow_table_cnt()
837 static ssize_t store_rps_dev_flow_table_cnt(struct netdev_rx_queue *queue, in store_rps_dev_flow_table_cnt() argument
885 old_table = rcu_dereference_protected(queue->rps_flow_table, in store_rps_dev_flow_table_cnt()
887 rcu_assign_pointer(queue->rps_flow_table, table); in store_rps_dev_flow_table_cnt()
915 struct netdev_rx_queue *queue = to_rx_queue(kobj); in rx_queue_release() local
920 map = rcu_dereference_protected(queue->rps_map, 1); in rx_queue_release()
922 RCU_INIT_POINTER(queue->rps_map, NULL); in rx_queue_release()
926 flow_table = rcu_dereference_protected(queue->rps_flow_table, 1); in rx_queue_release()
928 RCU_INIT_POINTER(queue->rps_flow_table, NULL); in rx_queue_release()
934 dev_put(queue->dev); in rx_queue_release()
939 struct netdev_rx_queue *queue = to_rx_queue(kobj); in rx_queue_namespace() local
940 struct device *dev = &queue->dev->dev; in rx_queue_namespace()
967 struct netdev_rx_queue *queue = dev->_rx + index; in rx_queue_add_kobject() local
968 struct kobject *kobj = &queue->kobj; in rx_queue_add_kobject()
974 dev_hold(queue->dev); in rx_queue_add_kobject()
1039 ssize_t (*show)(struct netdev_queue *queue, char *buf);
1040 ssize_t (*store)(struct netdev_queue *queue,
1053 struct netdev_queue *queue = to_netdev_queue(kobj); in netdev_queue_attr_show() local
1058 return attribute->show(queue, buf); in netdev_queue_attr_show()
1067 struct netdev_queue *queue = to_netdev_queue(kobj); in netdev_queue_attr_store() local
1072 return attribute->store(queue, buf, count); in netdev_queue_attr_store()
1080 static ssize_t tx_timeout_show(struct netdev_queue *queue, char *buf) in tx_timeout_show() argument
1084 spin_lock_irq(&queue->_xmit_lock); in tx_timeout_show()
1085 trans_timeout = queue->trans_timeout; in tx_timeout_show()
1086 spin_unlock_irq(&queue->_xmit_lock); in tx_timeout_show()
1091 static unsigned int get_netdev_queue_index(struct netdev_queue *queue) in get_netdev_queue_index() argument
1093 struct net_device *dev = queue->dev; in get_netdev_queue_index()
1096 i = queue - dev->_tx; in get_netdev_queue_index()
1102 static ssize_t traffic_class_show(struct netdev_queue *queue, in traffic_class_show() argument
1105 struct net_device *dev = queue->dev; in traffic_class_show()
1112 index = get_netdev_queue_index(queue); in traffic_class_show()
1133 static ssize_t tx_maxrate_show(struct netdev_queue *queue, in tx_maxrate_show() argument
1136 return sprintf(buf, "%lu\n", queue->tx_maxrate); in tx_maxrate_show()
1139 static ssize_t tx_maxrate_store(struct netdev_queue *queue, in tx_maxrate_store() argument
1142 struct net_device *dev = queue->dev; in tx_maxrate_store()
1143 int err, index = get_netdev_queue_index(queue); in tx_maxrate_store()
1168 queue->tx_maxrate = rate; in tx_maxrate_store()
1214 static ssize_t bql_show_hold_time(struct netdev_queue *queue, in bql_show_hold_time() argument
1217 struct dql *dql = &queue->dql; in bql_show_hold_time()
1222 static ssize_t bql_set_hold_time(struct netdev_queue *queue, in bql_set_hold_time() argument
1225 struct dql *dql = &queue->dql; in bql_set_hold_time()
1242 static ssize_t bql_show_inflight(struct netdev_queue *queue, in bql_show_inflight() argument
1245 struct dql *dql = &queue->dql; in bql_show_inflight()
1254 static ssize_t bql_show_ ## NAME(struct netdev_queue *queue, \
1257 return bql_show(buf, queue->dql.FIELD); \
1260 static ssize_t bql_set_ ## NAME(struct netdev_queue *queue, \
1263 return bql_set(buf, len, &queue->dql.FIELD); \
1290 static ssize_t xps_cpus_show(struct netdev_queue *queue, in xps_cpus_show() argument
1294 struct net_device *dev = queue->dev; in xps_cpus_show()
1302 index = get_netdev_queue_index(queue); in xps_cpus_show()
1362 static ssize_t xps_cpus_store(struct netdev_queue *queue, in xps_cpus_store() argument
1365 struct net_device *dev = queue->dev; in xps_cpus_store()
1379 index = get_netdev_queue_index(queue); in xps_cpus_store()
1403 static ssize_t xps_rxqs_show(struct netdev_queue *queue, char *buf) in xps_rxqs_show() argument
1406 struct net_device *dev = queue->dev; in xps_rxqs_show()
1410 index = get_netdev_queue_index(queue); in xps_rxqs_show()
1465 static ssize_t xps_rxqs_store(struct netdev_queue *queue, const char *buf, in xps_rxqs_store() argument
1468 struct net_device *dev = queue->dev; in xps_rxqs_store()
1480 index = get_netdev_queue_index(queue); in xps_rxqs_store()
1521 struct netdev_queue *queue = to_netdev_queue(kobj); in netdev_queue_release() local
1524 dev_put(queue->dev); in netdev_queue_release()
1529 struct netdev_queue *queue = to_netdev_queue(kobj); in netdev_queue_namespace() local
1530 struct device *dev = &queue->dev->dev; in netdev_queue_namespace()
1557 struct netdev_queue *queue = dev->_tx + index; in netdev_queue_add_kobject() local
1558 struct kobject *kobj = &queue->kobj; in netdev_queue_add_kobject()
1564 dev_hold(queue->dev); in netdev_queue_add_kobject()
1603 struct netdev_queue *queue = dev->_tx + i; in netdev_queue_update_kobjects() local
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()