Lines Matching refs:buf_left
288 u32 buf_left; in mhi_ep_read_channel() local
291 buf_left = len; in mhi_ep_read_channel()
305 tr_len = min(buf_left, mhi_chan->tre_bytes_left); in mhi_ep_read_channel()
311 tr_len = min(buf_left, mhi_chan->tre_size); in mhi_ep_read_channel()
315 write_offset = len - buf_left; in mhi_ep_read_channel()
326 buf_left -= tr_len; in mhi_ep_read_channel()
381 } while (buf_left && !tr_done); in mhi_ep_read_channel()
444 u32 buf_left, read_offset; in mhi_ep_queue_skb() local
453 buf_left = skb->len; in mhi_ep_queue_skb()
475 tr_len = min(buf_left, tre_len); in mhi_ep_queue_skb()
476 read_offset = skb->len - buf_left; in mhi_ep_queue_skb()
487 buf_left -= tr_len; in mhi_ep_queue_skb()
494 if (buf_left) in mhi_ep_queue_skb()
506 } while (buf_left); in mhi_ep_queue_skb()