Lines Matching defs:queue

544 	struct netdev_rx_queue *queue = to_rx_queue(kobj);
549 return attribute->show(queue, attribute, buf);
556 struct netdev_rx_queue *queue = to_rx_queue(kobj);
561 return attribute->store(queue, attribute, buf, count);
570 static ssize_t show_rps_map(struct netdev_rx_queue *queue,
582 map = rcu_dereference(queue->rps_map);
600 static ssize_t store_rps_map(struct netdev_rx_queue *queue,
641 old_map = rcu_dereference_protected(queue->rps_map,
643 rcu_assign_pointer(queue->rps_map, map);
656 static ssize_t show_rps_dev_flow_table_cnt(struct netdev_rx_queue *queue,
664 flow_table = rcu_dereference(queue->rps_flow_table);
679 static ssize_t store_rps_dev_flow_table_cnt(struct netdev_rx_queue *queue,
727 old_table = rcu_dereference_protected(queue->rps_flow_table,
729 rcu_assign_pointer(queue->rps_flow_table, table);
757 struct netdev_rx_queue *queue = to_rx_queue(kobj);
763 map = rcu_dereference_protected(queue->rps_map, 1);
765 RCU_INIT_POINTER(queue->rps_map, NULL);
769 flow_table = rcu_dereference_protected(queue->rps_flow_table, 1);
771 RCU_INIT_POINTER(queue->rps_flow_table, NULL);
777 dev_put(queue->dev);
782 struct netdev_rx_queue *queue = to_rx_queue(kobj);
783 struct device *dev = &queue->dev->dev;
801 struct netdev_rx_queue *queue = dev->_rx + index;
802 struct kobject *kobj = &queue->kobj;
818 dev_hold(queue->dev);
865 ssize_t (*show)(struct netdev_queue *queue,
867 ssize_t (*store)(struct netdev_queue *queue,
879 struct netdev_queue *queue = to_netdev_queue(kobj);
884 return attribute->show(queue, attribute, buf);
892 struct netdev_queue *queue = to_netdev_queue(kobj);
897 return attribute->store(queue, attribute, buf, count);
905 static ssize_t show_trans_timeout(struct netdev_queue *queue,
911 spin_lock_irq(&queue->_xmit_lock);
912 trans_timeout = queue->trans_timeout;
913 spin_unlock_irq(&queue->_xmit_lock);
923 * Byte queue limits sysfs structures and functions.
951 static ssize_t bql_show_hold_time(struct netdev_queue *queue,
955 struct dql *dql = &queue->dql;
960 static ssize_t bql_set_hold_time(struct netdev_queue *queue,
964 struct dql *dql = &queue->dql;
981 static ssize_t bql_show_inflight(struct netdev_queue *queue,
985 struct dql *dql = &queue->dql;
994 static ssize_t bql_show_ ## NAME(struct netdev_queue *queue, \
998 return bql_show(buf, queue->dql.FIELD); \
1001 static ssize_t bql_set_ ## NAME(struct netdev_queue *queue, \
1005 return bql_set(buf, len, &queue->dql.FIELD); \
1032 static unsigned int get_netdev_queue_index(struct netdev_queue *queue)
1034 struct net_device *dev = queue->dev;
1037 i = queue - dev->_tx;
1044 static ssize_t show_xps_map(struct netdev_queue *queue,
1047 struct net_device *dev = queue->dev;
1057 index = get_netdev_queue_index(queue);
1089 static ssize_t store_xps_map(struct netdev_queue *queue,
1093 struct net_device *dev = queue->dev;
1104 index = get_netdev_queue_index(queue);
1133 struct netdev_queue *queue = to_netdev_queue(kobj);
1136 dev_put(queue->dev);
1141 struct netdev_queue *queue = to_netdev_queue(kobj);
1142 struct device *dev = &queue->dev->dev;
1160 struct netdev_queue *queue = dev->_tx + index;
1161 struct kobject *kobj = &queue->kobj;
1177 dev_hold(queue->dev);
1202 struct netdev_queue *queue = dev->_tx + i;
1205 sysfs_remove_group(&queue->kobj, &dql_group);
1207 kobject_put(&queue->kobj);