Lines Matching refs:tx_sz
300 size_t tx_sz = sizeof(*hdr) + le16_to_cpu(hdr->len); in iwl_mei_write_cyclic_buf() local
311 if (room_in_buf < tx_sz) { in iwl_mei_write_cyclic_buf()
317 if (wr + tx_sz <= q_sz) { in iwl_mei_write_cyclic_buf()
318 memcpy(q_head + wr, hdr, tx_sz); in iwl_mei_write_cyclic_buf()
321 memcpy(q_head, (const u8 *)hdr + q_sz - wr, tx_sz - (q_sz - wr)); in iwl_mei_write_cyclic_buf()
324 WRITE_ONCE(notif_q->wr_ptr, cpu_to_le32((wr + tx_sz) % q_sz)); in iwl_mei_write_cyclic_buf()
436 size_t tx_sz; in iwl_mei_add_data_to_ring() local
476 tx_sz = skb->len + hdr_sz; in iwl_mei_add_data_to_ring()
487 if (room_in_buf < tx_sz) { in iwl_mei_add_data_to_ring()
518 if (wr + tx_sz <= q_sz) { in iwl_mei_add_data_to_ring()
519 skb_copy_bits(skb, 0, q_head + wr, tx_sz); in iwl_mei_add_data_to_ring()
522 skb_copy_bits(skb, q_sz - wr, q_head, tx_sz - (q_sz - wr)); in iwl_mei_add_data_to_ring()
525 WRITE_ONCE(notif_q->wr_ptr, cpu_to_le32((wr + tx_sz) % q_sz)); in iwl_mei_add_data_to_ring()