Lines Matching refs:credits_needed
208 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()
263 cxgbit_tx_data_wr(csk, skb, dlen, len, credits_needed, in cxgbit_push_tx_frames()