/kernel/linux/linux-6.6/drivers/media/test-drivers/vivid/ |
H A D | vivid-vid-common.c | 41 .buffers = 1, 50 .buffers = 1, 58 .buffers = 1, 66 .buffers = 1, 74 .buffers = 1, 82 .buffers = 1, 90 .buffers = 1, 98 .buffers = 1, 106 .buffers = 1, 114 .buffers [all...] |
/kernel/linux/linux-5.10/drivers/media/test-drivers/vivid/ |
H A D | vivid-vid-common.c | 41 .buffers = 1, 50 .buffers = 1, 58 .buffers = 1, 66 .buffers = 1, 74 .buffers = 1, 82 .buffers = 1, 90 .buffers = 1, 98 .buffers = 1, 106 .buffers = 1, 114 .buffers [all...] |
/kernel/linux/linux-5.10/lib/xz/ |
H A D | xz_dec_test.c | 42 * Input and output buffers. The input buffer is used as a temporary safe 49 * Structure to pass the input and output buffers to the XZ decoder. 52 static struct xz_buf buffers = { variable 75 buffers.in_pos = 0; in xz_dec_test_open() 76 buffers.in_size = 0; in xz_dec_test_open() 77 buffers.out_pos = 0; in xz_dec_test_open() 120 while ((remaining > 0 || buffers.out_pos == buffers.out_size) in xz_dec_test_write() 122 if (buffers.in_pos == buffers in xz_dec_test_write() [all...] |
/kernel/linux/linux-6.6/lib/xz/ |
H A D | xz_dec_test.c | 42 * Input and output buffers. The input buffer is used as a temporary safe 49 * Structure to pass the input and output buffers to the XZ decoder. 52 static struct xz_buf buffers = { variable 75 buffers.in_pos = 0; in xz_dec_test_open() 76 buffers.in_size = 0; in xz_dec_test_open() 77 buffers.out_pos = 0; in xz_dec_test_open() 120 while ((remaining > 0 || buffers.out_pos == buffers.out_size) in xz_dec_test_write() 122 if (buffers.in_pos == buffers in xz_dec_test_write() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_common/ |
H A D | qat_bl.c | 29 dma_unmap_single(dev, bl->buffers[i].addr, in qat_bl_free_bufl() 30 bl->buffers[i].len, bl_dma_dir); in qat_bl_free_bufl() 39 dma_unmap_single(dev, blout->buffers[i].addr, in qat_bl_free_bufl() 40 blout->buffers[i].len, in qat_bl_free_bufl() 68 size_t sz_out, sz = struct_size(bufl, buffers, n); in __qat_bl_sgl_to_bufl() 92 bufl->buffers[i].addr = DMA_MAPPING_ERROR; in __qat_bl_sgl_to_bufl() 106 bufl->buffers[y].addr = dma_map_single(dev, sg_virt(sg) + left, in __qat_bl_sgl_to_bufl() 109 bufl->buffers[y].len = sg->length; in __qat_bl_sgl_to_bufl() 110 if (unlikely(dma_mapping_error(dev, bufl->buffers[y].addr))) in __qat_bl_sgl_to_bufl() 114 bufl->buffers[ in __qat_bl_sgl_to_bufl() 127 struct qat_alg_buf *buffers; __qat_bl_sgl_to_bufl() local [all...] |
/kernel/linux/linux-5.10/drivers/android/ |
H A D | binder_alloc_selftest.c | 116 struct binder_buffer *buffers[], in binder_selftest_alloc_buf() 122 buffers[i] = binder_alloc_new_buf(alloc, sizes[i], 0, 0, 0, 0); in binder_selftest_alloc_buf() 123 if (IS_ERR(buffers[i]) || in binder_selftest_alloc_buf() 124 !check_buffer_pages_allocated(alloc, buffers[i], in binder_selftest_alloc_buf() 133 struct binder_buffer *buffers[], in binder_selftest_free_buf() 139 binder_alloc_free_buf(alloc, buffers[seq[i]]); in binder_selftest_free_buf() 179 struct binder_buffer *buffers[BUFFER_NUM]; in binder_selftest_alloc_free() local 181 binder_selftest_alloc_buf(alloc, buffers, sizes, seq); in binder_selftest_alloc_free() 182 binder_selftest_free_buf(alloc, buffers, sizes, seq, end); in binder_selftest_alloc_free() 185 binder_selftest_alloc_buf(alloc, buffers, size in binder_selftest_alloc_free() 115 binder_selftest_alloc_buf(struct binder_alloc *alloc, struct binder_buffer *buffers[], size_t *sizes, int *seq) binder_selftest_alloc_buf() argument 132 binder_selftest_free_buf(struct binder_alloc *alloc, struct binder_buffer *buffers[], size_t *sizes, int *seq, size_t end) binder_selftest_free_buf() argument [all...] |
/kernel/linux/linux-6.6/drivers/android/ |
H A D | binder_alloc_selftest.c | 116 struct binder_buffer *buffers[], in binder_selftest_alloc_buf() 122 buffers[i] = binder_alloc_new_buf(alloc, sizes[i], 0, 0, 0, 0); in binder_selftest_alloc_buf() 123 if (IS_ERR(buffers[i]) || in binder_selftest_alloc_buf() 124 !check_buffer_pages_allocated(alloc, buffers[i], in binder_selftest_alloc_buf() 133 struct binder_buffer *buffers[], in binder_selftest_free_buf() 139 binder_alloc_free_buf(alloc, buffers[seq[i]]); in binder_selftest_free_buf() 179 struct binder_buffer *buffers[BUFFER_NUM]; in binder_selftest_alloc_free() local 181 binder_selftest_alloc_buf(alloc, buffers, sizes, seq); in binder_selftest_alloc_free() 182 binder_selftest_free_buf(alloc, buffers, sizes, seq, end); in binder_selftest_alloc_free() 185 binder_selftest_alloc_buf(alloc, buffers, size in binder_selftest_alloc_free() 115 binder_selftest_alloc_buf(struct binder_alloc *alloc, struct binder_buffer *buffers[], size_t *sizes, int *seq) binder_selftest_alloc_buf() argument 132 binder_selftest_free_buf(struct binder_alloc *alloc, struct binder_buffer *buffers[], size_t *sizes, int *seq, size_t end) binder_selftest_free_buf() argument [all...] |
/kernel/linux/linux-5.10/drivers/iio/buffer/ |
H A D | industrialio-hw-consumer.c | 19 * @buffers: hardware buffers list head. 23 struct list_head buffers; member 58 list_for_each_entry(buf, &hwc->buffers, head) { in iio_hw_consumer_get_buffer() 72 list_add_tail(&buf->head, &hwc->buffers); in iio_hw_consumer_get_buffer() 94 INIT_LIST_HEAD(&hwc->buffers); in iio_hw_consumer_alloc() 116 list_for_each_entry(buf, &hwc->buffers, head) in iio_hw_consumer_alloc() 134 list_for_each_entry_safe(buf, n, &hwc->buffers, head) in iio_hw_consumer_free() 186 list_for_each_entry(buf, &hwc->buffers, head) { in iio_hw_consumer_enable() 195 list_for_each_entry_continue_reverse(buf, &hwc->buffers, hea in iio_hw_consumer_enable() [all...] |
/kernel/linux/linux-6.6/drivers/iio/buffer/ |
H A D | industrialio-hw-consumer.c | 19 * @buffers: hardware buffers list head. 23 struct list_head buffers; member 57 list_for_each_entry(buf, &hwc->buffers, head) { in iio_hw_consumer_get_buffer() 72 list_add_tail(&buf->head, &hwc->buffers); in iio_hw_consumer_get_buffer() 94 INIT_LIST_HEAD(&hwc->buffers); in iio_hw_consumer_alloc() 116 list_for_each_entry(buf, &hwc->buffers, head) in iio_hw_consumer_alloc() 134 list_for_each_entry_safe(buf, n, &hwc->buffers, head) in iio_hw_consumer_free() 183 list_for_each_entry(buf, &hwc->buffers, head) { in iio_hw_consumer_enable() 192 list_for_each_entry_continue_reverse(buf, &hwc->buffers, hea in iio_hw_consumer_enable() [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/ivtv/ |
H A D | ivtv-queue.c | 35 q->buffers = 0; in ivtv_queue_init() 53 q->buffers++; in ivtv_enqueue() 68 q->buffers--; in ivtv_dequeue() 82 from->buffers--; in ivtv_queue_move_buf() 88 to->buffers++; in ivtv_queue_move_buf() 93 /* Move 'needed_bytes' worth of buffers from queue 'from' into queue 'to'. 94 If 'needed_bytes' == 0, then move all buffers from 'from' into 'to'. 95 If 'steal' != NULL, then buffers may also taken from that queue if 99 also cleared if buffers need to be taken from the 'steal' queue and 107 -ENOMEM is returned if the buffers coul [all...] |
/kernel/linux/linux-6.6/drivers/media/pci/ivtv/ |
H A D | ivtv-queue.c | 35 q->buffers = 0; in ivtv_queue_init() 53 q->buffers++; in ivtv_enqueue() 68 q->buffers--; in ivtv_dequeue() 82 from->buffers--; in ivtv_queue_move_buf() 88 to->buffers++; in ivtv_queue_move_buf() 93 /* Move 'needed_bytes' worth of buffers from queue 'from' into queue 'to'. 94 If 'needed_bytes' == 0, then move all buffers from 'from' into 'to'. 95 If 'steal' != NULL, then buffers may also taken from that queue if 99 also cleared if buffers need to be taken from the 'steal' queue and 107 -ENOMEM is returned if the buffers coul [all...] |
/kernel/linux/linux-6.6/fs/verity/ |
H A D | enable.c | 107 struct block_buffer *buffers = &_buffers[1]; in build_merkle_tree() local 120 * Allocate the block buffers. Buffer "-1" is for data blocks. in build_merkle_tree() 125 buffers[level].data = kzalloc(params->block_size, GFP_KERNEL); in build_merkle_tree() 126 if (!buffers[level].data) { in build_merkle_tree() 131 buffers[num_levels].data = root_hash; in build_merkle_tree() 132 buffers[num_levels].is_root_hash = true; in build_merkle_tree() 142 buffers[-1].filled = min_t(u64, params->block_size, in build_merkle_tree() 144 bytes_read = __kernel_read(filp, buffers[-1].data, in build_merkle_tree() 145 buffers[-1].filled, &pos); in build_merkle_tree() 151 if (bytes_read != buffers[ in build_merkle_tree() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gem/selftests/ |
H A D | i915_gem_client_blt.c | 102 struct blit_buffer buffers[3]; member 264 for (i = 0; i < ARRAY_SIZE(t->buffers); i++) in tiled_blits_destroy_buffers() 265 i915_vma_put(t->buffers[i].vma); in tiled_blits_destroy_buffers() 317 for (i = 0; i < ARRAY_SIZE(t->buffers); i++) { in tiled_blits_create_buffers() 326 t->buffers[i].vma = vma; in tiled_blits_create_buffers() 327 t->buffers[i].tiling = in tiled_blits_create_buffers() 331 if (HAS_4TILE(i915) && t->buffers[i].tiling == CLIENT_TILING_Y) in tiled_blits_create_buffers() 332 t->buffers[i].tiling = CLIENT_TILING_4; in tiled_blits_create_buffers() 333 else if (!HAS_4TILE(i915) && t->buffers[i].tiling == CLIENT_TILING_4) in tiled_blits_create_buffers() 334 t->buffers[ in tiled_blits_create_buffers() [all...] |
/kernel/linux/linux-5.10/mm/ |
H A D | zswapd.c | 182 unsigned long buffers; in calc_sys_cur_avail_buffers() local 188 buffers = freemem + inactive_file * get_inactive_file_ratio() / percent_constant + in calc_sys_cur_avail_buffers() 191 return (buffers * SZ_1K / SZ_1M); /* kb to mb */ in calc_sys_cur_avail_buffers() 196 unsigned int buffers = calc_sys_cur_avail_buffers(); in zswapd_status_show() local 198 seq_printf(m, "buffer_size %u\n", buffers); in zswapd_status_show() 209 unsigned int buffers = calc_sys_cur_avail_buffers(); in min_buffer_is_suitable() local 211 if (buffers >= get_min_avail_buffers()) in min_buffer_is_suitable() 219 unsigned int buffers = calc_sys_cur_avail_buffers(); in buffer_is_suitable() local 221 if (buffers >= get_avail_buffers()) in buffer_is_suitable() 229 unsigned int buffers in high_buffer_is_suitable() local 643 unsigned int buffers; __calc_nr_to_reclaim() local 736 u64 buffers; zswapd_buffer_diff() local [all...] |
/kernel/linux/linux-6.6/mm/ |
H A D | zswapd.c | 183 unsigned long buffers; in calc_sys_cur_avail_buffers() local 189 buffers = freemem + inactive_file * get_inactive_file_ratio() / percent_constant + in calc_sys_cur_avail_buffers() 192 return (buffers * SZ_1K / SZ_1M); /* kb to mb */ in calc_sys_cur_avail_buffers() 197 unsigned int buffers = calc_sys_cur_avail_buffers(); in zswapd_status_show() local 199 seq_printf(m, "buffer_size:%u\n", buffers); in zswapd_status_show() 210 unsigned int buffers = calc_sys_cur_avail_buffers(); in min_buffer_is_suitable() local 212 if (buffers >= get_min_avail_buffers()) in min_buffer_is_suitable() 220 unsigned int buffers = calc_sys_cur_avail_buffers(); in buffer_is_suitable() local 222 if (buffers >= get_avail_buffers()) in buffer_is_suitable() 230 unsigned int buffers in high_buffer_is_suitable() local 644 unsigned int buffers; __calc_nr_to_reclaim() local 737 u64 buffers; zswapd_buffer_diff() local [all...] |
/kernel/linux/linux-5.10/drivers/scsi/isci/ |
H A D | unsolicited_frame_control.c | 69 * The Unsolicited Frame buffers are set at the start of the UF in sci_unsolicited_frame_control_construct() 71 * placed after the buffers. in sci_unsolicited_frame_control_construct() 106 * Program the actual used UF buffers into the UF address table and in sci_unsolicited_frame_control_construct() 110 uf = &uf_control->buffers.array[i]; in sci_unsolicited_frame_control_construct() 136 *frame_header = &uf_control->buffers.array[frame_index].header->data; in sci_unsolicited_frame_control_get_header() 149 *frame_buffer = uf_control->buffers.array[frame_index].buffer; in sci_unsolicited_frame_control_get_buffer() 184 uf_control->buffers.array[frame_index].state = UNSOLICITED_FRAME_RELEASED; in sci_unsolicited_frame_control_release_frame() 198 while (uf_control->buffers.array[frame_get].state == UNSOLICITED_FRAME_RELEASED) { in sci_unsolicited_frame_control_release_frame() 199 uf_control->buffers.array[frame_get].state = UNSOLICITED_FRAME_EMPTY; in sci_unsolicited_frame_control_release_frame()
|
/kernel/linux/linux-6.6/drivers/scsi/isci/ |
H A D | unsolicited_frame_control.c | 69 * The Unsolicited Frame buffers are set at the start of the UF in sci_unsolicited_frame_control_construct() 71 * placed after the buffers. in sci_unsolicited_frame_control_construct() 106 * Program the actual used UF buffers into the UF address table and in sci_unsolicited_frame_control_construct() 110 uf = &uf_control->buffers.array[i]; in sci_unsolicited_frame_control_construct() 136 *frame_header = &uf_control->buffers.array[frame_index].header->data; in sci_unsolicited_frame_control_get_header() 149 *frame_buffer = uf_control->buffers.array[frame_index].buffer; in sci_unsolicited_frame_control_get_buffer() 184 uf_control->buffers.array[frame_index].state = UNSOLICITED_FRAME_RELEASED; in sci_unsolicited_frame_control_release_frame() 198 while (uf_control->buffers.array[frame_get].state == UNSOLICITED_FRAME_RELEASED) { in sci_unsolicited_frame_control_release_frame() 199 uf_control->buffers.array[frame_get].state = UNSOLICITED_FRAME_EMPTY; in sci_unsolicited_frame_control_release_frame()
|
/kernel/linux/linux-6.6/kernel/trace/ |
H A D | ring_buffer.c | 132 /* Used for individual buffers (after the counter) */ 553 struct ring_buffer_per_cpu **buffers; member 800 struct ring_buffer_per_cpu *cpu_buffer = buffer->buffers[smp_processor_id()]; in ring_buffer_event_time_stamp() 840 return buffer->buffers[cpu]->nr_pages; in ring_buffer_nr_pages() 856 read = local_read(&buffer->buffers[cpu]->pages_read); in ring_buffer_nr_dirty_pages() 857 lost = local_read(&buffer->buffers[cpu]->pages_lost); in ring_buffer_nr_dirty_pages() 858 cnt = local_read(&buffer->buffers[cpu]->pages_touched); in ring_buffer_nr_dirty_pages() 876 struct ring_buffer_per_cpu *cpu_buffer = buffer->buffers[cpu]; in full_hit() 936 if (WARN_ON_ONCE(!buffer->buffers)) in ring_buffer_wake_waiters() 941 cpu_buffer = buffer->buffers[cp in ring_buffer_wake_waiters() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/ |
H A D | i915_gem_client_blt.c | 144 struct blit_buffer buffers[3]; member 224 for (i = 0; i < ARRAY_SIZE(t->buffers); i++) in tiled_blits_destroy_buffers() 225 i915_vma_put(t->buffers[i].vma); in tiled_blits_destroy_buffers() 277 for (i = 0; i < ARRAY_SIZE(t->buffers); i++) { in tiled_blits_create_buffers() 286 t->buffers[i].vma = vma; in tiled_blits_create_buffers() 287 t->buffers[i].tiling = in tiled_blits_create_buffers() 574 for (i = 0; i < ARRAY_SIZE(t->buffers); i++) { in tiled_blits_prepare() 579 &t->buffers[i], t->hole + offset, in tiled_blits_prepare() 582 err = verify_buffer(t, &t->buffers[i], prng); in tiled_blits_prepare() 602 &t->buffers[ in tiled_blits_bounce() [all...] |
/kernel/linux/linux-5.10/kernel/trace/ |
H A D | ring_buffer.c | 123 /* Used for individual buffers (after the counter) */ 552 struct ring_buffer_per_cpu **buffers; member 769 return buffer->buffers[cpu]->nr_pages; in ring_buffer_nr_pages() 785 read = local_read(&buffer->buffers[cpu]->pages_read); in ring_buffer_nr_dirty_pages() 786 lost = local_read(&buffer->buffers[cpu]->pages_lost); in ring_buffer_nr_dirty_pages() 787 cnt = local_read(&buffer->buffers[cpu]->pages_touched); in ring_buffer_nr_dirty_pages() 805 struct ring_buffer_per_cpu *cpu_buffer = buffer->buffers[cpu]; in full_hit() 861 cpu_buffer = buffer->buffers[cpu]; in ring_buffer_wake_waiters() 880 * as data is added to any of the @buffer's cpu buffers. Otherwise 903 cpu_buffer = buffer->buffers[cp in ring_buffer_wait() [all...] |
/kernel/linux/linux-5.10/lib/reed_solomon/ |
H A D | decode_rs.c | 29 * The decoder buffers are in the rs control struct. They are 32 uint16_t *lambda = rsc->buffers + RS_DECODE_LAMBDA * (nroots + 1); 33 uint16_t *syn = rsc->buffers + RS_DECODE_SYN * (nroots + 1); 34 uint16_t *b = rsc->buffers + RS_DECODE_B * (nroots + 1); 35 uint16_t *t = rsc->buffers + RS_DECODE_T * (nroots + 1); 36 uint16_t *omega = rsc->buffers + RS_DECODE_OMEGA * (nroots + 1); 37 uint16_t *root = rsc->buffers + RS_DECODE_ROOT * (nroots + 1); 38 uint16_t *reg = rsc->buffers + RS_DECODE_REG * (nroots + 1); 39 uint16_t *loc = rsc->buffers + RS_DECODE_LOC * (nroots + 1);
|
/kernel/linux/linux-6.6/lib/reed_solomon/ |
H A D | decode_rs.c | 29 * The decoder buffers are in the rs control struct. They are 32 uint16_t *lambda = rsc->buffers + RS_DECODE_LAMBDA * (nroots + 1); 33 uint16_t *syn = rsc->buffers + RS_DECODE_SYN * (nroots + 1); 34 uint16_t *b = rsc->buffers + RS_DECODE_B * (nroots + 1); 35 uint16_t *t = rsc->buffers + RS_DECODE_T * (nroots + 1); 36 uint16_t *omega = rsc->buffers + RS_DECODE_OMEGA * (nroots + 1); 37 uint16_t *root = rsc->buffers + RS_DECODE_ROOT * (nroots + 1); 38 uint16_t *reg = rsc->buffers + RS_DECODE_REG * (nroots + 1); 39 uint16_t *loc = rsc->buffers + RS_DECODE_LOC * (nroots + 1);
|
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-io.c | 48 /* Pointers to all buffers */ 49 struct pvr2_buffer **buffers; member 50 /* Array size of buffers */ 52 /* Total buffers actually in circulation */ 54 /* Designed number of buffers to be in circulation */ 286 /* Allocate buffers pointer array in multiples of 32 entries */ in pvr2_stream_buffer_count() 305 memcpy(nb, sp->buffers, in pvr2_stream_buffer_count() 307 kfree(sp->buffers); in pvr2_stream_buffer_count() 309 sp->buffers = nb; in pvr2_stream_buffer_count() 321 sp->buffers[s in pvr2_stream_buffer_count() [all...] |
/kernel/linux/linux-6.6/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-io.c | 48 /* Pointers to all buffers */ 49 struct pvr2_buffer **buffers; member 50 /* Array size of buffers */ 52 /* Total buffers actually in circulation */ 54 /* Designed number of buffers to be in circulation */ 286 /* Allocate buffers pointer array in multiples of 32 entries */ in pvr2_stream_buffer_count() 305 memcpy(nb, sp->buffers, in pvr2_stream_buffer_count() 307 kfree(sp->buffers); in pvr2_stream_buffer_count() 309 sp->buffers = nb; in pvr2_stream_buffer_count() 321 sp->buffers[s in pvr2_stream_buffer_count() [all...] |
/kernel/linux/linux-5.10/drivers/crypto/ccree/ |
H A D | cc_hash.h | 38 u8 buffers[2][CC_MAX_HASH_BLCK_SIZE] ____cacheline_aligned; 66 return state->buffers[state->buff_index]; in cc_hash_buf() 76 return state->buffers[state->buff_index ^ 1]; in cc_next_buf()
|