Home
last modified time | relevance | path

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

123456

/linux-6.1.9/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-6.1.9/drivers/thunderbolt/
Dtunnel.c85 int credits, usb3, pcie, spare; in tb_available_credits() local
99 credits = tb_usable_credits(port); in tb_available_credits()
106 ndp = (credits - (usb3 + pcie + spare)) / in tb_available_credits()
113 credits -= ndp * (sw->min_dp_aux_credits + sw->min_dp_main_credits); in tb_available_credits()
114 credits -= usb3; in tb_available_credits()
119 return credits > 0 ? credits : 0; in tb_available_credits()
163 unsigned int credits; in tb_pci_init_credits() local
169 credits = min(sw->max_pcie_credits, available); in tb_pci_init_credits()
171 if (credits < TB_MIN_PCIE_CREDITS) in tb_pci_init_credits()
174 credits = max(TB_MIN_PCIE_CREDITS, credits); in tb_pci_init_credits()
[all …]
/linux-6.1.9/fs/cifs/
Dtransport.c507 int *credits; in wait_for_free_credits() local
521 credits = server->ops->get_credits_field(server, optype); in wait_for_free_credits()
523 if (*credits <= 0 && optype == CIFS_ECHO_OP) in wait_for_free_credits()
532 *credits -= 1; in wait_for_free_credits()
534 scredits = *credits; in wait_for_free_credits()
547 if (*credits < num_credits) { in wait_for_free_credits()
548 scredits = *credits; in wait_for_free_credits()
553 has_credits(server, credits, num_credits), t); in wait_for_free_credits()
557 scredits = *credits; in wait_for_free_credits()
597 *credits <= MAX_COMPOUND) { in wait_for_free_credits()
[all …]
Dcifsglob.h257 const struct cifs_credits *credits,
502 struct cifs_credits *credits,
639 unsigned int credits; /* send no more requests at once */ member
797 has_credits(struct TCP_Server_Info *server, int *credits, int num_credits) in has_credits() argument
801 num = *credits; in has_credits()
807 add_credits(struct TCP_Server_Info *server, const struct cifs_credits *credits, in add_credits() argument
810 server->ops->add_credits(server, credits, optype); in add_credits()
815 const struct cifs_credits *credits, const int optype) in add_credits_and_wake_if() argument
817 if (credits->value) { in add_credits_and_wake_if()
818 server->ops->add_credits(server, credits, optype); in add_credits_and_wake_if()
[all …]
/linux-6.1.9/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-6.1.9/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-6.1.9/drivers/scsi/snic/
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-6.1.9/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-6.1.9/drivers/net/ethernet/cisco/enic/
Dvnic_intr.h57 unsigned int credits, int unmask, int reset_timer) in vnic_intr_return_credits() argument
62 u32 int_credit_return = (credits & 0xffff) | in vnic_intr_return_credits()
76 unsigned int credits = vnic_intr_credits(intr); in vnic_intr_return_all_credits() local
80 vnic_intr_return_credits(intr, credits, unmask, reset_timer); in vnic_intr_return_all_credits()
/linux-6.1.9/drivers/scsi/fnic/
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-6.1.9/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-6.1.9/fs/ocfs2/
Djournal.h365 int credits = 0; in ocfs2_quota_trans_credits() local
368 credits += OCFS2_QWRITE_CREDITS; in ocfs2_quota_trans_credits()
370 credits += OCFS2_QWRITE_CREDITS; in ocfs2_quota_trans_credits()
371 return credits; in ocfs2_quota_trans_credits()
486 int credits = 1 + OCFS2_SUBALLOC_ALLOC; in ocfs2_calc_dxi_expand_credits() local
488 credits += ocfs2_clusters_to_blocks(sb, 1); in ocfs2_calc_dxi_expand_credits()
489 credits += ocfs2_quota_trans_credits(sb); in ocfs2_calc_dxi_expand_credits()
491 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-6.1.9/drivers/net/wireless/ath/ath11k/
Dhtc.c82 int credits = 0; in ath11k_htc_send() local
95 credits = DIV_ROUND_UP(skb->len, htc->target_credit_size); in ath11k_htc_send()
97 if (ep->tx_credits < credits) { in ath11k_htc_send()
100 eid, credits, ep->tx_credits); in ath11k_htc_send()
105 ep->tx_credits -= credits; in ath11k_htc_send()
108 eid, credits, ep->tx_credits); in ath11k_htc_send()
133 ep->tx_credits += credits; in ath11k_htc_send()
136 eid, credits, ep->tx_credits); in ath11k_htc_send()
168 ep->tx_credits += report->credits; in ath11k_htc_process_credit_report()
171 report->eid, report->credits, ep->tx_credits); in ath11k_htc_process_credit_report()
[all …]
/linux-6.1.9/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-6.1.9/drivers/infiniband/hw/hfi1/
Dtrace_ctxts.h27 __field(u32, credits)
39 __entry->credits = uctxt->sc->credits;
52 __entry->credits,
/linux-6.1.9/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-6.1.9/drivers/net/ethernet/chelsio/cxgb/
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-6.1.9/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c194 const struct sge_rspq *q, unsigned int credits) in refill_rspq() argument
198 V_RSPQ(q->cntxt_id) | V_CREDITS(credits)); in refill_rspq()
385 while (q->credits--) { in free_rx_bufs()
488 if (q->pend_cred >= q->credits / 4) { in ring_fl_db()
557 q->credits += count; in refill_fl()
566 refill_fl(adap, fl, min(MAX_RX_REFILL, fl->size - fl->credits), in __refill_fl()
597 q->credits++; in recycle_rx_buf()
791 fl->credits--; in get_packet()
811 if (unlikely(fl->credits < drop_thres) && in get_packet()
812 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-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_tcam.c768 int *credits);
775 int credits = MLXSW_SP_ACL_TCAM_VREGION_REHASH_CREDITS; in mlxsw_sp_acl_tcam_vregion_rehash_work() local
777 mlxsw_sp_acl_tcam_vregion_rehash(vregion->mlxsw_sp, vregion, &credits); in mlxsw_sp_acl_tcam_vregion_rehash_work()
778 if (credits < 0) in mlxsw_sp_acl_tcam_vregion_rehash_work()
1259 int *credits) in mlxsw_sp_acl_tcam_ventry_migrate() argument
1267 if (--(*credits) < 0) in mlxsw_sp_acl_tcam_ventry_migrate()
1312 int *credits) in mlxsw_sp_acl_tcam_vchunk_migrate_one() argument
1344 vchunk->chunk, credits); in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1366 } else if (*credits < 0) { in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1384 int *credits) in mlxsw_sp_acl_tcam_vchunk_migrate_all() argument
[all …]
/linux-6.1.9/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 …]

123456