/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() 273 ep->cred_dist.credits += packet->info.tx.cred_used; in htc_issue_packets() 551 int status, credits, credit_per_maxmsg, i; in htc_setup_target_buffer_assignments() local 561 credits = target->tgt_creds; in htc_setup_target_buffer_assignments() 570 __func__, credits); in htc_setup_target_buffer_assignments() 575 entry->credit_alloc = (credits - 6); in htc_setup_target_buffer_assignments() 579 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 …]
|
/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/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"); 205 ni->ni_maxtxcredits = credits; in kiblnd_tunables_setup() 219 if (ni->ni_peertxcredits > credits) in kiblnd_tunables_setup() 220 ni->ni_peertxcredits = credits; in kiblnd_tunables_setup()
|
/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/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() 769 for (i = 0; i < q->credits; i++) { in csio_wr_cleanup_iq_ftr() 869 int credits; in csio_wr_get() local [all …]
|
/drivers/infiniband/hw/hfi1/ |
D | trace_ctxts.h | 66 __field(u32, credits) 76 __entry->credits = uctxt->sc->credits; 87 __entry->credits,
|
D | pio.c | 485 sci->credits = scs->size; in init_send_contexts() 608 if (sc->credits <= release_credits) in sc_mtu_to_threshold() 611 threshold = sc->credits - release_credits; in sc_mtu_to_threshold() 625 return (sc->credits * percent) / 100; in sc_percent_to_threshold() 760 sc->credits = sci->credits; in sc_alloc() 769 reg = ((sci->credits & SC(CTRL_CTXT_DEPTH_MASK)) in sc_alloc() 857 sc->sr_size = sci->credits + 1; in sc_alloc() 872 sc->credits, in sc_alloc() 1399 avail = (unsigned long)sc->credits - (sc->fill - sc->alloc_free); in sc_buffer_alloc() 1409 (unsigned long)sc->credits - in sc_buffer_alloc() [all …]
|
D | pio.h | 114 u32 credits; /* number of blocks in context */ member 146 u16 credits; /* size in PIO array */ member
|
D | qp.c | 357 u32 credits; in hfi1_compute_aeth() local 375 credits = head - tail; in hfi1_compute_aeth() 376 if ((int)credits < 0) in hfi1_compute_aeth() 377 credits += qp->r_rq.size; in hfi1_compute_aeth() 386 if (credit_table[x] == credits) in hfi1_compute_aeth() 388 if (credit_table[x] > credits) { in hfi1_compute_aeth()
|
/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/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 | 75 unsigned int credits; member 181 gb_tty->credits += incoming_credits; in gb_uart_receive_credits_handler() 182 if (gb_tty->credits > GB_UART_FIRMWARE_CREDITS) { in gb_uart_receive_credits_handler() 183 gb_tty->credits -= incoming_credits; in gb_uart_receive_credits_handler() 203 if (gb_tty->credits == GB_UART_FIRMWARE_CREDITS) in gb_uart_receive_credits_handler() 252 if (send_size > gb_tty->credits) in gb_uart_tx_write_work() 253 send_size = gb_tty->credits; in gb_uart_tx_write_work() 263 gb_tty->credits -= send_size; in gb_uart_tx_write_work() 275 gb_tty->credits += send_size; in gb_uart_tx_write_work() 330 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 | 105 unsigned int credits; /* # of available Rx buffers */ member 132 unsigned int credits; /* # of pending response credits */ member
|
/drivers/net/wireless/ath/ath10k/ |
D | htc.c | 105 int credits = 0; in ath10k_htc_send() local 119 credits = DIV_ROUND_UP(skb->len, htc->target_credit_size); in ath10k_htc_send() 121 if (ep->tx_credits < credits) { in ath10k_htc_send() 126 ep->tx_credits -= credits; in ath10k_htc_send() 129 eid, credits, ep->tx_credits); in ath10k_htc_send() 160 ep->tx_credits += credits; in ath10k_htc_send() 163 eid, credits, ep->tx_credits); in ath10k_htc_send() 216 ep->tx_credits += report->credits; in ath10k_htc_process_credit_report() 219 report->eid, report->credits, ep->tx_credits); in ath10k_htc_process_credit_report()
|
/drivers/thunderbolt/ |
D | switch.c | 150 int tb_port_add_nfc_credits(struct tb_port *port, int credits) in tb_port_add_nfc_credits() argument 152 if (credits == 0) in tb_port_add_nfc_credits() 156 credits, in tb_port_add_nfc_credits() 158 port->config.nfc_credits + credits); in tb_port_add_nfc_credits() 159 port->config.nfc_credits += credits; in tb_port_add_nfc_credits()
|
/drivers/infiniband/hw/qib/ |
D | qib_qp.c | 375 u32 credits; in qib_compute_aeth() local 392 credits = head - tail; in qib_compute_aeth() 393 if ((int)credits < 0) in qib_compute_aeth() 394 credits += qp->r_rq.size; in qib_compute_aeth() 403 if (credit_table[x] == credits) in qib_compute_aeth() 405 if (credit_table[x] > credits) in qib_compute_aeth()
|
/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 | 416 u32 credits) in rocker_dma_ring_credits_set() argument 418 if (credits) in rocker_dma_ring_credits_set() 419 rocker_write32(rocker, DMA_DESC_CREDITS(info->type), credits); in rocker_dma_ring_credits_set() 880 u32 credits = 0; in rocker_cmd_irq_handler() local 890 credits++; in rocker_cmd_irq_handler() 893 rocker_dma_ring_credits_set(rocker, &rocker->cmd_ring, credits); in rocker_cmd_irq_handler() 1000 u32 credits = 0; in rocker_event_irq_handler() local 1016 credits++; in rocker_event_irq_handler() 1018 rocker_dma_ring_credits_set(rocker, &rocker->event_ring, credits); in rocker_event_irq_handler() 2377 u32 credits = 0; in rocker_port_poll_tx() local [all …]
|
/drivers/scsi/cxgbi/ |
D | libcxgbi.c | 995 void cxgbi_sock_rcv_wr_ack(struct cxgbi_sock *csk, unsigned int credits, in cxgbi_sock_rcv_wr_ack() argument 1000 csk, csk->state, csk->flags, csk->tid, credits, in cxgbi_sock_rcv_wr_ack() 1005 csk->wr_cred += credits; in cxgbi_sock_rcv_wr_ack() 1009 while (credits) { in cxgbi_sock_rcv_wr_ack() 1014 csk, csk->state, csk->flags, csk->tid, credits, in cxgbi_sock_rcv_wr_ack() 1019 if (unlikely(credits < p->csum)) { in cxgbi_sock_rcv_wr_ack() 1022 credits, csk->wr_cred, csk->wr_una_cred, in cxgbi_sock_rcv_wr_ack() 1024 p->csum -= credits; in cxgbi_sock_rcv_wr_ack() 1028 credits -= p->csum; in cxgbi_sock_rcv_wr_ack() 1622 u32 credits; in csk_return_rx_credits() local [all …]
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | fwsignal.c | 1206 u8 fifo, u8 credits) in brcmf_fws_return_credits() argument 1212 if (!credits) in brcmf_fws_return_credits() 1225 if (*borrowed >= credits) { in brcmf_fws_return_credits() 1226 *borrowed -= credits; in brcmf_fws_return_credits() 1227 *fifo_credit += credits; in brcmf_fws_return_credits() 1230 credits -= *borrowed; in brcmf_fws_return_credits() 1238 fws->fifo_credit[fifo] += credits; in brcmf_fws_return_credits() 1591 u8 *credits = data; in brcmf_fws_notify_credit_map() local 1602 brcmf_dbg(TRACE, "enter: credits %pM\n", credits); in brcmf_fws_notify_credit_map() 1605 if (*credits) in brcmf_fws_notify_credit_map() [all …]
|
/drivers/scsi/cxgbi/cxgb3i/ |
D | cxgb3i.c | 296 static u32 send_rx_credits(struct cxgbi_sock *csk, u32 credits) in send_rx_credits() argument 304 csk, csk->state, csk->flags, csk->tid, credits, dack); in send_rx_credits() 308 pr_info("csk 0x%p, credit %u, OOM.\n", csk, credits); in send_rx_credits() 315 V_RX_CREDITS(credits)); in send_rx_credits() 318 return credits; in send_rx_credits() 854 csk, csk->state, csk->flags, csk->tid, ntohs(hdr->credits)); in do_wr_ack() 856 cxgbi_sock_rcv_wr_ack(csk, ntohs(hdr->credits), ntohl(hdr->snd_una), 1); in do_wr_ack()
|