Home
last modified time | relevance | path

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

12345

/Linux-v5.15/drivers/thunderbolt/
Dtunnel.c85 int credits, usb3, pcie, spare; in tb_available_credits() local
99 credits = tb_usable_credits(port); in tb_available_credits()
105 ndp = (credits - (usb3 + pcie + spare)) / in tb_available_credits()
110 credits -= ndp * (sw->min_dp_aux_credits + sw->min_dp_main_credits); in tb_available_credits()
111 credits -= usb3; in tb_available_credits()
116 return credits > 0 ? credits : 0; in tb_available_credits()
160 unsigned int credits; in tb_pci_init_credits() local
166 credits = min(sw->max_pcie_credits, available); in tb_pci_init_credits()
168 if (credits < TB_MIN_PCIE_CREDITS) in tb_pci_init_credits()
171 credits = max(TB_MIN_PCIE_CREDITS, credits); in tb_pci_init_credits()
[all …]
/Linux-v5.15/net/sched/
Dsch_cbs.c75 s64 credits; /* in bytes */ member
120 if (sch->q.qlen == 0 && q->credits > 0) { in cbs_enqueue_soft()
124 q->credits = 0; in cbs_enqueue_soft()
145 static s64 delay_from_credits(s64 credits, s64 slope) in delay_from_credits() argument
150 return div64_s64(-credits * NSEC_PER_SEC, slope); in delay_from_credits()
182 s64 credits; in cbs_dequeue_soft() local
190 if (q->credits < 0) { in cbs_dequeue_soft()
191 credits = timediff_to_credits(now - q->last, q->idleslope); in cbs_dequeue_soft()
193 credits = q->credits + credits; in cbs_dequeue_soft()
194 q->credits = min_t(s64, credits, q->hicredit); in cbs_dequeue_soft()
[all …]
/Linux-v5.15/fs/cifs/
Dtransport.c516 int *credits; in wait_for_free_credits() local
530 credits = server->ops->get_credits_field(server, optype); in wait_for_free_credits()
532 if (*credits <= 0 && optype == CIFS_ECHO_OP) in wait_for_free_credits()
541 *credits -= 1; in wait_for_free_credits()
543 scredits = *credits; in wait_for_free_credits()
556 if (*credits < num_credits) { in wait_for_free_credits()
557 scredits = *credits; in wait_for_free_credits()
562 has_credits(server, credits, num_credits), t); in wait_for_free_credits()
566 scredits = *credits; in wait_for_free_credits()
601 *credits <= MAX_COMPOUND) { in wait_for_free_credits()
[all …]
Dcifsglob.h222 const struct cifs_credits *credits,
463 struct cifs_credits *credits,
595 unsigned int credits; /* send no more requests at once */ member
713 has_credits(struct TCP_Server_Info *server, int *credits, int num_credits) in has_credits() argument
717 num = *credits; in has_credits()
723 add_credits(struct TCP_Server_Info *server, const struct cifs_credits *credits, in add_credits() argument
726 server->ops->add_credits(server, credits, optype); in add_credits()
731 const struct cifs_credits *credits, const int optype) in add_credits_and_wake_if() argument
733 if (credits->value) { in add_credits_and_wake_if()
734 server->ops->add_credits(server, credits, optype); in add_credits_and_wake_if()
[all …]
/Linux-v5.15/drivers/infiniband/sw/rdmavt/
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-v5.15/drivers/net/ethernet/pensando/ionic/
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-v5.15/drivers/scsi/snic/
Dvnic_intr.h67 unsigned int credits, in svnic_intr_return_credits() argument
74 u32 int_credit_return = (credits & 0xffff) | in svnic_intr_return_credits()
90 unsigned int credits = svnic_intr_credits(intr); in svnic_intr_return_all_credits() local
94 svnic_intr_return_credits(intr, credits, unmask, reset_timer); in svnic_intr_return_all_credits()
/Linux-v5.15/drivers/net/wireless/ath/ath6kl/
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()
272 ep->cred_dist.credits += packet->info.tx.cred_used; in htc_issue_packets()
550 int status, credits, credit_per_maxmsg, i; in htc_setup_target_buffer_assignments() local
560 credits = target->tgt_creds; in htc_setup_target_buffer_assignments()
569 __func__, credits); in htc_setup_target_buffer_assignments()
574 entry->credit_alloc = (credits - 6); in htc_setup_target_buffer_assignments()
578 credits -= (int) entry->credit_alloc; in htc_setup_target_buffer_assignments()
[all …]
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-v5.15/drivers/net/ethernet/cisco/enic/
Dvnic_intr.h70 unsigned int credits, int unmask, int reset_timer) in vnic_intr_return_credits() argument
75 u32 int_credit_return = (credits & 0xffff) | in vnic_intr_return_credits()
89 unsigned int credits = vnic_intr_credits(intr); in vnic_intr_return_all_credits() local
93 vnic_intr_return_credits(intr, credits, unmask, reset_timer); in vnic_intr_return_all_credits()
/Linux-v5.15/drivers/scsi/fnic/
Dvnic_intr.h79 unsigned int credits, int unmask, int reset_timer) in vnic_intr_return_credits() argument
84 u32 int_credit_return = (credits & 0xffff) | in vnic_intr_return_credits()
98 unsigned int credits = vnic_intr_credits(intr); in vnic_intr_return_all_credits() local
102 vnic_intr_return_credits(intr, credits, unmask, reset_timer); in vnic_intr_return_all_credits()
/Linux-v5.15/drivers/net/wireless/ath/ath11k/
Dhtc.c82 int credits = 0; in ath11k_htc_send() local
93 credits = DIV_ROUND_UP(skb->len, htc->target_credit_size); in ath11k_htc_send()
95 if (ep->tx_credits < credits) { in ath11k_htc_send()
98 eid, credits, ep->tx_credits); in ath11k_htc_send()
103 ep->tx_credits -= credits; in ath11k_htc_send()
106 eid, credits, ep->tx_credits); in ath11k_htc_send()
131 ep->tx_credits += credits; in ath11k_htc_send()
134 eid, credits, ep->tx_credits); in ath11k_htc_send()
166 ep->tx_credits += report->credits; in ath11k_htc_process_credit_report()
169 report->eid, report->credits, ep->tx_credits); in ath11k_htc_process_credit_report()
[all …]
/Linux-v5.15/net/sunrpc/xprtrdma/
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()
/Linux-v5.15/fs/ocfs2/
Djournal.h363 int credits = 0; in ocfs2_quota_trans_credits() local
366 credits += OCFS2_QWRITE_CREDITS; in ocfs2_quota_trans_credits()
368 credits += OCFS2_QWRITE_CREDITS; in ocfs2_quota_trans_credits()
369 return credits; in ocfs2_quota_trans_credits()
484 int credits = 1 + OCFS2_SUBALLOC_ALLOC; in ocfs2_calc_dxi_expand_credits() local
486 credits += ocfs2_clusters_to_blocks(sb, 1); in ocfs2_calc_dxi_expand_credits()
487 credits += ocfs2_quota_trans_credits(sb); in ocfs2_calc_dxi_expand_credits()
489 return credits; in ocfs2_calc_dxi_expand_credits()
Dmove_extents.c38 int credits; member
159 int *credits) in ocfs2_lock_meta_allocator_move_extents() argument
183 *credits += ocfs2_calc_extend_credits(osb->sb, et->et_root_el); in ocfs2_lock_meta_allocator_move_extents()
186 extra_blocks, clusters_to_move, *credits); in ocfs2_lock_meta_allocator_move_extents()
208 int ret, credits = 0, extra_blocks = 0, partial = context->partial; in ocfs2_defrag_extent() local
233 &credits, in ocfs2_defrag_extent()
244 extra_blocks, &credits); in ocfs2_defrag_extent()
282 handle = ocfs2_start_trans(osb, credits); in ocfs2_defrag_extent()
575 int ret, credits = 0, extra_blocks = 0, goal_bit = 0; in ocfs2_move_extent() local
606 &credits, in ocfs2_move_extent()
[all …]
Dxattr.c299 int *credits);
704 int status = 0, credits; in ocfs2_xattr_extend_allocation() local
749 credits = ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_xattr_extend_allocation()
751 status = ocfs2_extend_trans(handle, credits); in ocfs2_xattr_extend_allocation()
3043 int clusters_add = 0, meta_add = 0, credits = 0; in ocfs2_calc_xattr_set_need() local
3060 credits += new_clusters * in ocfs2_calc_xattr_set_need()
3064 credits += ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_calc_xattr_set_need()
3068 credits += ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_calc_xattr_set_need()
3080 credits += OCFS2_INODE_UPDATE_CREDITS; in ocfs2_calc_xattr_set_need()
3096 credits += ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_calc_xattr_set_need()
[all …]
Drefcounttree.h43 int *credits,
60 int credits; /* credits it need for journal. */ member
69 int *meta_add, int *credits);
/Linux-v5.15/drivers/scsi/csiostor/
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()
281 flq->un.fl.bufs = kcalloc(flq->credits, in csio_wr_alloc_q()
304 flq->pidx = flq->inc_idx = flq->credits - 8; in csio_wr_alloc_q()
315 q->credits = (qsz - csio_wr_qstat_pgsz(hw)) / CSIO_QCREDIT_SZ; in csio_wr_alloc_q()
320 q->credits = (qsz - csio_wr_qstat_pgsz(hw)) / sizeof(__be64); in csio_wr_alloc_q()
773 for (i = 0; i < q->credits; i++) { in csio_wr_cleanup_iq_ftr()
875 int credits; in csio_wr_get() local
[all …]
/Linux-v5.15/drivers/infiniband/hw/hfi1/
Dtrace_ctxts.h27 __field(u32, credits)
39 __entry->credits = uctxt->sc->credits;
52 __entry->credits,
/Linux-v5.15/drivers/staging/greybus/
Duart.c65 unsigned int credits; member
171 gb_tty->credits += incoming_credits; in gb_uart_receive_credits_handler()
172 if (gb_tty->credits > GB_UART_FIRMWARE_CREDITS) { in gb_uart_receive_credits_handler()
173 gb_tty->credits -= incoming_credits; in gb_uart_receive_credits_handler()
193 if (gb_tty->credits == GB_UART_FIRMWARE_CREDITS) in gb_uart_receive_credits_handler()
242 if (send_size > gb_tty->credits) in gb_uart_tx_write_work()
243 send_size = gb_tty->credits; in gb_uart_tx_write_work()
253 gb_tty->credits -= send_size; in gb_uart_tx_write_work()
265 gb_tty->credits += send_size; in gb_uart_tx_write_work()
317 if (gb_tty->credits == GB_UART_FIRMWARE_CREDITS) in gb_uart_wait_for_all_credits()
[all …]
/Linux-v5.15/drivers/net/ethernet/chelsio/cxgb/
Dsge.c195 unsigned int credits; /* # of available RX buffers */ member
209 unsigned int credits; /* credits to be returned to SGE */ member
435 unsigned int credits) in sched_skb() argument
452 if (credits < MAX_SKB_FRAGS + 1) in sched_skb()
512 while (q->credits--) { in free_freelQ_buffers()
604 sge->respQ.credits = 0; in alloc_rx_resources()
837 while (q->credits < q->size) { in refill_free_list()
867 q->credits++; in refill_free_list()
885 if (sge->freelQ[0].credits > (sge->freelQ[0].size >> 2) && in freelQs_empty()
886 sge->freelQ[1].credits > (sge->freelQ[1].size >> 2)) { in freelQs_empty()
[all …]
/Linux-v5.15/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c192 const struct sge_rspq *q, unsigned int credits) in refill_rspq() argument
196 V_RSPQ(q->cntxt_id) | V_CREDITS(credits)); in refill_rspq()
383 while (q->credits--) { in free_rx_bufs()
486 if (q->pend_cred >= q->credits / 4) { in ring_fl_db()
555 q->credits += count; in refill_fl()
564 refill_fl(adap, fl, min(MAX_RX_REFILL, fl->size - fl->credits), in __refill_fl()
595 q->credits++; in recycle_rx_buf()
789 fl->credits--; in get_packet()
809 if (unlikely(fl->credits < drop_thres) && in get_packet()
810 refill_fl(adap, fl, min(MAX_RX_REFILL, fl->size - fl->credits - 1), in get_packet()
[all …]
Dcxgb3_ctl_defs.h151 unsigned int credits; member
161 unsigned int credits; member
/Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_tcam.c771 int *credits);
778 int credits = MLXSW_SP_ACL_TCAM_VREGION_REHASH_CREDITS; in mlxsw_sp_acl_tcam_vregion_rehash_work() local
780 mlxsw_sp_acl_tcam_vregion_rehash(vregion->mlxsw_sp, vregion, &credits); in mlxsw_sp_acl_tcam_vregion_rehash_work()
781 if (credits < 0) in mlxsw_sp_acl_tcam_vregion_rehash_work()
1262 int *credits) in mlxsw_sp_acl_tcam_ventry_migrate() argument
1270 if (--(*credits) < 0) in mlxsw_sp_acl_tcam_ventry_migrate()
1315 int *credits) in mlxsw_sp_acl_tcam_vchunk_migrate_one() argument
1347 vchunk->chunk, credits); in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1369 } else if (*credits < 0) { in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1387 int *credits) in mlxsw_sp_acl_tcam_vchunk_migrate_all() argument
[all …]
/Linux-v5.15/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
Dchcr_ktls.c850 int credits; in chcr_ktls_xmit_tcb_cpls() local
858 credits = chcr_txq_avail(&q->q) - ndesc; in chcr_ktls_xmit_tcb_cpls()
859 if (unlikely(credits < 0)) { in chcr_ktls_xmit_tcb_cpls()
864 if (unlikely(credits < ETHTXQ_STOP_THRES)) { in chcr_ktls_xmit_tcb_cpls()
1004 int credits; in chcr_ktls_write_tcp_options() local
1022 credits = chcr_txq_avail(&q->q) - ndesc; in chcr_ktls_write_tcp_options()
1023 if (unlikely(credits < 0)) { in chcr_ktls_write_tcp_options()
1028 if (unlikely(credits < ETHTXQ_STOP_THRES)) { in chcr_ktls_write_tcp_options()
1109 int credits, left, last_desc; in chcr_ktls_xmit_wr_complete() local
1124 credits = chcr_txq_avail(&q->q) - ndesc; in chcr_ktls_xmit_wr_complete()
[all …]

12345