Home
last modified time | relevance | path

Searched refs:struct_size (Results 1 – 25 of 110) sorted by relevance

12345

/Linux-v4.19/drivers/gpu/drm/amd/display/dc/basics/
Dvector.c33 uint32_t struct_size) in dal_vector_construct() argument
37 if (!struct_size || !capacity) { in dal_vector_construct()
43 vector->container = kcalloc(capacity, struct_size, GFP_KERNEL); in dal_vector_construct()
47 vector->struct_size = struct_size; in dal_vector_construct()
58 uint32_t struct_size) in dal_vector_presized_costruct() argument
64 if (!struct_size || !count) { in dal_vector_presized_costruct()
70 vector->container = kcalloc(count, struct_size, GFP_KERNEL); in dal_vector_presized_costruct()
81 vector->container + i * struct_size, in dal_vector_presized_costruct()
83 struct_size); in dal_vector_presized_costruct()
87 vector->struct_size = struct_size; in dal_vector_presized_costruct()
[all …]
/Linux-v4.19/scripts/dtc/libfdt/
Dfdt_rw.c59 int mem_rsv_size, int struct_size) in fdt_blocks_misordered_() argument
65 (fdt_off_dt_struct(fdt) + struct_size)) in fdt_blocks_misordered_()
408 int mem_rsv_size, int struct_size) in fdt_packblocks_() argument
414 strings_off = struct_off + struct_size; in fdt_packblocks_()
419 memmove(new + struct_off, old + fdt_off_dt_struct(old), struct_size); in fdt_packblocks_()
421 fdt_set_size_dt_struct(new, struct_size); in fdt_packblocks_()
432 int mem_rsv_size, struct_size; in fdt_open_into() local
444 struct_size = fdt_size_dt_struct(fdt); in fdt_open_into()
446 struct_size = 0; in fdt_open_into()
447 while (fdt_next_tag(fdt, struct_size, &struct_size) != FDT_END) in fdt_open_into()
[all …]
/Linux-v4.19/drivers/gpu/drm/amd/display/include/
Dvector.h31 uint32_t struct_size; member
41 uint32_t struct_size);
46 uint32_t struct_size);
54 uint32_t struct_size);
/Linux-v4.19/kernel/bpf/
Dbtf.c887 u32 struct_size = struct_type->size; in btf_int_check_member() local
908 if (struct_size < bytes_offset || in btf_int_check_member()
909 struct_size - bytes_offset < BITS_ROUNDUP_BYTES(nr_copy_bits)) { in btf_int_check_member()
1111 u32 struct_size, struct_bits_off, bytes_offset; in btf_ptr_check_member() local
1113 struct_size = struct_type->size; in btf_ptr_check_member()
1123 if (struct_size - bytes_offset < sizeof(void *)) { in btf_ptr_check_member()
1322 u32 struct_size, bytes_offset; in btf_array_check_member() local
1334 struct_size = struct_type->size; in btf_array_check_member()
1336 if (struct_size - bytes_offset < array_size) { in btf_array_check_member()
1497 u32 struct_size, bytes_offset; in btf_struct_check_member() local
[all …]
/Linux-v4.19/include/drm/ttm/
Dttm_bo_api.h478 unsigned struct_size);
481 unsigned struct_size);
/Linux-v4.19/drivers/clk/bcm/
Dclk-bcm2835-aux.c44 struct_size(onecell, hws, in bcm2835_aux_clk_probe()
/Linux-v4.19/drivers/media/platform/sti/delta/
Ddelta-mjpeg-fw.h37 u32 struct_size; member
/Linux-v4.19/drivers/net/phy/
Dmdio-mux-gpio.c54 s = devm_kzalloc(&pdev->dev, struct_size(s, values, gpios->ndescs), in mdio_mux_gpio_probe()
/Linux-v4.19/drivers/gpu/drm/vmwgfx/
Dvmwgfx_bo.c434 static size_t struct_size, user_struct_size; in vmw_bo_acc_size() local
438 if (unlikely(struct_size == 0)) { in vmw_bo_acc_size()
441 struct_size = backend_size + in vmw_bo_acc_size()
451 return ((user) ? user_struct_size : struct_size) + in vmw_bo_acc_size()
/Linux-v4.19/drivers/hwspinlock/
Dsirf_hwspinlock.c65 struct_size(hwspin, bank.lock, in sirf_hwspinlock_probe()
Du8500_hsem.c114 bank = kzalloc(struct_size(bank, lock, num_locks), GFP_KERNEL); in u8500_hsem_probe()
Domap_hwspinlock.c127 bank = kzalloc(struct_size(bank, lock, num_locks), GFP_KERNEL); in omap_hwspinlock_probe()
/Linux-v4.19/drivers/input/rmi4/
Drmi_driver.h69 unsigned long struct_size; member
Drmi_driver.c599 rdesc->struct_size = buf[1] | (buf[2] << 8); in rmi_read_register_desc()
601 rdesc->struct_size = buf[0]; in rmi_read_register_desc()
627 struct_buf = kzalloc(rdesc->struct_size, GFP_KERNEL); in rmi_read_register_desc()
637 ret = rmi_read_block(d, addr, struct_buf, rdesc->struct_size); in rmi_read_register_desc()
/Linux-v4.19/drivers/clk/
Dclk-efm32gg.c28 clk_data = kzalloc(struct_size(clk_data, hws, CMU_MAX_CLKS), in efm32gg_cmu_init()
Dclk-clps711x.c57 clps711x_clk = kzalloc(struct_size(clps711x_clk, clk_data.hws, in _clps711x_clk_init()
Dclk-scmi.c139 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, count), in scmi_clocks_probe()
/Linux-v4.19/drivers/clk/mvebu/
Darmada-37xx-tbg.c95 struct_size(hw_tbg_data, hws, NUM_TBG), in armada_3700_tbg_clock_probe()
/Linux-v4.19/drivers/clk/samsung/
Dclk-exynos-clkout.c64 clkout = kzalloc(struct_size(clkout, data.hws, EXYNOS_CLKOUT_NR_CLKS), in exynos_clkout_init()
Dclk-s5pv210-audss.c84 struct_size(clk_data, hws, AUDSS_MAX_CLKS), in s5pv210_audss_clk_probe()
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/core/
Dramht.c147 if (!(ramht = *pramht = vzalloc(struct_size(ramht, data, (size >> 3))))) in nvkm_ramht_new()
/Linux-v4.19/drivers/thermal/qcom/
Dtsens.c147 struct_size(tmdev, sensor, num_sensors), in tsens_probe()
/Linux-v4.19/drivers/input/
Dinput-leds.c101 leds = kzalloc(struct_size(leds, leds, num_leds), GFP_KERNEL); in input_leds_connect()
/Linux-v4.19/drivers/soc/actions/
Dowl-sps.c121 struct_size(sps, domains, sps_info->num_domains), in owl_sps_probe()
/Linux-v4.19/drivers/staging/greybus/
Dmodule.c97 module = kzalloc(struct_size(module, interfaces, num_interfaces), in gb_module_create()

12345