Home
last modified time | relevance | path

Searched refs:credits_needed (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_hw.c64 unsigned int credits_needed; in chtls_set_tcb_field() local
77 credits_needed = DIV_ROUND_UP(wrlen, 16); in chtls_set_tcb_field()
82 csk->wr_credits -= credits_needed; in chtls_set_tcb_field()
83 csk->wr_unacked += credits_needed; in chtls_set_tcb_field()
Dchtls_io.c619 unsigned int credits_needed; in chtls_push_frames() local
641 credits_needed = DIV_ROUND_UP(credit_len, 16); in chtls_push_frames()
653 if (csk->wr_credits < credits_needed) { in chtls_push_frames()
665 skb->csum = (__force __wsum)(credits_needed + csk->wr_nondata); in chtls_push_frames()
666 csk->wr_credits -= credits_needed; in chtls_push_frames()
667 csk->wr_unacked += credits_needed; in chtls_push_frames()
672 if ((comp && csk->wr_unacked == credits_needed) || in chtls_push_frames()
680 tls_len, credits_needed); in chtls_push_frames()
683 credits_needed, completion); in chtls_push_frames()
/linux-6.1.9/drivers/target/iscsi/cxgbit/
Dcxgbit_target.c208 u32 credits_needed; in cxgbit_push_tx_frames() local
217 credits_needed = DIV_ROUND_UP(dlen + iso_cpl_len, 16); in cxgbit_push_tx_frames()
219 credits_needed = DIV_ROUND_UP((8 * in cxgbit_push_tx_frames()
224 credits_needed += DIV_ROUND_UP( in cxgbit_push_tx_frames()
237 if (csk->wr_cred < credits_needed) { in cxgbit_push_tx_frames()
240 credits_needed, csk->wr_cred); in cxgbit_push_tx_frames()
245 skb->csum = (__force __wsum)(credits_needed + flowclen16); in cxgbit_push_tx_frames()
246 csk->wr_cred -= credits_needed; in cxgbit_push_tx_frames()
247 csk->wr_una_cred += credits_needed; in cxgbit_push_tx_frames()
250 csk, skb->len, skb->data_len, credits_needed, in cxgbit_push_tx_frames()
[all …]
/linux-6.1.9/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c787 u32 credits_needed; in push_tx_frames() local
794 credits_needed = DIV_ROUND_UP(dlen + iso_cpl_len, 16); in push_tx_frames()
796 credits_needed = in push_tx_frames()
801 credits_needed += in push_tx_frames()
815 if (csk->wr_cred < credits_needed) { in push_tx_frames()
819 credits_needed, csk->wr_cred); in push_tx_frames()
829 skb->csum = (__force __wsum)(credits_needed + flowclen16); in push_tx_frames()
830 csk->wr_cred -= credits_needed; in push_tx_frames()
831 csk->wr_una_cred += credits_needed; in push_tx_frames()
836 csk, skb->len, skb->data_len, credits_needed, in push_tx_frames()
[all …]
/linux-6.1.9/fs/ksmbd/
Dtransport_rdma.c1368 int credits_needed; in smb_direct_rdma_xmit() local
1376 credits_needed = 0; in smb_direct_rdma_xmit()
1381 credits_needed += calc_rw_credits(t, desc_buf, desc_buf_len); in smb_direct_rdma_xmit()
1390 is_read ? "read" : "write", buf_len, credits_needed); in smb_direct_rdma_xmit()
1392 ret = wait_for_rw_credits(t, credits_needed); in smb_direct_rdma_xmit()
1470 atomic_add(credits_needed, &t->rw_credits); in smb_direct_rdma_xmit()