Lines Matching defs:queue

88  * Types of Tx queues in each queue set.  Order here matters, do not change.
125 struct rsp_desc { /* response queue descriptor */
183 * refill_rspq - replenish an SGE response queue
185 * @q: the response queue to replenish
188 * Replenishes a response queue by making the supplied number of responses
217 * @q: the Tx queue containing Tx descriptors for the packet
279 * @q: the Tx queue to reclaim descriptors from
282 * Reclaims Tx descriptors from an SGE Tx queue and frees the associated
283 * Tx buffers. Called with the Tx queue lock held.
317 * @q: the Tx queue to reclaim completed descriptors from
322 * queue's lock held.
340 * should_restart_tx - are there enough resources to restart a Tx queue?
341 * @q: the Tx queue
343 * Checks if there are enough descriptors to restart a suspended Tx queue.
377 * Release the buffers on an SGE free-buffer Rx queue. HW fetching from
378 * this queue should be stopped before calling this function.
503 * @n does not exceed the queue's capacity.
641 * @q: the queue set
668 * free_qset - free the resources of an SGE queue set
669 * @adapter: the adapter owning the queue set
670 * @q: the queue set
672 * Release the HW and SW resources associated with an SGE queue set, such
674 * queue set must be quiesced prior to calling this.
724 * init_qset_cntxt - initialize an SGE queue set context info
725 * @qs: the queue set
726 * @id: the queue set id
728 * Initializes the TIDs and context ids for the queues of a queue set.
828 * @q: the queue
1039 * check_ring_tx_db - check and potentially ring a Tx queue's doorbell
1041 * @q: the Tx queue
1043 * Ring the doorbel if a Tx queue is asleep. There is a natural race,
1079 * @q: the SGE Tx queue
1174 * @q: the Tx queue
1259 * eth_xmit - add a packet to the Ethernet Tx queue
1263 * Add a packet to an SGE Tx queue. Runs with softirqs disabled.
1298 "%s: Tx ring %u full while queue awake!\n",
1359 * good thing. We also run them without holding our Tx queue lock,
1406 * check_desc_avail - check descriptor availability on a send queue
1408 * @q: the send queue
1411 * @qid: the Tx queue number in its queue set (TXQ_OFLD or TXQ_CTRL)
1414 * SGE send queue. If the queue is already suspended or not enough
1416 * Must be called with the Tx queue locked.
1448 * reclaim_completed_tx_imm - reclaim completed control-queue Tx descs
1449 * @q: the SGE control Tx queue
1469 * ctrl_xmit - send a packet through an SGE control Tx queue
1471 * @q: the control queue
1474 * Send a packet through an SGE control Tx queue. Packets sent through
1475 * a control queue must fit entirely as immediate data in a single Tx
1520 * restart_ctrlq - restart a suspended control queue
1523 * Resumes transmission on a suspended Tx control queue.
1563 * Send a management message through control queue 0
1623 * @q: the Tx queue
1690 * ofld_xmit - send a packet through an offload queue
1692 * @q: the Tx offload queue
1695 * Send an offload packet through an SGE offload queue.
1738 * restart_offloadq - restart a suspended offload queue
1741 * Resumes transmission on a suspended Tx offload queue.
1803 * queue_set - return the queue set a packet should use
1806 * Maps a packet to the SGE queue set it should use. The desired queue
1819 * Tx queue. This is indicated by bit 0 in the packet's priority.
1832 * appropriate Tx queue as follows: bit 0 indicates whether the packet
1833 * should be sent as regular or control, bits 1-3 select the queue set.
1847 * offload_enqueue - add an offload packet to an SGE offload receive queue
1848 * @q: the SGE response queue
1851 * Add a new offload packet to an SGE response queue's offload packet
1852 * queue. If the packet is the first on the queue it schedules the RX
1853 * softirq to process the queue.
1871 * @q: the SGE response queue that assembled the bundle
1892 * The NAPI handler for offload packets when a response queue is serviced
1907 struct sk_buff_head queue;
1911 __skb_queue_head_init(&queue);
1912 skb_queue_splice_init(&q->rx_queue, &queue);
1913 if (skb_queue_empty(&queue)) {
1921 skb_queue_walk_safe(&queue, skb, tmp) {
1926 __skb_unlink(skb, &queue);
1936 if (!skb_queue_empty(&queue)) {
1937 /* splice remaining packets back onto Rx queue */
1939 skb_queue_splice(&queue, &q->rx_queue);
1951 * @rq: the response queue that received the packet
1957 * queue. Returns the index of the next available slot in the bundle.
1982 * @qs: the queue set to resume
1984 * Restarts suspended Tx queues of an SGE queue set if they have enough
2073 * @rq: the response queue that received the packet
2124 * @qs: the associated queue set
2211 * @qs: the queue set corresponding to the response
2215 * indications and completion credits for the queue set's Tx queues.
2247 * @qs: the queue set whose Tx queues are to be examined
2248 * @sleeping: indicates which Tx queue sent GTS
2250 * Checks if some of a queue set's Tx queues need to ring their doorbells
2283 * @q: the response queue
2310 * process_responses - process responses from an SGE response queue
2312 * @qs: the queue set to which the response queue belongs
2315 * Process responses from an SGE response queue up to the supplied budget.
2317 * for the queues that belong to the response queue's queue set.
2321 * on this queue. If the system is under memory shortage use a fairly
2454 smp_mb(); /* commit Tx queue .processed updates */
2515 * process_pure_responses - process pure responses from a response queue
2517 * @qs: the queue set owning the response queue
2563 smp_mb(); /* commit Tx queue .processed updates */
2573 * @q: the response queue
2603 * The MSI-X interrupt handler for an SGE response queue for the non-NAPI case
2604 * (i.e., response queue serviced in hard interrupt).
2622 * The MSI-X interrupt handler for an SGE response queue for the NAPI case
2623 * (i.e., response queue serviced by NAPI polling).
2641 * the same MSI vector. We use one SGE response queue per port in this mode
2642 * and protect all response queues with queue 0's lock.
2691 * one SGE response queue per port in this mode and protect all response
2692 * queues with queue 0's lock.
2729 * the same interrupt pin. We use one SGE response queue per port in this mode
2730 * and protect all response queues with queue 0's lock.
2767 * response queue per port in this mode and protect all response queues with
2768 * queue 0's lock.
2801 * response queue per port in this mode and protect all response queues with
2802 * queue 0's lock.
2880 CH_ALERT(adapter, "SGE response queue credit overflow\n");
2886 "packet delivered to disabled response queue "
2906 * @t: a timer list containing the SGE queue set to maintain
2908 * Runs periodically from a timer to perform maintenance of an SGE queue
2913 * queue so this timer is relatively infrequent and does any cleanup only
2914 * if the Tx queue has not seen any new packets in a while. We make a
2916 * around if we cannot get a queue's lock (which most likely is because
2950 * @t: the timer list containing the SGE queue set to maintain
2954 * when out of memory a queue can become empty. We try to add only a few
2955 * buffers here, the queue will be replenished fully as these new buffers
2958 * b) Return coalesced response queue credits in case a response queue is
3006 * t3_update_qset_coalesce - update coalescing settings for a queue set
3007 * @qs: the SGE queue set
3008 * @p: new queue set parameters
3010 * Update the coalescing settings for an SGE queue set. Nothing is done
3011 * if the queue set is not initialized yet.
3021 * t3_sge_alloc_qset - initialize an SGE queue set
3023 * @id: the queue set id
3024 * @nports: how many Ethernet ports will be using this queue set
3025 * @irq_vec_idx: the IRQ vector index for response queue interrupts
3026 * @p: configuration parameters for this queue set
3027 * @ntxq: number of Tx queues for the queue set
3028 * @dev: net device associated with this queue set
3029 * @netdevq: net device TX queue associated with this queue set
3031 * Allocate resources and initialize an SGE queue set. A queue set
3032 * comprises a response queue, two Rx free-buffer queues, and up to 3
3034 * queue, offload queue, and control queue.
3070 * The control queue always uses immediate data so does not
3177 CH_ALERT(adapter, "free list queue 0 initialization failed\n");
3182 CH_WARN(adapter, "free list queue 0 enabled with %d credits\n",
3188 CH_WARN(adapter, "free list queue 1 enabled with %d credits\n",
3208 * Starts each SGE queue set's timer call back
3231 * Stops each SGE queue set's timer call back
3251 * Frees resources used by the SGE queue sets.
3295 * pending queue restart tasklets.
3317 * We do not initialize any of the queue sets here, instead the driver