Lines Matching defs:fl

997  *	@fl: the free list
1003 static void recycle_fl_buf(struct freelQ *fl, int idx)
1005 struct freelQ_e *from = &fl->entries[idx];
1006 struct freelQ_e *to = &fl->entries[fl->pidx];
1008 fl->centries[fl->pidx] = fl->centries[idx];
1011 to->len_gen = G_CMD_LEN(from->len_gen) | V_CMD_GEN1(fl->genbit);
1013 to->gen2 = V_CMD_GEN2(fl->genbit);
1014 fl->credits++;
1016 if (++fl->pidx == fl->size) {
1017 fl->pidx = 0;
1018 fl->genbit ^= 1;
1029 * @fl: the SGE free list holding the packet
1041 struct freelQ *fl, unsigned int len)
1043 const struct freelQ_ce *ce = &fl->centries[fl->cidx];
1062 recycle_fl_buf(fl, fl->cidx);
1067 if (fl->credits < 2) {
1068 recycle_fl_buf(fl, fl->cidx);
1084 * @fl: the free list that received the packet
1090 static void unexpected_offload(struct adapter *adapter, struct freelQ *fl)
1092 struct freelQ_ce *ce = &fl->centries[fl->cidx];
1100 recycle_fl_buf(fl, fl->cidx);
1350 * @fl: the free list that contains the packet buffer
1355 static void sge_rx(struct sge *sge, struct freelQ *fl, unsigned int len)
1363 skb = get_packet(adapter, fl, len - sge->rx_pkt_pad);
1499 struct freelQ *fl = &sge->freelQ[e->FreelistQid];
1503 unexpected_offload(adapter, fl);
1505 sge_rx(sge, fl, e->BufferLength);
1513 if (++fl->cidx == fl->size)
1514 fl->cidx = 0;
1515 prefetch(fl->centries[fl->cidx].skb);
1517 if (unlikely(--fl->credits <
1518 fl->size - SGE_FREEL_REFILL_THRESH))
1519 refill_free_list(sge, fl);
1564 const struct freelQ *fl = &sge->freelQ[e->FreelistQid];
1568 prefetch(fl->centries[fl->cidx].skb);