Lines Matching defs:to

15  * with this program; if not, write to the Free Software Foundation, Inc.,   *
82 * Period of the TX buffer reclaim timer. This timer does not need to run
193 spinlock_t lock; /* Lock to protect cmdQ enqueuing */
202 u16 dma_offset; /* DMA offset to align IP headers */
203 u16 recycleq_idx; /* skb recycle q to use */
211 unsigned int credits; /* credits to be returned to SGE */
239 unsigned int max_avail; /* max bits to be sent to any port */
243 struct tasklet_struct sched_tsk;/* tasklet used to run scheduler */
252 * the application is migrated to another CPU. In that scenario, we try to
253 * separate the RX(in irq context) and TX state in order to decrease memory
297 * re-computes scheduler parameters to scope with the change.
408 * and updates the per port quota (number of bits that can be sent to the any
490 /* If there are more pending skbs, we use the hardware to schedule us
507 * PIO to indicate that memory mapped Q contains valid descriptor(s).
593 * regular sized Ethernet frames, FL1 is sized not to exceed 16K,
761 * but sge->sge_control is setup and ready to go.
832 * buffer is already valid and nothing needs to be done. This happens when we
836 * we specify a RX_OFFSET in order to make sure that the IP header is 4B
882 * of both rings, we go into 'few interrupt mode' in order to give the system
883 * time to free up resources.
906 /* We reenable the Qs to force a freelist GTS interrupt later */
1012 * @idx: index of buffer to recycle
1020 struct freelQ_e *to = &fl->entries[fl->pidx];
1023 to->addr_lo = from->addr_lo;
1024 to->addr_hi = from->addr_hi;
1025 to->len_gen = G_CMD_LEN(from->len_gen) | V_CMD_GEN1(fl->genbit);
1027 to->gen2 = V_CMD_GEN2(fl->genbit);
1051 * threshold and the packet is too big to copy, or (b) the packet should
1117 * T1/T2 SGE limits the maximum DMA size per TX descriptor to
1124 * required to break down the stack's request.
1152 * Since this function writes the 'flags' field, it must not be used to
1211 * Write the command descriptors to transmit the given skb starting at
1365 * Process an ingress ethernet pakcet and deliver it to the stack.
1420 * after the Tx packet schedulers have been suspended to restart the Tx path.
1442 * update_tx_info is called from the interrupt handler/NAPI to return cmdQ0
1478 * Process SGE responses, up to the supplied budget. Returns the number of
1496 /* We batch updates to the TX side to avoid cacheline
1565 * non data-carrying) responses. Such respones are too light-weight to justify
1567 * interrupt context. The function is called with a pointer to a response,
1710 /* T204 cmdQ0 skbs that are destined for a certain port have to go
1744 * the hardware is going to sleep just after we checked, however,
1772 * @data: pointer to the start of the Ethernet header
1784 * Adds the CPL header to the sk_buff and passes it to t1_sge_tx.
1846 pr_debug("%s: unable to do udp checksum\n", dev->name);
1852 /* Hmmm, assuming to catch the gratious arp... and we'll use
1853 * it to flush out stuck espi packets...
1859 /* We want to re-use this skb later. We
1887 /* If transmit busy, and we reallocated skb's due to headroom limit,
1888 * then silently discard to avoid leak.
1921 * Propagate changes of the SGE coalescing parameters to the HW.
1948 * this to set the max offload coalescing size so that RX packets
2029 /* bump the reference count to avoid freeing of
2061 /* bump the reference count to avoid freeing of the