Lines Matching refs:padding
157 buf->padding = kmalloc_array(chan->n_subbufs, sizeof(size_t), in relay_create_buf()
159 if (!buf->padding) in relay_create_buf()
171 kfree(buf->padding); in relay_create_buf()
205 kfree(buf->padding); in relay_destroy_buf()
303 buf->padding[i] = 0; in __relay_reset()
670 buf->padding[old_subbuf] = buf->prev_padding; in relay_switch_subbuf()
675 buf->padding[old_subbuf]; in relay_switch_subbuf()
678 buf->padding[old_subbuf]; in relay_switch_subbuf()
700 buf->padding[new_subbuf] = 0; in relay_switch_subbuf()
900 if (buf->bytes_consumed + buf->padding[read_subbuf] == subbuf_size) { in relay_file_read_consume()
959 size_t padding, avail = 0; in relay_file_read_subbuf_avail() local
967 padding = buf->padding[read_subbuf]; in relay_file_read_subbuf_avail()
970 if (read_offset + padding < write_offset) in relay_file_read_subbuf_avail()
971 avail = write_offset - (read_offset + padding); in relay_file_read_subbuf_avail()
973 avail = (subbuf_size - padding) - read_offset; in relay_file_read_subbuf_avail()
988 size_t read_subbuf, padding, padding_start, padding_end; in relay_file_read_start_pos() local
996 padding = buf->padding[read_subbuf]; in relay_file_read_start_pos()
997 padding_start = (read_subbuf + 1) * subbuf_size - padding; in relay_file_read_start_pos()
1017 size_t read_subbuf, padding, end_pos; in relay_file_read_end_pos() local
1022 padding = buf->padding[read_subbuf]; in relay_file_read_end_pos()
1023 if (read_pos % subbuf_size + count + padding == subbuf_size) in relay_file_read_end_pos()
1122 size_t padding = rbuf->padding[read_subbuf]; in subbuf_splice_actor() local
1123 size_t nonpad_end = read_subbuf * subbuf_size + subbuf_size - padding; in subbuf_splice_actor()
1168 private = this_len + padding; in subbuf_splice_actor()
1193 ret += padding; in subbuf_splice_actor()