/openbmc/linux/tools/testing/selftests/alsa/ |
H A D | alsa-local.h | 25 const char **array, int array_size, const char *def);
|
/openbmc/linux/include/media/ |
H A D | v4l2-common.h | 410 #define v4l2_find_nearest_size(array, array_size, width_field, height_field, \ argument 416 (array), array_size, sizeof(*(array)), \ 422 __v4l2_find_nearest_size(const void *array, size_t array_size,
|
/openbmc/linux/fs/omfs/ |
H A D | inode.c | 337 unsigned int bitmap_size, array_size; in omfs_get_imap() local 345 array_size = DIV_ROUND_UP(bitmap_size, sb->s_blocksize); in omfs_get_imap() 350 sbi->s_imap_size = array_size; in omfs_get_imap() 351 sbi->s_imap = kcalloc(array_size, sizeof(unsigned long *), GFP_KERNEL); in omfs_get_imap() 379 for (count = 0; count < array_size; count++) in omfs_get_imap()
|
/openbmc/linux/mm/ |
H A D | sparse.c | 66 unsigned long array_size = SECTIONS_PER_ROOT * in sparse_index_alloc() local 70 section = kzalloc_node(array_size, GFP_KERNEL, nid); in sparse_index_alloc() 72 section = memblock_alloc_node(array_size, SMP_CACHE_BYTES, in sparse_index_alloc() 76 __func__, array_size, nid); in sparse_index_alloc() 707 return kvmalloc_node(array_size(sizeof(struct page), in populate_section_memmap()
|
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | smu_helper.c | 52 uint32_t array_size, i; in phm_copy_clock_limits_array() local 55 array_size = sizeof(uint32_t) * power_saving_clock_count; in phm_copy_clock_limits_array() 56 table = kzalloc(array_size, GFP_KERNEL); in phm_copy_clock_limits_array() 74 uint32_t array_size, i; in phm_copy_overdrive_settings_limits_array() local 77 array_size = sizeof(uint32_t) * od_setting_count; in phm_copy_overdrive_settings_limits_array() 78 table = kzalloc(array_size, GFP_KERNEL); in phm_copy_overdrive_settings_limits_array()
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | user_sdma.c | 1037 size_t array_size = ARRAY_SIZE(ahg); in set_txreq_header_ahg() local 1041 idx = ahg_header_set(ahg, idx, array_size, 0, 0, 12, in set_txreq_header_ahg() 1046 idx = ahg_header_set(ahg, idx, array_size, 3, 0, 16, in set_txreq_header_ahg() 1060 idx = ahg_header_set(ahg, idx, array_size, 6, 0, 16, in set_txreq_header_ahg() 1064 idx = ahg_header_set(ahg, idx, array_size, 6, 16, 16, in set_txreq_header_ahg() 1069 idx = ahg_header_set(ahg, idx, array_size, 15, 0, 16, in set_txreq_header_ahg() 1073 idx = ahg_header_set(ahg, idx, array_size, 15, 16, 16, in set_txreq_header_ahg() 1104 ahg, idx, array_size, 7, 0, 16, in set_txreq_header_ahg() 1126 idx = ahg_header_set(ahg, idx, array_size, in set_txreq_header_ahg()
|
/openbmc/linux/drivers/power/supply/ |
H A D | bq256xx_charger.c | 345 static int bq256xx_array_parse(int array_size, int val, const int array[]) in bq256xx_array_parse() argument 352 if (val >= array[array_size - 1]) in bq256xx_array_parse() 353 return array_size - 1; in bq256xx_array_parse() 355 for (i = 1; i < array_size; i++) { in bq256xx_array_parse() 534 int array_size = ARRAY_SIZE(bq25618_619_ichg_values); in bq25618_619_set_ichg_curr() local 543 ichg_reg_code = bq256xx_array_parse(array_size, ichg, in bq25618_619_set_ichg_curr() 634 int array_size = ARRAY_SIZE(bq25618_619_vbatreg_values); in bq25618_619_set_chrg_volt() local 645 vbatreg_reg_code = bq256xx_array_parse(array_size, vbatreg, in bq25618_619_set_chrg_volt() 656 int array_size = ARRAY_SIZE(bq25611d_vbatreg_values); in bq25611d_set_chrg_volt() local 667 vbatreg_reg_code = bq256xx_array_parse(array_size, vbatreg, in bq25611d_set_chrg_volt()
|
/openbmc/linux/kernel/dma/ |
H A D | swiotlb.c | 398 alloc_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), nslabs)); in swiotlb_init_remap() 406 mem->areas = memblock_alloc(array_size(sizeof(struct io_tlb_area), in swiotlb_init_remap() 498 area_order = get_order(array_size(sizeof(*mem->areas), nareas)); in swiotlb_init_late() 505 get_order(array_size(sizeof(*mem->slots), nslabs))); in swiotlb_init_late() 541 slots_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), mem->nslabs)); in swiotlb_exit() 545 area_order = get_order(array_size(sizeof(*mem->areas), in swiotlb_exit() 552 array_size(sizeof(*mem->areas), mem->nareas)); in swiotlb_exit() 698 pool_size = sizeof(*pool) + array_size(sizeof(*pool->areas), nareas); in swiotlb_alloc_pool() 713 slot_order = get_order(array_size(sizeof(*pool->slots), nslabs)); in swiotlb_alloc_pool() 757 size_t slots_size = array_size(sizeof(*pool->slots), pool->nslabs); in swiotlb_dyn_free()
|
/openbmc/linux/drivers/gpio/ |
H A D | gpiolib.h | 127 unsigned int array_size, 132 unsigned int array_size,
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | imu_v11_0_3.c | 109 const u32 array_size) in program_rlc_ram_register_setting() argument 115 for (i = 0; i < array_size; ++i) { in program_rlc_ram_register_setting()
|
H A D | soc15.h | 108 const u32 array_size);
|
/openbmc/linux/kernel/bpf/ |
H A D | arraymap.c | 86 u64 array_size, mask64; in array_map_alloc() local 112 array_size = sizeof(*array); in array_map_alloc() 114 array_size += (u64) max_entries * sizeof(void *); in array_map_alloc() 120 array_size = PAGE_ALIGN(array_size); in array_map_alloc() 121 array_size += PAGE_ALIGN((u64) max_entries * elem_size); in array_map_alloc() 123 array_size += (u64) max_entries * elem_size; in array_map_alloc() 132 data = bpf_map_area_mmapable_alloc(array_size, numa_node); in array_map_alloc() 138 array = bpf_map_area_alloc(array_size, numa_node); in array_map_alloc()
|
/openbmc/linux/tools/bpf/ |
H A D | bpf_dbg.c | 81 #ifndef array_size 82 # define array_size(x) (sizeof(x) / sizeof((x)[0])) macro 532 for (i = 0; i < array_size(bpf_breakpoints); i++) in bpf_reset_breakpoints() 541 for (i = 0; i < array_size(bpf_breakpoints); i++) { in bpf_set_breakpoints() 564 for (i = 0; i < array_size(bpf_breakpoints); i++) { in bpf_dump_breakpoints() 844 for (i = 0; i < array_size(bpf_breakpoints); i++) { in bpf_pc_has_breakpoint() 1265 for (i = 0; i < array_size(cmds); i++) { in execf() 1287 for (; list_index < array_size(cmds); ) { in shell_comp_gen()
|
/openbmc/linux/net/bridge/ |
H A D | br_ioctl.c | 76 array_size(num, sizeof(struct __fdb_entry)))) in get_fdb_entries() 212 if (copy_to_user(argp, indices, array_size(num, sizeof(int)))) in br_dev_siocdevprivate() 367 array_size(args[2], sizeof(int))) in old_deviceless()
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_gart.c | 349 rdev->gart.pages = vzalloc(array_size(sizeof(void *), in radeon_gart_init() 355 rdev->gart.pages_entry = vmalloc(array_size(sizeof(uint64_t), in radeon_gart_init()
|
/openbmc/linux/Documentation/driver-api/gpio/ |
H A D | consumer.rst | 332 int gpiod_get_array_value(unsigned int array_size, 336 int gpiod_get_raw_array_value(unsigned int array_size, 340 int gpiod_get_array_value_cansleep(unsigned int array_size, 344 int gpiod_get_raw_array_value_cansleep(unsigned int array_size, 349 int gpiod_set_array_value(unsigned int array_size, 353 int gpiod_set_raw_array_value(unsigned int array_size, 357 int gpiod_set_array_value_cansleep(unsigned int array_size, 361 int gpiod_set_raw_array_value_cansleep(unsigned int array_size, 374 * array_size - the number of array elements
|
/openbmc/linux/drivers/iommu/iommufd/ |
H A D | pages.c | 270 unsigned int array_size; member 326 batch->array_size = size / elmsz; in __batch_init() 327 batch->npfns = (u32 *)(batch->pfns + batch->array_size); in __batch_init() 361 if (batch->end == batch->array_size) in batch_add_pfn() 432 unsigned int array_size = batch->array_size; in batch_from_domain_continue() local 434 batch->array_size = batch->end; in batch_from_domain_continue() 436 batch->array_size = array_size; in batch_from_domain_continue()
|
/openbmc/linux/Documentation/translations/zh_CN/core-api/ |
H A D | memory-allocation.rst | 111 辅助程序。辅助程序struct_size()、array_size()和array3_size()可以用来安全地计算对
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_memory.c | 88 page_map = vmalloc(array_size(num_pages, sizeof(struct page *))); in agp_remap()
|
/openbmc/linux/tools/include/linux/ |
H A D | overflow.h | 82 static inline __must_check size_t array_size(size_t a, size_t b) in array_size() function
|
/openbmc/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_chain.c | 261 size = array_size(page_cnt, sizeof(*addr_tbl)); in qed_chain_alloc_pbl() 276 size = array_size(page_cnt, sizeof(*pbl_virt)); in qed_chain_alloc_pbl()
|
/openbmc/linux/drivers/gpu/drm/tests/ |
H A D | drm_mm_test.c | 366 nodes = vzalloc(array_size(count, sizeof(*nodes))); in __drm_test_mm_reserve() 542 nodes = vmalloc(array_size(count, sizeof(*nodes))); in __drm_test_mm_insert() 829 nodes = vzalloc(array_size(count, sizeof(*nodes))); in __drm_test_mm_insert_range() 1005 nodes = vzalloc(array_size(insert_size * 4, sizeof(*nodes))); in drm_test_mm_frag() 1066 nodes = vzalloc(array_size(max_count, sizeof(*nodes))); in drm_test_mm_align() 1407 nodes = vzalloc(array_size(size, sizeof(*nodes))); in drm_test_mm_evict() 1498 nodes = vzalloc(array_size(size, sizeof(*nodes))); in drm_test_mm_evict_range() 1585 nodes = vzalloc(array_size(count, sizeof(*nodes))); in drm_test_mm_topdown() 1691 nodes = vzalloc(array_size(count, sizeof(*nodes))); in drm_test_mm_bottomup() 2062 nodes = vzalloc(array_size(total_size, sizeof(*nodes))); in drm_test_mm_color_evict() [all …]
|
/openbmc/linux/drivers/misc/vmw_vmci/ |
H A D | vmci_host.c | 205 u32 array_size = 0; in drv_cp_harray_to_user() local 209 array_size = vmci_handle_arr_get_size(handle_array); in drv_cp_harray_to_user() 211 if (array_size * sizeof(*handles) > *user_buf_size) in drv_cp_harray_to_user() 214 *user_buf_size = array_size * sizeof(*handles); in drv_cp_harray_to_user()
|
/openbmc/linux/lib/ |
H A D | test_rhashtable.c | 279 rhl_test_objects = vzalloc(array_size(entries, in test_rhltable() 285 obj_in_table = vzalloc(array_size(sizeof(unsigned long), in test_rhltable() 698 objs = vzalloc(array_size(sizeof(struct test_obj), in test_rht_init() 746 tdata = vzalloc(array_size(tcount, sizeof(struct thread_data))); in test_rht_init()
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | uverbs_std_types_counters.c | 114 attrs, array_size(read_attr.ncounters, sizeof(u64))); in UVERBS_HANDLER()
|