Home
last modified time | relevance | path

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

/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 …]
/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()
/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c786 u32 credits_needed; in push_tx_frames() local
793 credits_needed = DIV_ROUND_UP(dlen + iso_cpl_len, 16); in push_tx_frames()
795 credits_needed = in push_tx_frames()
800 credits_needed += in push_tx_frames()
814 if (csk->wr_cred < credits_needed) { in push_tx_frames()
818 credits_needed, csk->wr_cred); in push_tx_frames()
828 skb->csum = (__force __wsum)(credits_needed + flowclen16); in push_tx_frames()
829 csk->wr_cred -= credits_needed; in push_tx_frames()
830 csk->wr_una_cred += credits_needed; in push_tx_frames()
835 csk, skb->len, skb->data_len, credits_needed, in push_tx_frames()
[all …]