Home
last modified time | relevance | path

Searched refs:credits (Results 1 – 14 of 14) sorted by relevance

/drivers/net/chelsio/
Dsge.c195 unsigned int credits; /* # of available RX buffers */ member
209 unsigned int credits; /* credits to be returned to SGE */ member
440 unsigned int credits) in sched_skb() argument
457 if (credits < MAX_SKB_FRAGS + 1) in sched_skb()
517 while (q->credits--) { in free_freelQ_buffers()
610 sge->respQ.credits = 0; in alloc_rx_resources()
839 while (q->credits < q->size) { in refill_free_list()
869 q->credits++; in refill_free_list()
887 if (sge->freelQ[0].credits > (sge->freelQ[0].size >> 2) && in freelQs_empty()
888 sge->freelQ[1].credits > (sge->freelQ[1].size >> 2)) { in freelQs_empty()
[all …]
/drivers/net/cxgb3/
Dsge.c179 const struct sge_rspq *q, unsigned int credits) in refill_rspq() argument
183 V_RSPQ(q->cntxt_id) | V_CREDITS(credits)); in refill_rspq()
349 while (q->credits--) { in free_rx_bufs()
481 q->credits++; in refill_fl()
493 refill_fl(adap, fl, min(16U, fl->size - fl->credits), in __refill_fl()
518 q->credits++; in recycle_rx_buf()
716 fl->credits--; in get_packet()
736 if (unlikely(fl->credits < drop_thres)) in get_packet()
789 fl->credits--; in get_packet_pg()
795 if (unlikely(q->rx_recycle_buf || (!skb && fl->credits <= drop_thres))) in get_packet_pg()
[all …]
Dcxgb3_ctl_defs.h151 unsigned int credits; member
161 unsigned int credits; member
Dadapter.h94 unsigned int credits; /* # of available Rx buffers */ member
119 unsigned int credits; /* # of pending response credits */ member
Dcommon.h794 unsigned int credits, unsigned int credit_thres);
804 unsigned int credits);
Dt3_hw.c2034 unsigned int credits = type == SGE_CNTXT_OFLD ? 0 : FW_WR_NUM; in t3_sge_init_ecntxt() local
2043 V_EC_CREDITS(credits) | V_EC_GTS(gts_enable)); in t3_sge_init_ecntxt()
2153 unsigned int credits, unsigned int credit_thres) in t3_sge_init_cqcntxt() argument
2168 t3_write_reg(adapter, A_SG_CONTEXT_DATA3, V_CQ_CREDITS(credits) | in t3_sge_init_cqcntxt()
2281 unsigned int credits) in t3_sge_cqcntxt_op() argument
2288 t3_write_reg(adapter, A_SG_CONTEXT_DATA0, credits << 16); in t3_sge_cqcntxt_op()
Dcxgb3_offload.c286 rdma->credits); in cxgb_rdma_ctl()
320 rdma->ovfl_mode, rdma->credits, in cxgb_rdma_ctl()
Dt3_cpl.h872 __be16 credits; member
/drivers/scsi/cxgb3i/
Dcxgb3i_offload.c416 static u32 send_rx_credits(struct s3_conn *c3cn, u32 credits, u32 dack) in send_rx_credits() argument
428 req->credit_dack = htonl(dack | V_RX_CREDITS(credits)); in send_rx_credits()
431 return credits; in send_rx_credits()
1185 unsigned int credits = ntohs(hdr->credits); in process_wr_ack() local
1189 credits, c3cn->wr_avail, c3cn->wr_unacked, in process_wr_ack()
1192 c3cn->wr_avail += credits; in process_wr_ack()
1196 while (credits) { in process_wr_ack()
1202 credits, c3cn->tid, c3cn->state); in process_wr_ack()
1205 if (unlikely(credits < p->csum)) { in process_wr_ack()
1211 c3cn->tid, credits, p->csum, p->len, in process_wr_ack()
[all …]
/drivers/net/enic/
Dvnic_intr.h67 unsigned int credits, int unmask, int reset_timer) in vnic_intr_return_credits() argument
72 u32 int_credit_return = (credits & 0xffff) | in vnic_intr_return_credits()
/drivers/infiniband/hw/ipath/
Dipath_qp.c687 u32 credits; in ipath_compute_aeth() local
704 credits = head - tail; in ipath_compute_aeth()
705 if ((int)credits < 0) in ipath_compute_aeth()
706 credits += qp->r_rq.size; in ipath_compute_aeth()
715 if (credit_table[x] == credits) in ipath_compute_aeth()
717 if (credit_table[x] > credits) in ipath_compute_aeth()
/drivers/infiniband/hw/cxgb3/
Diwch_cm.c781 static int update_rx_credits(struct iwch_ep *ep, u32 credits) in update_rx_credits() argument
786 PDBG("%s ep %p credits %u\n", __func__, ep, credits); in update_rx_credits()
796 req->credit_dack = htonl(V_RX_CREDITS(credits) | V_RX_FORCE_ACK(1)); in update_rx_credits()
799 return credits; in update_rx_credits()
1082 unsigned int credits = ntohs(hdr->credits); in tx_ack() local
1084 PDBG("%s ep %p credits %u\n", __func__, ep, credits); in tx_ack()
1086 if (credits == 0) { in tx_ack()
1092 BUG_ON(credits != 1); in tx_ack()
Dcxio_hal.c79 setup.credits = (op == CQ_CREDIT_UPDATE) ? credit : 0; in cxio_hal_cq_op()
131 setup.credits = 0; in cxio_hal_clear_cq_ctx()
182 setup.credits = 65535; in cxio_create_cq()
197 setup.credits = setup.size; in cxio_resize_cq()
502 setup.credits = 0; in cxio_hal_init_ctrl_cq()
/drivers/net/
Dcassini.c2635 int i, enable_intr, credits; in cas_poll() local
2651 credits = 0; in cas_poll()
2655 credits += cas_rx_ringN(cp, j, budget / N_RX_COMP_RINGS); in cas_poll()
2656 if (credits >= budget) { in cas_poll()
2697 return credits; in cas_poll()