/drivers/infiniband/sw/rdmavt/ |
D | rc.c | 106 u32 credits; in rvt_compute_aeth() local 124 credits = head - tail; in rvt_compute_aeth() 125 if ((int)credits < 0) in rvt_compute_aeth() 126 credits += qp->r_rq.size; in rvt_compute_aeth() 135 if (credit_table[x] == credits) in rvt_compute_aeth() 137 if (credit_table[x] > credits) { in rvt_compute_aeth()
|
/drivers/net/wireless/ath/ath6kl/ |
D | htc_pipe.c | 130 __func__, credits_required, ep->cred_dist.credits); in get_htc_packet_credit_based() 140 if (ep->cred_dist.credits < credits_required) in get_htc_packet_credit_based() 143 ep->cred_dist.credits -= credits_required; in get_htc_packet_credit_based() 147 if (ep->cred_dist.credits < in get_htc_packet_credit_based() 272 ep->cred_dist.credits += packet->info.tx.cred_used; in htc_issue_packets() 550 int status, credits, credit_per_maxmsg, i; in htc_setup_target_buffer_assignments() local 560 credits = target->tgt_creds; in htc_setup_target_buffer_assignments() 569 __func__, credits); in htc_setup_target_buffer_assignments() 574 entry->credit_alloc = (credits - 6); in htc_setup_target_buffer_assignments() 578 credits -= (int) entry->credit_alloc; in htc_setup_target_buffer_assignments() [all …]
|
D | htc_mbox.c | 42 int credits) in ath6kl_credit_deposit() argument 45 ep_dist->endpoint, credits); in ath6kl_credit_deposit() 47 ep_dist->credits += credits; in ath6kl_credit_deposit() 48 ep_dist->cred_assngd += credits; in ath6kl_credit_deposit() 49 cred_info->cur_free_credits -= credits; in ath6kl_credit_deposit() 138 cur_ep_dist->credits, in ath6kl_credit_init() 170 int credits; in ath6kl_credit_reduce() local 177 if (ep_dist->credits <= limit) in ath6kl_credit_reduce() 180 credits = ep_dist->credits - limit; in ath6kl_credit_reduce() 181 ep_dist->credits -= credits; in ath6kl_credit_reduce() [all …]
|
D | htc.h | 222 u8 credits; member 394 int credits; member
|
/drivers/scsi/snic/ |
D | vnic_intr.h | 67 unsigned int credits, in svnic_intr_return_credits() argument 74 u32 int_credit_return = (credits & 0xffff) | in svnic_intr_return_credits() 90 unsigned int credits = svnic_intr_credits(intr); in svnic_intr_return_all_credits() local 94 svnic_intr_return_credits(intr, credits, unmask, reset_timer); in svnic_intr_return_all_credits()
|
/drivers/net/ethernet/cisco/enic/ |
D | vnic_intr.h | 70 unsigned int credits, int unmask, int reset_timer) in vnic_intr_return_credits() argument 75 u32 int_credit_return = (credits & 0xffff) | in vnic_intr_return_credits() 89 unsigned int credits = vnic_intr_credits(intr); in vnic_intr_return_all_credits() local 93 vnic_intr_return_credits(intr, credits, unmask, reset_timer); in vnic_intr_return_all_credits()
|
/drivers/staging/lustre/lnet/klnds/o2iblnd/ |
D | o2iblnd_modparams.c | 65 static int credits = 256; variable 66 module_param(credits, int, 0444); 67 MODULE_PARM_DESC(credits, "# concurrent sends"); 206 ni->ni_maxtxcredits = credits; in kiblnd_tunables_setup() 220 if (ni->ni_peertxcredits > credits) in kiblnd_tunables_setup() 221 ni->ni_peertxcredits = credits; in kiblnd_tunables_setup()
|
/drivers/scsi/fnic/ |
D | vnic_intr.h | 79 unsigned int credits, int unmask, int reset_timer) in vnic_intr_return_credits() argument 84 u32 int_credit_return = (credits & 0xffff) | in vnic_intr_return_credits() 98 unsigned int credits = vnic_intr_credits(intr); in vnic_intr_return_all_credits() local 102 vnic_intr_return_credits(intr, credits, unmask, reset_timer); in vnic_intr_return_all_credits()
|
/drivers/scsi/csiostor/ |
D | csio_wr.c | 122 int n = flq->credits; in csio_wr_fill_fl() 155 if (unlikely(flq->pidx >= flq->credits)) in csio_wr_update_fl() 156 flq->pidx -= (uint16_t)flq->credits; in csio_wr_update_fl() 259 q->credits = (qsz - q->wr_sz) / q->wr_sz; in csio_wr_alloc_q() 279 flq->un.fl.bufs = kzalloc(flq->credits * in csio_wr_alloc_q() 302 flq->pidx = flq->inc_idx = flq->credits - 8; in csio_wr_alloc_q() 313 q->credits = (qsz - csio_wr_qstat_pgsz(hw)) / CSIO_QCREDIT_SZ; in csio_wr_alloc_q() 318 q->credits = (qsz - csio_wr_qstat_pgsz(hw)) / sizeof(__be64); in csio_wr_alloc_q() 771 for (i = 0; i < q->credits; i++) { in csio_wr_cleanup_iq_ftr() 871 int credits; in csio_wr_get() local [all …]
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | sge.c | 195 unsigned int credits; /* # of available RX buffers */ member 209 unsigned int credits; /* credits to be returned to SGE */ member 432 unsigned int credits) in sched_skb() argument 449 if (credits < MAX_SKB_FRAGS + 1) in sched_skb() 509 while (q->credits--) { in free_freelQ_buffers() 602 sge->respQ.credits = 0; in alloc_rx_resources() 832 while (q->credits < q->size) { in refill_free_list() 862 q->credits++; in refill_free_list() 880 if (sge->freelQ[0].credits > (sge->freelQ[0].size >> 2) && in freelQs_empty() 881 sge->freelQ[1].credits > (sge->freelQ[1].size >> 2)) { in freelQs_empty() [all …]
|
/drivers/infiniband/hw/hfi1/ |
D | trace_ctxts.h | 68 __field(u32, credits) 80 __entry->credits = uctxt->sc->credits; 93 __entry->credits,
|
D | pio.c | 488 sci->credits = scs->size; in init_send_contexts() 611 if (sc->credits <= release_credits) in sc_mtu_to_threshold() 614 threshold = sc->credits - release_credits; in sc_mtu_to_threshold() 628 return (sc->credits * percent) / 100; in sc_percent_to_threshold() 780 sc->credits = sci->credits; in sc_alloc() 781 sc->size = sc->credits * PIO_BLOCK_SIZE; in sc_alloc() 790 reg = ((sci->credits & SC(CTRL_CTXT_DEPTH_MASK)) in sc_alloc() 878 sc->sr_size = sci->credits + 1; in sc_alloc() 893 sc->credits, in sc_alloc() 1473 avail = (unsigned long)sc->credits - (sc->fill - sc->alloc_free); in sc_buffer_alloc() [all …]
|
D | pio.h | 126 u32 credits; /* number of blocks in context */ member 155 u16 credits; /* size in PIO array */ member
|
/drivers/staging/lustre/lnet/klnds/socklnd/ |
D | socklnd_modparams.c | 25 static int credits = 256; variable 26 module_param(credits, int, 0444); 27 MODULE_PARM_DESC(credits, "# concurrent sends"); 164 ksocknal_tunables.ksnd_credits = &credits; in ksocknal_tunables_init()
|
/drivers/staging/greybus/ |
D | uart.c | 74 unsigned int credits; member 180 gb_tty->credits += incoming_credits; in gb_uart_receive_credits_handler() 181 if (gb_tty->credits > GB_UART_FIRMWARE_CREDITS) { in gb_uart_receive_credits_handler() 182 gb_tty->credits -= incoming_credits; in gb_uart_receive_credits_handler() 202 if (gb_tty->credits == GB_UART_FIRMWARE_CREDITS) in gb_uart_receive_credits_handler() 251 if (send_size > gb_tty->credits) in gb_uart_tx_write_work() 252 send_size = gb_tty->credits; in gb_uart_tx_write_work() 262 gb_tty->credits -= send_size; in gb_uart_tx_write_work() 274 gb_tty->credits += send_size; in gb_uart_tx_write_work() 329 if (gb_tty->credits == GB_UART_FIRMWARE_CREDITS) in gb_uart_wait_for_all_credits() [all …]
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | sge.c | 192 const struct sge_rspq *q, unsigned int credits) in refill_rspq() argument 196 V_RSPQ(q->cntxt_id) | V_CREDITS(credits)); in refill_rspq() 384 while (q->credits--) { in free_rx_bufs() 482 if (q->pend_cred >= q->credits / 4) { in ring_fl_db() 551 q->credits += count; in refill_fl() 560 refill_fl(adap, fl, min(MAX_RX_REFILL, fl->size - fl->credits), in __refill_fl() 591 q->credits++; in recycle_rx_buf() 786 fl->credits--; in get_packet() 806 if (unlikely(fl->credits < drop_thres) && in get_packet() 807 refill_fl(adap, fl, min(MAX_RX_REFILL, fl->size - fl->credits - 1), in get_packet() [all …]
|
D | cxgb3_ctl_defs.h | 151 unsigned int credits; member 161 unsigned int credits; member
|
D | adapter.h | 104 unsigned int credits; /* # of available Rx buffers */ member 131 unsigned int credits; /* # of pending response credits */ member
|
/drivers/net/wireless/ath/ath10k/ |
D | htc.c | 106 int credits = 0; in ath10k_htc_send() local 120 credits = DIV_ROUND_UP(skb->len, htc->target_credit_size); in ath10k_htc_send() 122 if (ep->tx_credits < credits) { in ath10k_htc_send() 125 eid, credits, ep->tx_credits); in ath10k_htc_send() 130 ep->tx_credits -= credits; in ath10k_htc_send() 133 eid, credits, ep->tx_credits); in ath10k_htc_send() 164 ep->tx_credits += credits; in ath10k_htc_send() 167 eid, credits, ep->tx_credits); in ath10k_htc_send() 220 ep->tx_credits += report->credits; in ath10k_htc_process_credit_report() 223 report->eid, report->credits, ep->tx_credits); in ath10k_htc_process_credit_report()
|
/drivers/net/wireless/ath/ath9k/ |
D | htc_hst.h | 68 __be16 credits; member 77 u8 credits; member 126 u16 credits; member
|
/drivers/net/ethernet/rocker/ |
D | rocker_main.c | 419 u32 credits) in rocker_dma_ring_credits_set() argument 421 if (credits) in rocker_dma_ring_credits_set() 422 rocker_write32(rocker, DMA_DESC_CREDITS(info->type), credits); in rocker_dma_ring_credits_set() 883 u32 credits = 0; in rocker_cmd_irq_handler() local 893 credits++; in rocker_cmd_irq_handler() 896 rocker_dma_ring_credits_set(rocker, &rocker->cmd_ring, credits); in rocker_cmd_irq_handler() 1003 u32 credits = 0; in rocker_event_irq_handler() local 1019 credits++; in rocker_event_irq_handler() 1021 rocker_dma_ring_credits_set(rocker, &rocker->event_ring, credits); in rocker_event_irq_handler() 2409 u32 credits = 0; in rocker_port_poll_tx() local [all …]
|
/drivers/scsi/cxgbi/ |
D | libcxgbi.c | 1023 void cxgbi_sock_rcv_wr_ack(struct cxgbi_sock *csk, unsigned int credits, in cxgbi_sock_rcv_wr_ack() argument 1028 csk, csk->state, csk->flags, csk->tid, credits, in cxgbi_sock_rcv_wr_ack() 1033 csk->wr_cred += credits; in cxgbi_sock_rcv_wr_ack() 1037 while (credits) { in cxgbi_sock_rcv_wr_ack() 1042 csk, csk->state, csk->flags, csk->tid, credits, in cxgbi_sock_rcv_wr_ack() 1047 if (unlikely(credits < p->csum)) { in cxgbi_sock_rcv_wr_ack() 1050 credits, csk->wr_cred, csk->wr_una_cred, in cxgbi_sock_rcv_wr_ack() 1052 p->csum -= credits; in cxgbi_sock_rcv_wr_ack() 1056 credits -= p->csum; in cxgbi_sock_rcv_wr_ack() 1682 u32 credits; in csk_return_rx_credits() local [all …]
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | fwsignal.c | 1211 u8 fifo, u8 credits) in brcmf_fws_return_credits() argument 1217 if (!credits) in brcmf_fws_return_credits() 1230 if (*borrowed >= credits) { in brcmf_fws_return_credits() 1231 *borrowed -= credits; in brcmf_fws_return_credits() 1232 *fifo_credit += credits; in brcmf_fws_return_credits() 1235 credits -= *borrowed; in brcmf_fws_return_credits() 1243 fws->fifo_credit[fifo] += credits; in brcmf_fws_return_credits() 1596 u8 *credits = data; in brcmf_fws_notify_credit_map() local 1607 brcmf_dbg(TRACE, "enter: credits %pM\n", credits); in brcmf_fws_notify_credit_map() 1610 if (*credits) in brcmf_fws_notify_credit_map() [all …]
|
/drivers/scsi/cxgbi/cxgb3i/ |
D | cxgb3i.c | 297 static u32 send_rx_credits(struct cxgbi_sock *csk, u32 credits) in send_rx_credits() argument 305 csk, csk->state, csk->flags, csk->tid, credits, dack); in send_rx_credits() 309 pr_info("csk 0x%p, credit %u, OOM.\n", csk, credits); in send_rx_credits() 316 V_RX_CREDITS(credits)); in send_rx_credits() 319 return credits; in send_rx_credits() 855 csk, csk->state, csk->flags, csk->tid, ntohs(hdr->credits)); in do_wr_ack() 857 cxgbi_sock_rcv_wr_ack(csk, ntohs(hdr->credits), ntohl(hdr->snd_una), 1); in do_wr_ack()
|
/drivers/target/iscsi/cxgbit/ |
D | cxgbit_cm.c | 1761 u32 credits = rpl->credits; in cxgbit_fw4_ack() local 1764 csk->wr_cred += credits; in cxgbit_fw4_ack() 1768 while (credits) { in cxgbit_fw4_ack() 1774 csk, csk->tid, credits, in cxgbit_fw4_ack() 1780 if (unlikely(credits < csum)) { in cxgbit_fw4_ack() 1783 credits, csk->wr_cred, csk->wr_una_cred, in cxgbit_fw4_ack() 1785 p->csum = (__force __wsum)(csum - credits); in cxgbit_fw4_ack() 1790 credits -= csum; in cxgbit_fw4_ack()
|