Lines Matching defs:to

6  * This software is available to you under a choice of one of two
7 * licenses. You may choose to be licensed under the terms of the GNU
67 * Should be >= RX_PULL_LEN but possibly bigger to give pskb_may_pull some room.
71 /* Ethernet header padding prepended to RX_PKTs */
77 * to free packets faster than they arrive, we eventually catch up and keep
90 * something to do only when the system experiences severe memory shortage.
100 * Max number of Tx descriptors to be reclaimed by the Tx timer.
105 * Timer index used when backing off due to memory shortage.
111 * attempt to refill it.
130 * Max Tx descriptor space we allow for an Ethernet packet to be inlined
179 * Returns the number of descriptors in a Tx queue available to write new
192 * the size because one descriptor needs to be left unpopulated, otherwise
254 * This is the packet destructor used for Tx packets that need to remain
326 * @q: the Tx queue to reclaim descriptors from
327 * @n: the number of descriptors to reclaim
370 * @q: the Tx queue to reclaim completed descriptors from
384 * Limit the amount of clean up work we do at a time to keep
408 * @q: the SGE free list to free buffers from
409 * @n: how many buffers to free
412 * buffers must be made inaccessible to HW before calling this function.
436 * buffer must be made inaccessible to HW before calling this function.
438 * This is similar to @free_rx_bufs above but does not free the buffer.
439 * Do note that the FL still loses any further access to the buffer.
474 * @q: the ring to refill
475 * @n: the number of new buffers to allocate
478 * (Re)populate an SGE free-buffer queue with up to @n new packet buffers,
504 break; /* fall back to single pages */
648 * Returns whether an Ethernet packet is small enough to fit as
694 * @start: start offset into skb main-body data to include in the SGL
710 struct ulptx_sge_pair *to;
733 to = (u8 *)end > (u8 *)q->stat ? buf : sgl->sge;
735 for (i = (nfrags != si->nr_frags); nfrags >= 2; nfrags -= 2, to++) {
736 to->len[0] = cpu_to_be32(skb_frag_size(&si->frags[i]));
737 to->len[1] = cpu_to_be32(skb_frag_size(&si->frags[++i]));
738 to->addr[0] = cpu_to_be64(addr[i]);
739 to->addr[1] = cpu_to_be64(addr[++i]);
742 to->len[0] = cpu_to_be32(skb_frag_size(&si->frags[i]));
743 to->len[1] = cpu_to_be32(0);
744 to->addr[0] = cpu_to_be64(addr[i + 1]);
755 if ((uintptr_t)end & 8) /* 0-pad to multiple of 16 */
763 * @n: number of new descriptors to give to HW
778 * @pos: starting position in the Tx queue where to inline the packet
783 * in the middle of the packet we want to inline.
803 /* 0-pad to multiple of 16 */
871 * t4_eth_xmit - add a packet to an Ethernet Tx queue
875 * Add a packet to an SGE Ethernet Tx queue. Runs with softirqs disabled.
1015 * thus do not have any sk_buffs to release.
1043 * @wr: most recent WR written to the queue
1105 * @data: the control queue to restart
1124 * Write descriptors and free skbs outside the lock to limit
1208 * txq_stop_maperr - stop a Tx queue due to I/O MMU exhaustion
1210 * @q: the queue to stop
1212 * Mark a Tx queue stopped due to I/O MMU exhaustion and resulting
1213 * inability to map packets. A periodic timer attempts to restart
1226 * @q: the queue to stop
1227 * @skb: the packet causing the queue to become full
1230 * being written to request a wakeup.
1246 * to the HW Tx ring. The function starts and ends with the queue locked.
1259 * exclusive access to the state of the queue.
1333 * @data: the offload queue to restart
1385 * Sends an offload packet. We use the packet queue_mapping to select the
1428 /* get a reference to the last page, we don't own it */
1436 * @pull_len: amount of data to move to the sk_buff's main body
1449 * In this case packets up to RX_COPY_THRES have only one fragment.
1491 * be delivered to anyone and send it to the stack for capture.
1555 * Process an ingress ethernet packet and deliver it to the stack.
1617 * @frags: number of FL buffers to restore
1620 * have already been unmapped and are left unmapped, we mark them so to
1625 * need to come back to it later. This is a very rare event and there's
1626 * no effort to make this particularly efficient.
1660 * rspq_next - advance to the next entry in a response queue
1663 * Updates the state of a response queue to advance it to the next entry.
1677 * @q: the ingress queue to process
1680 * Process responses from an SGE response queue up to the supplied budget.
1686 * long delay to help recovery.
1983 /* Size needs to be multiple of 16, including status entry. */
2044 /* set offset to -1 to distinguish ingress queues without FL */
2368 * this is effective only if measures have been taken to disable any HW