/openbmc/linux/kernel/power/ |
H A D | swap.c | 710 data = vzalloc(array_size(nr_threads, sizeof(*data))); in save_image_lzo() 1193 page = vmalloc(array_size(LZO_MAX_RD_PAGES, sizeof(*page))); in load_image_lzo() 1200 data = vzalloc(array_size(nr_threads, sizeof(*data))); in load_image_lzo()
|
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | vega20_processpptables.c | 691 uint32_t array_size, i; in copy_overdrive_feature_capabilities_array() local 695 array_size = sizeof(uint8_t) * od_feature_count; in copy_overdrive_feature_capabilities_array() 696 table = kzalloc(array_size, GFP_KERNEL); in copy_overdrive_feature_capabilities_array()
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_device.c | 204 const u32 array_size) in radeon_program_register_sequence() argument 209 if (array_size % 3) in radeon_program_register_sequence() 212 for (i = 0; i < array_size; i +=3) { in radeon_program_register_sequence()
|
/openbmc/linux/drivers/md/ |
H A D | dm-table.c | 518 unsigned int array_size = 0; in dm_split_args() local 527 argv = realloc_argv(&array_size, argv); in dm_split_args() 555 if ((*argc + 1) > array_size) { in dm_split_args() 556 argv = realloc_argv(&array_size, argv); in dm_split_args()
|
H A D | dm-switch.c | 117 sctx->region_table = vmalloc(array_size(nr_slots, in alloc_region_table()
|
/openbmc/linux/arch/arm/mm/ |
H A D | dma-mapping.c | 858 int array_size = count * sizeof(struct page *); in __iommu_alloc_buffer() local 862 if (array_size <= PAGE_SIZE) in __iommu_alloc_buffer() 863 pages = kzalloc(array_size, GFP_KERNEL); in __iommu_alloc_buffer() 865 pages = vzalloc(array_size); in __iommu_alloc_buffer()
|
/openbmc/linux/crypto/ |
H A D | algif_skcipher.c | 95 areq->tsgl = sock_kmalloc(sk, array_size(sizeof(*areq->tsgl), in _skcipher_recvmsg()
|
/openbmc/linux/drivers/net/wireless/broadcom/b43legacy/ |
H A D | main.c | 1783 size_t array_size) in b43legacy_write_initvals() argument 1793 if (array_size < sizeof(iv->offset_size)) in b43legacy_write_initvals() 1795 array_size -= sizeof(iv->offset_size); in b43legacy_write_initvals() 1804 if (array_size < sizeof(iv->data.d32)) in b43legacy_write_initvals() 1806 array_size -= sizeof(iv->data.d32); in b43legacy_write_initvals() 1817 if (array_size < sizeof(iv->data.d16)) in b43legacy_write_initvals() 1819 array_size -= sizeof(iv->data.d16); in b43legacy_write_initvals() 1829 if (array_size) in b43legacy_write_initvals()
|
/openbmc/linux/drivers/media/v4l2-core/ |
H A D | v4l2-common.c | 157 __v4l2_find_nearest_size(const void *array, size_t array_size, in __v4l2_find_nearest_size() argument 168 for (i = 0; i < array_size; i++, array += entry_size) { in __v4l2_find_nearest_size()
|
/openbmc/linux/drivers/power/supply/ |
H A D | bq2515x_charger.c | 670 unsigned int array_size = ARRAY_SIZE(bq2515x_ilim_lvl_values); in bq2515x_set_ilim_lvl() local 672 for (i = array_size - 1; i > 0; i--) { in bq2515x_set_ilim_lvl()
|
/openbmc/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_hw_cmdq.c | 749 cmdq->done = vzalloc(array_size(sizeof(*cmdq->done), wq->q_depth)); in init_cmdq() 753 cmdq->errcode = vzalloc(array_size(sizeof(*cmdq->errcode), in init_cmdq()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/ |
H A D | dc_hw_sequencer.c | 217 uint32_t *array_size) in find_color_matrix() argument 228 *array_size = 12; in find_color_matrix()
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | uverbs_ioctl.c | 188 array_size(array_len, sizeof(*attr->uobjects))); in uverbs_process_idrs_array() 425 size_t uattrs_size = array_size(sizeof(*pbundle->uattrs), num_attrs); in ib_uverbs_run_method()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_maps.c | 1715 const __u32 array_size = 4, index0 = 0, index3 = 3; in test_reuseport_array() local 1719 const __u32 bad_index = array_size; in test_reuseport_array() 1725 sizeof(__u32), sizeof(__u64), array_size, NULL); in test_reuseport_array() 1862 sizeof(__u32), sizeof(__u32), array_size, NULL); in test_reuseport_array()
|
/openbmc/linux/drivers/s390/char/ |
H A D | sclp_sd.c | 304 data = vzalloc(array_size((size_t)dsize, PAGE_SIZE)); in sclp_sd_store_data()
|
/openbmc/linux/drivers/mtd/ |
H A D | mtdoops.c | 359 vmalloc(array_size(sizeof(unsigned long), in mtdoops_notify_add()
|
/openbmc/linux/drivers/net/ethernet/cavium/liquidio/ |
H A D | octeon_droq.c | 285 droq->recv_buf_list = vzalloc_node(array_size(droq->max_count, OCT_DROQ_RECVBUF_SIZE), in octeon_init_droq() 288 droq->recv_buf_list = vzalloc(array_size(droq->max_count, OCT_DROQ_RECVBUF_SIZE)); in octeon_init_droq()
|
H A D | request_manager.c | 89 iq->request_list = vzalloc_node(array_size(num_descs, sizeof(*iq->request_list)), in octeon_init_instr_queue() 92 iq->request_list = vzalloc(array_size(num_descs, sizeof(*iq->request_list))); in octeon_init_instr_queue()
|
/openbmc/linux/drivers/net/wireless/intel/iwlegacy/ |
H A D | 3945.c | 108 u32 array_size; /* # of u32 entries in array */ in il3945_disable_events() local 166 array_size = il_read_targ_mem(il, base + (5 * sizeof(u32))); in il3945_disable_events() 168 if (IL_EVT_DISABLE && array_size == IL_EVT_DISABLE_SIZE) { in il3945_disable_events() 179 array_size); in il3945_disable_events()
|
/openbmc/linux/drivers/media/pci/cx23885/ |
H A D | cx23885-alsa.c | 90 buf->sglist = vzalloc(array_size(sizeof(*buf->sglist), buf->nr_pages)); in cx23885_alsa_dma_init()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/inc/ |
H A D | hw_sequencer.h | 429 uint32_t *array_size);
|
/openbmc/linux/drivers/gpu/drm/virtio/ |
H A D | virtgpu_drv.h | 75 uint32_t array_size; member
|
/openbmc/linux/drivers/media/i2c/ |
H A D | ov5647.c | 660 const struct regval_list *regs, int array_size) in ov5647_write_array() argument 664 for (i = 0; i < array_size; i++) { in ov5647_write_array()
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbevf/ |
H A D | ethtool.c | 279 tx_ring = vmalloc(array_size(sizeof(*tx_ring), in ixgbevf_set_ringparam() 325 rx_ring = vmalloc(array_size(sizeof(*rx_ring), in ixgbevf_set_ringparam()
|
/openbmc/linux/mm/ |
H A D | vmalloc.c | 3108 unsigned long array_size; in __vmalloc_area_node() local 3114 array_size = (unsigned long)nr_small_pages * sizeof(struct page *); in __vmalloc_area_node() 3120 if (array_size > PAGE_SIZE) { in __vmalloc_area_node() 3121 area->pages = __vmalloc_node(array_size, 1, nested_gfp, node, in __vmalloc_area_node() 3124 area->pages = kmalloc_node(array_size, nested_gfp, node); in __vmalloc_area_node() 3130 nr_small_pages * PAGE_SIZE, array_size); in __vmalloc_area_node()
|