/linux/drivers/thunderbolt/ |
A D | tunnel.c | 111 credits -= usb3; in tb_available_credits() 116 return credits > 0 ? credits : 0; in tb_available_credits() 171 credits = max(TB_MIN_PCIE_CREDITS, credits); in tb_pci_init_credits() 176 credits = 7; in tb_pci_init_credits() 912 int credits; in tb_dma_available_credits() local 919 return credits > 0 ? credits : 0; in tb_dma_available_credits() 937 credits--; in tb_dma_reserve_credits() 940 credits); in tb_dma_reserve_credits() 947 credits = min(port->total_credits, credits); in tb_dma_reserve_credits() 1066 int credits; in tb_tunnel_alloc_dma() local [all …]
|
/linux/net/sched/ |
A D | sch_cbs.c | 75 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() 182 s64 credits; in cbs_dequeue_soft() local 190 if (q->credits < 0) { 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() 196 if (q->credits < 0) { in cbs_dequeue_soft() 216 credits = credits_from_len(len, q->sendslope, in cbs_dequeue_soft() 218 credits += q->credits; in cbs_dequeue_soft() [all …]
|
/linux/fs/cifs/ |
A D | transport.c | 516 int *credits; in wait_for_free_credits() local 541 *credits -= 1; in wait_for_free_credits() 543 scredits = *credits; in wait_for_free_credits() 557 scredits = *credits; in wait_for_free_credits() 644 scredits = *credits; in wait_for_free_credits() 671 int *credits; in wait_for_compound_request() local 677 scredits = *credits; in wait_for_compound_request() 680 if (*credits < num) { in wait_for_compound_request() 718 credits->value = 0; in cifs_wait_mtu_credits() 821 credits.value = 1; in cifs_call_async() [all …]
|
A D | cifsglob.h | 227 const struct cifs_credits *credits, 468 struct cifs_credits *credits, 601 unsigned int credits; /* send no more requests at once */ member 744 num = *credits; in has_credits() 753 server->ops->add_credits(server, credits, optype); in add_credits() 758 const struct cifs_credits *credits, const int optype) in add_credits_and_wake_if() argument 760 if (credits->value) { in add_credits_and_wake_if() 761 server->ops->add_credits(server, credits, optype); in add_credits_and_wake_if() 1352 struct cifs_credits credits; member 1377 struct cifs_credits credits; member [all …]
|
A D | file.c | 2436 &wsize, credits); in cifs_writepages() 2469 wdata->credits = credits_on_stack; in cifs_writepages() 2902 struct cifs_credits credits; in cifs_resend_wdata() local 2923 &wsize, &credits); in cifs_resend_wdata() 2932 wdata->credits = credits; in cifs_resend_wdata() 3007 &wsize, credits); in cifs_write_from_iter() 3634 struct cifs_credits credits; in cifs_resend_rdata() local 3657 &rsize, &credits); in cifs_resend_rdata() 3667 rdata->credits = credits; in cifs_resend_rdata() 3738 &rsize, credits); in cifs_send_async_read() [all …]
|
/linux/drivers/infiniband/sw/rdmavt/ |
A D | rc.c | 64 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/ |
A D | ionic_regs.h | 19 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/net/wireless/ath/ath6kl/ |
A D | htc_pipe.c | 147 if (ep->cred_dist.credits < in get_htc_packet_credit_based() 560 credits = target->tgt_creds; in htc_setup_target_buffer_assignments() 569 __func__, credits); in htc_setup_target_buffer_assignments() 579 if (credits <= 0) in htc_setup_target_buffer_assignments() 586 if (credits <= 0) in htc_setup_target_buffer_assignments() 603 if (credits <= 0) in htc_setup_target_buffer_assignments() 613 if (credits <= 0) in htc_setup_target_buffer_assignments() 620 if (credits <= 0) in htc_setup_target_buffer_assignments() 627 if (credits <= 0) in htc_setup_target_buffer_assignments() 673 ep->cred_dist.credits += rpt->credits; in htc_process_credit_report() [all …]
|
A D | htc_mbox.c | 42 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() 138 cur_ep_dist->credits, in ath6kl_credit_init() 170 int credits; in ath6kl_credit_reduce() local 180 credits = ep_dist->credits - limit; in ath6kl_credit_reduce() 181 ep_dist->credits -= credits; in ath6kl_credit_reduce() 224 int credits = 0; in ath6kl_credit_seek() local 289 if (credits) in ath6kl_credit_seek() [all …]
|
/linux/drivers/net/wireless/ath/ath11k/ |
A D | htc.c | 82 int credits = 0; in ath11k_htc_send() local 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() 461 int i, credits; in ath11k_htc_setup_target_buffer_assignments() local 463 credits = htc->total_transmit_credits; in ath11k_htc_setup_target_buffer_assignments() [all …]
|
/linux/drivers/scsi/snic/ |
A D | vnic_intr.h | 67 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/fs/ocfs2/ |
A D | journal.h | 362 int credits = 0; in ocfs2_quota_trans_credits() local 365 credits += OCFS2_QWRITE_CREDITS; in ocfs2_quota_trans_credits() 367 credits += OCFS2_QWRITE_CREDITS; in ocfs2_quota_trans_credits() 368 return credits; in ocfs2_quota_trans_credits() 483 int credits = 1 + OCFS2_SUBALLOC_ALLOC; in ocfs2_calc_dxi_expand_credits() local 485 credits += ocfs2_clusters_to_blocks(sb, 1); in ocfs2_calc_dxi_expand_credits() 486 credits += ocfs2_quota_trans_credits(sb); in ocfs2_calc_dxi_expand_credits() 488 return credits; in ocfs2_calc_dxi_expand_credits()
|
A D | move_extents.c | 38 int credits; member 159 int *credits) in ocfs2_lock_meta_allocator_move_extents() argument 186 extra_blocks, clusters_to_move, *credits); in ocfs2_lock_meta_allocator_move_extents() 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() 617 extra_blocks, &credits); in ocfs2_move_extent() 627 credits += OCFS2_INODE_UPDATE_CREDITS + 1; in ocfs2_move_extent() [all …]
|
A D | xattr.c | 299 int *credits); 3336 &credits); in __ocfs2_xattr_set_handle() 3366 &credits); in __ocfs2_xattr_set_handle() 3401 &credits); in __ocfs2_xattr_set_handle() 5197 int ret, credits; in ocfs2_extend_xattr_bucket() local 5764 int *credits) in ocfs2_prepare_refcount_xattr() argument 6290 *credits = 0; in ocfs2_reflink_lock_xattr_allocators() 6315 *credits += 1; in ocfs2_reflink_lock_xattr_allocators() 6703 int credits; member 6766 *credits = metas.credits; in ocfs2_lock_reflink_xattr_rec_allocators() [all …]
|
A D | refcounttree.h | 43 int *credits, 60 int credits; /* credits it need for journal. */ member 69 int *meta_add, int *credits);
|
/linux/net/sunrpc/xprtrdma/ |
A D | svc_rdma_backchannel.c | 29 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/drivers/net/ethernet/cisco/enic/ |
A D | vnic_intr.h | 70 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/drivers/scsi/fnic/ |
A D | vnic_intr.h | 79 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/drivers/scsi/csiostor/ |
A D | csio_wr.c | 123 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() 773 for (i = 0; i < q->credits; i++) { in csio_wr_cleanup_iq_ftr() 875 int credits; in csio_wr_get() local 879 CSIO_DB_ASSERT(cidx <= q->credits); in csio_wr_get() 883 credits = q->credits - (pidx - cidx) - 1; in csio_wr_get() 885 credits = cidx - pidx - 1; in csio_wr_get() 888 credits = q->credits; in csio_wr_get() 896 if (!credits || (req_credits > credits)) { in csio_wr_get() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb/ |
A D | sge.c | 435 unsigned int credits) in sched_skb() argument 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() 1023 fl->credits++; in recycle_fl_buf() 1076 if (fl->credits < 2) { in get_packet() 1327 credits = q->size - q->in_use; in restart_sched() 1526 if (unlikely(--fl->credits < in process_responses() 1542 q->credits = 0; in process_responses() [all …]
|
/linux/drivers/infiniband/hw/hfi1/ |
A D | trace_ctxts.h | 27 __field(u32, credits) 39 __entry->credits = uctxt->sc->credits; 52 __entry->credits,
|
/linux/drivers/staging/greybus/ |
A D | uart.c | 65 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() 468 if (gb_tty->credits < GB_UART_FIRMWARE_CREDITS) in gb_tty_chars_in_buffer() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
A D | sge.c | 555 q->credits += count; in refill_fl() 595 q->credits++; in recycle_rx_buf() 789 fl->credits--; in get_packet() 864 fl->credits--; in get_packet_pg() 908 fl->credits--; in get_packet_pg() 2152 fl->credits--; in lro_add_page() 2229 if (credits) in handle_rsp_cntrl_info() 2233 if (credits) in handle_rsp_cntrl_info() 2241 if (credits) in handle_rsp_cntrl_info() 2424 q->credits = 0; in process_responses() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
A D | spectrum_acl_tcam.c | 768 int *credits); 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 1384 int *credits) in mlxsw_sp_acl_tcam_vchunk_migrate_all() argument 1412 int *credits) in mlxsw_sp_acl_tcam_vregion_migrate() argument 1419 ctx, credits); in mlxsw_sp_acl_tcam_vregion_migrate() 1516 int *credits) in mlxsw_sp_acl_tcam_vregion_rehash() argument 1536 ctx, credits); in mlxsw_sp_acl_tcam_vregion_rehash() [all …]
|
/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
A D | chcr_ktls.c | 850 int credits; in chcr_ktls_xmit_tcb_cpls() local 859 if (unlikely(credits < 0)) { in chcr_ktls_xmit_tcb_cpls() 1004 int credits; in chcr_ktls_write_tcp_options() local 1023 if (unlikely(credits < 0)) { in chcr_ktls_write_tcp_options() 1109 int credits, left, last_desc; in chcr_ktls_xmit_wr_complete() local 1125 if (unlikely(credits < 0)) { in chcr_ktls_xmit_wr_complete() 1285 int credits, left, last_desc; in chcr_ktls_xmit_wr_short() local 1313 if (unlikely(credits < 0)) { in chcr_ktls_xmit_wr_short() 1491 if (unlikely(credits < 0)) { in chcr_ktls_tx_plaintxt() 1578 int credits, last_desc; in chcr_ktls_tunnel_pkt() local [all …]
|