Lines Matching refs:fl
1015 static void recycle_fl_buf(struct freelQ *fl, int idx) in recycle_fl_buf() argument
1017 struct freelQ_e *from = &fl->entries[idx]; in recycle_fl_buf()
1018 struct freelQ_e *to = &fl->entries[fl->pidx]; in recycle_fl_buf()
1020 fl->centries[fl->pidx] = fl->centries[idx]; in recycle_fl_buf()
1023 to->len_gen = G_CMD_LEN(from->len_gen) | V_CMD_GEN1(fl->genbit); in recycle_fl_buf()
1025 to->gen2 = V_CMD_GEN2(fl->genbit); in recycle_fl_buf()
1026 fl->credits++; in recycle_fl_buf()
1028 if (++fl->pidx == fl->size) { in recycle_fl_buf()
1029 fl->pidx = 0; in recycle_fl_buf()
1030 fl->genbit ^= 1; in recycle_fl_buf()
1053 struct freelQ *fl, unsigned int len) in get_packet() argument
1056 const struct freelQ_ce *ce = &fl->centries[fl->cidx]; in get_packet()
1074 recycle_fl_buf(fl, fl->cidx); in get_packet()
1079 if (fl->credits < 2) { in get_packet()
1080 recycle_fl_buf(fl, fl->cidx); in get_packet()
1102 static void unexpected_offload(struct adapter *adapter, struct freelQ *fl) in unexpected_offload() argument
1104 struct freelQ_ce *ce = &fl->centries[fl->cidx]; in unexpected_offload()
1111 recycle_fl_buf(fl, fl->cidx); in unexpected_offload()
1366 static void sge_rx(struct sge *sge, struct freelQ *fl, unsigned int len) in sge_rx() argument
1373 skb = get_packet(adapter->pdev, fl, len - sge->rx_pkt_pad); in sge_rx()
1509 struct freelQ *fl = &sge->freelQ[e->FreelistQid]; in process_responses() local
1513 unexpected_offload(adapter, fl); in process_responses()
1515 sge_rx(sge, fl, e->BufferLength); in process_responses()
1523 if (++fl->cidx == fl->size) in process_responses()
1524 fl->cidx = 0; in process_responses()
1525 prefetch(fl->centries[fl->cidx].skb); in process_responses()
1527 if (unlikely(--fl->credits < in process_responses()
1528 fl->size - SGE_FREEL_REFILL_THRESH)) in process_responses()
1529 refill_free_list(sge, fl); in process_responses()
1574 const struct freelQ *fl = &sge->freelQ[e->FreelistQid]; in process_pure_responses() local
1578 prefetch(fl->centries[fl->cidx].skb); in process_pure_responses()