Home
last modified time | relevance | path

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

1234

/linux/net/sched/
H A Dsch_cbs.c20 * 'idleslope': Idleslope is the rate of credits that is
23 * when the current value of credits is equal or greater than
25 * credits is set to zero. This is the main tunable of the CBS
29 * Sendslope is the rate of credits that is depleted (it should be a
36 * 'hicredit': Hicredit defines the maximum amount of credits (in
46 * 'locredit': Locredit is the minimum amount of credits that can
75 s64 credits; /* in bytes */ member
120 if (sch->q.qlen == 0 && q->credits > 0) { in cbs_enqueue_soft()
121 /* We need to stop accumulating credits when there's in cbs_enqueue_soft()
122 * no enqueued packets and q->credits i in cbs_enqueue_soft()
145 delay_from_credits(s64 credits,s64 slope) delay_from_credits() argument
182 s64 credits; cbs_dequeue_soft() local
[all...]
/linux/fs/smb/client/
H A Dtransport.c428 int *credits; in wait_for_free_credits()
442 credits = server->ops->get_credits_field(server, optype); in wait_for_free_credits()
444 if (*credits <= 0 && optype == CIFS_ECHO_OP) in wait_for_free_credits()
453 *credits -= 1; in wait_for_free_credits()
455 scredits = *credits; in wait_for_free_credits()
461 cifs_dbg(FYI, "%s: remove %u credits total=%d\n", in wait_for_free_credits()
478 if (*credits < num_credits) { in wait_for_free_credits()
479 scredits = *credits; in wait_for_free_credits()
484 has_credits(server, credits, num_credits), t); in wait_for_free_credits()
488 scredits = *credits; in wait_for_free_credits()
429 int *credits; wait_for_free_credits() local
588 int *credits; wait_for_compound_request() local
632 cifs_wait_mtu_credits(struct TCP_Server_Info * server,size_t size,size_t * num,struct cifs_credits * credits) cifs_wait_mtu_credits() argument
670 struct cifs_credits credits = { .value = 0, .instance = 0 }; cifs_call_async() local
784 struct cifs_credits credits = { cifs_compound_callback() local
871 struct cifs_credits credits[MAX_COMPOUND] = { compound_send_recv() local
[all...]
/linux/include/linux/pds/
H A Dpds_intr.h68 u16 credits; member
133 cred = ioread32(&intr_ctrl->credits); in pds_core_intr_credits()
137 iowrite32(cred | flags, &intr_ctrl->credits); in pds_core_intr_credits()
145 cred = ioread32(&intr_ctrl->credits); in pds_core_intr_clean_flags()
148 iowrite32(cred, &intr_ctrl->credits); in pds_core_intr_clean_flags()
/linux/drivers/infiniband/sw/rdmavt/
H A Drc.c64 u32 credits; in rvt_compute_aeth() local
68 credits = READ_ONCE(qp->r_rq.kwq->count); in rvt_compute_aeth()
69 if (credits == 0) { in rvt_compute_aeth()
88 credits = rvt_get_rq_count(&qp->r_rq, head, tail); in rvt_compute_aeth()
98 if (credit_table[x] == credits) in rvt_compute_aeth()
100 if (credit_table[x] > credits) { in rvt_compute_aeth()
/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_regs.h19 u32 credits; member
69 cred = ioread32(&intr_ctrl[intr_idx].credits); in ionic_intr_credits()
73 iowrite32(cred | flags, &intr_ctrl[intr_idx].credits); in ionic_intr_credits()
81 cred = ioread32(&intr_ctrl[intr_idx].credits); in ionic_intr_clean()
84 iowrite32(cred, &intr_ctrl[intr_idx].credits); in ionic_intr_clean()
/linux/drivers/scsi/snic/
H A Dvnic_intr.h53 unsigned int credits, in svnic_intr_return_credits() argument
60 u32 int_credit_return = (credits & 0xffff) | in svnic_intr_return_credits()
76 unsigned int credits = svnic_intr_credits(intr); in svnic_intr_return_all_credits() local
80 svnic_intr_return_credits(intr, credits, unmask, reset_timer); in svnic_intr_return_all_credits()
/linux/drivers/net/wireless/ath/ath6kl/
H A Dhtc_pipe.c130 __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()
271 ep->cred_dist.credits += packet->info.tx.cred_used; in htc_issue_packets()
549 int status, credits, credit_per_maxmsg, i; in htc_setup_target_buffer_assignments() local
559 credits = target->tgt_creds; in htc_setup_target_buffer_assignments()
568 __func__, credits); in htc_setup_target_buffer_assignments()
573 entry->credit_alloc = (credits - 6); in htc_setup_target_buffer_assignments()
577 credits -= (int) entry->credit_alloc; in htc_setup_target_buffer_assignments()
[all …]
H A Dhtc_mbox.c42 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 …]
/linux/net/sunrpc/xprtrdma/
H A Dsvc_rdma_backchannel.c29 u32 credits; in svc_rdma_handle_bc_reply() local
44 credits = be32_to_cpup(rdma_resp + 2); in svc_rdma_handle_bc_reply()
45 if (credits == 0) in svc_rdma_handle_bc_reply()
46 credits = 1; /* don't deadlock */ in svc_rdma_handle_bc_reply()
47 else if (credits > r_xprt->rx_buf.rb_bc_max_requests) in svc_rdma_handle_bc_reply()
48 credits = r_xprt->rx_buf.rb_bc_max_requests; in svc_rdma_handle_bc_reply()
50 xprt->cwnd = credits << RPC_CWNDSHIFT; in svc_rdma_handle_bc_reply()
H A Drpc_rdma.c1458 u32 credits; in rpcrdma_reply_handler()
1475 credits = be32_to_cpu(*p++);
1481 if (credits == 0)
1482 credits = 1; /* don't deadlock */
1483 else if (credits > r_xprt->rx_ep->re_max_requests)
1484 credits = r_xprt->rx_ep->re_max_requests;
1502 if (buf->rb_credits != credits)
1503 rpcrdma_update_cwnd(r_xprt, credits);
1511 trace_xprtrdma_reply(rqst->rq_task, rep, credits);
1523 credits
1385 u32 credits; rpcrdma_reply_handler() local
[all...]
/linux/drivers/scsi/fnic/
H A Dvnic_intr.h67 unsigned int credits, int unmask, int reset_timer) in vnic_intr_return_credits() argument
72 u32 int_credit_return = (credits & 0xffff) | in vnic_intr_return_credits()
86 unsigned int credits = vnic_intr_credits(intr); in vnic_intr_return_all_credits() local
90 vnic_intr_return_credits(intr, credits, unmask, reset_timer); in vnic_intr_return_all_credits()
/linux/fs/smb/smbdirect/
H A Drw.c11 int credits) in smbdirect_connection_wait_for_rw_credits() argument
16 &sc->rw_io.credits.wait_queue, in smbdirect_connection_wait_for_rw_credits()
17 &sc->rw_io.credits.count, in smbdirect_connection_wait_for_rw_credits()
18 credits); in smbdirect_connection_wait_for_rw_credits()
26 sc->rw_io.credits.num_pages); in smbdirect_connection_calc_rw_credits()
245 atomic_add(credits_needed, &sc->rw_io.credits.count); in smbdirect_connection_rdma_xmit()
246 wake_up(&sc->rw_io.credits.wait_queue); in smbdirect_connection_rdma_xmit()
H A Ddebug.c67 atomic_read(&sc->send_io.credits.count)); in smbdirect_connection_legacy_debug_proc_show()
69 atomic_read(&sc->recv_io.credits.count), in smbdirect_connection_legacy_debug_proc_show()
70 sc->recv_io.credits.target); in smbdirect_connection_legacy_debug_proc_show()
/linux/drivers/scsi/csiostor/
H A Dcsio_wr.c123 int n = flq->credits; in csio_wr_fill_fl()
156 if (unlikely(flq->pidx >= flq->credits)) in csio_wr_update_fl()
157 flq->pidx -= (uint16_t)flq->credits; in csio_wr_update_fl()
261 q->credits = (qsz - q->wr_sz) / q->wr_sz; in csio_wr_alloc_q()
282 flq->credits); in csio_wr_alloc_q()
303 flq->pidx = flq->inc_idx = flq->credits - 8; in csio_wr_alloc_q()
314 q->credits = (qsz - csio_wr_qstat_pgsz(hw)) / CSIO_QCREDIT_SZ; in csio_wr_alloc_q()
319 q->credits = (qsz - csio_wr_qstat_pgsz(hw)) / sizeof(__be64); in csio_wr_alloc_q()
772 for (i = 0; i < q->credits; i++) { in csio_wr_cleanup_iq_ftr()
874 int credits; in csio_wr_get() local
[all …]
/linux/drivers/infiniband/hw/hfi1/
H A Dtrace_ctxts.h27 __field(u32, credits)
39 __entry->credits = uctxt->sc->credits;
52 __entry->credits,
/linux/drivers/net/ethernet/chelsio/cxgb/
H A Dsge.c186 unsigned int credits; /* # of available RX buffers */ member
200 unsigned int credits; /* credits to be returned to SGE */ member
426 unsigned int credits) in sched_skb() argument
443 if (credits < MAX_SKB_FRAGS + 1) in sched_skb()
503 while (q->credits--) { in free_freelQ_buffers()
595 sge->respQ.credits = 0; in alloc_rx_resources()
828 while (q->credits < q->size) { in refill_free_list()
858 q->credits++; in refill_free_list()
876 if (sge->freelQ[0].credits > (sge->freelQ[0].size >> 2) && in freelQs_empty()
877 sge->freelQ[1].credits > (sge->freelQ[1].size >> 2)) { in freelQs_empty()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb3/
H A Dsge.c189 const struct sge_rspq *q, unsigned int credits) in refill_rspq() argument
193 V_RSPQ(q->cntxt_id) | V_CREDITS(credits)); in refill_rspq()
380 while (q->credits--) { in free_rx_bufs()
483 if (q->pend_cred >= q->credits / 4) { in ring_fl_db()
552 q->credits += count; in refill_fl()
561 refill_fl(adap, fl, min(MAX_RX_REFILL, fl->size - fl->credits), in __refill_fl()
592 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 …]
H A Dcxgb3_ctl_defs.h151 unsigned int credits; member
161 unsigned int credits; member
/linux/fs/ocfs2/
H A Drefcounttree.h43 int *credits,
60 int credits; /* credits it need for journal. */ member
69 int *meta_add, int *credits);
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl_tcam.c712 int *credits);
719 int credits = MLXSW_SP_ACL_TCAM_VREGION_REHASH_CREDITS; in mlxsw_sp_acl_tcam_vregion_rehash_work() local
722 mlxsw_sp_acl_tcam_vregion_rehash(vregion->mlxsw_sp, vregion, &credits); in mlxsw_sp_acl_tcam_vregion_rehash_work()
724 if (credits < 0) in mlxsw_sp_acl_tcam_vregion_rehash_work()
1191 int *credits) in mlxsw_sp_acl_tcam_ventry_migrate() argument
1199 if (--(*credits) < 0) in mlxsw_sp_acl_tcam_ventry_migrate()
1246 int *credits) in mlxsw_sp_acl_tcam_vchunk_migrate_one() argument
1283 vchunk->chunk, credits); in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1305 } else if (*credits < 0) { in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1324 int *credits) in mlxsw_sp_acl_tcam_vchunk_migrate_all() argument
[all …]
/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
H A Dchcr_ktls.c846 int credits; in chcr_ktls_xmit_tcb_cpls() local
854 credits = chcr_txq_avail(&q->q) - ndesc; in chcr_ktls_xmit_tcb_cpls()
855 if (unlikely(credits < 0)) { in chcr_ktls_xmit_tcb_cpls()
860 if (unlikely(credits < ETHTXQ_STOP_THRES)) { in chcr_ktls_xmit_tcb_cpls()
1000 int credits; in chcr_ktls_write_tcp_options() local
1018 credits = chcr_txq_avail(&q->q) - ndesc; in chcr_ktls_write_tcp_options()
1019 if (unlikely(credits < 0)) { in chcr_ktls_write_tcp_options()
1024 if (unlikely(credits < ETHTXQ_STOP_THRES)) { in chcr_ktls_write_tcp_options()
1105 int credits, left, last_desc; in chcr_ktls_xmit_wr_complete() local
1120 credits = chcr_txq_avail(&q->q) - ndesc; in chcr_ktls_xmit_wr_complete()
[all …]
/linux/drivers/net/wireless/ath/ath9k/
H A Dhtc_hst.h68 __be16 credits; member
77 u8 credits; member
126 u16 credits; member
/linux/fs/ext4/
H A Dcrypto.c136 int res, res2, credits, retries = 0; in ext4_set_context() local
198 &credits); in ext4_set_context()
202 handle = ext4_journal_start(inode, EXT4_HT_MISC, credits); in ext4_set_context()
H A Dxattr.c954 int credits; in __ext4_xattr_set_credits() local
970 credits = 7; in __ext4_xattr_set_credits()
973 credits += EXT4_MAXQUOTAS_TRANS_BLOCKS(sb); in __ext4_xattr_set_credits()
980 credits += ext4_chunk_trans_extent(inode, 1) + 1; in __ext4_xattr_set_credits()
984 return credits; in __ext4_xattr_set_credits()
987 credits += 4; in __ext4_xattr_set_credits()
996 credits += blocks * 2; in __ext4_xattr_set_credits()
999 credits += blocks; in __ext4_xattr_set_credits()
1005 credits += 4; in __ext4_xattr_set_credits()
1016 credits += blocks * 2; in __ext4_xattr_set_credits()
[all …]
/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/
H A Dchcr_ipsec.c553 int credits, in ch_ipsec_crypto_wreq() argument
598 if (unlikely(credits < ETHTXQ_STOP_THRES)) { in ch_ipsec_crypto_wreq()
710 int qidx, left, credits; in ch_ipsec_xmit() local
737 credits = txq_avail(&q->q) - ndesc; in ch_ipsec_xmit()
739 if (unlikely(credits < 0)) { in ch_ipsec_xmit()
743 dev->name, qidx, credits, ndesc, txq_avail(&q->q), in ch_ipsec_xmit()
765 credits, sa_entry); in ch_ipsec_xmit()

1234