Home
last modified time | relevance | path

Searched refs:total_credits (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/fs/smb/server/
H A Dsmb2misc.c350 if (credit_charge > conn->total_credits) { in smb2_validate_credit_charge()
352 credit_charge, conn->total_credits); in smb2_validate_credit_charge()
356 if ((u64)conn->outstanding_credits + credit_charge > conn->total_credits) { in smb2_validate_credit_charge()
H A Dconnection.h61 unsigned int total_credits; member
H A Dconnection.c74 conn->total_credits = 1; in ksmbd_conn_alloc()
H A Dtransport_rdma.c970 wait_queue_head_t *waitq, atomic_t *total_credits, in wait_for_credits() argument
976 if (atomic_sub_return(needed, total_credits) >= 0) in wait_for_credits()
979 atomic_add(needed, total_credits); in wait_for_credits()
981 atomic_read(total_credits) >= needed || in wait_for_credits()
H A Dsmb2pdu.c324 if (conn->total_credits > conn->vals->max_credits) { in smb2_set_rsp_credits()
326 pr_err("Total credits overflow: %d\n", conn->total_credits); in smb2_set_rsp_credits()
332 if (credit_charge > conn->total_credits) { in smb2_set_rsp_credits()
334 credit_charge, conn->total_credits); in smb2_set_rsp_credits()
338 conn->total_credits -= credit_charge; in smb2_set_rsp_credits()
352 aux_max = conn->vals->max_credits - conn->total_credits; in smb2_set_rsp_credits()
355 conn->total_credits += credits_granted; in smb2_set_rsp_credits()
365 conn->total_credits); in smb2_set_rsp_credits()
/openbmc/linux/drivers/thunderbolt/
H A Dtest.c90 sw->ports[1].total_credits = 60; in alloc_host()
97 sw->ports[2].total_credits = 60; in alloc_host()
105 sw->ports[3].total_credits = 60; in alloc_host()
112 sw->ports[4].total_credits = 60; in alloc_host()
211 sw->ports[1].total_credits = 60; in alloc_dev_default()
218 sw->ports[2].total_credits = 60; in alloc_dev_default()
226 sw->ports[3].total_credits = 60; in alloc_dev_default()
233 sw->ports[4].total_credits = 60; in alloc_dev_default()
241 sw->ports[5].total_credits = 60; in alloc_dev_default()
248 sw->ports[6].total_credits = 60; in alloc_dev_default()
[all …]
H A Dtunnel.c87 return port->total_credits - port->ctl_credits; in tb_usable_credits()
1254 hop->nfc_credits = min(port->total_credits - 2, 12U); in tb_dp_init_video_credits()
1526 credits = min(port->total_credits, credits); in tb_dma_reserve_credits()
H A Dswitch.c456 tb_dbg(tb, " Credits (total/control): %u/%u\n", port->total_credits, in tb_dump_port()
748 port->total_credits = in tb_init_port()
1250 port->total_credits, total); in tb_port_do_update_credits()
1253 port->total_credits = total; in tb_port_do_update_credits()
H A Dtb.h284 unsigned int total_credits; member
/openbmc/linux/drivers/net/wireless/ath/ath6kl/
H A Dhtc_pipe.c659 int total_credits = 0, i; in htc_process_credit_report() local
681 total_credits += rpt->credits; in htc_process_credit_report()
685 total_credits); in htc_process_credit_report()