Home
last modified time | relevance | path

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

/linux/drivers/target/iscsi/cxgbit/
H A 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/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A 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/drivers/scsi/cxgbi/cxgb4i/
H A 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/fs/smb/server/
H A Dtransport_rdma.c1366 int credits_needed; in smb_direct_rdma_xmit() local
1376 credits_needed = 0; in smb_direct_rdma_xmit()
1392 credits_needed += calc_rw_credits(t, desc_buf, desc_buf_len); in smb_direct_rdma_xmit()
1399 is_read ? "read" : "write", buf_len, credits_needed); in smb_direct_rdma_xmit()
1401 ret = wait_for_rw_credits(t, credits_needed); in smb_direct_rdma_xmit()
1479 atomic_add(credits_needed, &t->rw_credits); in smb_direct_rdma_xmit()