Lines Matching refs:mem_len
54 size_t mem_len = 0; in ft_queue_data_in() local
82 mem_len = sg->length; in ft_queue_data_in()
98 if (!mem_len) { in ft_queue_data_in()
100 mem_len = min((size_t)sg->length, remaining); in ft_queue_data_in()
127 tlen = min(mem_len, frame_len); in ft_queue_data_in()
152 mem_len -= tlen; in ft_queue_data_in()
206 size_t mem_len = 0; in ft_recv_write_data() local
277 mem_len = sg->length; in ft_recv_write_data()
283 if (!mem_len) { in ft_recv_write_data()
285 mem_len = sg->length; in ft_recv_write_data()
289 if (rel_off >= mem_len) { in ft_recv_write_data()
290 rel_off -= mem_len; in ft_recv_write_data()
291 mem_len = 0; in ft_recv_write_data()
295 mem_len -= rel_off; in ft_recv_write_data()
298 tlen = min(mem_len, frame_len); in ft_recv_write_data()
311 mem_len -= tlen; in ft_recv_write_data()