Lines Matching full:padding

172 	buf->padding = kmalloc_array(chan->n_subbufs, sizeof(size_t *),  in relay_create_buf()
174 if (!buf->padding) in relay_create_buf()
186 kfree(buf->padding); in relay_create_buf()
220 kfree(buf->padding); in relay_destroy_buf()
372 buf->padding[i] = 0; in __relay_reset()
745 * updating padding counts, waking up readers, etc.
758 buf->padding[old_subbuf] = buf->prev_padding; in relay_switch_subbuf()
763 buf->padding[old_subbuf]; in relay_switch_subbuf()
766 buf->padding[old_subbuf]; in relay_switch_subbuf()
788 buf->padding[new_subbuf] = 0; in relay_switch_subbuf()
988 if (buf->bytes_consumed + buf->padding[read_subbuf] == subbuf_size) { in relay_file_read_consume()
1047 size_t padding, avail = 0; in relay_file_read_subbuf_avail() local
1055 padding = buf->padding[read_subbuf]; in relay_file_read_subbuf_avail()
1058 if (read_offset + padding < write_offset) in relay_file_read_subbuf_avail()
1059 avail = write_offset - (read_offset + padding); in relay_file_read_subbuf_avail()
1061 avail = (subbuf_size - padding) - read_offset; in relay_file_read_subbuf_avail()
1070 * If the read_pos is in the middle of padding, return the
1076 size_t read_subbuf, padding, padding_start, padding_end; in relay_file_read_start_pos() local
1083 padding = buf->padding[read_subbuf]; in relay_file_read_start_pos()
1084 padding_start = (read_subbuf + 1) * subbuf_size - padding; in relay_file_read_start_pos()
1104 size_t read_subbuf, padding, end_pos; in relay_file_read_end_pos() local
1109 padding = buf->padding[read_subbuf]; in relay_file_read_end_pos()
1110 if (read_pos % subbuf_size + count + padding == subbuf_size) in relay_file_read_end_pos()
1209 size_t padding = rbuf->padding[read_subbuf]; in subbuf_splice_actor() local
1210 size_t nonpad_end = read_subbuf * subbuf_size + subbuf_size - padding; in subbuf_splice_actor()
1255 private = this_len + padding; in subbuf_splice_actor()
1280 ret += padding; in subbuf_splice_actor()