credits 84 arch/mips/sgi-ip27/ip27-hubio.c static void hub_setup_prb(nasid_t nasid, int prbnum, int credits) credits 110 arch/mips/sgi-ip27/ip27-hubio.c prb.iprb_xtalkctr = credits; credits 523 drivers/crypto/chelsio/chcr_ipsec.c int credits, credits 568 drivers/crypto/chelsio/chcr_ipsec.c if (unlikely(credits < ETHTXQ_STOP_THRES)) { credits 678 drivers/crypto/chelsio/chcr_ipsec.c int qidx, left, credits; credits 707 drivers/crypto/chelsio/chcr_ipsec.c credits = txq_avail(&q->q) - ndesc; credits 709 drivers/crypto/chelsio/chcr_ipsec.c if (unlikely(credits < 0)) { credits 713 drivers/crypto/chelsio/chcr_ipsec.c dev->name, qidx, credits, ndesc, txq_avail(&q->q), credits 729 drivers/crypto/chelsio/chcr_ipsec.c credits, sa_entry); credits 2084 drivers/crypto/chelsio/chtls/chtls_cm.c u32 credits = hdr->credits; credits 2088 drivers/crypto/chelsio/chtls/chtls_cm.c csk->wr_credits += credits; credits 2093 drivers/crypto/chelsio/chtls/chtls_cm.c while (credits) { credits 2099 drivers/crypto/chelsio/chtls/chtls_cm.c csk->wr_nondata -= credits; credits 2103 drivers/crypto/chelsio/chtls/chtls_cm.c if (unlikely(credits < csum)) { credits 2104 drivers/crypto/chelsio/chtls/chtls_cm.c pskb->csum = (__force __wsum)(csum - credits); credits 2108 drivers/crypto/chelsio/chtls/chtls_cm.c credits -= csum; credits 341 drivers/crypto/chelsio/chtls/chtls_io.c int dlen, int tls_immd, u32 credits, credits 387 drivers/crypto/chelsio/chtls/chtls_io.c FW_TLSTX_DATA_WR_LEN16_V(credits)); credits 480 drivers/crypto/chelsio/chtls/chtls_io.c int tls_tx_imm, int tls_len, u32 credits) credits 504 drivers/crypto/chelsio/chtls/chtls_io.c tls_tx_data_wr(sk, skb, tls_len, tls_tx_imm, credits, expn_sz, pdus); credits 510 drivers/crypto/chelsio/chtls/chtls_io.c u32 credits, u32 compl) credits 525 drivers/crypto/chelsio/chtls/chtls_io.c FW_WR_LEN16_V(credits)); credits 1339 drivers/crypto/chelsio/chtls/chtls_io.c static u32 send_rx_credits(struct chtls_sock *csk, u32 credits) credits 1354 drivers/crypto/chelsio/chtls/chtls_io.c req->credit_dack = cpu_to_be32(RX_CREDITS_V(credits) | credits 1357 drivers/crypto/chelsio/chtls/chtls_io.c return credits; credits 1373 drivers/crypto/chelsio/chtls/chtls_io.c u32 credits; credits 1383 drivers/crypto/chelsio/chtls/chtls_io.c credits = tp->copied_seq - tp->rcv_wup; credits 1384 drivers/crypto/chelsio/chtls/chtls_io.c if (unlikely(!credits)) credits 1391 drivers/crypto/chelsio/chtls/chtls_io.c must_send = credits + 16384 >= tp->rcv_wnd; credits 1393 drivers/crypto/chelsio/chtls/chtls_io.c if (must_send || credits >= thres) credits 1394 drivers/crypto/chelsio/chtls/chtls_io.c tp->rcv_wup += send_rx_credits(csk, credits); credits 491 drivers/gpu/drm/i915/display/intel_cdclk.c unsigned int credits, default_credits; credits 501 drivers/gpu/drm/i915/display/intel_cdclk.c credits = PFI_CREDIT_63; credits 503 drivers/gpu/drm/i915/display/intel_cdclk.c credits = PFI_CREDIT(15); credits 505 drivers/gpu/drm/i915/display/intel_cdclk.c credits = default_credits; credits 516 drivers/gpu/drm/i915/display/intel_cdclk.c credits | PFI_CREDIT_RESEND); credits 80 drivers/infiniband/hw/cxgb3/cxio_hal.c setup.credits = (op == CQ_CREDIT_UPDATE) ? credit : 0; credits 130 drivers/infiniband/hw/cxgb3/cxio_hal.c setup.credits = 0; credits 180 drivers/infiniband/hw/cxgb3/cxio_hal.c setup.credits = 65535; credits 484 drivers/infiniband/hw/cxgb3/cxio_hal.c setup.credits = 0; credits 789 drivers/infiniband/hw/cxgb3/iwch_cm.c static int update_rx_credits(struct iwch_ep *ep, u32 credits) credits 794 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p credits %u\n", __func__, ep, credits); credits 804 drivers/infiniband/hw/cxgb3/iwch_cm.c req->credit_dack = htonl(V_RX_CREDITS(credits) | V_RX_FORCE_ACK(1)); credits 807 drivers/infiniband/hw/cxgb3/iwch_cm.c return credits; credits 1089 drivers/infiniband/hw/cxgb3/iwch_cm.c unsigned int credits = ntohs(hdr->credits); credits 1093 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p credits %u\n", __func__, ep, credits); credits 1095 drivers/infiniband/hw/cxgb3/iwch_cm.c if (credits == 0) { credits 1102 drivers/infiniband/hw/cxgb3/iwch_cm.c BUG_ON(credits != 1); credits 1413 drivers/infiniband/hw/cxgb4/cm.c static int update_rx_credits(struct c4iw_ep *ep, u32 credits) credits 1420 drivers/infiniband/hw/cxgb4/cm.c ep, ep->hwtid, credits); credits 1433 drivers/infiniband/hw/cxgb4/cm.c credits += ep->rcv_win - RCV_BUFSIZ_M * 1024; credits 1435 drivers/infiniband/hw/cxgb4/cm.c credit_dack = credits | RX_FORCE_ACK_F | RX_DACK_CHANGE_F | credits 1442 drivers/infiniband/hw/cxgb4/cm.c return credits; credits 3058 drivers/infiniband/hw/cxgb4/cm.c u8 credits = hdr->credits; credits 3066 drivers/infiniband/hw/cxgb4/cm.c ep, ep->hwtid, credits); credits 3067 drivers/infiniband/hw/cxgb4/cm.c if (credits == 0) { credits 393 drivers/infiniband/hw/hfi1/file_ops.c memlen = PAGE_ALIGN(uctxt->sc->credits * PIO_BLOCK_SIZE); credits 1163 drivers/infiniband/hw/hfi1/file_ops.c cinfo.credits = uctxt->sc->credits; credits 480 drivers/infiniband/hw/hfi1/pio.c sci->credits = scs->size; credits 603 drivers/infiniband/hw/hfi1/pio.c if (sc->credits <= release_credits) credits 606 drivers/infiniband/hw/hfi1/pio.c threshold = sc->credits - release_credits; credits 620 drivers/infiniband/hw/hfi1/pio.c return (sc->credits * percent) / 100; credits 756 drivers/infiniband/hw/hfi1/pio.c sc->credits = sci->credits; credits 757 drivers/infiniband/hw/hfi1/pio.c sc->size = sc->credits * PIO_BLOCK_SIZE; credits 766 drivers/infiniband/hw/hfi1/pio.c reg = ((sci->credits & SC(CTRL_CTXT_DEPTH_MASK)) credits 854 drivers/infiniband/hw/hfi1/pio.c sc->sr_size = sci->credits + 1; credits 870 drivers/infiniband/hw/hfi1/pio.c sc->credits, credits 1467 drivers/infiniband/hw/hfi1/pio.c avail = (unsigned long)sc->credits - (sc->fill - sc->alloc_free); credits 1477 drivers/infiniband/hw/hfi1/pio.c (unsigned long)sc->credits - credits 1500 drivers/infiniband/hw/hfi1/pio.c if (sc->fill_wrap >= sc->credits) credits 1501 drivers/infiniband/hw/hfi1/pio.c sc->fill_wrap = sc->fill_wrap - sc->credits; credits 2168 drivers/infiniband/hw/hfi1/pio.c i, sci->type, sci->base, sci->credits); credits 2172 drivers/infiniband/hw/hfi1/pio.c sc->sr_size, sc->credits, sc->sr_head, sc->sr_tail); credits 120 drivers/infiniband/hw/hfi1/pio.h u32 credits; /* number of blocks in context */ credits 151 drivers/infiniband/hw/hfi1/pio.h u16 credits; /* size in PIO array */ credits 2053 drivers/infiniband/hw/hfi1/sdma.c u32 credits, credits 2071 drivers/infiniband/hw/hfi1/sdma.c ((u64)credits << SD(MEMORY_SDMA_MEMORY_CNT_SHIFT)) | credits 2072 drivers/infiniband/hw/hfi1/sdma.c ((u64)(credits * sde->this_idx) << credits 68 drivers/infiniband/hw/hfi1/trace_ctxts.h __field(u32, credits) credits 80 drivers/infiniband/hw/hfi1/trace_ctxts.h __entry->credits = uctxt->sc->credits; credits 93 drivers/infiniband/hw/hfi1/trace_ctxts.h __entry->credits, credits 106 drivers/infiniband/sw/rdmavt/rc.c u32 credits; credits 110 drivers/infiniband/sw/rdmavt/rc.c credits = READ_ONCE(qp->r_rq.kwq->count); credits 111 drivers/infiniband/sw/rdmavt/rc.c if (credits == 0) { credits 130 drivers/infiniband/sw/rdmavt/rc.c credits = head - tail; credits 131 drivers/infiniband/sw/rdmavt/rc.c if ((int)credits < 0) credits 132 drivers/infiniband/sw/rdmavt/rc.c credits += qp->r_rq.size; credits 142 drivers/infiniband/sw/rdmavt/rc.c if (credit_table[x] == credits) credits 144 drivers/infiniband/sw/rdmavt/rc.c if (credit_table[x] > credits) { credits 195 drivers/net/ethernet/chelsio/cxgb/sge.c unsigned int credits; /* # of available RX buffers */ credits 209 drivers/net/ethernet/chelsio/cxgb/sge.c unsigned int credits; /* credits to be returned to SGE */ credits 432 drivers/net/ethernet/chelsio/cxgb/sge.c unsigned int credits) credits 449 drivers/net/ethernet/chelsio/cxgb/sge.c if (credits < MAX_SKB_FRAGS + 1) credits 509 drivers/net/ethernet/chelsio/cxgb/sge.c while (q->credits--) { credits 601 drivers/net/ethernet/chelsio/cxgb/sge.c sge->respQ.credits = 0; credits 831 drivers/net/ethernet/chelsio/cxgb/sge.c while (q->credits < q->size) { credits 861 drivers/net/ethernet/chelsio/cxgb/sge.c q->credits++; credits 879 drivers/net/ethernet/chelsio/cxgb/sge.c if (sge->freelQ[0].credits > (sge->freelQ[0].size >> 2) && credits 880 drivers/net/ethernet/chelsio/cxgb/sge.c sge->freelQ[1].credits > (sge->freelQ[1].size >> 2)) { credits 1013 drivers/net/ethernet/chelsio/cxgb/sge.c fl->credits++; credits 1066 drivers/net/ethernet/chelsio/cxgb/sge.c if (fl->credits < 2) { credits 1310 drivers/net/ethernet/chelsio/cxgb/sge.c unsigned int credits, queued_skb = 0; credits 1315 drivers/net/ethernet/chelsio/cxgb/sge.c credits = q->size - q->in_use; credits 1316 drivers/net/ethernet/chelsio/cxgb/sge.c pr_debug("restart_sched credits=%d\n", credits); credits 1317 drivers/net/ethernet/chelsio/cxgb/sge.c while ((skb = sched_skb(sge, NULL, credits)) != NULL) { credits 1330 drivers/net/ethernet/chelsio/cxgb/sge.c credits = q->size - q->in_use; credits 1514 drivers/net/ethernet/chelsio/cxgb/sge.c if (unlikely(--fl->credits < credits 1528 drivers/net/ethernet/chelsio/cxgb/sge.c if (++q->credits > SGE_RESPQ_REPLENISH_THRES) { credits 1529 drivers/net/ethernet/chelsio/cxgb/sge.c writel(q->credits, adapter->regs + A_SG_RSPQUEUECREDIT); credits 1530 drivers/net/ethernet/chelsio/cxgb/sge.c q->credits = 0; credits 1583 drivers/net/ethernet/chelsio/cxgb/sge.c if (++q->credits > SGE_RESPQ_REPLENISH_THRES) { credits 1584 drivers/net/ethernet/chelsio/cxgb/sge.c writel(q->credits, adapter->regs + A_SG_RSPQUEUECREDIT); credits 1585 drivers/net/ethernet/chelsio/cxgb/sge.c q->credits = 0; credits 1664 drivers/net/ethernet/chelsio/cxgb/sge.c unsigned int credits, pidx, genbit, count, use_sched_skb = 0; credits 1671 drivers/net/ethernet/chelsio/cxgb/sge.c credits = q->size - q->in_use; credits 1676 drivers/net/ethernet/chelsio/cxgb/sge.c if (unlikely(credits < count)) { credits 1688 drivers/net/ethernet/chelsio/cxgb/sge.c if (unlikely(credits - count < q->stop_thres)) { credits 1703 drivers/net/ethernet/chelsio/cxgb/sge.c skb = sched_skb(sge, skb, credits); credits 1744 drivers/net/ethernet/chelsio/cxgb/sge.c credits = q->size - q->in_use; credits 104 drivers/net/ethernet/chelsio/cxgb3/adapter.h unsigned int credits; /* # of available Rx buffers */ credits 131 drivers/net/ethernet/chelsio/cxgb3/adapter.h unsigned int credits; /* # of pending response credits */ credits 749 drivers/net/ethernet/chelsio/cxgb3/common.h unsigned int credits, unsigned int credit_thres); credits 755 drivers/net/ethernet/chelsio/cxgb3/common.h unsigned int credits); credits 151 drivers/net/ethernet/chelsio/cxgb3/cxgb3_ctl_defs.h unsigned int credits; credits 161 drivers/net/ethernet/chelsio/cxgb3/cxgb3_ctl_defs.h unsigned int credits; credits 305 drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c rdma->credits); credits 339 drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c rdma->ovfl_mode, rdma->credits, credits 192 drivers/net/ethernet/chelsio/cxgb3/sge.c const struct sge_rspq *q, unsigned int credits) credits 196 drivers/net/ethernet/chelsio/cxgb3/sge.c V_RSPQ(q->cntxt_id) | V_CREDITS(credits)); credits 384 drivers/net/ethernet/chelsio/cxgb3/sge.c while (q->credits--) { credits 487 drivers/net/ethernet/chelsio/cxgb3/sge.c if (q->pend_cred >= q->credits / 4) { credits 556 drivers/net/ethernet/chelsio/cxgb3/sge.c q->credits += count; credits 565 drivers/net/ethernet/chelsio/cxgb3/sge.c refill_fl(adap, fl, min(MAX_RX_REFILL, fl->size - fl->credits), credits 596 drivers/net/ethernet/chelsio/cxgb3/sge.c q->credits++; credits 790 drivers/net/ethernet/chelsio/cxgb3/sge.c fl->credits--; credits 810 drivers/net/ethernet/chelsio/cxgb3/sge.c if (unlikely(fl->credits < drop_thres) && credits 811 drivers/net/ethernet/chelsio/cxgb3/sge.c refill_fl(adap, fl, min(MAX_RX_REFILL, fl->size - fl->credits - 1), credits 865 drivers/net/ethernet/chelsio/cxgb3/sge.c fl->credits--; credits 871 drivers/net/ethernet/chelsio/cxgb3/sge.c if (unlikely(q->rx_recycle_buf || (!skb && fl->credits <= drop_thres))) credits 911 drivers/net/ethernet/chelsio/cxgb3/sge.c fl->credits--; credits 1266 drivers/net/ethernet/chelsio/cxgb3/sge.c unsigned int ndesc, pidx, credits, gen, compl; credits 1290 drivers/net/ethernet/chelsio/cxgb3/sge.c credits = q->size - q->in_use; credits 1293 drivers/net/ethernet/chelsio/cxgb3/sge.c if (unlikely(credits < ndesc)) { credits 1310 drivers/net/ethernet/chelsio/cxgb3/sge.c if (unlikely(credits - ndesc < q->stop_thres)) { credits 2144 drivers/net/ethernet/chelsio/cxgb3/sge.c fl->credits--; credits 2216 drivers/net/ethernet/chelsio/cxgb3/sge.c unsigned int credits; credits 2223 drivers/net/ethernet/chelsio/cxgb3/sge.c credits = G_RSPD_TXQ0_CR(flags); credits 2224 drivers/net/ethernet/chelsio/cxgb3/sge.c if (credits) credits 2225 drivers/net/ethernet/chelsio/cxgb3/sge.c qs->txq[TXQ_ETH].processed += credits; credits 2227 drivers/net/ethernet/chelsio/cxgb3/sge.c credits = G_RSPD_TXQ2_CR(flags); credits 2228 drivers/net/ethernet/chelsio/cxgb3/sge.c if (credits) credits 2229 drivers/net/ethernet/chelsio/cxgb3/sge.c qs->txq[TXQ_CTRL].processed += credits; credits 2235 drivers/net/ethernet/chelsio/cxgb3/sge.c credits = G_RSPD_TXQ1_CR(flags); credits 2236 drivers/net/ethernet/chelsio/cxgb3/sge.c if (credits) credits 2237 drivers/net/ethernet/chelsio/cxgb3/sge.c qs->txq[TXQ_OFLD].processed += credits; credits 2420 drivers/net/ethernet/chelsio/cxgb3/sge.c if (++q->credits >= (q->size / 4)) { credits 2421 drivers/net/ethernet/chelsio/cxgb3/sge.c refill_rspq(adap, q, q->credits); credits 2422 drivers/net/ethernet/chelsio/cxgb3/sge.c q->credits = 0; credits 2550 drivers/net/ethernet/chelsio/cxgb3/sge.c if (++q->credits >= (q->size / 4)) { credits 2551 drivers/net/ethernet/chelsio/cxgb3/sge.c refill_rspq(adap, q, q->credits); credits 2552 drivers/net/ethernet/chelsio/cxgb3/sge.c q->credits = 0; credits 2983 drivers/net/ethernet/chelsio/cxgb3/sge.c if (qs->rspq.credits) { credits 2984 drivers/net/ethernet/chelsio/cxgb3/sge.c qs->rspq.credits--; credits 2993 drivers/net/ethernet/chelsio/cxgb3/sge.c if (qs->fl[0].credits < qs->fl[0].size) credits 2995 drivers/net/ethernet/chelsio/cxgb3/sge.c if (qs->fl[1].credits < qs->fl[1].size) credits 872 drivers/net/ethernet/chelsio/cxgb3/t3_cpl.h __be16 credits; credits 2246 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c unsigned int credits = type == SGE_CNTXT_OFLD ? 0 : FW_WR_NUM; credits 2255 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c V_EC_CREDITS(credits) | V_EC_GTS(gts_enable)); credits 2365 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c unsigned int credits, unsigned int credit_thres) credits 2380 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c t3_write_reg(adapter, A_SG_CONTEXT_DATA3, V_CQ_CREDITS(credits) | credits 2493 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c unsigned int credits) credits 2500 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c t3_write_reg(adapter, A_SG_CONTEXT_DATA0, credits << 16); credits 1367 drivers/net/ethernet/chelsio/cxgb4/sge.c int qidx, credits; credits 1441 drivers/net/ethernet/chelsio/cxgb4/sge.c credits = txq_avail(&q->q) - ndesc; credits 1443 drivers/net/ethernet/chelsio/cxgb4/sge.c if (unlikely(credits < 0)) { credits 1468 drivers/net/ethernet/chelsio/cxgb4/sge.c if (unlikely(credits < ETHTXQ_STOP_THRES)) { credits 1710 drivers/net/ethernet/chelsio/cxgb4/sge.c int qidx, credits, max_pkt_len; credits 1756 drivers/net/ethernet/chelsio/cxgb4/sge.c credits = txq_avail(&txq->q) - ndesc; credits 1758 drivers/net/ethernet/chelsio/cxgb4/sge.c if (unlikely(credits < 0)) { credits 1782 drivers/net/ethernet/chelsio/cxgb4/sge.c if (unlikely(credits < ETHTXQ_STOP_THRES)) { credits 2249 drivers/net/ethernet/chelsio/cxgb4/sge.c int credits; credits 2280 drivers/net/ethernet/chelsio/cxgb4/sge.c credits = txq_avail(&q->q) - ndesc; credits 2281 drivers/net/ethernet/chelsio/cxgb4/sge.c BUG_ON(credits < 0); credits 2282 drivers/net/ethernet/chelsio/cxgb4/sge.c if (unlikely(credits < TXQ_STOP_THRES)) credits 2520 drivers/net/ethernet/chelsio/cxgb4/sge.c int credits; credits 2542 drivers/net/ethernet/chelsio/cxgb4/sge.c credits = txq_avail(&q->q) - ndesc; credits 2547 drivers/net/ethernet/chelsio/cxgb4/sge.c if (unlikely(credits < TXQ_STOP_THRES)) credits 3299 drivers/net/ethernet/chelsio/cxgb4/sge.c unsigned int credits; credits 3305 drivers/net/ethernet/chelsio/cxgb4/sge.c for (credits = 0; ; credits++) { credits 3321 drivers/net/ethernet/chelsio/cxgb4/sge.c val = CIDXINC_V(credits) | SEINTARM_V(q->intr_params); credits 3335 drivers/net/ethernet/chelsio/cxgb4/sge.c return credits; credits 1410 drivers/net/ethernet/chelsio/cxgb4/t4_msg.h u8 credits; credits 1161 drivers/net/ethernet/chelsio/cxgb4vf/sge.c int qidx, credits, max_pkt_len; credits 1217 drivers/net/ethernet/chelsio/cxgb4vf/sge.c credits = txq_avail(&txq->q) - ndesc; credits 1219 drivers/net/ethernet/chelsio/cxgb4vf/sge.c if (unlikely(credits < 0)) { credits 1245 drivers/net/ethernet/chelsio/cxgb4vf/sge.c if (unlikely(credits < ETHTXQ_STOP_THRES)) { credits 1367 drivers/net/ethernet/chelsio/cxgb4vf/sge.c ndesc, credits, txq->q.pidx, skb->len, ssi->nr_frags); credits 70 drivers/net/ethernet/cisco/enic/vnic_intr.h unsigned int credits, int unmask, int reset_timer) credits 75 drivers/net/ethernet/cisco/enic/vnic_intr.h u32 int_credit_return = (credits & 0xffff) | credits 89 drivers/net/ethernet/cisco/enic/vnic_intr.h unsigned int credits = vnic_intr_credits(intr); credits 93 drivers/net/ethernet/cisco/enic/vnic_intr.h vnic_intr_return_credits(intr, credits, unmask, reset_timer); credits 1711 drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h __le16 credits[8]; credits 5218 drivers/net/ethernet/intel/i40e/i40e_main.c le16_to_cpu(bw_ets_config.credits[i]); credits 5518 drivers/net/ethernet/intel/i40e/i40e_main.c u64 credits = 0; credits 5536 drivers/net/ethernet/intel/i40e/i40e_main.c credits = max_tx_rate; credits 5537 drivers/net/ethernet/intel/i40e/i40e_main.c do_div(credits, I40E_BW_CREDIT_DIVISOR); credits 5538 drivers/net/ethernet/intel/i40e/i40e_main.c ret = i40e_aq_config_vsi_bw_limit(&pf->hw, seid, credits, credits 6219 drivers/net/ethernet/intel/i40e/i40e_main.c u64 credits = ch->max_tx_rate; credits 6224 drivers/net/ethernet/intel/i40e/i40e_main.c do_div(credits, I40E_BW_CREDIT_DIVISOR); credits 6228 drivers/net/ethernet/intel/i40e/i40e_main.c credits, credits 7483 drivers/net/ethernet/intel/i40e/i40e_main.c u64 credits = max_tx_rate; credits 7485 drivers/net/ethernet/intel/i40e/i40e_main.c do_div(credits, I40E_BW_CREDIT_DIVISOR); credits 7489 drivers/net/ethernet/intel/i40e/i40e_main.c credits, credits 9763 drivers/net/ethernet/intel/i40e/i40e_main.c u64 credits = ch->max_tx_rate; credits 9769 drivers/net/ethernet/intel/i40e/i40e_main.c do_div(credits, I40E_BW_CREDIT_DIVISOR); credits 9773 drivers/net/ethernet/intel/i40e/i40e_main.c credits, credits 10119 drivers/net/ethernet/intel/i40e/i40e_main.c u64 credits = 0; credits 10126 drivers/net/ethernet/intel/i40e/i40e_main.c credits = max_tx_rate; credits 10127 drivers/net/ethernet/intel/i40e/i40e_main.c do_div(credits, I40E_BW_CREDIT_DIVISOR); credits 10131 drivers/net/ethernet/intel/i40e/i40e_main.c credits, credits 613 drivers/net/ethernet/mellanox/mlxsw/pci.c int credits = q->count >> 1; credits 639 drivers/net/ethernet/mellanox/mlxsw/pci.c if (++items == credits) credits 730 drivers/net/ethernet/mellanox/mlxsw/pci.c int credits = q->count >> 1; credits 754 drivers/net/ethernet/mellanox/mlxsw/pci.c if (++items == credits) credits 749 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c int *credits); credits 756 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c int credits = MLXSW_SP_ACL_TCAM_VREGION_REHASH_CREDITS; credits 758 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c mlxsw_sp_acl_tcam_vregion_rehash(vregion->mlxsw_sp, vregion, &credits); credits 759 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c if (credits < 0) credits 1238 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c int *credits) credits 1246 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c if (--(*credits) < 0) credits 1291 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c int *credits) credits 1323 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c vchunk->chunk, credits); credits 1345 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c } else if (*credits < 0) { credits 1363 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c int *credits) credits 1380 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c ctx, credits); credits 1381 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c if (err || *credits < 0) credits 1391 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c int *credits) credits 1398 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c ctx, credits); credits 1408 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c ctx, credits); credits 1495 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c int *credits) credits 1515 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c ctx, credits); credits 1520 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c if (*credits >= 0) credits 19 drivers/net/ethernet/pensando/ionic/ionic_regs.h u32 credits; credits 69 drivers/net/ethernet/pensando/ionic/ionic_regs.h cred = ioread32(&intr_ctrl[intr_idx].credits); credits 73 drivers/net/ethernet/pensando/ionic/ionic_regs.h iowrite32(cred | flags, &intr_ctrl[intr_idx].credits); credits 81 drivers/net/ethernet/pensando/ionic/ionic_regs.h cred = ioread32(&intr_ctrl[intr_idx].credits); credits 84 drivers/net/ethernet/pensando/ionic/ionic_regs.h iowrite32(cred, &intr_ctrl[intr_idx].credits); credits 415 drivers/net/ethernet/rocker/rocker_main.c u32 credits) credits 417 drivers/net/ethernet/rocker/rocker_main.c if (credits) credits 418 drivers/net/ethernet/rocker/rocker_main.c rocker_write32(rocker, DMA_DESC_CREDITS(info->type), credits); credits 879 drivers/net/ethernet/rocker/rocker_main.c u32 credits = 0; credits 889 drivers/net/ethernet/rocker/rocker_main.c credits++; credits 892 drivers/net/ethernet/rocker/rocker_main.c rocker_dma_ring_credits_set(rocker, &rocker->cmd_ring, credits); credits 999 drivers/net/ethernet/rocker/rocker_main.c u32 credits = 0; credits 1015 drivers/net/ethernet/rocker/rocker_main.c credits++; credits 1017 drivers/net/ethernet/rocker/rocker_main.c rocker_dma_ring_credits_set(rocker, &rocker->event_ring, credits); credits 2422 drivers/net/ethernet/rocker/rocker_main.c u32 credits = 0; credits 2444 drivers/net/ethernet/rocker/rocker_main.c credits++; credits 2447 drivers/net/ethernet/rocker/rocker_main.c if (credits && netif_queue_stopped(rocker_port->dev)) credits 2451 drivers/net/ethernet/rocker/rocker_main.c rocker_dma_ring_credits_set(rocker, &rocker_port->tx_ring, credits); credits 2501 drivers/net/ethernet/rocker/rocker_main.c u32 credits = 0; credits 2505 drivers/net/ethernet/rocker/rocker_main.c while (credits < budget && credits 2524 drivers/net/ethernet/rocker/rocker_main.c credits++; credits 2527 drivers/net/ethernet/rocker/rocker_main.c if (credits < budget) credits 2528 drivers/net/ethernet/rocker/rocker_main.c napi_complete_done(napi, credits); credits 2530 drivers/net/ethernet/rocker/rocker_main.c rocker_dma_ring_credits_set(rocker, &rocker_port->rx_ring, credits); credits 2532 drivers/net/ethernet/rocker/rocker_main.c return credits; credits 518 drivers/net/ethernet/sfc/mcdi.c ++mcdi->credits; credits 572 drivers/net/ethernet/sfc/mcdi.c if (mcdi->credits) credits 574 drivers/net/ethernet/sfc/mcdi.c --mcdi->credits; credits 683 drivers/net/ethernet/sfc/mcdi.c ++mcdi->credits; credits 1230 drivers/net/ethernet/sfc/mcdi.c ++mcdi->credits; credits 1279 drivers/net/ethernet/sfc/mcdi.c ++mcdi->credits; credits 74 drivers/net/ethernet/sfc/mcdi.h unsigned int credits; credits 2576 drivers/net/ethernet/sun/cassini.c int i, enable_intr, credits; credits 2592 drivers/net/ethernet/sun/cassini.c credits = 0; credits 2596 drivers/net/ethernet/sun/cassini.c credits += cas_rx_ringN(cp, j, budget / N_RX_COMP_RINGS); credits 2597 drivers/net/ethernet/sun/cassini.c if (credits >= budget) { credits 2638 drivers/net/ethernet/sun/cassini.c return credits; credits 98 drivers/net/wireless/ath/ath10k/htc.c int credits = 0; credits 112 drivers/net/wireless/ath/ath10k/htc.c credits = DIV_ROUND_UP(skb->len, htc->target_credit_size); credits 114 drivers/net/wireless/ath/ath10k/htc.c if (ep->tx_credits < credits) { credits 117 drivers/net/wireless/ath/ath10k/htc.c eid, credits, ep->tx_credits); credits 122 drivers/net/wireless/ath/ath10k/htc.c ep->tx_credits -= credits; credits 125 drivers/net/wireless/ath/ath10k/htc.c eid, credits, ep->tx_credits); credits 160 drivers/net/wireless/ath/ath10k/htc.c ep->tx_credits += credits; credits 163 drivers/net/wireless/ath/ath10k/htc.c eid, credits, ep->tx_credits); credits 216 drivers/net/wireless/ath/ath10k/htc.c ep->tx_credits += report->credits; credits 219 drivers/net/wireless/ath/ath10k/htc.c report->eid, report->credits, ep->tx_credits); credits 188 drivers/net/wireless/ath/ath10k/htc.h u8 credits; credits 260 drivers/net/wireless/ath/ath6kl/debug.c ep_dist->credits); credits 737 drivers/net/wireless/ath/ath6kl/debug.c print_credit_info("%9d", credits); credits 222 drivers/net/wireless/ath/ath6kl/htc.h u8 credits; credits 394 drivers/net/wireless/ath/ath6kl/htc.h int credits; credits 42 drivers/net/wireless/ath/ath6kl/htc_mbox.c int credits) credits 45 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep_dist->endpoint, credits); credits 47 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep_dist->credits += credits; credits 48 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep_dist->cred_assngd += credits; credits 49 drivers/net/wireless/ath/ath6kl/htc_mbox.c cred_info->cur_free_credits -= credits; credits 138 drivers/net/wireless/ath/ath6kl/htc_mbox.c cur_ep_dist->credits, credits 170 drivers/net/wireless/ath/ath6kl/htc_mbox.c int credits; credits 177 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (ep_dist->credits <= limit) credits 180 drivers/net/wireless/ath/ath6kl/htc_mbox.c credits = ep_dist->credits - limit; credits 181 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep_dist->credits -= credits; credits 182 drivers/net/wireless/ath/ath6kl/htc_mbox.c cred_info->cur_free_credits += credits; credits 195 drivers/net/wireless/ath/ath6kl/htc_mbox.c cur_list->credits += cur_list->cred_to_dist; credits 198 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (cur_list->credits > cur_list->cred_assngd) credits 203 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (cur_list->credits > cur_list->cred_norm) credits 224 drivers/net/wireless/ath/ath6kl/htc_mbox.c int credits = 0; credits 242 drivers/net/wireless/ath/ath6kl/htc_mbox.c credits = min(cred_info->cur_free_credits, ep_dist->seek_cred); credits 244 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (credits >= ep_dist->seek_cred) credits 285 drivers/net/wireless/ath/ath6kl/htc_mbox.c credits = min(cred_info->cur_free_credits, ep_dist->seek_cred); credits 289 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (credits) credits 290 drivers/net/wireless/ath/ath6kl/htc_mbox.c ath6kl_credit_deposit(cred_info, ep_dist, credits); credits 555 drivers/net/wireless/ath/ath6kl/htc_mbox.c *req_cred, ep->cred_dist.credits); credits 557 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (ep->cred_dist.credits < *req_cred) { credits 562 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep->cred_dist.seek_cred = *req_cred - ep->cred_dist.credits; credits 568 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (ep->cred_dist.credits < *req_cred) { credits 576 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep->cred_dist.credits -= *req_cred; credits 580 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (ep->cred_dist.credits < ep->cred_dist.cred_per_msg) { credits 582 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep->cred_dist.cred_per_msg - ep->cred_dist.credits; credits 587 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (ep->cred_dist.credits < ep->cred_dist.cred_per_msg) { credits 1024 drivers/net/wireless/ath/ath6kl/htc_mbox.c endpoint->cred_dist.credits, credits 1614 drivers/net/wireless/ath/ath6kl/htc_mbox.c rpt->eid, rpt->credits); credits 1617 drivers/net/wireless/ath/ath6kl/htc_mbox.c endpoint->ep_st.cred_retnd += rpt->credits; credits 1624 drivers/net/wireless/ath/ath6kl/htc_mbox.c endpoint->ep_st.cred_from_rx += rpt->credits; credits 1628 drivers/net/wireless/ath/ath6kl/htc_mbox.c endpoint->ep_st.cred_from_ep0 += rpt->credits; credits 1631 drivers/net/wireless/ath/ath6kl/htc_mbox.c endpoint->ep_st.cred_from_other += rpt->credits; credits 1637 drivers/net/wireless/ath/ath6kl/htc_mbox.c endpoint->cred_dist.credits += rpt->credits; credits 1639 drivers/net/wireless/ath/ath6kl/htc_mbox.c endpoint->cred_dist.cred_to_dist += rpt->credits; credits 1651 drivers/net/wireless/ath/ath6kl/htc_mbox.c tot_credits += rpt->credits; credits 130 drivers/net/wireless/ath/ath6kl/htc_pipe.c __func__, credits_required, ep->cred_dist.credits); credits 140 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (ep->cred_dist.credits < credits_required) credits 143 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->cred_dist.credits -= credits_required; credits 147 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (ep->cred_dist.credits < credits 272 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->cred_dist.credits += packet->info.tx.cred_used; credits 550 drivers/net/wireless/ath/ath6kl/htc_pipe.c int status, credits, credit_per_maxmsg, i; credits 560 drivers/net/wireless/ath/ath6kl/htc_pipe.c credits = target->tgt_creds; credits 569 drivers/net/wireless/ath/ath6kl/htc_pipe.c __func__, credits); credits 574 drivers/net/wireless/ath/ath6kl/htc_pipe.c entry->credit_alloc = (credits - 6); credits 578 drivers/net/wireless/ath/ath6kl/htc_pipe.c credits -= (int) entry->credit_alloc; credits 579 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (credits <= 0) credits 585 drivers/net/wireless/ath/ath6kl/htc_pipe.c credits -= (int) entry->credit_alloc; credits 586 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (credits <= 0) credits 593 drivers/net/wireless/ath/ath6kl/htc_pipe.c entry->credit_alloc = (u8) credits; credits 598 drivers/net/wireless/ath/ath6kl/htc_pipe.c entry->credit_alloc = credits / 4; credits 602 drivers/net/wireless/ath/ath6kl/htc_pipe.c credits -= (int) entry->credit_alloc; credits 603 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (credits <= 0) credits 608 drivers/net/wireless/ath/ath6kl/htc_pipe.c entry->credit_alloc = credits / 4; credits 612 drivers/net/wireless/ath/ath6kl/htc_pipe.c credits -= (int) entry->credit_alloc; credits 613 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (credits <= 0) credits 619 drivers/net/wireless/ath/ath6kl/htc_pipe.c credits -= (int) entry->credit_alloc; credits 620 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (credits <= 0) credits 626 drivers/net/wireless/ath/ath6kl/htc_pipe.c credits -= (int) entry->credit_alloc; credits 627 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (credits <= 0) credits 633 drivers/net/wireless/ath/ath6kl/htc_pipe.c entry->credit_alloc = (u8) credits; credits 673 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->cred_dist.credits += rpt->credits; credits 675 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (ep->cred_dist.credits && get_queue_depth(&ep->txq)) { credits 681 drivers/net/wireless/ath/ath6kl/htc_pipe.c total_credits += rpt->credits; credits 1368 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->cred_dist.credits = tx_alloc; credits 206 drivers/net/wireless/ath/ath9k/htc_drv_init.c priv->htc->credits = 45; credits 208 drivers/net/wireless/ath/ath9k/htc_drv_init.c priv->htc->credits = 33; credits 215 drivers/net/wireless/ath/ath9k/htc_drv_init.c priv->htc->credits); credits 165 drivers/net/wireless/ath/ath9k/htc_hst.c cp_msg->credits = target->credits; credits 68 drivers/net/wireless/ath/ath9k/htc_hst.h __be16 credits; credits 77 drivers/net/wireless/ath/ath9k/htc_hst.h u8 credits; credits 126 drivers/net/wireless/ath/ath9k/htc_hst.h u16 credits; credits 1201 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c u8 fifo, u8 credits) credits 1207 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (!credits) credits 1220 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (*borrowed >= credits) { credits 1221 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c *borrowed -= credits; credits 1222 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c *fifo_credit += credits; credits 1225 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c credits -= *borrowed; credits 1233 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c fws->fifo_credit[fifo] += credits; credits 1613 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c u8 *credits = data; credits 1622 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_dbg(TRACE, "enter: credits %pM\n", credits); credits 1625 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c fws->fifo_credit[i] += credits[i] - fws->init_fifo_credit[i]; credits 1626 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c fws->init_fifo_credit[i] = credits[i]; credits 123 drivers/scsi/csiostor/csio_wr.c int n = flq->credits; credits 156 drivers/scsi/csiostor/csio_wr.c if (unlikely(flq->pidx >= flq->credits)) credits 157 drivers/scsi/csiostor/csio_wr.c flq->pidx -= (uint16_t)flq->credits; credits 261 drivers/scsi/csiostor/csio_wr.c q->credits = (qsz - q->wr_sz) / q->wr_sz; credits 281 drivers/scsi/csiostor/csio_wr.c flq->un.fl.bufs = kcalloc(flq->credits, credits 304 drivers/scsi/csiostor/csio_wr.c flq->pidx = flq->inc_idx = flq->credits - 8; credits 315 drivers/scsi/csiostor/csio_wr.c q->credits = (qsz - csio_wr_qstat_pgsz(hw)) / CSIO_QCREDIT_SZ; credits 320 drivers/scsi/csiostor/csio_wr.c q->credits = (qsz - csio_wr_qstat_pgsz(hw)) / sizeof(__be64); credits 773 drivers/scsi/csiostor/csio_wr.c for (i = 0; i < q->credits; i++) { credits 874 drivers/scsi/csiostor/csio_wr.c int credits; credits 878 drivers/scsi/csiostor/csio_wr.c CSIO_DB_ASSERT(cidx <= q->credits); credits 882 drivers/scsi/csiostor/csio_wr.c credits = q->credits - (pidx - cidx) - 1; credits 884 drivers/scsi/csiostor/csio_wr.c credits = cidx - pidx - 1; credits 887 drivers/scsi/csiostor/csio_wr.c credits = q->credits; credits 895 drivers/scsi/csiostor/csio_wr.c if (!credits || (req_credits > credits)) { credits 925 drivers/scsi/csiostor/csio_wr.c if (unlikely(q->pidx == q->credits)) { credits 1004 drivers/scsi/csiostor/csio_wr.c return q->credits - (q->cidx - q->pidx); credits 1024 drivers/scsi/csiostor/csio_wr.c if (flq->cidx == flq->credits) { credits 1243 drivers/scsi/csiostor/csio_wr.c csio_wr_update_fl(hw, flq, (flq->credits - 8) - avail); credits 1700 drivers/scsi/csiostor/csio_wr.c for (j = 0; j < q->credits; j++) { credits 407 drivers/scsi/csiostor/csio_wr.h uint32_t credits; /* Size of queue in credits */ credits 460 drivers/scsi/csiostor/csio_wr.h #define csio_q_credits(__hw, __idx) ((__hw)->wrm.q_arr[(__idx)]->credits) credits 297 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c static u32 send_rx_credits(struct cxgbi_sock *csk, u32 credits) credits 305 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c csk, csk->state, csk->flags, csk->tid, credits, dack); credits 309 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c pr_info("csk 0x%p, credit %u, OOM.\n", csk, credits); credits 316 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c V_RX_CREDITS(credits)); credits 319 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c return credits; credits 855 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c csk, csk->state, csk->flags, csk->tid, ntohs(hdr->credits)); credits 857 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c cxgbi_sock_rcv_wr_ack(csk, ntohs(hdr->credits), ntohl(hdr->snd_una), 1); credits 526 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c static u32 send_rx_credits(struct cxgbi_sock *csk, u32 credits) credits 533 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c csk, csk->state, csk->flags, csk->tid, credits); credits 537 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c pr_info("csk 0x%p, credit %u, OOM.\n", csk, credits); credits 546 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c req->credit_dack = cpu_to_be32(RX_CREDITS_V(credits) credits 549 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c return credits; credits 671 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c int dlen, int len, u32 credits, int compl) credits 685 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c FW_WR_LEN16_V(credits)); credits 693 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c FW_WR_LEN16_V(credits)); credits 1537 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c cxgbi_sock_rcv_wr_ack(csk, rpl->credits, ntohl(rpl->snd_una), credits 1021 drivers/scsi/cxgbi/libcxgbi.c void cxgbi_sock_rcv_wr_ack(struct cxgbi_sock *csk, unsigned int credits, credits 1026 drivers/scsi/cxgbi/libcxgbi.c csk, csk->state, csk->flags, csk->tid, credits, credits 1031 drivers/scsi/cxgbi/libcxgbi.c csk->wr_cred += credits; credits 1035 drivers/scsi/cxgbi/libcxgbi.c while (credits) { credits 1040 drivers/scsi/cxgbi/libcxgbi.c csk, csk->state, csk->flags, csk->tid, credits, credits 1045 drivers/scsi/cxgbi/libcxgbi.c if (unlikely(credits < p->csum)) { credits 1048 drivers/scsi/cxgbi/libcxgbi.c credits, csk->wr_cred, csk->wr_una_cred, credits 1050 drivers/scsi/cxgbi/libcxgbi.c p->csum -= credits; credits 1054 drivers/scsi/cxgbi/libcxgbi.c credits -= p->csum; credits 1680 drivers/scsi/cxgbi/libcxgbi.c u32 credits; credits 1694 drivers/scsi/cxgbi/libcxgbi.c credits = csk->copied_seq - csk->rcv_wup; credits 1695 drivers/scsi/cxgbi/libcxgbi.c if (unlikely(!credits)) credits 1697 drivers/scsi/cxgbi/libcxgbi.c must_send = credits + 16384 >= csk->rcv_win; credits 1698 drivers/scsi/cxgbi/libcxgbi.c if (must_send || credits >= cdev->rx_credit_thres) credits 1699 drivers/scsi/cxgbi/libcxgbi.c csk->rcv_wup += cdev->csk_send_rx_credits(csk, credits); credits 79 drivers/scsi/fnic/vnic_intr.h unsigned int credits, int unmask, int reset_timer) credits 84 drivers/scsi/fnic/vnic_intr.h u32 int_credit_return = (credits & 0xffff) | credits 98 drivers/scsi/fnic/vnic_intr.h unsigned int credits = vnic_intr_credits(intr); credits 102 drivers/scsi/fnic/vnic_intr.h vnic_intr_return_credits(intr, credits, unmask, reset_timer); credits 67 drivers/scsi/snic/vnic_intr.h unsigned int credits, credits 74 drivers/scsi/snic/vnic_intr.h u32 int_credit_return = (credits & 0xffff) | credits 90 drivers/scsi/snic/vnic_intr.h unsigned int credits = svnic_intr_credits(intr); credits 94 drivers/scsi/snic/vnic_intr.h svnic_intr_return_credits(intr, credits, unmask, reset_timer); credits 73 drivers/staging/greybus/uart.c unsigned int credits; credits 179 drivers/staging/greybus/uart.c gb_tty->credits += incoming_credits; credits 180 drivers/staging/greybus/uart.c if (gb_tty->credits > GB_UART_FIRMWARE_CREDITS) { credits 181 drivers/staging/greybus/uart.c gb_tty->credits -= incoming_credits; credits 201 drivers/staging/greybus/uart.c if (gb_tty->credits == GB_UART_FIRMWARE_CREDITS) credits 250 drivers/staging/greybus/uart.c if (send_size > gb_tty->credits) credits 251 drivers/staging/greybus/uart.c send_size = gb_tty->credits; credits 261 drivers/staging/greybus/uart.c gb_tty->credits -= send_size; credits 273 drivers/staging/greybus/uart.c gb_tty->credits += send_size; credits 328 drivers/staging/greybus/uart.c if (gb_tty->credits == GB_UART_FIRMWARE_CREDITS) credits 479 drivers/staging/greybus/uart.c if (gb_tty->credits < GB_UART_FIRMWARE_CREDITS) credits 480 drivers/staging/greybus/uart.c chars += GB_UART_FIRMWARE_CREDITS - gb_tty->credits; credits 774 drivers/staging/greybus/uart.c if (gb_tty->credits == GB_UART_FIRMWARE_CREDITS) credits 862 drivers/staging/greybus/uart.c gb_tty->credits = GB_UART_FIRMWARE_CREDITS; credits 1825 drivers/target/iscsi/cxgbit/cxgbit_cm.c u32 credits = rpl->credits; credits 1828 drivers/target/iscsi/cxgbit/cxgbit_cm.c csk->wr_cred += credits; credits 1832 drivers/target/iscsi/cxgbit/cxgbit_cm.c while (credits) { credits 1838 drivers/target/iscsi/cxgbit/cxgbit_cm.c csk, csk->tid, credits, credits 1844 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (unlikely(credits < csum)) { credits 1847 drivers/target/iscsi/cxgbit/cxgbit_cm.c credits, csk->wr_cred, csk->wr_una_cred, credits 1849 drivers/target/iscsi/cxgbit/cxgbit_cm.c p->csum = (__force __wsum)(csum - credits); credits 1854 drivers/target/iscsi/cxgbit/cxgbit_cm.c credits -= csum; credits 161 drivers/target/iscsi/cxgbit/cxgbit_target.c u32 len, u32 credits, u32 compl) credits 188 drivers/target/iscsi/cxgbit/cxgbit_target.c FW_WR_LEN16_V(credits)); credits 575 drivers/thunderbolt/switch.c int tb_port_add_nfc_credits(struct tb_port *port, int credits) credits 579 drivers/thunderbolt/switch.c if (credits == 0 || port->sw->is_unplugged) credits 583 drivers/thunderbolt/switch.c nfc_credits += credits; credits 586 drivers/thunderbolt/switch.c credits, port->config.nfc_credits & TB_PORT_NFC_CREDITS_MASK); credits 602 drivers/thunderbolt/switch.c int tb_port_set_initial_credits(struct tb_port *port, u32 credits) credits 612 drivers/thunderbolt/switch.c data |= (credits << TB_PORT_LCA_SHIFT) & TB_PORT_LCA_MASK; credits 595 drivers/thunderbolt/tb.h int tb_port_add_nfc_credits(struct tb_port *port, int credits); credits 596 drivers/thunderbolt/tb.h int tb_port_set_initial_credits(struct tb_port *port, u32 credits); credits 489 drivers/thunderbolt/tunnel.c u32 credits; credits 491 drivers/thunderbolt/tunnel.c credits = active ? tb_dma_credits(nhi) : 0; credits 492 drivers/thunderbolt/tunnel.c return tb_port_set_initial_credits(nhi, credits); credits 496 drivers/thunderbolt/tunnel.c unsigned int efc, u32 credits) credits 509 drivers/thunderbolt/tunnel.c path->hops[i].initial_credits = credits; credits 533 drivers/thunderbolt/tunnel.c u32 credits; credits 543 drivers/thunderbolt/tunnel.c credits = tb_dma_credits(nhi); credits 551 drivers/thunderbolt/tunnel.c credits); credits 559 drivers/thunderbolt/tunnel.c tb_dma_init_path(path, TB_PATH_SOURCE, TB_PATH_ALL, credits); credits 324 fs/cifs/cifs_debug.c server->credits, server->dialect); credits 241 fs/cifs/cifsglob.h const struct cifs_credits *credits, credits 470 fs/cifs/cifsglob.h struct cifs_credits *credits, credits 680 fs/cifs/cifsglob.h unsigned int credits; /* send no more requests at once */ credits 788 fs/cifs/cifsglob.h has_credits(struct TCP_Server_Info *server, int *credits, int num_credits) credits 792 fs/cifs/cifsglob.h num = *credits; credits 798 fs/cifs/cifsglob.h add_credits(struct TCP_Server_Info *server, const struct cifs_credits *credits, credits 801 fs/cifs/cifsglob.h server->ops->add_credits(server, credits, optype); credits 806 fs/cifs/cifsglob.h const struct cifs_credits *credits, const int optype) credits 808 fs/cifs/cifsglob.h if (credits->value) { credits 809 fs/cifs/cifsglob.h server->ops->add_credits(server, credits, optype); credits 821 fs/cifs/cifsglob.h adjust_credits(struct TCP_Server_Info *server, struct cifs_credits *credits, credits 825 fs/cifs/cifsglob.h server->ops->adjust_credits(server, credits, payload_size) : 0; credits 1333 fs/cifs/cifsglob.h struct cifs_credits credits; credits 1359 fs/cifs/cifsglob.h struct cifs_credits credits; credits 1529 fs/cifs/cifsglob.h __u16 credits; /* number of credits consumed by this mid */ credits 119 fs/cifs/cifsproto.h struct cifs_credits *credits); credits 825 fs/cifs/cifssmb.c struct cifs_credits credits = { .value = 1, .instance = 0 }; credits 828 fs/cifs/cifssmb.c add_credits(server, &credits, CIFS_ECHO_OP); credits 1705 fs/cifs/cifssmb.c struct cifs_credits credits = { .value = 1, .instance = 0 }; credits 1743 fs/cifs/cifssmb.c add_credits(server, &credits, 0); credits 2231 fs/cifs/cifssmb.c struct cifs_credits credits = { .value = 1, .instance = 0 }; credits 2267 fs/cifs/cifssmb.c add_credits(tcon->ses->server, &credits, 0); credits 779 fs/cifs/connect.c val = server->credits + server->echo_credits + server->oplock_credits; credits 985 fs/cifs/connect.c if (server->credits <= 0) credits 986 fs/cifs/connect.c server->credits = 1; credits 1147 fs/cifs/connect.c server->credits += le16_to_cpu(shdr->CreditRequest); credits 2786 fs/cifs/connect.c tcp_ses->credits = 1; credits 2266 fs/cifs/file.c rc = adjust_credits(server, &wdata->credits, wdata->bytes); credits 2316 fs/cifs/file.c struct cifs_credits *credits = &credits_on_stack; credits 2329 fs/cifs/file.c &wsize, credits); credits 2342 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); credits 2348 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); credits 2358 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); credits 2362 fs/cifs/file.c wdata->credits = credits_on_stack; credits 2381 fs/cifs/file.c add_credits_and_wake_if(server, &wdata->credits, 0); credits 2760 fs/cifs/file.c struct cifs_credits credits; credits 2782 fs/cifs/file.c &wsize, &credits); credits 2787 fs/cifs/file.c add_credits_and_wake_if(server, &credits, 0); credits 2791 fs/cifs/file.c wdata->credits = credits; credits 2793 fs/cifs/file.c rc = adjust_credits(server, &wdata->credits, wdata->bytes); credits 2810 fs/cifs/file.c add_credits_and_wake_if(server, &wdata->credits, 0); credits 2847 fs/cifs/file.c struct cifs_credits *credits = &credits_on_stack; credits 2858 fs/cifs/file.c &wsize, credits); credits 2879 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); credits 2892 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); credits 2909 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); credits 2917 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); credits 2929 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); credits 2950 fs/cifs/file.c wdata->credits = credits_on_stack; credits 2954 fs/cifs/file.c rc = adjust_credits(server, &wdata->credits, wdata->bytes); credits 2965 fs/cifs/file.c add_credits_and_wake_if(server, &wdata->credits, 0); credits 3486 fs/cifs/file.c struct cifs_credits credits; credits 3507 fs/cifs/file.c &rsize, &credits); credits 3513 fs/cifs/file.c add_credits_and_wake_if(server, &credits, 0); credits 3517 fs/cifs/file.c rdata->credits = credits; credits 3519 fs/cifs/file.c rc = adjust_credits(server, &rdata->credits, rdata->bytes); credits 3535 fs/cifs/file.c add_credits_and_wake_if(server, &rdata->credits, 0); credits 3551 fs/cifs/file.c struct cifs_credits *credits = &credits_on_stack; credits 3580 fs/cifs/file.c &rsize, credits); credits 3603 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); credits 3612 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); credits 3630 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); credits 3639 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); credits 3654 fs/cifs/file.c rdata->credits = credits_on_stack; credits 3658 fs/cifs/file.c rc = adjust_credits(server, &rdata->credits, rdata->bytes); credits 3668 fs/cifs/file.c add_credits_and_wake_if(server, &rdata->credits, 0); credits 4338 fs/cifs/file.c struct cifs_credits *credits = &credits_on_stack; credits 4349 fs/cifs/file.c &rsize, credits); credits 4360 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); credits 4368 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); credits 4382 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); credits 4395 fs/cifs/file.c rdata->credits = credits_on_stack; credits 4402 fs/cifs/file.c rc = adjust_credits(server, &rdata->credits, rdata->bytes); credits 4412 fs/cifs/file.c add_credits_and_wake_if(server, &rdata->credits, 0); credits 109 fs/cifs/smb1ops.c const struct cifs_credits *credits, const int optype) credits 112 fs/cifs/smb1ops.c server->credits += credits->value; credits 122 fs/cifs/smb1ops.c server->credits = val; credits 130 fs/cifs/smb1ops.c return &server->credits; credits 29 fs/cifs/smb2ops.c server->credits += server->echo_credits + server->oplock_credits; credits 31 fs/cifs/smb2ops.c switch (server->credits) { credits 53 fs/cifs/smb2ops.c server->credits -= server->echo_credits + server->oplock_credits; credits 54 fs/cifs/smb2ops.c return server->credits + server->echo_credits + server->oplock_credits; credits 59 fs/cifs/smb2ops.c const struct cifs_credits *credits, const int optype) credits 62 fs/cifs/smb2ops.c unsigned int add = credits->value; credits 63 fs/cifs/smb2ops.c unsigned int instance = credits->instance; credits 91 fs/cifs/smb2ops.c if (server->credits > 1) { credits 92 fs/cifs/smb2ops.c server->credits--; credits 129 fs/cifs/smb2ops.c server->credits = val; credits 147 fs/cifs/smb2ops.c return &server->credits; credits 159 fs/cifs/smb2ops.c unsigned int *num, struct cifs_credits *credits) credits 166 fs/cifs/smb2ops.c if (server->credits <= 0) { credits 170 fs/cifs/smb2ops.c has_credits(server, &server->credits, 1)); credits 181 fs/cifs/smb2ops.c scredits = server->credits; credits 185 fs/cifs/smb2ops.c credits->value = 0; credits 186 fs/cifs/smb2ops.c credits->instance = 0; credits 195 fs/cifs/smb2ops.c credits->value = credits 197 fs/cifs/smb2ops.c credits->instance = server->reconnect_instance; credits 198 fs/cifs/smb2ops.c server->credits -= credits->value; credits 211 fs/cifs/smb2ops.c struct cifs_credits *credits, credits 216 fs/cifs/smb2ops.c if (!credits->value || credits->value == new_val) credits 219 fs/cifs/smb2ops.c if (credits->value < new_val) { credits 221 fs/cifs/smb2ops.c credits->value, new_val); credits 227 fs/cifs/smb2ops.c if (server->reconnect_instance != credits->instance) { credits 230 fs/cifs/smb2ops.c credits->value - new_val); credits 234 fs/cifs/smb2ops.c server->credits += credits->value - new_val; credits 237 fs/cifs/smb2ops.c credits->value = new_val; credits 2101 fs/cifs/smb2ops.c server->credits += le16_to_cpu(shdr->CreditRequest); credits 111 fs/cifs/smb2pdu.c if (server->credits >= server->max_credits) credits 116 fs/cifs/smb2pdu.c server->credits, 10)); credits 3334 fs/cifs/smb2pdu.c struct cifs_credits credits = { .value = 0, .instance = 0 }; credits 3338 fs/cifs/smb2pdu.c credits.value = le16_to_cpu(rsp->sync_hdr.CreditRequest); credits 3339 fs/cifs/smb2pdu.c credits.instance = server->reconnect_instance; credits 3343 fs/cifs/smb2pdu.c add_credits(server, &credits, CIFS_ECHO_OP); credits 3634 fs/cifs/smb2pdu.c struct cifs_credits credits = { .value = 0, .instance = 0 }; credits 3649 fs/cifs/smb2pdu.c credits.value = le16_to_cpu(shdr->CreditRequest); credits 3650 fs/cifs/smb2pdu.c credits.instance = server->reconnect_instance; credits 3675 fs/cifs/smb2pdu.c credits.value = le16_to_cpu(shdr->CreditRequest); credits 3676 fs/cifs/smb2pdu.c credits.instance = server->reconnect_instance; credits 3706 fs/cifs/smb2pdu.c add_credits(server, &credits, 0); credits 3747 fs/cifs/smb2pdu.c if (rdata->credits.value > 0) { credits 3753 fs/cifs/smb2pdu.c rc = adjust_credits(server, &rdata->credits, rdata->bytes); credits 3764 fs/cifs/smb2pdu.c &rdata->credits); credits 3867 fs/cifs/smb2pdu.c struct cifs_credits credits = { .value = 0, .instance = 0 }; credits 3871 fs/cifs/smb2pdu.c credits.value = le16_to_cpu(rsp->sync_hdr.CreditRequest); credits 3872 fs/cifs/smb2pdu.c credits.instance = server->reconnect_instance; credits 3897 fs/cifs/smb2pdu.c credits.value = le16_to_cpu(rsp->sync_hdr.CreditRequest); credits 3898 fs/cifs/smb2pdu.c credits.instance = server->reconnect_instance; credits 3934 fs/cifs/smb2pdu.c add_credits(server, &credits, 0); credits 4042 fs/cifs/smb2pdu.c if (wdata->credits.value > 0) { credits 4048 fs/cifs/smb2pdu.c rc = adjust_credits(server, &wdata->credits, wdata->bytes); credits 4057 fs/cifs/smb2pdu.c wdata, flags, &wdata->credits); credits 581 fs/cifs/smb2transport.c unsigned int credits = le16_to_cpu(shdr->CreditCharge); credits 592 fs/cifs/smb2transport.c temp->credits = credits > 0 ? credits : 1; credits 851 fs/cifs/trace.h int credits), credits 852 fs/cifs/trace.h TP_ARGS(currmid, hostname, credits), credits 856 fs/cifs/trace.h __field(int, credits) credits 861 fs/cifs/trace.h __entry->credits = credits; credits 866 fs/cifs/trace.h __entry->credits) credits 873 fs/cifs/trace.h int credits), \ credits 874 fs/cifs/trace.h TP_ARGS(currmid, hostname, credits)) credits 532 fs/cifs/transport.c int *credits; credits 545 fs/cifs/transport.c credits = server->ops->get_credits_field(server, optype); credits 547 fs/cifs/transport.c if (*credits <= 0 && optype == CIFS_ECHO_OP) credits 556 fs/cifs/transport.c *credits -= 1; credits 563 fs/cifs/transport.c if (*credits < num_credits) { credits 567 fs/cifs/transport.c has_credits(server, credits, num_credits), t); credits 600 fs/cifs/transport.c *credits <= MAX_COMPOUND) { credits 605 fs/cifs/transport.c has_credits(server, credits, credits 630 fs/cifs/transport.c *credits -= num_credits; credits 655 fs/cifs/transport.c int *credits; credits 657 fs/cifs/transport.c credits = server->ops->get_credits_field(server, flags & CIFS_OP_MASK); credits 660 fs/cifs/transport.c if (*credits < num) { credits 665 fs/cifs/transport.c if (server->in_flight < num - *credits) { credits 678 fs/cifs/transport.c unsigned int *num, struct cifs_credits *credits) credits 681 fs/cifs/transport.c credits->value = 0; credits 682 fs/cifs/transport.c credits->instance = server->reconnect_instance; credits 774 fs/cifs/transport.c struct cifs_credits credits = { .value = 0, .instance = 0 }; credits 784 fs/cifs/transport.c credits.value = 1; credits 785 fs/cifs/transport.c credits.instance = instance; credits 798 fs/cifs/transport.c add_credits_and_wake_if(server, &credits, optype); credits 805 fs/cifs/transport.c add_credits_and_wake_if(server, &credits, optype); credits 830 fs/cifs/transport.c revert_current_mid(server, mid->credits); credits 840 fs/cifs/transport.c add_credits_and_wake_if(server, &credits, optype); credits 973 fs/cifs/transport.c struct cifs_credits credits; credits 975 fs/cifs/transport.c credits.value = server->ops->get_credits(mid); credits 976 fs/cifs/transport.c credits.instance = server->reconnect_instance; credits 978 fs/cifs/transport.c add_credits(server, &credits, mid->optype); credits 1003 fs/cifs/transport.c struct cifs_credits credits[MAX_COMPOUND] = { credits 1038 fs/cifs/transport.c credits[i].value = 1; credits 1039 fs/cifs/transport.c credits[i].instance = instance; credits 1060 fs/cifs/transport.c add_credits(server, &credits[j], optype); credits 1074 fs/cifs/transport.c add_credits(server, &credits[j], optype); credits 1110 fs/cifs/transport.c add_credits(server, &credits[i], optype); credits 1144 fs/cifs/transport.c credits[i].value = 0; credits 1270 fs/cifs/transport.c struct cifs_credits credits = { .value = 1, .instance = 0 }; credits 1296 fs/cifs/transport.c rc = wait_for_free_request(server, flags, &credits.instance); credits 1310 fs/cifs/transport.c add_credits(server, &credits, 0); credits 1343 fs/cifs/transport.c add_credits(server, &credits, 0); credits 1351 fs/cifs/transport.c add_credits(server, &credits, 0); credits 1367 fs/cifs/transport.c add_credits(server, &credits, 0); credits 229 fs/ext4/acl.c int error, credits, retries = 0; credits 239 fs/ext4/acl.c &credits); credits 243 fs/ext4/acl.c handle = ext4_journal_start(inode, EXT4_HT_XATTR, credits); credits 2737 fs/ext4/extents.c int depth = ext_depth(inode), credits; credits 2823 fs/ext4/extents.c credits = 7 + 2*(ex_ee_len/EXT4_BLOCKS_PER_GROUP(inode->i_sb)); credits 2826 fs/ext4/extents.c credits += (ext_depth(inode)) + 1; credits 2828 fs/ext4/extents.c credits += EXT4_MAXQUOTAS_TRANS_BLOCKS(inode->i_sb); credits 2830 fs/ext4/extents.c err = ext4_ext_truncate_extend_restart(handle, inode, credits); credits 4620 fs/ext4/extents.c unsigned int credits; credits 4637 fs/ext4/extents.c credits = ext4_chunk_trans_blocks(inode, len); credits 4646 fs/ext4/extents.c credits = ext4_chunk_trans_blocks(inode, len); credits 4651 fs/ext4/extents.c credits); credits 4704 fs/ext4/extents.c int credits; credits 4820 fs/ext4/extents.c credits = (2 * ext4_ext_index_trans_blocks(inode, 2)) + 1; credits 4822 fs/ext4/extents.c credits += 2; credits 4823 fs/ext4/extents.c handle = ext4_journal_start(inode, EXT4_HT_MISC, credits); credits 4972 fs/ext4/extents.c unsigned int credits, blkbits = inode->i_blkbits; credits 4987 fs/ext4/extents.c credits = 0; credits 4992 fs/ext4/extents.c credits = ext4_chunk_trans_blocks(inode, max_blocks); credits 4997 fs/ext4/extents.c if (credits) { credits 4999 fs/ext4/extents.c credits); credits 5014 fs/ext4/extents.c if (credits) credits 5019 fs/ext4/extents.c if (!credits) credits 5205 fs/ext4/extents.c int credits, err; credits 5217 fs/ext4/extents.c credits = ext4_writepage_trans_blocks(inode); credits 5218 fs/ext4/extents.c err = ext4_ext_truncate_extend_restart(handle, inode, credits); credits 5450 fs/ext4/extents.c unsigned int credits; credits 5534 fs/ext4/extents.c credits = ext4_writepage_trans_blocks(inode); credits 5535 fs/ext4/extents.c handle = ext4_journal_start(inode, EXT4_HT_TRUNCATE, credits); credits 5600 fs/ext4/extents.c unsigned int credits, ee_len; credits 5676 fs/ext4/extents.c credits = ext4_writepage_trans_blocks(inode); credits 5677 fs/ext4/extents.c handle = ext4_journal_start(inode, EXT4_HT_TRUNCATE, credits); credits 4269 fs/ext4/inode.c unsigned int credits; credits 4351 fs/ext4/inode.c credits = ext4_writepage_trans_blocks(inode); credits 4353 fs/ext4/inode.c credits = ext4_blocks_for_truncate(inode); credits 4354 fs/ext4/inode.c handle = ext4_journal_start(inode, EXT4_HT_TRUNCATE, credits); credits 4464 fs/ext4/inode.c unsigned int credits; credits 4503 fs/ext4/inode.c credits = ext4_writepage_trans_blocks(inode); credits 4505 fs/ext4/inode.c credits = ext4_blocks_for_truncate(inode); credits 4507 fs/ext4/inode.c handle = ext4_journal_start(inode, EXT4_HT_TRUNCATE, credits); credits 2586 fs/ext4/namei.c int err, credits, retries = 0; credits 2592 fs/ext4/namei.c credits = (EXT4_DATA_TRANS_BLOCKS(dir->i_sb) + credits 2596 fs/ext4/namei.c NULL, EXT4_HT_DIR, credits); credits 2619 fs/ext4/namei.c int err, credits, retries = 0; credits 2625 fs/ext4/namei.c credits = (EXT4_DATA_TRANS_BLOCKS(dir->i_sb) + credits 2629 fs/ext4/namei.c NULL, EXT4_HT_DIR, credits); credits 2759 fs/ext4/namei.c int err, credits, retries = 0; credits 2768 fs/ext4/namei.c credits = (EXT4_DATA_TRANS_BLOCKS(dir->i_sb) + credits 2773 fs/ext4/namei.c 0, NULL, EXT4_HT_DIR, credits); credits 3238 fs/ext4/namei.c int credits; credits 3260 fs/ext4/namei.c credits = 4 + EXT4_MAXQUOTAS_INIT_BLOCKS(dir->i_sb) + credits 3269 fs/ext4/namei.c credits = EXT4_DATA_TRANS_BLOCKS(dir->i_sb) + credits 3275 fs/ext4/namei.c EXT4_HT_DIR, credits); credits 3601 fs/ext4/namei.c int credits, handle_t **h) credits 3611 fs/ext4/namei.c credits += (EXT4_MAXQUOTAS_TRANS_BLOCKS(ent->dir->i_sb) + credits 3616 fs/ext4/namei.c EXT4_HT_DIR, credits); credits 3659 fs/ext4/namei.c int credits; credits 3717 fs/ext4/namei.c credits = (2 * EXT4_DATA_TRANS_BLOCKS(old.dir->i_sb) + credits 3720 fs/ext4/namei.c handle = ext4_journal_start(old.dir, EXT4_HT_DIR, credits); credits 3727 fs/ext4/namei.c whiteout = ext4_whiteout_for_rename(&old, credits, &handle); credits 1861 fs/ext4/resize.c int credits = 1; credits 1885 fs/ext4/resize.c credits += 3; /* block bitmap, bg descriptor, resize inode */ credits 1888 fs/ext4/resize.c handle = ext4_journal_start_sb(sb, EXT4_HT_RESIZE, credits); credits 1274 fs/ext4/super.c int res, res2, credits, retries = 0; credits 1323 fs/ext4/super.c &credits); credits 1327 fs/ext4/super.c handle = ext4_journal_start(inode, EXT4_HT_MISC, credits); credits 112 fs/ext4/verity.c const int credits = 2; /* superblock and inode for ext4_orphan_add() */ credits 151 fs/ext4/verity.c handle = ext4_journal_start(inode, EXT4_HT_INODE, credits); credits 199 fs/ext4/verity.c const int credits = 2; /* superblock and inode for ext4_orphan_del() */ credits 227 fs/ext4/verity.c handle = ext4_journal_start(inode, EXT4_HT_INODE, credits); credits 891 fs/ext4/xattr.c int credits; credits 907 fs/ext4/xattr.c credits = 7; credits 910 fs/ext4/xattr.c credits += EXT4_MAXQUOTAS_TRANS_BLOCKS(sb); credits 917 fs/ext4/xattr.c credits += ext4_writepage_trans_blocks(inode) + 1; credits 921 fs/ext4/xattr.c return credits; credits 924 fs/ext4/xattr.c credits += 4; credits 933 fs/ext4/xattr.c credits += blocks * 2; credits 936 fs/ext4/xattr.c credits += blocks; credits 942 fs/ext4/xattr.c credits += 4; credits 953 fs/ext4/xattr.c credits += blocks * 2; credits 965 fs/ext4/xattr.c credits += 1; credits 967 fs/ext4/xattr.c return credits; credits 971 fs/ext4/xattr.c int credits, struct buffer_head *bh, credits 979 fs/ext4/xattr.c if (handle->h_buffer_credits >= credits) credits 982 fs/ext4/xattr.c error = ext4_journal_extend(handle, credits - handle->h_buffer_credits); credits 1001 fs/ext4/xattr.c error = ext4_journal_restart(handle, credits); credits 1164 fs/ext4/xattr.c int credits; credits 1167 fs/ext4/xattr.c credits = 2 + extra_credits; credits 1188 fs/ext4/xattr.c err = ext4_xattr_ensure_credits(handle, parent, credits, bh, credits 2325 fs/ext4/xattr.c int credits; credits 2333 fs/ext4/xattr.c credits = __ext4_xattr_set_credits(inode->i_sb, inode, bh, credits 2338 fs/ext4/xattr.c if (!ext4_handle_has_enough_credits(handle, credits)) { credits 2445 fs/ext4/xattr.c bool is_create, int *credits) credits 2450 fs/ext4/xattr.c *credits = 0; credits 2461 fs/ext4/xattr.c *credits = __ext4_xattr_set_credits(inode->i_sb, inode, bh, credits 2486 fs/ext4/xattr.c int credits; credits 2494 fs/ext4/xattr.c &credits); credits 2498 fs/ext4/xattr.c handle = ext4_journal_start(inode, EXT4_HT_XATTR, credits); credits 168 fs/ext4/xattr.h bool is_create, int *credits); credits 2289 fs/ocfs2/alloc.c int credits = (path->p_tree_depth - subtree_depth) * 2 + 1 + op_credits; credits 2291 fs/ocfs2/alloc.c if (handle->h_buffer_credits < credits) credits 2293 fs/ocfs2/alloc.c credits - handle->h_buffer_credits); credits 3113 fs/ocfs2/alloc.c int credits = path->p_tree_depth * 2 + 1; credits 3115 fs/ocfs2/alloc.c handle = ocfs2_start_trans(osb, credits); credits 5279 fs/ocfs2/alloc.c int ret, depth, credits; credits 5310 fs/ocfs2/alloc.c credits = path->p_tree_depth + credits 5312 fs/ocfs2/alloc.c ret = ocfs2_extend_trans(handle, credits); credits 5699 fs/ocfs2/alloc.c int ret, credits = 0, extra_blocks = 0; credits 5723 fs/ocfs2/alloc.c &credits, credits 5749 fs/ocfs2/alloc.c ocfs2_remove_extent_credits(osb->sb) + credits); credits 1664 fs/ocfs2/aops.c int ret, cluster_of_pages, credits = OCFS2_INODE_UPDATE_CREDITS; credits 1765 fs/ocfs2/aops.c credits = ocfs2_calc_extend_credits(inode->i_sb, credits 1784 fs/ocfs2/aops.c handle = ocfs2_start_trans(osb, credits); credits 2307 fs/ocfs2/aops.c int ret = 0, credits = 0, locked = 0; credits 2362 fs/ocfs2/aops.c credits = ocfs2_calc_extend_credits(inode->i_sb, &di->id2.i_list); credits 2364 fs/ocfs2/aops.c handle = ocfs2_start_trans(osb, credits); credits 2774 fs/ocfs2/dir.c credits = ocfs2_inline_to_extents_credits(sb); credits 2798 fs/ocfs2/dir.c credits += ocfs2_add_dir_index_credits(sb); credits 2842 fs/ocfs2/dir.c credits += OCFS2_SUBALLOC_ALLOC; credits 2844 fs/ocfs2/dir.c handle = ocfs2_start_trans(osb, credits); credits 3156 fs/ocfs2/dir.c int credits, num_free_extents, drop_alloc_sem = 0; credits 3210 fs/ocfs2/dir.c credits = OCFS2_SIMPLE_DIR_EXTEND_CREDITS; credits 3252 fs/ocfs2/dir.c credits = ocfs2_calc_extend_credits(sb, el); credits 3255 fs/ocfs2/dir.c credits = OCFS2_SIMPLE_DIR_EXTEND_CREDITS; credits 3260 fs/ocfs2/dir.c credits++; /* For attaching the new dirent block to the credits 3263 fs/ocfs2/dir.c handle = ocfs2_start_trans(osb, credits); credits 3675 fs/ocfs2/dir.c int credits = ocfs2_clusters_to_blocks(osb->sb, 3); credits 3677 fs/ocfs2/dir.c credits += ocfs2_calc_extend_credits(osb->sb, &dx_root->dr_list); credits 3678 fs/ocfs2/dir.c credits += ocfs2_quota_trans_credits(osb->sb); credits 3679 fs/ocfs2/dir.c return credits; credits 3693 fs/ocfs2/dir.c int credits, ret, i, num_used, did_quota = 0; credits 3749 fs/ocfs2/dir.c credits = ocfs2_dx_dir_rebalance_credits(osb, dx_root); credits 3750 fs/ocfs2/dir.c handle = ocfs2_start_trans(osb, credits); credits 557 fs/ocfs2/file.c int credits; credits 593 fs/ocfs2/file.c credits = ocfs2_calc_extend_credits(osb->sb, &fe->id2.i_list); credits 594 fs/ocfs2/file.c handle = ocfs2_start_trans(osb, credits); credits 365 fs/ocfs2/journal.h int credits = 0; credits 368 fs/ocfs2/journal.h credits += OCFS2_QWRITE_CREDITS; credits 370 fs/ocfs2/journal.h credits += OCFS2_QWRITE_CREDITS; credits 371 fs/ocfs2/journal.h return credits; credits 486 fs/ocfs2/journal.h int credits = 1 + OCFS2_SUBALLOC_ALLOC; credits 488 fs/ocfs2/journal.h credits += ocfs2_clusters_to_blocks(sb, 1); credits 489 fs/ocfs2/journal.h credits += ocfs2_quota_trans_credits(sb); credits 491 fs/ocfs2/journal.h return credits; credits 40 fs/ocfs2/move_extents.c int credits; credits 161 fs/ocfs2/move_extents.c int *credits) credits 185 fs/ocfs2/move_extents.c *credits += ocfs2_calc_extend_credits(osb->sb, et->et_root_el); credits 188 fs/ocfs2/move_extents.c extra_blocks, clusters_to_move, *credits); credits 210 fs/ocfs2/move_extents.c int ret, credits = 0, extra_blocks = 0, partial = context->partial; credits 235 fs/ocfs2/move_extents.c &credits, credits 246 fs/ocfs2/move_extents.c extra_blocks, &credits); credits 284 fs/ocfs2/move_extents.c handle = ocfs2_start_trans(osb, credits); credits 577 fs/ocfs2/move_extents.c int ret, credits = 0, extra_blocks = 0, goal_bit = 0; credits 608 fs/ocfs2/move_extents.c &credits, credits 619 fs/ocfs2/move_extents.c extra_blocks, &credits); credits 629 fs/ocfs2/move_extents.c credits += OCFS2_INODE_UPDATE_CREDITS + 1; credits 653 fs/ocfs2/move_extents.c handle = ocfs2_start_trans(osb, credits); credits 1785 fs/ocfs2/namei.c int status, l, credits; credits 1823 fs/ocfs2/namei.c credits = ocfs2_calc_symlink_credits(sb); credits 1900 fs/ocfs2/namei.c handle = ocfs2_start_trans(osb, credits + xattr_credits); credits 1741 fs/ocfs2/ocfs2_trace.h TP_PROTO(const char *name, int meta, int clusters, int credits), credits 1742 fs/ocfs2/ocfs2_trace.h TP_ARGS(name, meta, clusters, credits), credits 1747 fs/ocfs2/ocfs2_trace.h __field(int, credits) credits 1753 fs/ocfs2/ocfs2_trace.h __entry->credits = credits; credits 1756 fs/ocfs2/ocfs2_trace.h __entry->clusters, __entry->credits) credits 766 fs/ocfs2/refcounttree.c int credits = OCFS2_REFCOUNT_TREE_REMOVE_CREDITS; credits 810 fs/ocfs2/refcounttree.c credits += OCFS2_SUBALLOC_FREE; credits 813 fs/ocfs2/refcounttree.c handle = ocfs2_start_trans(osb, credits); credits 2374 fs/ocfs2/refcounttree.c int *credits) credits 2408 fs/ocfs2/refcounttree.c *credits += 1; credits 2468 fs/ocfs2/refcounttree.c *credits += 1; credits 2475 fs/ocfs2/refcounttree.c *credits += ref_blocks; credits 2490 fs/ocfs2/refcounttree.c *credits += ocfs2_calc_extend_credits(sb, credits 2493 fs/ocfs2/refcounttree.c *credits += OCFS2_EXPAND_REFCOUNT_TREE_CREDITS; credits 2501 fs/ocfs2/refcounttree.c *meta_add, *credits); credits 2523 fs/ocfs2/refcounttree.c int *credits, credits 2557 fs/ocfs2/refcounttree.c ref_blocks, credits); credits 2563 fs/ocfs2/refcounttree.c trace_ocfs2_prepare_refcount_change_for_del(*ref_blocks, *credits); credits 2843 fs/ocfs2/refcounttree.c int *credits) credits 2858 fs/ocfs2/refcounttree.c *credits += ocfs2_calc_extend_credits(sb, et->et_root_el); credits 2862 fs/ocfs2/refcounttree.c &meta_add, credits); credits 2868 fs/ocfs2/refcounttree.c trace_ocfs2_lock_refcount_allocators(meta_add, *credits); credits 3207 fs/ocfs2/refcounttree.c int ret, delete, index, credits = 0; credits 3224 fs/ocfs2/refcounttree.c &context->data_ac, &credits); credits 3231 fs/ocfs2/refcounttree.c credits += context->post_refcount->credits; credits 3233 fs/ocfs2/refcounttree.c credits += context->extra_credits; credits 3234 fs/ocfs2/refcounttree.c handle = ocfs2_start_trans(osb, credits); credits 3539 fs/ocfs2/refcounttree.c int *meta_add, int *credits) credits 3584 fs/ocfs2/refcounttree.c *credits += 1; credits 3602 fs/ocfs2/refcounttree.c *credits += OCFS2_EXPAND_REFCOUNT_TREE_CREDITS; credits 3607 fs/ocfs2/refcounttree.c *credits += ocfs2_calc_extend_credits(inode->i_sb, credits 3691 fs/ocfs2/refcounttree.c int credits = 1, ref_blocks = 0; credits 3701 fs/ocfs2/refcounttree.c &ref_blocks, &credits); credits 3707 fs/ocfs2/refcounttree.c trace_ocfs2_add_refcount_flag(ref_blocks, credits); credits 3719 fs/ocfs2/refcounttree.c credits += post->credits; credits 3721 fs/ocfs2/refcounttree.c handle = ocfs2_start_trans(osb, credits); credits 3904 fs/ocfs2/refcounttree.c int credits = 0; credits 3912 fs/ocfs2/refcounttree.c NULL, &credits); credits 3918 fs/ocfs2/refcounttree.c handle = ocfs2_start_trans(osb, credits); credits 45 fs/ocfs2/refcounttree.h int *credits, credits 62 fs/ocfs2/refcounttree.h int credits; /* credits it need for journal. */ credits 71 fs/ocfs2/refcounttree.h int *meta_add, int *credits); credits 660 fs/ocfs2/suballoc.c int status, credits; credits 681 fs/ocfs2/suballoc.c credits = ocfs2_calc_group_alloc_credits(osb->sb, credits 683 fs/ocfs2/suballoc.c handle = ocfs2_start_trans(osb, credits); credits 301 fs/ocfs2/xattr.c int *credits); credits 706 fs/ocfs2/xattr.c int status = 0, credits; credits 751 fs/ocfs2/xattr.c credits = ocfs2_calc_extend_credits(inode->i_sb, credits 753 fs/ocfs2/xattr.c status = ocfs2_extend_trans(handle, credits); credits 3045 fs/ocfs2/xattr.c int clusters_add = 0, meta_add = 0, credits = 0; credits 3062 fs/ocfs2/xattr.c credits += new_clusters * credits 3066 fs/ocfs2/xattr.c credits += ocfs2_blocks_per_xattr_bucket(inode->i_sb); credits 3070 fs/ocfs2/xattr.c credits += ocfs2_calc_extend_credits(inode->i_sb, credits 3082 fs/ocfs2/xattr.c credits += OCFS2_INODE_UPDATE_CREDITS; credits 3098 fs/ocfs2/xattr.c credits += ocfs2_blocks_per_xattr_bucket(inode->i_sb); credits 3101 fs/ocfs2/xattr.c credits += OCFS2_XATTR_BLOCK_UPDATE_CREDITS; credits 3114 fs/ocfs2/xattr.c credits += ocfs2_remove_extent_credits(inode->i_sb); credits 3131 fs/ocfs2/xattr.c credits += ocfs2_remove_extent_credits(inode->i_sb) + credits 3134 fs/ocfs2/xattr.c credits += ocfs2_calc_extend_credits( credits 3155 fs/ocfs2/xattr.c credits += ocfs2_remove_extent_credits(inode->i_sb); credits 3160 fs/ocfs2/xattr.c credits += ocfs2_calc_extend_credits(inode->i_sb, credits 3206 fs/ocfs2/xattr.c credits += ocfs2_calc_extend_credits(inode->i_sb, credits 3209 fs/ocfs2/xattr.c credits += OCFS2_SUBALLOC_ALLOC + 1; credits 3219 fs/ocfs2/xattr.c credits += ocfs2_blocks_per_xattr_bucket(inode->i_sb); credits 3222 fs/ocfs2/xattr.c credits += ocfs2_blocks_per_xattr_bucket(inode->i_sb); credits 3226 fs/ocfs2/xattr.c credits += OCFS2_XATTR_BLOCK_CREATE_CREDITS; credits 3230 fs/ocfs2/xattr.c credits += ocfs2_calc_extend_credits(inode->i_sb, credits 3242 fs/ocfs2/xattr.c *credits_need = credits; credits 3254 fs/ocfs2/xattr.c int *credits) credits 3264 fs/ocfs2/xattr.c &clusters_add, &meta_add, credits); credits 3272 fs/ocfs2/xattr.c clusters_add, *credits); credits 3310 fs/ocfs2/xattr.c int ret = 0, credits, old_found; credits 3338 fs/ocfs2/xattr.c &credits); credits 3345 fs/ocfs2/xattr.c ret = ocfs2_extend_trans(ctxt->handle, credits); credits 3368 fs/ocfs2/xattr.c &credits); credits 3375 fs/ocfs2/xattr.c ret = ocfs2_extend_trans(ctxt->handle, credits); credits 3403 fs/ocfs2/xattr.c &credits); credits 3409 fs/ocfs2/xattr.c ret = ocfs2_extend_trans(ctxt->handle, credits); credits 3536 fs/ocfs2/xattr.c int ret, credits, had_lock, ref_meta = 0, ref_credits = 0; credits 3633 fs/ocfs2/xattr.c &xbs, &ctxt, ref_meta, &credits); credits 3640 fs/ocfs2/xattr.c credits += OCFS2_INODE_UPDATE_CREDITS; credits 3641 fs/ocfs2/xattr.c ctxt.handle = ocfs2_start_trans(osb, credits + ref_credits); credits 4881 fs/ocfs2/xattr.c int i, ret, credits; credits 4916 fs/ocfs2/xattr.c credits = ((num_buckets + 1) * blks_per_bucket); credits 4917 fs/ocfs2/xattr.c ret = ocfs2_extend_trans(handle, credits); credits 4986 fs/ocfs2/xattr.c int ret, credits = 2 * blk_per_bucket; credits 4990 fs/ocfs2/xattr.c ret = ocfs2_extend_trans(handle, credits); credits 5199 fs/ocfs2/xattr.c int ret, credits; credits 5223 fs/ocfs2/xattr.c credits = (end_blk - target_blk) + (3 * blk_per_bucket); credits 5224 fs/ocfs2/xattr.c ret = ocfs2_extend_trans(handle, credits); credits 5663 fs/ocfs2/xattr.c int credits = ocfs2_remove_extent_credits(osb->sb) + credits 5689 fs/ocfs2/xattr.c ctxt.handle = ocfs2_start_trans(osb, credits + ref_credits); credits 5766 fs/ocfs2/xattr.c int *credits) credits 5813 fs/ocfs2/xattr.c refcount.credits = bucket->bu_blocks; credits 5868 fs/ocfs2/xattr.c meta_add, credits); credits 6051 fs/ocfs2/xattr.c .credits = bucket->bu_blocks, credits 6217 fs/ocfs2/xattr.c int *metas, int *credits, credits 6240 fs/ocfs2/xattr.c *credits += ocfs2_calc_extend_credits(sb, credits 6285 fs/ocfs2/xattr.c int *credits, credits 6292 fs/ocfs2/xattr.c *credits = 0; credits 6295 fs/ocfs2/xattr.c &meta_add, credits, &num_recs, credits 6312 fs/ocfs2/xattr.c *credits += num_recs + num_recs * OCFS2_EXPAND_REFCOUNT_TREE_CREDITS; credits 6314 fs/ocfs2/xattr.c *credits += le16_to_cpu(rb->rf_list.l_tree_depth) * credits 6317 fs/ocfs2/xattr.c *credits += 1; credits 6466 fs/ocfs2/xattr.c int ret = 0, credits = 0; credits 6485 fs/ocfs2/xattr.c &credits, &meta_ac); credits 6491 fs/ocfs2/xattr.c handle = ocfs2_start_trans(osb, credits); credits 6586 fs/ocfs2/xattr.c int ret = 0, credits = 0; credits 6605 fs/ocfs2/xattr.c &credits, &meta_ac); credits 6612 fs/ocfs2/xattr.c handle = ocfs2_start_trans(osb, credits + 1); credits 6705 fs/ocfs2/xattr.c int credits; credits 6734 fs/ocfs2/xattr.c metas->credits += bucket->bu_blocks; credits 6737 fs/ocfs2/xattr.c &metas->credits, &metas->num_recs, credits 6750 fs/ocfs2/xattr.c u64 blkno, u32 len, int *credits, credits 6768 fs/ocfs2/xattr.c *credits = metas.credits; credits 6786 fs/ocfs2/xattr.c *credits += metas.num_recs + credits 6789 fs/ocfs2/xattr.c *credits += le16_to_cpu(rb->rf_list.l_tree_depth) * credits 6792 fs/ocfs2/xattr.c *credits += 1; credits 6805 fs/ocfs2/xattr.c *credits += ocfs2_calc_extend_credits(osb->sb, credits 7002 fs/ocfs2/xattr.c int ret, credits = 0; credits 7018 fs/ocfs2/xattr.c len, &credits, credits 7025 fs/ocfs2/xattr.c handle = ocfs2_start_trans(osb, credits); credits 470 include/net/bluetooth/l2cap.h __le16 credits; credits 477 include/net/bluetooth/l2cap.h __le16 credits; credits 483 include/net/bluetooth/l2cap.h __le16 credits; credits 130 include/net/bluetooth/rfcomm.h u8 credits; credits 378 include/net/nfc/nci.h __u8 credits; credits 985 include/trace/events/rpcrdma.h unsigned int credits credits 988 include/trace/events/rpcrdma.h TP_ARGS(task, rep, req, credits), credits 996 include/trace/events/rpcrdma.h __field(unsigned int, credits) credits 1005 include/trace/events/rpcrdma.h __entry->credits = credits; credits 1010 include/trace/events/rpcrdma.h __entry->credits, __entry->rep, __entry->req credits 1327 include/trace/events/rpcrdma.h __field(u32, credits) credits 1334 include/trace/events/rpcrdma.h __entry->credits = be32_to_cpup(p++); credits 1340 include/trace/events/rpcrdma.h __entry->xid, __entry->vers, __entry->credits, credits 1373 include/trace/events/rpcrdma.h __field(u32, credits) credits 1379 include/trace/events/rpcrdma.h __entry->credits = be32_to_cpup(p++); credits 1384 include/trace/events/rpcrdma.h __entry->xid, __entry->vers, __entry->credits, __entry->proc) credits 89 include/uapi/rdma/hfi/hfi1_ioctl.h __u16 credits; /* number of PIO credits for this context */ credits 700 net/bluetooth/l2cap_core.c rsp.credits = cpu_to_le16(chan->rx_credits); credits 1298 net/bluetooth/l2cap_core.c req.credits = cpu_to_le16(chan->rx_credits); credits 3719 net/bluetooth/l2cap_core.c rsp.credits = cpu_to_le16(chan->rx_credits); credits 5335 net/bluetooth/l2cap_core.c u16 dcid, mtu, mps, credits, result; credits 5345 net/bluetooth/l2cap_core.c credits = __le16_to_cpu(rsp->credits); credits 5354 net/bluetooth/l2cap_core.c dcid, mtu, mps, credits, result); credits 5379 net/bluetooth/l2cap_core.c chan->tx_credits = credits; credits 5503 net/bluetooth/l2cap_core.c u16 dcid, scid, credits, mtu, mps; credits 5515 net/bluetooth/l2cap_core.c credits = 0; credits 5573 net/bluetooth/l2cap_core.c l2cap_le_flowctl_init(chan, __le16_to_cpu(req->credits)); credits 5576 net/bluetooth/l2cap_core.c credits = chan->rx_credits; credits 5614 net/bluetooth/l2cap_core.c rsp.credits = cpu_to_le16(credits); credits 5628 net/bluetooth/l2cap_core.c u16 cid, credits, max_credits; credits 5635 net/bluetooth/l2cap_core.c credits = __le16_to_cpu(pkt->credits); credits 5637 net/bluetooth/l2cap_core.c BT_DBG("cid 0x%4.4x credits 0x%4.4x", cid, credits); credits 5644 net/bluetooth/l2cap_core.c if (credits > max_credits) { credits 5655 net/bluetooth/l2cap_core.c chan->tx_credits += credits; credits 6778 net/bluetooth/l2cap_core.c pkt.credits = cpu_to_le16(return_credits); credits 62 net/bluetooth/rfcomm/core.c static int rfcomm_send_credits(struct rfcomm_session *s, u8 addr, u8 credits); credits 943 net/bluetooth/rfcomm/core.c pn->credits = RFCOMM_DEFAULT_CREDITS; credits 946 net/bluetooth/rfcomm/core.c pn->credits = 0; credits 1127 net/bluetooth/rfcomm/core.c static int rfcomm_send_credits(struct rfcomm_session *s, u8 addr, u8 credits) credits 1132 net/bluetooth/rfcomm/core.c BT_DBG("%p addr %d credits %d", s, addr, credits); credits 1139 net/bluetooth/rfcomm/core.c *ptr = credits; ptr++; credits 1371 net/bluetooth/rfcomm/core.c d, d->state, d->dlci, pn->mtu, pn->flow_ctrl, pn->credits); credits 1376 net/bluetooth/rfcomm/core.c d->tx_credits = pn->credits; credits 1681 net/bluetooth/rfcomm/core.c u8 credits = *(u8 *) skb->data; skb_pull(skb, 1); credits 1683 net/bluetooth/rfcomm/core.c d->tx_credits += credits; credits 49 net/nfc/nci/ntf.c ntf->conn_entries[i].credits); credits 56 net/nfc/nci/ntf.c atomic_add(ntf->conn_entries[i].credits, credits 437 net/rds/ib.h void rds_ib_send_add_credits(struct rds_connection *conn, unsigned int credits); credits 56 net/rds/ib_cm.c static void rds_ib_set_flow_control(struct rds_connection *conn, u32 credits) credits 60 net/rds/ib_cm.c if (rds_ib_sysctl_flow_control && credits != 0) { credits 63 net/rds/ib_cm.c rds_ib_send_add_credits(conn, credits); credits 252 net/rds/ib_cm.c unsigned int credits; credits 254 net/rds/ib_cm.c credits = IB_GET_POST_CREDITS credits 257 net/rds/ib_cm.c dp->ricp_v6.dp_credit = cpu_to_be32(credits); credits 259 net/rds/ib_cm.c dp->ricp_v4.dp_credit = cpu_to_be32(credits); credits 260 net/rds/ib_cm.c atomic_sub(IB_SET_POST_CREDITS(credits), credits 407 net/rds/ib_send.c void rds_ib_send_add_credits(struct rds_connection *conn, unsigned int credits) credits 411 net/rds/ib_send.c if (credits == 0) credits 415 net/rds/ib_send.c credits, credits 419 net/rds/ib_send.c atomic_add(IB_SET_SEND_CREDITS(credits), &ic->i_credits); credits 423 net/rds/ib_send.c WARN_ON(IB_GET_SEND_CREDITS(credits) >= 16384); credits 74 net/sched/sch_cbs.c s64 credits; /* in bytes */ credits 119 net/sched/sch_cbs.c if (sch->q.qlen == 0 && q->credits > 0) { credits 123 net/sched/sch_cbs.c q->credits = 0; credits 144 net/sched/sch_cbs.c static s64 delay_from_credits(s64 credits, s64 slope) credits 149 net/sched/sch_cbs.c return div64_s64(-credits * NSEC_PER_SEC, slope); credits 181 net/sched/sch_cbs.c s64 credits; credits 189 net/sched/sch_cbs.c if (q->credits < 0) { credits 190 net/sched/sch_cbs.c credits = timediff_to_credits(now - q->last, q->idleslope); credits 192 net/sched/sch_cbs.c credits = q->credits + credits; credits 193 net/sched/sch_cbs.c q->credits = min_t(s64, credits, q->hicredit); credits 195 net/sched/sch_cbs.c if (q->credits < 0) { credits 198 net/sched/sch_cbs.c delay = delay_from_credits(q->credits, q->idleslope); credits 215 net/sched/sch_cbs.c credits = credits_from_len(len, q->sendslope, credits 217 net/sched/sch_cbs.c credits += q->credits; credits 219 net/sched/sch_cbs.c q->credits = max_t(s64, credits, q->locredit); credits 1319 net/sunrpc/xprtrdma/rpc_rdma.c u32 credits; credits 1336 net/sunrpc/xprtrdma/rpc_rdma.c credits = be32_to_cpu(*p++); credits 1355 net/sunrpc/xprtrdma/rpc_rdma.c if (credits == 0) credits 1356 net/sunrpc/xprtrdma/rpc_rdma.c credits = 1; /* don't deadlock */ credits 1357 net/sunrpc/xprtrdma/rpc_rdma.c else if (credits > buf->rb_max_requests) credits 1358 net/sunrpc/xprtrdma/rpc_rdma.c credits = buf->rb_max_requests; credits 1359 net/sunrpc/xprtrdma/rpc_rdma.c if (buf->rb_credits != credits) { credits 1361 net/sunrpc/xprtrdma/rpc_rdma.c buf->rb_credits = credits; credits 1362 net/sunrpc/xprtrdma/rpc_rdma.c xprt->cwnd = credits << RPC_CWNDSHIFT; credits 1375 net/sunrpc/xprtrdma/rpc_rdma.c trace_xprtrdma_reply(rqst->rq_task, rep, req, credits); credits 33 net/sunrpc/xprtrdma/svc_rdma_backchannel.c u32 credits; credits 69 net/sunrpc/xprtrdma/svc_rdma_backchannel.c credits = be32_to_cpup(rdma_resp + 2); credits 70 net/sunrpc/xprtrdma/svc_rdma_backchannel.c if (credits == 0) credits 71 net/sunrpc/xprtrdma/svc_rdma_backchannel.c credits = 1; /* don't deadlock */ credits 72 net/sunrpc/xprtrdma/svc_rdma_backchannel.c else if (credits > r_xprt->rx_buf.rb_bc_max_requests) credits 73 net/sunrpc/xprtrdma/svc_rdma_backchannel.c credits = r_xprt->rx_buf.rb_bc_max_requests; credits 76 net/sunrpc/xprtrdma/svc_rdma_backchannel.c xprt->cwnd = credits << RPC_CWNDSHIFT;