Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.10/net/sched/
Dsch_cbs.c74 s64 credits; /* in bytes */ member
119 if (sch->q.qlen == 0 && q->credits > 0) { in cbs_enqueue_soft()
123 q->credits = 0; in cbs_enqueue_soft()
144 static s64 delay_from_credits(s64 credits, s64 slope) in delay_from_credits() argument
149 return div64_s64(-credits * NSEC_PER_SEC, slope); in delay_from_credits()
181 s64 credits; in cbs_dequeue_soft() local
189 if (q->credits < 0) { in cbs_dequeue_soft()
190 credits = timediff_to_credits(now - q->last, q->idleslope); in cbs_dequeue_soft()
192 credits = q->credits + credits; in cbs_dequeue_soft()
193 q->credits = min_t(s64, credits, q->hicredit); in cbs_dequeue_soft()
[all …]
/kernel/linux/linux-5.10/fs/cifs/
Dtransport.c523 int *credits; in wait_for_free_credits() local
536 credits = server->ops->get_credits_field(server, optype); in wait_for_free_credits()
538 if (*credits <= 0 && optype == CIFS_ECHO_OP) in wait_for_free_credits()
547 *credits -= 1; in wait_for_free_credits()
554 if (*credits < num_credits) { in wait_for_free_credits()
558 has_credits(server, credits, num_credits), t); in wait_for_free_credits()
591 *credits <= MAX_COMPOUND) { in wait_for_free_credits()
596 has_credits(server, credits, in wait_for_free_credits()
622 *credits -= num_credits; in wait_for_free_credits()
647 int *credits; in wait_for_compound_request() local
[all …]
Dfile.c2306 rc = adjust_credits(wdata->server, &wdata->credits, wdata->bytes); in wdata_send_pages()
2358 struct cifs_credits *credits = &credits_on_stack; in cifs_writepages() local
2371 &wsize, credits); in cifs_writepages()
2384 add_credits_and_wake_if(server, credits, 0); in cifs_writepages()
2390 add_credits_and_wake_if(server, credits, 0); in cifs_writepages()
2400 add_credits_and_wake_if(server, credits, 0); in cifs_writepages()
2404 wdata->credits = credits_on_stack; in cifs_writepages()
2424 add_credits_and_wake_if(server, &wdata->credits, 0); in cifs_writepages()
2831 struct cifs_credits credits; in cifs_resend_wdata() local
2852 &wsize, &credits); in cifs_resend_wdata()
[all …]
Dcifsglob.h233 const struct cifs_credits *credits,
474 struct cifs_credits *credits,
693 unsigned int credits; /* send no more requests at once */ member
802 has_credits(struct TCP_Server_Info *server, int *credits, int num_credits) in has_credits() argument
806 num = *credits; in has_credits()
812 add_credits(struct TCP_Server_Info *server, const struct cifs_credits *credits, in add_credits() argument
815 server->ops->add_credits(server, credits, optype); in add_credits()
820 const struct cifs_credits *credits, const int optype) in add_credits_and_wake_if() argument
822 if (credits->value) { in add_credits_and_wake_if()
823 server->ops->add_credits(server, credits, optype); in add_credits_and_wake_if()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/sw/rdmavt/
Drc.c106 u32 credits; in rvt_compute_aeth() local
110 credits = READ_ONCE(qp->r_rq.kwq->count); in rvt_compute_aeth()
111 if (credits == 0) { in rvt_compute_aeth()
130 credits = rvt_get_rq_count(&qp->r_rq, head, tail); in rvt_compute_aeth()
140 if (credit_table[x] == credits) in rvt_compute_aeth()
142 if (credit_table[x] > credits) { in rvt_compute_aeth()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Dhtc.c80 int credits = 0; in ath11k_htc_send() local
91 credits = DIV_ROUND_UP(skb->len, htc->target_credit_size); in ath11k_htc_send()
93 if (ep->tx_credits < credits) { in ath11k_htc_send()
96 eid, credits, ep->tx_credits); in ath11k_htc_send()
101 ep->tx_credits -= credits; in ath11k_htc_send()
104 eid, credits, ep->tx_credits); in ath11k_htc_send()
129 ep->tx_credits += credits; in ath11k_htc_send()
132 eid, credits, ep->tx_credits); in ath11k_htc_send()
164 ep->tx_credits += report->credits; in ath11k_htc_process_credit_report()
167 report->eid, report->credits, ep->tx_credits); in ath11k_htc_process_credit_report()
[all …]
/kernel/linux/linux-5.10/fs/ocfs2/
Djournal.h366 int credits = 0; in ocfs2_quota_trans_credits() local
369 credits += OCFS2_QWRITE_CREDITS; in ocfs2_quota_trans_credits()
371 credits += OCFS2_QWRITE_CREDITS; in ocfs2_quota_trans_credits()
372 return credits; in ocfs2_quota_trans_credits()
487 int credits = 1 + OCFS2_SUBALLOC_ALLOC; in ocfs2_calc_dxi_expand_credits() local
489 credits += ocfs2_clusters_to_blocks(sb, 1); in ocfs2_calc_dxi_expand_credits()
490 credits += ocfs2_quota_trans_credits(sb); in ocfs2_calc_dxi_expand_credits()
492 return credits; in ocfs2_calc_dxi_expand_credits()
Dmove_extents.c40 int credits; member
161 int *credits) in ocfs2_lock_meta_allocator_move_extents() argument
185 *credits += ocfs2_calc_extend_credits(osb->sb, et->et_root_el); in ocfs2_lock_meta_allocator_move_extents()
188 extra_blocks, clusters_to_move, *credits); in ocfs2_lock_meta_allocator_move_extents()
210 int ret, credits = 0, extra_blocks = 0, partial = context->partial; in ocfs2_defrag_extent() local
235 &credits, in ocfs2_defrag_extent()
246 extra_blocks, &credits); in ocfs2_defrag_extent()
284 handle = ocfs2_start_trans(osb, credits); in ocfs2_defrag_extent()
577 int ret, credits = 0, extra_blocks = 0, goal_bit = 0; in ocfs2_move_extent() local
608 &credits, in ocfs2_move_extent()
[all …]
Dxattr.c301 int *credits);
706 int status = 0, credits; in ocfs2_xattr_extend_allocation() local
751 credits = ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_xattr_extend_allocation()
753 status = ocfs2_extend_trans(handle, credits); in ocfs2_xattr_extend_allocation()
3045 int clusters_add = 0, meta_add = 0, credits = 0; in ocfs2_calc_xattr_set_need() local
3062 credits += new_clusters * in ocfs2_calc_xattr_set_need()
3066 credits += ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_calc_xattr_set_need()
3070 credits += ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_calc_xattr_set_need()
3082 credits += OCFS2_INODE_UPDATE_CREDITS; in ocfs2_calc_xattr_set_need()
3098 credits += ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_calc_xattr_set_need()
[all …]
Drefcounttree.h45 int *credits,
62 int credits; /* credits it need for journal. */ member
71 int *meta_add, int *credits);
/kernel/linux/linux-5.10/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()
874 int credits; in csio_wr_get() local
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dtrace_ctxts.h68 __field(u32, credits)
80 __entry->credits = uctxt->sc->credits;
93 __entry->credits,
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
384 while (q->credits--) { in free_rx_bufs()
487 if (q->pend_cred >= q->credits / 4) { in ring_fl_db()
556 q->credits += count; in refill_fl()
565 refill_fl(adap, fl, min(MAX_RX_REFILL, fl->size - fl->credits), in __refill_fl()
596 q->credits++; in recycle_rx_buf()
790 fl->credits--; in get_packet()
810 if (unlikely(fl->credits < drop_thres) && in get_packet()
811 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
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
Dchcr_ktls.c856 int credits; in chcr_ktls_xmit_tcb_cpls() local
864 credits = chcr_txq_avail(&q->q) - ndesc; in chcr_ktls_xmit_tcb_cpls()
865 if (unlikely(credits < 0)) { in chcr_ktls_xmit_tcb_cpls()
870 if (unlikely(credits < ETHTXQ_STOP_THRES)) { in chcr_ktls_xmit_tcb_cpls()
1010 int credits; in chcr_ktls_write_tcp_options() local
1028 credits = chcr_txq_avail(&q->q) - ndesc; in chcr_ktls_write_tcp_options()
1029 if (unlikely(credits < 0)) { in chcr_ktls_write_tcp_options()
1034 if (unlikely(credits < ETHTXQ_STOP_THRES)) { in chcr_ktls_write_tcp_options()
1115 int credits, left, last_desc; in chcr_ktls_xmit_wr_complete() local
1130 credits = chcr_txq_avail(&q->q) - ndesc; in chcr_ktls_xmit_wr_complete()
[all …]

12345