struct_size       390 arch/arm/mach-integrator/impd1.c 					      struct_size(lookup, table, 3),
struct_size      2328 arch/powerpc/platforms/cell/spufs/file.c 	ctx->switch_log = kmalloc(struct_size(ctx->switch_log, log,
struct_size       345 arch/powerpc/platforms/ps3/device-init.c 	p = kzalloc(struct_size(p, regions, num_regions), GFP_KERNEL);
struct_size        43 arch/s390/hypfs/hypfs_diag0c.c 	diag0c_data = kzalloc(struct_size(diag0c_data, entry, cpu_count),
struct_size       125 arch/s390/include/asm/idals.h 	ib = kmalloc(struct_size(ib, data, nr_ptrs), GFP_DMA | GFP_KERNEL);
struct_size       197 arch/sparc/kernel/cpumap.c 	new_tree = kzalloc(struct_size(new_tree, nodes, n), GFP_ATOMIC);
struct_size       941 arch/x86/events/intel/uncore.c 		attr_group = kzalloc(struct_size(attr_group, attrs, i + 1),
struct_size       202 arch/x86/kernel/crash.c 	cmem = vzalloc(struct_size(cmem, ranges, nr_ranges));
struct_size       406 arch/x86/kvm/pmu.c 	size = struct_size(filter, events, tmp.nevents);
struct_size        46 block/bio-integrity.c 		bip = kmalloc(struct_size(bip, bip_inline_vecs, nr_vecs), gfp_mask);
struct_size      1151 block/bio.c    	bmd = kmalloc(struct_size(bmd, iov, data->nr_segs), gfp_mask);
struct_size      1309 block/genhd.c  	new_ptbl = kzalloc_node(struct_size(new_ptbl, part, target), GFP_KERNEL,
struct_size       499 crypto/af_alg.c 				   struct_size(sgl, sg, (MAX_SGL_ENTS + 1)),
struct_size       637 crypto/af_alg.c 		sock_kfree_s(sk, sgl, struct_size(sgl, sg, MAX_SGL_ENTS + 1));
struct_size       858 drivers/char/hpet.c 	hpetp = kzalloc(struct_size(hpetp, hp_dev, hdp->hd_nirqs),
struct_size       423 drivers/char/virtio_console.c 	buf = kmalloc(struct_size(buf, sg, pages), GFP_KERNEL);
struct_size        36 drivers/clk/bcm/clk-bcm2835-aux.c 			       struct_size(onecell, hws,
struct_size      2207 drivers/clk/bcm/clk-bcm2835.c 			      struct_size(cprman, onecell.hws, asize),
struct_size       159 drivers/clk/bcm/clk-bcm63xx-gate.c 	hw = devm_kzalloc(&pdev->dev, struct_size(hw, data.hws, maxbit),
struct_size       200 drivers/clk/bcm/clk-iproc-asiu.c 	asiu->clk_data = kzalloc(struct_size(asiu->clk_data, hws, num_clks),
struct_size       747 drivers/clk/bcm/clk-iproc-pll.c 	clk_data = kzalloc(struct_size(clk_data, hws, num_clks), GFP_KERNEL);
struct_size       502 drivers/clk/berlin/bg2.c 	clk_data = kzalloc(struct_size(clk_data, hws, MAX_CLKS), GFP_KERNEL);
struct_size       288 drivers/clk/berlin/bg2q.c 	clk_data = kzalloc(struct_size(clk_data, hws, MAX_CLKS), GFP_KERNEL);
struct_size       265 drivers/clk/clk-asm9260.c 	clk_data = kzalloc(struct_size(clk_data, hws, MAX_CLKS), GFP_KERNEL);
struct_size       674 drivers/clk/clk-aspeed.c 	aspeed_clk_data = kzalloc(struct_size(aspeed_clk_data, hws,
struct_size       675 drivers/clk/clk-ast2600.c 	aspeed_g6_clk_data = kzalloc(struct_size(aspeed_g6_clk_data, hws,
struct_size        54 drivers/clk/clk-clps711x.c 	clps711x_clk = kzalloc(struct_size(clps711x_clk, clk_data.hws,
struct_size        25 drivers/clk/clk-efm32gg.c 	clk_data = kzalloc(struct_size(clk_data, hws, CMU_MAX_CLKS),
struct_size       402 drivers/clk/clk-gemini.c 	gemini_clk_data = kzalloc(struct_size(gemini_clk_data, hws,
struct_size       617 drivers/clk/clk-milbeaut.c 	m10v_clk_data = kzalloc(struct_size(m10v_clk_data, hws,
struct_size       561 drivers/clk/clk-npcm7xx.c 	npcm7xx_clk_data = kzalloc(struct_size(npcm7xx_clk_data, hws,
struct_size       135 drivers/clk/clk-s2mps11.c 				struct_size(clk_data, hws, S2MPS11_CLKS_NUM),
struct_size       139 drivers/clk/clk-scmi.c 	clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, count),
struct_size      1204 drivers/clk/clk-stm32h7.c 	clk_data = kzalloc(struct_size(clk_data, hws, STM32H7_MAX_CLKS),
struct_size      2063 drivers/clk/clk-stm32mp1.c 	clk_data = kzalloc(struct_size(clk_data, hws, max_binding),
struct_size       651 drivers/clk/davinci/da8xx-cfgchip.c 	clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, 2),
struct_size       444 drivers/clk/imx/clk-imx6q.c 	clk_hw_data = kzalloc(struct_size(clk_hw_data, hws,
struct_size       194 drivers/clk/imx/clk-imx6sl.c 	clk_hw_data = kzalloc(struct_size(clk_hw_data, hws,
struct_size       100 drivers/clk/imx/clk-imx6sll.c 	clk_hw_data = kzalloc(struct_size(clk_hw_data, hws,
struct_size       132 drivers/clk/imx/clk-imx6sx.c 	clk_hw_data = kzalloc(struct_size(clk_hw_data, hws,
struct_size       119 drivers/clk/imx/clk-imx6ul.c 	clk_hw_data = kzalloc(struct_size(clk_hw_data, hws,
struct_size       397 drivers/clk/imx/clk-imx7d.c 	clk_hw_data = kzalloc(struct_size(clk_hw_data, hws,
struct_size        65 drivers/clk/imx/clk-imx7ulp.c 	clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_SCG1_END),
struct_size       154 drivers/clk/imx/clk-imx7ulp.c 	clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_PCC2_END),
struct_size       209 drivers/clk/imx/clk-imx7ulp.c 	clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_PCC3_END),
struct_size       262 drivers/clk/imx/clk-imx7ulp.c 	clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_SMC1_END),
struct_size       183 drivers/clk/imx/clk-imx8qxp-lpcg.c 	clk_data = devm_kzalloc(&pdev->dev, struct_size(clk_data, hws,
struct_size        31 drivers/clk/imx/clk-imx8qxp.c 	clk_data = devm_kzalloc(&pdev->dev, struct_size(clk_data, hws,
struct_size       740 drivers/clk/mvebu/armada-37xx-periph.c 					    struct_size(driver_data->hw_data,
struct_size        93 drivers/clk/mvebu/armada-37xx-tbg.c 				   struct_size(hw_tbg_data, hws, NUM_TBG),
struct_size       234 drivers/clk/qcom/clk-spmi-pmic-div.c 	cc = devm_kzalloc(dev, struct_size(cc, clks, nclks), GFP_KERNEL);
struct_size       224 drivers/clk/renesas/clk-div6.c 	clock = kzalloc(struct_size(clock, parents, num_parents), GFP_KERNEL);
struct_size       191 drivers/clk/renesas/clk-mstp.c 	group = kzalloc(struct_size(group, clks, MSTP_MAX_CLOCKS), GFP_KERNEL);
struct_size       894 drivers/clk/renesas/renesas-cpg-mssr.c 	priv = kzalloc(struct_size(priv, clks, nclks), GFP_KERNEL);
struct_size       148 drivers/clk/samsung/clk-exynos-audss.c 				struct_size(clk_data, hws,
struct_size        62 drivers/clk/samsung/clk-exynos-clkout.c 	clkout = kzalloc(struct_size(clkout, data.hws, EXYNOS_CLKOUT_NR_CLKS),
struct_size      5567 drivers/clk/samsung/clk-exynos5433.c 			    struct_size(data, ctx.clk_data.hws, info->nr_clk_ids),
struct_size       247 drivers/clk/samsung/clk-s3c2410-dclk.c 				    struct_size(s3c24xx_dclk, clk_data.hws,
struct_size        81 drivers/clk/samsung/clk-s5pv210-audss.c 				struct_size(clk_data, hws, AUDSS_MAX_CLKS),
struct_size       716 drivers/clk/zynqmp/clkc.c 	zynqmp_data = kzalloc(struct_size(zynqmp_data, hws, clock_max_idx),
struct_size       325 drivers/cpufreq/e_powersaver.c 	centaur = kzalloc(struct_size(centaur, freq_table, states + 1),
struct_size       720 drivers/crypto/qat/qat_common/qat_algs.c 	size_t sz_out, sz = struct_size(bufl, bufers, n + 1);
struct_size       757 drivers/crypto/qat/qat_common/qat_algs.c 		sz_out = struct_size(buflout, bufers, n + 1);
struct_size      1500 drivers/dma/bcm-sba-raid.c 				   struct_size(req, cmds, sba->max_cmd_per_req),
struct_size       319 drivers/dma/bcm2835-dma.c 	d = kzalloc(struct_size(d, cb_list, frames), gfp);
struct_size       471 drivers/dma/dma-axi-dmac.c 	desc = kzalloc(struct_size(desc, sg, num_sgs), GFP_NOWAIT);
struct_size       853 drivers/dma/dma-jz4780.c 	jzdma = devm_kzalloc(dev, struct_size(jzdma, chan,
struct_size       420 drivers/dma/fsl-edma-common.c 	fsl_desc = kzalloc(struct_size(fsl_desc, tcd, sg_len), GFP_NOWAIT);
struct_size       289 drivers/dma/ioat/dca.c 				 struct_size(ioatdca, req_slots, slots));
struct_size       312 drivers/dma/moxart-dma.c 	d = kzalloc(struct_size(d, sg, sg_len), GFP_ATOMIC);
struct_size      1306 drivers/dma/nbpfaxi.c 	nbpf = devm_kzalloc(dev, struct_size(nbpf, chan, num_channels),
struct_size       630 drivers/dma/qcom/bam_dma.c 	async_desc = kzalloc(struct_size(async_desc, desc, num_alloc),
struct_size       556 drivers/dma/sa11x0-dma.c 	txd = kzalloc(struct_size(txd, sg, j), GFP_ATOMIC);
struct_size       626 drivers/dma/sa11x0-dma.c 	txd = kzalloc(struct_size(txd, sg, sglen), GFP_ATOMIC);
struct_size       269 drivers/dma/sh/usb-dmac.c 	desc = kzalloc(struct_size(desc, sg, sg_len), gfp);
struct_size      1094 drivers/dma/sprd-dma.c 			    struct_size(sdev, channels, chn_count),
struct_size       242 drivers/dma/st_fdma.c 	fdesc = kzalloc(struct_size(fdesc, node, sg_len), GFP_NOWAIT);
struct_size       850 drivers/dma/stm32-dma.c 	desc = kzalloc(struct_size(desc, sg_req, sg_len), GFP_NOWAIT);
struct_size       951 drivers/dma/stm32-dma.c 	desc = kzalloc(struct_size(desc, sg_req, num_periods), GFP_NOWAIT);
struct_size       986 drivers/dma/stm32-dma.c 	desc = kzalloc(struct_size(desc, sg_req, num_sgs), GFP_NOWAIT);
struct_size      1392 drivers/dma/tegra20-apb-dma.c 			    struct_size(tdma, channels, cdata->nr_channels),
struct_size       830 drivers/dma/tegra210-adma.c 			    struct_size(tdma, channels, cdata->nr_channels),
struct_size      1088 drivers/dma/ti/edma.c 	edesc = kzalloc(struct_size(edesc, pset, sg_len), GFP_ATOMIC);
struct_size      1205 drivers/dma/ti/edma.c 	edesc = kzalloc(struct_size(edesc, pset, nslots), GFP_ATOMIC);
struct_size      1333 drivers/dma/ti/edma.c 	edesc = kzalloc(struct_size(edesc, pset, nslots), GFP_ATOMIC);
struct_size       931 drivers/dma/ti/omap-dma.c 	d = kzalloc(struct_size(d, sg, sglen), GFP_ATOMIC);
struct_size       638 drivers/dma/timb_dma.c 	td  = kzalloc(struct_size(td, channels, pdata->nr_channels),
struct_size       396 drivers/dma/uniphier-mdmac.c 	mdev = devm_kzalloc(dev, struct_size(mdev, channels, nr_chans),
struct_size       103 drivers/firewire/core-topology.c 	node = kzalloc(struct_size(node, ports, port_count), GFP_ATOMIC);
struct_size       367 drivers/gpio/gpio-uniphier.c 	priv = devm_kzalloc(dev, struct_size(priv, saved_vals, nregs),
struct_size      4780 drivers/gpio/gpiolib.c 	descs = kzalloc(struct_size(descs, desc, count), GFP_KERNEL);
struct_size      4804 drivers/gpio/gpiolib.c 			array = kzalloc(struct_size(descs, desc, count) +
struct_size      4805 drivers/gpio/gpiolib.c 					struct_size(array_info, invert_mask,
struct_size      4813 drivers/gpio/gpiolib.c 			       struct_size(descs, desc, descs->ndescs + 1));
struct_size        35 drivers/gpu/drm/amd/display/dc/basics/vector.c 	uint32_t struct_size)
struct_size        39 drivers/gpu/drm/amd/display/dc/basics/vector.c 	if (!struct_size || !capacity) {
struct_size        45 drivers/gpu/drm/amd/display/dc/basics/vector.c 	vector->container = kcalloc(capacity, struct_size, GFP_KERNEL);
struct_size        49 drivers/gpu/drm/amd/display/dc/basics/vector.c 	vector->struct_size = struct_size;
struct_size        60 drivers/gpu/drm/amd/display/dc/basics/vector.c 	uint32_t struct_size)
struct_size        66 drivers/gpu/drm/amd/display/dc/basics/vector.c 	if (!struct_size || !count) {
struct_size        72 drivers/gpu/drm/amd/display/dc/basics/vector.c 	vector->container = kcalloc(count, struct_size, GFP_KERNEL);
struct_size        83 drivers/gpu/drm/amd/display/dc/basics/vector.c 				vector->container + i * struct_size,
struct_size        85 drivers/gpu/drm/amd/display/dc/basics/vector.c 				struct_size);
struct_size        89 drivers/gpu/drm/amd/display/dc/basics/vector.c 	vector->struct_size = struct_size;
struct_size        98 drivers/gpu/drm/amd/display/dc/basics/vector.c 	uint32_t struct_size)
struct_size       106 drivers/gpu/drm/amd/display/dc/basics/vector.c 		vector, ctx, size, initial_value, struct_size))
struct_size       117 drivers/gpu/drm/amd/display/dc/basics/vector.c 	uint32_t struct_size)
struct_size       124 drivers/gpu/drm/amd/display/dc/basics/vector.c 	if (dal_vector_construct(vector, ctx, capacity, struct_size))
struct_size       162 drivers/gpu/drm/amd/display/dc/basics/vector.c 	return vector->container + (index * vector->struct_size);
struct_size       174 drivers/gpu/drm/amd/display/dc/basics/vector.c 			vector->container + (index * vector->struct_size),
struct_size       175 drivers/gpu/drm/amd/display/dc/basics/vector.c 			vector->container + ((index + 1) * vector->struct_size),
struct_size       176 drivers/gpu/drm/amd/display/dc/basics/vector.c 			(vector->count - index - 1) * vector->struct_size);
struct_size       196 drivers/gpu/drm/amd/display/dc/basics/vector.c 		vector->struct_size);
struct_size       219 drivers/gpu/drm/amd/display/dc/basics/vector.c 	insert_address = vector->container + (vector->struct_size * position);
struct_size       223 drivers/gpu/drm/amd/display/dc/basics/vector.c 			insert_address + vector->struct_size,
struct_size       225 drivers/gpu/drm/amd/display/dc/basics/vector.c 			vector->struct_size * (vector->count - position));
struct_size       230 drivers/gpu/drm/amd/display/dc/basics/vector.c 		vector->struct_size);
struct_size       259 drivers/gpu/drm/amd/display/dc/basics/vector.c 			vector->struct_size);
struct_size       268 drivers/gpu/drm/amd/display/dc/basics/vector.c 			vector->struct_size);
struct_size       277 drivers/gpu/drm/amd/display/dc/basics/vector.c 			vec_cloned->struct_size * vec_cloned->capacity);
struct_size       295 drivers/gpu/drm/amd/display/dc/basics/vector.c 				 capacity * vector->struct_size, GFP_KERNEL);
struct_size        31 drivers/gpu/drm/amd/display/include/vector.h 	uint32_t struct_size;
struct_size        41 drivers/gpu/drm/amd/display/include/vector.h 	uint32_t struct_size);
struct_size        46 drivers/gpu/drm/amd/display/include/vector.h 	uint32_t struct_size);
struct_size        54 drivers/gpu/drm/amd/display/include/vector.h 	uint32_t struct_size);
struct_size       140 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c 	table_clk_vlt = kzalloc(struct_size(table_clk_vlt, entries, 7),
struct_size       277 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c 	table_clk_vlt = kzalloc(struct_size(table_clk_vlt, entries, 7),
struct_size       289 drivers/gpu/drm/i915/gem/i915_gem_context.c 	e = kzalloc(struct_size(e, engines, I915_NUM_ENGINES), GFP_KERNEL);
struct_size      1578 drivers/gpu/drm/i915/gem/i915_gem_context.c 	set.engines = kmalloc(struct_size(set.engines, engines, num_engines),
struct_size      1651 drivers/gpu/drm/i915/gem/i915_gem_context.c 	copy = kmalloc(struct_size(e, engines, e->num_engines), GFP_KERNEL);
struct_size      1859 drivers/gpu/drm/i915/gem/i915_gem_context.c 	clone = kmalloc(struct_size(e, engines, e->num_engines), GFP_KERNEL);
struct_size      3721 drivers/gpu/drm/i915/gt/intel_lrc.c 	ve = kzalloc(struct_size(ve, siblings, count), GFP_KERNEL);
struct_size      1351 drivers/gpu/drm/i915/gvt/kvmgt.c 			sparse = kzalloc(struct_size(sparse, areas, nr_areas),
struct_size      1418 drivers/gpu/drm/i915/gvt/kvmgt.c 					struct_size(sparse, areas,
struct_size        33 drivers/gpu/drm/msm/msm_gem_submit.c 	uint64_t sz = struct_size(submit, bos, nr_bos) +
struct_size       113 drivers/gpu/drm/nouveau/nvif/mmu.c 		size_t argc = struct_size(kind, data, mmu->kind_nr);
struct_size       147 drivers/gpu/drm/nouveau/nvkm/core/ramht.c 	if (!(ramht = *pramht = vzalloc(struct_size(ramht, data, (size >> 3)))))
struct_size       782 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c 			dom = kzalloc(struct_size(dom, signal, sdom->signal_nr),
struct_size        54 drivers/gpu/drm/qxl/qxl_display.c 				struct_size(qdev->client_monitors_config,
struct_size      1838 drivers/gpu/drm/rockchip/rockchip_drm_vop.c 	vop = devm_kzalloc(dev, struct_size(vop, win, vop_data->win_size),
struct_size       141 drivers/gpu/drm/sun4i/sun8i_tcon_top.c 	clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, CLK_NUM),
struct_size      1432 drivers/gpu/drm/ttm/ttm_bo.c 		       unsigned struct_size)
struct_size      1437 drivers/gpu/drm/ttm/ttm_bo.c 	size += ttm_round_pot(struct_size);
struct_size      1446 drivers/gpu/drm/ttm/ttm_bo.c 			   unsigned struct_size)
struct_size      1451 drivers/gpu/drm/ttm/ttm_bo.c 	size += ttm_round_pot(struct_size);
struct_size       126 drivers/gpu/drm/vc4/vc4_perfmon.c 	perfmon = kzalloc(struct_size(perfmon, counters, req->ncounters),
struct_size       433 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c 	static size_t struct_size, user_struct_size;
struct_size       437 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c 	if (unlikely(struct_size == 0)) {
struct_size       440 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c 		struct_size = backend_size +
struct_size       451 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c 	return ((user) ? user_struct_size : struct_size) +
struct_size        96 drivers/greybus/module.c 	module = kzalloc(struct_size(module, interfaces, num_interfaces),
struct_size       127 drivers/hwspinlock/omap_hwspinlock.c 	bank = kzalloc(struct_size(bank, lock, num_locks), GFP_KERNEL);
struct_size        65 drivers/hwspinlock/sirf_hwspinlock.c 			      struct_size(hwspin, bank.lock,
struct_size       114 drivers/hwspinlock/u8500_hsem.c 	bank = kzalloc(struct_size(bank, lock, num_locks), GFP_KERNEL);
struct_size       163 drivers/hwtracing/stm/core.c 	master = kzalloc(struct_size(master, chan_map,
struct_size      1427 drivers/i2c/busses/i2c-i801.c 			      struct_size(lookup, table, mux_config->n_gpios),
struct_size       247 drivers/i2c/i2c-mux.c 	muxc = devm_kzalloc(dev, struct_size(muxc, adapter, max_adapters)
struct_size       221 drivers/i2c/muxes/i2c-demux-pinctrl.c 	priv = devm_kzalloc(&pdev->dev, struct_size(priv, chan, num_chan),
struct_size        96 drivers/i2c/muxes/i2c-mux-pinctrl.c 			     struct_size(mux, states, num_names),
struct_size       910 drivers/i3c/master.c 					struct_size(defslvs, slaves,
struct_size       362 drivers/i3c/master/dw-i3c-master.c 	xfer = kzalloc(struct_size(xfer, cmds, ncmds), GFP_KERNEL);
struct_size       504 drivers/i3c/master/i3c-master-cdns.c 	xfer = kzalloc(struct_size(xfer, cmds, ncmds), GFP_KERNEL);
struct_size      1417 drivers/infiniband/core/cache.c 	pkey_cache = kmalloc(struct_size(pkey_cache, table,
struct_size      4048 drivers/infiniband/core/cm.c 	work = kmalloc(struct_size(work, path, paths), GFP_KERNEL);
struct_size      4334 drivers/infiniband/core/cm.c 	cm_dev = kzalloc(struct_size(cm_dev, port, ib_device->phys_port_cnt),
struct_size       753 drivers/infiniband/core/device.c 	pdata_rcu = kzalloc(struct_size(pdata_rcu, pdata,
struct_size       825 drivers/infiniband/core/multicast.c 	dev = kmalloc(struct_size(dev, port, device->phys_port_cnt),
struct_size      2337 drivers/infiniband/core/sa_query.c 	sa_dev = kzalloc(struct_size(sa_dev, port, e - s + 1), GFP_KERNEL);
struct_size       963 drivers/infiniband/core/ucma.c 	if (copy_to_user(response, resp, struct_size(resp, path_data, i)))
struct_size      1364 drivers/infiniband/core/user_mad.c 	umad_dev = kzalloc(struct_size(umad_dev, ports, e - s + 1), GFP_KERNEL);
struct_size      3254 drivers/infiniband/core/uverbs_cmd.c 	flow_attr = kzalloc(struct_size(flow_attr, flows,
struct_size       119 drivers/infiniband/core/uverbs_ioctl.c 		buf = kvmalloc(struct_size(buf, data, size), flags);
struct_size       637 drivers/infiniband/core/uverbs_ioctl.c 	    hdr.length != struct_size(&hdr, attrs, hdr.num_attrs))
struct_size      2746 drivers/infiniband/hw/hfi1/mad.c 	response_data_size = struct_size(rsp, vls, num_vls);
struct_size      3012 drivers/infiniband/hw/hfi1/mad.c 	response_data_size = struct_size(req, port[0].vls, num_vls);
struct_size      3228 drivers/infiniband/hw/hfi1/mad.c 	response_data_size = struct_size(req, port[0].vls, num_vls);
struct_size      1733 drivers/infiniband/hw/mlx5/devx.c 	async_data = kvzalloc(struct_size(async_data, hdr.out_data,
struct_size      1754 drivers/infiniband/hw/mlx5/odp.c 	work = kvzalloc(struct_size(work, sg_list, num_sge), GFP_KERNEL);
struct_size       370 drivers/infiniband/hw/mthca/mthca_memfree.c 	table = kmalloc(struct_size(table, icm, num_icm), GFP_KERNEL);
struct_size       533 drivers/infiniband/hw/mthca/mthca_memfree.c 	db_tab = kmalloc(struct_size(db_tab, page, npages), GFP_KERNEL);
struct_size       911 drivers/infiniband/hw/qib/qib_user_sdma.c 			pktsize = struct_size(pkt, addr, n);
struct_size       157 drivers/infiniband/hw/usnic/usnic_uiom.c 			chunk = kmalloc(struct_size(chunk, page_list,
struct_size       288 drivers/infiniband/sw/rdmavt/mr.c 	mr = kzalloc(struct_size(mr, mr.map, m), GFP_KERNEL);
struct_size       734 drivers/infiniband/sw/rdmavt/mr.c 	fmr = kzalloc(struct_size(fmr, mr.map, m), GFP_KERNEL);
struct_size      1112 drivers/infiniband/sw/rdmavt/qp.c 		sz = struct_size(swq, sg_list, init_attr->cap.max_send_sge);
struct_size       448 drivers/infiniband/ulp/srp/ib_srp.c 	pool = kzalloc(struct_size(pool, desc, pool_size), GFP_KERNEL);
struct_size      3117 drivers/infiniband/ulp/srpt/ib_srpt.c 	sdev = kzalloc(struct_size(sdev, port, device->phys_port_cnt),
struct_size       477 drivers/input/evdev.c 	client = kvzalloc(struct_size(client, buffer, bufsize), GFP_KERNEL);
struct_size        98 drivers/input/input-leds.c 	leds = kzalloc(struct_size(leds, leds, num_leds), GFP_KERNEL);
struct_size        49 drivers/input/input-mt.c 	mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL);
struct_size      1497 drivers/input/keyboard/applespi.c 		tp_len = struct_size(tp, fingers, tp->number_of_fingers);
struct_size       344 drivers/input/keyboard/cap11xx.c 			    struct_size(priv, keycodes, cap->num_channels),
struct_size       780 drivers/input/keyboard/gpio_keys.c 	ddata = devm_kzalloc(dev, struct_size(ddata, data, pdata->nbuttons),
struct_size       251 drivers/input/keyboard/gpio_keys_polled.c 	bdev = devm_kzalloc(dev, struct_size(bdev, data, pdata->nbuttons),
struct_size       112 drivers/input/keyboard/mcs_touchkey.c 	data = kzalloc(struct_size(data, keycodes, pdata->key_maxval + 1),
struct_size       219 drivers/input/keyboard/tca6416-keypad.c 	chip = kzalloc(struct_size(chip, buttons, pdata->nbuttons), GFP_KERNEL);
struct_size       600 drivers/input/rmi4/rmi_driver.c 		rdesc->struct_size = buf[1] | (buf[2] << 8);
struct_size       602 drivers/input/rmi4/rmi_driver.c 		rdesc->struct_size = buf[0];
struct_size       628 drivers/input/rmi4/rmi_driver.c 	struct_buf = kzalloc(rdesc->struct_size, GFP_KERNEL);
struct_size       638 drivers/input/rmi4/rmi_driver.c 	ret = rmi_read_block(d, addr, struct_buf, rdesc->struct_size);
struct_size        66 drivers/input/rmi4/rmi_driver.h 	unsigned long struct_size;
struct_size       109 drivers/interconnect/core.c 	path = kzalloc(struct_size(path, reqs, num_nodes), GFP_KERNEL);
struct_size       436 drivers/interconnect/qcom/qcs404.c 	data = devm_kzalloc(dev, struct_size(data, nodes, num_nodes),
struct_size       793 drivers/interconnect/qcom/sdm845.c 	data = devm_kzalloc(&pdev->dev, struct_size(data, nodes, num_nodes),
struct_size       144 drivers/iommu/dmar.c 	size = struct_size(info, path, level);
struct_size       809 drivers/iommu/qcom_iommu.c 	qcom_iommu = devm_kzalloc(dev, struct_size(qcom_iommu, ctxs, max_asid),
struct_size       241 drivers/irqchip/qcom-irq-combiner.c 	combiner = devm_kzalloc(&pdev->dev, struct_size(combiner, regs, nregs),
struct_size       251 drivers/isdn/hardware/mISDN/hfcsusb.c 	phi = kzalloc(struct_size(phi, bch, dch->dev.nrbchan), GFP_ATOMIC);
struct_size       229 drivers/leds/leds-cr0014114.c 	priv = devm_kzalloc(&spi->dev, struct_size(priv, leds, count),
struct_size       447 drivers/leds/leds-is31fl32xx.c 	priv = devm_kzalloc(dev, struct_size(priv, leds, count),
struct_size       690 drivers/leds/leds-lm3532.c 	drvdata = devm_kzalloc(&client->dev, struct_size(drvdata, leds, count),
struct_size       315 drivers/leds/leds-lm3697.c 	led = devm_kzalloc(&client->dev, struct_size(led, leds, count),
struct_size       171 drivers/leds/leds-pwm.c 	priv = devm_kzalloc(&pdev->dev, struct_size(priv, leds, count),
struct_size      2582 drivers/md/dm-crypt.c 	cc = kzalloc(struct_size(cc, key, key_size), GFP_KERNEL);
struct_size       702 drivers/md/dm-log-writes.c 		alloc_size = struct_size(block, vecs, bio_segments(bio));
struct_size       742 drivers/md/dm-raid.c 	rs = kzalloc(struct_size(rs, dev, raid_devs), GFP_KERNEL);
struct_size       882 drivers/md/dm-raid1.c 		kzalloc(struct_size(ms, mirror, nr_mirrors), GFP_KERNEL);
struct_size       265 drivers/md/dm-stats.c 	shared_alloc_size = struct_size(s, stat_shared, n_entries);
struct_size        64 drivers/md/dm-switch.c 	sctx = kzalloc(struct_size(sctx, path_list, nr_paths), GFP_KERNEL);
struct_size        92 drivers/md/md-linear.c 	conf = kzalloc(struct_size(conf, disks, raid_disks), GFP_KERNEL);
struct_size      4775 drivers/md/raid10.c 	r10b = kmalloc(struct_size(r10b, devs, conf->copies), GFP_NOIO);
struct_size       275 drivers/media/platform/sti/delta/delta-mjpeg-dec.c 	params->display_buffer_addr.struct_size =
struct_size        37 drivers/media/platform/sti/delta/delta-mjpeg-fw.h 	u32 struct_size;
struct_size       218 drivers/media/v4l2-core/v4l2-event.c 	sev = kvzalloc(struct_size(sev, events, elems), GFP_KERNEL);
struct_size       332 drivers/memory/atmel-ebi.c 	ebid = devm_kzalloc(ebi->dev, struct_size(ebid, configs, numcs),
struct_size       560 drivers/mfd/qcom-pm8xxx.c 			    struct_size(chip, config, data->num_irqs),
struct_size      1143 drivers/mfd/sm501.c 	lookup = devm_kzalloc(&pdev->dev, struct_size(lookup, table, 3),
struct_size       230 drivers/misc/cb710/core.c 	chip = devm_kzalloc(&pdev->dev, struct_size(chip, slot, n),
struct_size       651 drivers/misc/eeprom/at24.c 	at24 = devm_kzalloc(dev, struct_size(at24, client, num_addresses),
struct_size       117 drivers/misc/enclosure.c 		kzalloc(struct_size(edev, component, components), GFP_KERNEL);
struct_size       178 drivers/misc/vexpress-syscfg.c 	func = kzalloc(struct_size(func, template, num), GFP_KERNEL);
struct_size       366 drivers/mmc/host/sdhci-cadence.c 				struct_size(priv, phy_params, nr_phy_params));
struct_size       759 drivers/mtd/chips/cfi_cmdset_0001.c 		newcfi = kmalloc(struct_size(newcfi, chips, numvirtchips),
struct_size       138 drivers/mtd/chips/gen_probe.c 	retcfi = kmalloc(struct_size(retcfi, chips, cfi.numchips), GFP_KERNEL);
struct_size       170 drivers/mtd/lpddr/qinfo_probe.c 	retlpddr = kzalloc(struct_size(retlpddr, chips, numvirtchips),
struct_size      1573 drivers/mtd/nand/raw/atmel/nand-controller.c 	nand = devm_kzalloc(nc->dev, struct_size(nand, cs, numcs), GFP_KERNEL);
struct_size        85 drivers/mtd/nand/raw/denali_dt.c 	dchip = devm_kzalloc(denali->dev, struct_size(dchip, sels, nsels),
struct_size       113 drivers/mtd/nand/raw/denali_dt.c 	dchip = devm_kzalloc(denali->dev, struct_size(dchip, sels, nsels),
struct_size        96 drivers/mtd/nand/raw/denali_pci.c 	dchip = devm_kzalloc(denali->dev, struct_size(dchip, sels, nsels),
struct_size       442 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c 	nfc = devm_kzalloc(dev, struct_size(nfc, cs, num_banks), GFP_KERNEL);
struct_size      2545 drivers/mtd/nand/raw/marvell_nand.c 				    struct_size(marvell_nand, sels, nsels),
struct_size      1242 drivers/mtd/nand/raw/meson_nand.c 	meson_chip = devm_kzalloc(dev, struct_size(meson_chip, sels, nsels),
struct_size      1946 drivers/mtd/nand/raw/sunxi_nand.c 	sunxi_nand = devm_kzalloc(dev, struct_size(sunxi_nand, sels, nsels),
struct_size       863 drivers/mtd/spi-nor/aspeed-smc.c 				  struct_size(controller, chips, info->nce),
struct_size       751 drivers/net/can/peak_canfd/peak_pciefd_main.c 	pciefd = devm_kzalloc(&pdev->dev, struct_size(pciefd, can, can_count),
struct_size       646 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c 	netdev = alloc_candev(struct_size(priv, tx_contexts, dev->max_tx_urbs),
struct_size      1655 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c 	fl = kzalloc(struct_size(fl, filters, tlv->n_mac_vlan_filters),
struct_size       448 drivers/net/ethernet/chelsio/cxgb3/l2t.c 	d = kvzalloc(struct_size(d, l2tab, l2t_capacity), GFP_KERNEL);
struct_size       292 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c 	ctbl = kvzalloc(struct_size(ctbl, hash_list, clipt_size), GFP_KERNEL);
struct_size       447 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 	t = kvzalloc(struct_size(t, table, max_tids), GFP_KERNEL);
struct_size       649 drivers/net/ethernet/chelsio/cxgb4/l2t.c 	d = kvzalloc(struct_size(d, l2tab, l2t_size), GFP_KERNEL);
struct_size       480 drivers/net/ethernet/chelsio/cxgb4/sched.c 	s = kvzalloc(struct_size(s, tab, sched_size), GFP_KERNEL);
struct_size        50 drivers/net/ethernet/chelsio/cxgb4/smt.c 	s = kvzalloc(struct_size(s, smtab, smt_size), GFP_KERNEL);
struct_size       227 drivers/net/ethernet/dec/tulip/eeprom.c 		mtable = kmalloc(struct_size(mtable, mleaf, count), GFP_KERNEL);
struct_size        83 drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c 				  struct_size(ppe_common, ppe_cb, ppe_num),
struct_size       788 drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c 			     struct_size(rcb_common, ring_pair_cb, ring_num),
struct_size      1611 drivers/net/ethernet/intel/fm10k/fm10k_main.c 	q_vector = kzalloc(struct_size(q_vector, ring, ring_count), GFP_KERNEL);
struct_size       582 drivers/net/ethernet/intel/i40e/i40e_client.c 	ldev->qvlist_info = kzalloc(struct_size(ldev->qvlist_info, qv_info,
struct_size       464 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 	vf->qvlist_info = kzalloc(struct_size(vf->qvlist_info, qv_info,
struct_size      1862 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 	len = struct_size(vfres, vsi_res, num_vsis);
struct_size       472 drivers/net/ethernet/intel/iavf/iavf_client.c 	msg_size = struct_size(v_qvlist_info, qv_info,
struct_size       255 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 	len = struct_size(vqci, qpair, pairs);
struct_size       368 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 	len = struct_size(vimi, vecmap, adapter->num_msix_vectors);
struct_size       460 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 	len = struct_size(veal, list, count);
struct_size       466 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 		len = struct_size(veal, list, count);
struct_size       530 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 	len = struct_size(veal, list, count);
struct_size       536 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 		len = struct_size(veal, list, count);
struct_size       983 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 	len = struct_size(vti, list, adapter->num_tc - 1);
struct_size       669 drivers/net/ethernet/intel/ice/ice_sched.c 	buf_size = struct_size(buf, generic, num_nodes - 1);
struct_size      1202 drivers/net/ethernet/intel/igb/igb_main.c 	size = struct_size(q_vector, ring, ring_count);
struct_size      3523 drivers/net/ethernet/intel/igc/igc_main.c 		q_vector = kzalloc(struct_size(q_vector, ring, ring_count),
struct_size      3526 drivers/net/ethernet/intel/igc/igc_main.c 		memset(q_vector, 0, struct_size(q_vector, ring, ring_count));
struct_size       856 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c 	q_vector = kzalloc_node(struct_size(q_vector, ring, ring_count),
struct_size       859 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c 		q_vector = kzalloc(struct_size(q_vector, ring, ring_count),
struct_size       423 drivers/net/ethernet/mellanox/mlx5/core/debugfs.c 	d = kzalloc(struct_size(d, fields, nfile), GFP_KERNEL);
struct_size      1194 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 	handle = kzalloc(struct_size(handle, rule, num_rules), GFP_KERNEL);
struct_size       242 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c 	key_info = kzalloc(struct_size(key_info, blocks, mlxsw_afk->max_blocks),
struct_size       254 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c 	bf = kzalloc(struct_size(bf, refcnt, bf_bank_size * num_erp_banks),
struct_size       270 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c 	mc_record = kzalloc(struct_size(mc_record, entries, num_max_entries),
struct_size      3888 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	nh_grp = kzalloc(struct_size(nh_grp, nexthops, nhs), GFP_KERNEL);
struct_size      5139 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	nh_grp = kzalloc(struct_size(nh_grp, nexthops, fib6_entry->nrt6),
struct_size        49 drivers/net/ethernet/netronome/nfp/flower/cmsg.c 	skb = nfp_flower_cmsg_alloc(app, struct_size(msg, ports, num_ports),
struct_size       219 drivers/net/ethernet/netronome/nfp/flower/cmsg.c 	if (msg_len < struct_size(msg, flow, flow_cnt)) {
struct_size       221 drivers/net/ethernet/netronome/nfp/flower/cmsg.c 				     msg_len, struct_size(msg, flow, flow_cnt));
struct_size       185 drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c 	if (pay_len != struct_size(payload, tun_info, count)) {
struct_size       565 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 	desc_sz = struct_size(desc, descs, nseg);
struct_size      1080 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c 	bufsz = struct_size(buf, data, round_up(len, NSP_SFF_EEPROM_BLOCK_LEN));
struct_size       275 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c 	table = kzalloc(struct_size(table, ports, cnt), GFP_KERNEL);
struct_size      1333 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	rule = kzalloc(struct_size(rule, action.entries, 1), GFP_KERNEL);
struct_size      1460 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	rule = kzalloc(struct_size(rule, action.entries, 1), GFP_KERNEL);
struct_size      2315 drivers/net/ethernet/toshiba/spider_net.c 	netdev = alloc_etherdev(struct_size(card, darray,
struct_size       351 drivers/net/usb/cdc-phonet.c 	dev = alloc_netdev(struct_size(pnd, urbs, rxq_size), ifname,
struct_size       601 drivers/net/wan/wanxl.c 	card = kzalloc(struct_size(card, ports, ports), GFP_KERNEL);
struct_size      1263 drivers/net/wimax/i2400m/rx.c 	pl_itr = struct_size(msg_hdr, pld, num_pls);
struct_size       643 drivers/net/wimax/i2400m/tx.c 	hdr_size = struct_size(tx_msg, pld, le16_to_cpu(tx_msg->num_pls));
struct_size      1523 drivers/net/wireless/ath/ath10k/ce.c 	src_ring = kzalloc(struct_size(src_ring, per_transfer_context,
struct_size      1581 drivers/net/wireless/ath/ath10k/ce.c 	src_ring = kzalloc(struct_size(src_ring, per_transfer_context,
struct_size      1637 drivers/net/wireless/ath/ath10k/ce.c 	dest_ring = kzalloc(struct_size(dest_ring, per_transfer_context,
struct_size      1681 drivers/net/wireless/ath/ath10k/ce.c 	dest_ring = kzalloc(struct_size(dest_ring, per_transfer_context,
struct_size      1195 drivers/net/wireless/ath/ath10k/coredump.c 		dump_tlv->tlv_len = cpu_to_le32(struct_size(ce_hdr, entries,
struct_size      2609 drivers/net/wireless/ath/ath10k/htt_rx.c 			rx, struct_size(rx, mpdu_ranges, num_mpdu_ranges));
struct_size      1135 drivers/net/wireless/ath/ath6kl/debug.c 	if (struct_size(tbl, info, num_entries) > len)
struct_size      1302 drivers/net/wireless/ath/ath6kl/wmi.c 	if (struct_size(ev, neighbor, ev->num_neighbors) > len) {
struct_size       717 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c 	fwreq = kzalloc(struct_size(fwreq, items, n_fwnames), GFP_KERNEL);
struct_size      1012 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 	cmd.len[0] = struct_size(pattern_cmd, patterns, wowlan->n_patterns);
struct_size       856 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c 	data = kzalloc(struct_size(data, channels, IWL_NUM_CHANNELS),
struct_size       974 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c 		data = kzalloc(struct_size(data, channels,
struct_size       978 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c 		data = kzalloc(struct_size(data, channels,
struct_size       982 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c 		data = kzalloc(struct_size(data, channels,
struct_size      1154 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c 	regd = kzalloc(struct_size(regd, reg_rules, num_of_ch), GFP_KERNEL);
struct_size      1225 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c 	copy_rd = kmemdup(regd, struct_size(regd, reg_rules, valid_rules),
struct_size      1479 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c 	nvm = kzalloc(struct_size(nvm, channels, IWL_NUM_CHANNELS), GFP_KERNEL);
struct_size       401 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 	cmd.len[0] = struct_size(pattern_cmd, patterns, wowlan->n_patterns);
struct_size      1838 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 	net_detect = kzalloc(struct_size(net_detect, matches, n_matches),
struct_size      1849 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 		match = kzalloc(struct_size(match, channels, n_channels),
struct_size       140 drivers/net/wireless/intel/iwlwifi/mvm/fw.c 	size = struct_size(cmd, data, num_queues);
struct_size      3439 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c 			ptk_pn = kzalloc(struct_size(ptk_pn, q,
struct_size      1034 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 	regd = kzalloc(struct_size(regd, reg_rules, num_chan), GFP_KERNEL);
struct_size       239 drivers/net/wireless/mediatek/mt76/agg-rx.c 	tid = kzalloc(struct_size(tid, reorder_buf, size), GFP_KERNEL);
struct_size       206 drivers/net/wireless/quantenna/qtnfmac/commands.c 		       struct_size(s->acl, mac_addrs, s->acl->n_acl_entries);
struct_size       313 drivers/net/wireless/quantenna/qtnfmac/commands.c 		size_t acl_size = struct_size(s->acl, mac_addrs,
struct_size      1016 drivers/net/wireless/quantenna/qtnfmac/commands.c 	mac->rd = kzalloc(struct_size(mac->rd, reg_rules, resp->n_reg_rules),
struct_size      2593 drivers/net/wireless/quantenna/qtnfmac/commands.c 	size_t acl_size = struct_size(params, mac_addrs, params->n_acl_entries);
struct_size      1698 drivers/net/wireless/rndis_wlan.c 	len = struct_size(pmkids, bssid_info, max_pmkids);
struct_size      1731 drivers/net/wireless/rndis_wlan.c 	len = struct_size(pmkids, bssid_info, num_pmkids);
struct_size      1777 drivers/net/wireless/rndis_wlan.c 	pmkids->length = cpu_to_le32(struct_size(pmkids, bssid_info, count));
struct_size      1820 drivers/net/wireless/rndis_wlan.c 	newlen = struct_size(pmkids, bssid_info, count + 1);
struct_size      1634 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (rr->length < struct_size(regs, regs, count)) {
struct_size      1637 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			 rr->length, struct_size(regs, regs, count));
struct_size      1903 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	req_len = struct_size(req, reg_writes, count);
struct_size        36 drivers/ntb/msi.c 	size_t struct_size;
struct_size        46 drivers/ntb/msi.c 	struct_size = sizeof(*ntb->msi) + sizeof(*ntb->msi->peer_mws) * peers;
struct_size        48 drivers/ntb/msi.c 	ntb->msi = devm_kzalloc(&ntb->dev, struct_size, GFP_KERNEL);
struct_size       322 drivers/ntb/test/ntb_msi_test.c 	size_t struct_size;
struct_size       355 drivers/ntb/test/ntb_msi_test.c 	struct_size = sizeof(*nm) + sizeof(*nm->peers) * peers;
struct_size       357 drivers/ntb/test/ntb_msi_test.c 	nm = devm_kzalloc(&ntb->dev, struct_size, GFP_KERNEL);
struct_size       980 drivers/nvdimm/region_devs.c 		nd_region = kzalloc(struct_size(nd_region, mapping,
struct_size      2467 drivers/nvme/host/fc.c 		struct_size((struct nvme_fcp_op_w_sgl *)NULL, priv,
struct_size      3125 drivers/nvme/host/fc.c 		struct_size((struct nvme_fcp_op_w_sgl *)NULL, priv,
struct_size       591 drivers/nvme/target/fc.c 	queue = kzalloc(struct_size(queue, fod, sqsize), GFP_KERNEL);
struct_size       159 drivers/phy/samsung/phy-samsung-usb2.c 	drv = devm_kzalloc(dev, struct_size(drv, instances, cfg->num_phys),
struct_size      1036 drivers/pinctrl/pinctrl-mcp23s08.c 			    struct_size(data, chip, chips), GFP_KERNEL);
struct_size       762 drivers/pinctrl/pinctrl-tb10x.c 	state = devm_kzalloc(dev, struct_size(state, pinfuncs,
struct_size       486 drivers/pinctrl/samsung/pinctrl-s3c64xx.c 	data = devm_kzalloc(dev, struct_size(data, domains, nr_domains),
struct_size      6009 drivers/pinctrl/sirf/pinctrl-atlas7.c 	a7gc = devm_kzalloc(&pdev->dev, struct_size(a7gc, banks, nbank),
struct_size       752 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c 	region = devm_kzalloc(dev, struct_size(region, vals, nregs),
struct_size       110 drivers/platform/chrome/wilco_ec/event.c 	q = kzalloc(struct_size(q, entries, capacity), GFP_KERNEL);
struct_size        84 drivers/platform/x86/i2c-multi-instantiate.c 	multi = devm_kmalloc(dev, struct_size(multi, clients, ret), GFP_KERNEL);
struct_size       937 drivers/regulator/da9062-regulator.c 	regulators = devm_kzalloc(&pdev->dev, struct_size(regulators, regulator,
struct_size       766 drivers/regulator/da9063-regulator.c 	regulators = devm_kzalloc(&pdev->dev, struct_size(regulators,
struct_size       409 drivers/regulator/mc13783-regulator.c 			    struct_size(priv, regulators, num_regulators),
struct_size       547 drivers/regulator/mc13892-regulator.c 			    struct_size(priv, regulators, num_regulators),
struct_size       250 drivers/remoteproc/remoteproc_elf_loader.c 		if (struct_size(table, offset, table->num) > size) {
struct_size       878 drivers/reset/core.c 	resets = kzalloc(struct_size(resets, rstc, num), GFP_KERNEL);
struct_size       916 drivers/rpmsg/qcom_glink_native.c 	const size_t msglen = struct_size(msg, intents, count);
struct_size       313 drivers/rtc/rtc-ac100.c 				      struct_size(chip->clk_data, hws,
struct_size       233 drivers/rtc/rtc-sun6i.c 	clk_data = kzalloc(struct_size(clk_data, hws, 3), GFP_KERNEL);
struct_size       329 drivers/s390/cio/ccwgroup.c 	gdev = kzalloc(struct_size(gdev, cdev, num_devices), GFP_KERNEL);
struct_size      1263 drivers/scsi/megaraid/megaraid_sas_fusion.c 	pd_seq_map_sz = struct_size(pd_sync, seq, MAX_PHYSICAL_DEVICES - 1);
struct_size       853 drivers/scsi/virtio_scsi.c 				struct_size(vscsi, req_vqs, num_queues));
struct_size       118 drivers/soc/actions/owl-sps.c 			   struct_size(sps, domains, sps_info->num_domains),
struct_size       644 drivers/soc/rockchip/pm_domains.c 			   struct_size(pmu, domains, pmu_info->num_domains),
struct_size      2812 drivers/spi/spi.c 			      struct_size(rxfer, inserted_transfers, insert)
struct_size       523 drivers/staging/greybus/power_supply.c 				 struct_size(resp, props, props_count),
struct_size      1192 drivers/staging/media/allegro-dvt/allegro-core.c 	size = struct_size(msg, buffer, num_buffers);
struct_size       523 drivers/staging/ralink-gdma/ralink-gdma.c 	desc = kzalloc(struct_size(desc, sg, sg_len), GFP_ATOMIC);
struct_size       578 drivers/staging/ralink-gdma/ralink-gdma.c 	desc = kzalloc(struct_size(desc, sg, num_periods), GFP_ATOMIC);
struct_size       623 drivers/staging/ralink-gdma/ralink-gdma.c 	desc = kzalloc(struct_size(desc, sg, num_periods), GFP_ATOMIC);
struct_size       815 drivers/staging/ralink-gdma/ralink-gdma.c 			       struct_size(dma_dev, chan, data->chancnt),
struct_size       117 drivers/staging/uwb/drp-ie.c 	drp_ie = kzalloc(struct_size(drp_ie, allocs, UWB_NUM_ZONES),
struct_size       665 drivers/staging/wusbcore/wa-xfer.c 	packet_desc->wLength = cpu_to_le16(struct_size(packet_desc,
struct_size      2463 drivers/staging/wusbcore/wa-xfer.c 	expected_size = struct_size(packet_status, PacketStatus,
struct_size       136 drivers/thermal/qcom/tsens.c 			     struct_size(priv, sensor, num_sensors),
struct_size       572 drivers/tty/serial/8250/8250_exar.c 	priv = devm_kzalloc(&pcidev->dev, struct_size(priv, line, nr_ports), GFP_KERNEL);
struct_size      1265 drivers/tty/serial/max310x.c 	s = devm_kzalloc(dev, struct_size(s, p, devtype->nr), GFP_KERNEL);
struct_size      1191 drivers/tty/serial/sc16is7xx.c 	s = devm_kzalloc(dev, struct_size(s, p, devtype->nr_uart), GFP_KERNEL);
struct_size       776 drivers/usb/core/config.c 		intfc = kzalloc(struct_size(intfc, altsetting, j), GFP_KERNEL);
struct_size        74 drivers/usb/core/urb.c 	urb = kmalloc(struct_size(urb, iso_frame_desc, iso_packets),
struct_size      3805 drivers/usb/dwc2/hcd.c 	urb = kzalloc(struct_size(urb, iso_descs, iso_desc_count), mem_flags);
struct_size      1304 drivers/usb/gadget/function/f_midi.c 	midi = kzalloc(struct_size(midi, in_ports_array, opts->in_ports),
struct_size      1495 drivers/usb/host/xhci.c 	urb_priv = kzalloc(struct_size(urb_priv, td, num_tds), mem_flags);
struct_size      1433 drivers/vhost/vhost.c 	newmem = kvzalloc(struct_size(newmem, regions, mem.nregions),
struct_size       283 drivers/video/fbdev/aty/aty128fb.c 	u8 struct_size;
struct_size       159 drivers/video/fbdev/mmp/core.c 	path = kzalloc(struct_size(path, overlays, info->overlay_num),
struct_size       465 drivers/video/fbdev/mmp/hw/mmp_ctrl.c 			    struct_size(ctrl, path_plats, mi->path_num),
struct_size       143 drivers/xen/privcmd-buf.c 	vma_priv = kzalloc(struct_size(vma_priv, pages, count), GFP_KERNEL);
struct_size       141 drivers/zorro/zorro.c 	bus = kzalloc(struct_size(bus, devices, zorro_num_autocon),
struct_size        40 fs/afs/addr_list.c 	alist = kzalloc(struct_size(alist, addrs, nr), GFP_KERNEL);
struct_size       241 fs/afs/dir.c   	req = kzalloc(struct_size(req, array, nr_inline), GFP_KERNEL);
struct_size       315 fs/afs/file.c  		req = kzalloc(struct_size(req, array, 1), GFP_KERNEL);
struct_size       465 fs/afs/file.c  	req = kzalloc(struct_size(req, array, n), GFP_NOFS);
struct_size      2222 fs/afs/fsclient.c 		acl = kmalloc(struct_size(acl, data, size), GFP_KERNEL);
struct_size        42 fs/afs/server_list.c 	slist = kzalloc(struct_size(slist, servers, nr_servers), GFP_KERNEL);
struct_size        17 fs/afs/vl_list.c 	vlserver = kzalloc(struct_size(vlserver, name, name_len + 1),
struct_size        54 fs/afs/vl_list.c 	vllist = kzalloc(struct_size(vllist, servers, nr_servers), GFP_KERNEL);
struct_size        47 fs/afs/write.c 	req = kzalloc(struct_size(req, array, 1), GFP_KERNEL);
struct_size      2005 fs/afs/yfsclient.c 			acl = kmalloc(struct_size(acl, data, size), GFP_KERNEL);
struct_size      2037 fs/afs/yfsclient.c 			acl = kmalloc(struct_size(acl, data, size), GFP_KERNEL);
struct_size      1235 fs/btrfs/inode.c 	ctx = kvmalloc(struct_size(ctx, chunks, num_chunks), GFP_KERNEL);
struct_size      3361 fs/io_uring.c  	off = struct_size(rings, cqes, cq_entries);
struct_size       136 fs/jffs2/acl.c 	header = kmalloc(struct_size(header, a_entries, acl->a_count),
struct_size      1133 fs/ocfs2/dlm/dlmrecovery.c 				 struct_size(mres, ml, mres->num_locks),
struct_size       407 fs/ocfs2/slot_map.c 	si = kzalloc(struct_size(si, si_slots, osb->max_slots), GFP_KERNEL);
struct_size       992 fs/select.c    		walk = walk->next = kmalloc(struct_size(walk, entries, len),
struct_size       480 include/drm/ttm/ttm_bo_api.h 		       unsigned struct_size);
struct_size       483 include/drm/ttm/ttm_bo_api.h 			   unsigned struct_size);
struct_size       495 ipc/sem.c      	sma = kvzalloc(struct_size(sma, sems, nsems), GFP_KERNEL);
struct_size      1160 kernel/bpf/btf.c 	u32 struct_size = struct_type->size;
struct_size      1181 kernel/bpf/btf.c 	if (struct_size < bytes_offset ||
struct_size      1182 kernel/bpf/btf.c 	    struct_size - bytes_offset < BITS_ROUNDUP_BYTES(nr_copy_bits)) {
struct_size      1198 kernel/bpf/btf.c 	u32 struct_size = struct_type->size;
struct_size      1237 kernel/bpf/btf.c 	if (struct_size < bytes_offset ||
struct_size      1238 kernel/bpf/btf.c 	    struct_size - bytes_offset < BITS_ROUNDUP_BYTES(nr_copy_bits)) {
struct_size      1544 kernel/bpf/btf.c 	u32 struct_size, struct_bits_off, bytes_offset;
struct_size      1546 kernel/bpf/btf.c 	struct_size = struct_type->size;
struct_size      1556 kernel/bpf/btf.c 	if (struct_size - bytes_offset < sizeof(void *)) {
struct_size      1848 kernel/bpf/btf.c 	u32 struct_size, bytes_offset;
struct_size      1860 kernel/bpf/btf.c 	struct_size = struct_type->size;
struct_size      1862 kernel/bpf/btf.c 	if (struct_size - bytes_offset < array_size) {
struct_size      2037 kernel/bpf/btf.c 	u32 struct_size, bytes_offset;
struct_size      2045 kernel/bpf/btf.c 	struct_size = struct_type->size;
struct_size      2047 kernel/bpf/btf.c 	if (struct_size - bytes_offset < member_type->size) {
struct_size      2064 kernel/bpf/btf.c 	u32 struct_size = t->size;
struct_size      2124 kernel/bpf/btf.c 		if (BITS_ROUNDUP_BYTES(offset) > struct_size) {
struct_size      2302 kernel/bpf/btf.c 	u32 struct_size, bytes_offset;
struct_size      2310 kernel/bpf/btf.c 	struct_size = struct_type->size;
struct_size      2312 kernel/bpf/btf.c 	if (struct_size - bytes_offset < member_type->size) {
struct_size      2326 kernel/bpf/btf.c 	u32 struct_bits_off, nr_bits, bytes_end, struct_size;
struct_size      2345 kernel/bpf/btf.c 	struct_size = struct_type->size;
struct_size      2347 kernel/bpf/btf.c 	if (struct_size < bytes_end) {
struct_size      5229 kernel/cgroup/cgroup.c 	cgrp = kzalloc(struct_size(cgrp, ancestor_ids, (level + 1)),
struct_size       260 kernel/gcov/gcc_3_4.c 	dup = kzalloc(struct_size(dup, counts, active), GFP_KERNEL);
struct_size       378 kernel/gcov/gcc_3_4.c 	iter = kzalloc(struct_size(iter, type_info, num_counter_active(info)),
struct_size       224 kernel/irq/devres.c 	gc = devm_kzalloc(dev, struct_size(gc, chip_types, num_ct), GFP_KERNEL);
struct_size      1550 kernel/module.c 	size[0] = ALIGN(struct_size(sect_attrs, attrs, nloaded),
struct_size      1657 kernel/module.c 	notes_attrs = kzalloc(struct_size(notes_attrs, attrs, notes),
struct_size        58 kernel/tracepoint.c 	struct tp_probes *p  = kmalloc(struct_size(p, probes, count),
struct_size      3905 kernel/workqueue.c 	ctx = kzalloc(struct_size(ctx, pwq_tbl, nr_node_ids), GFP_KERNEL);
struct_size       610 lib/objagg.c   	objagg_stats = kzalloc(struct_size(objagg_stats, stats_info,
struct_size      1028 lib/objagg.c   	objagg_stats = kzalloc(struct_size(objagg_stats, stats_info,
struct_size       175 lib/rhashtable.c 	tbl = kvzalloc(struct_size(tbl, buckets, nbuckets), gfp);
struct_size      4150 mm/memcontrol.c 	new = kmalloc(struct_size(new, entries, size), GFP_KERNEL);
struct_size      2128 mm/percpu.c    	base_size = ALIGN(struct_size(ai, groups, nr_groups),
struct_size      2830 mm/swapfile.c  	p = kvzalloc(struct_size(p, avail_lists, nr_node_ids), GFP_KERNEL);
struct_size       170 net/bluetooth/a2mp.c 	len = struct_size(rsp, cl, num_ctrl);
struct_size      3644 net/bluetooth/hci_event.c 	    skb->len < struct_size(ev, handles, ev->num_hndl)) {
struct_size      3732 net/bluetooth/hci_event.c 	    skb->len < struct_size(ev, handles, ev->num_hndl)) {
struct_size       490 net/bluetooth/mgmt.c 	rp = kmalloc(struct_size(rp, entry, count), GFP_ATOMIC);
struct_size       539 net/bluetooth/mgmt.c 				struct_size(rp, entry, count));
struct_size      2304 net/bluetooth/mgmt.c 	expected_len = struct_size(cp, keys, key_count);
struct_size      2610 net/bluetooth/mgmt.c 	rp = kmalloc(struct_size(rp, addr, i), GFP_KERNEL);
struct_size      2631 net/bluetooth/mgmt.c 				struct_size(rp, addr, i));
struct_size      5028 net/bluetooth/mgmt.c 	expected_len = struct_size(cp, irks, irk_count);
struct_size      5110 net/bluetooth/mgmt.c 	expected_len = struct_size(cp, keys, key_count);
struct_size      5844 net/bluetooth/mgmt.c 	expected_len = struct_size(cp, params, param_count);
struct_size      1019 net/bridge/br_multicast.c 		grec_len = struct_size(grec, grec_src, nsrcs);
struct_size        64 net/ceph/mon_client.c 	m = kmalloc(struct_size(m, mon_inst, num_mon), GFP_NOFS);
struct_size      1024 net/ceph/mon_client.c 	monc->monmap = kzalloc(struct_size(monc->monmap, mon_inst, num_mon),
struct_size       590 net/ceph/osd_client.c 		req = kmalloc(struct_size(req, r_ops, num_ops), gfp_flags);
struct_size       498 net/ceph/osdmap.c 		r = kmalloc(struct_size(r, steps, yes), GFP_NOFS);
struct_size       304 net/core/drop_monitor.c 	hw_entries = kzalloc(struct_size(hw_entries, entries, dm_hit_limit),
struct_size        12 net/core/flow_offload.c 	rule = kzalloc(struct_size(rule, action.entries, num_actions),
struct_size       285 net/decnet/dn_fib.c 	fi = kzalloc(struct_size(fi, fib_nh, nhs), GFP_KERNEL);
struct_size       848 net/dsa/dsa2.c 	ds = devm_kzalloc(dev, struct_size(ds, ports, n), GFP_KERNEL);
struct_size      1409 net/ipv4/fib_semantics.c 	fi = kzalloc(struct_size(fi, fib_nh, nhs), GFP_KERNEL);
struct_size       191 net/mpls/mpls_iptunnel.c 	newts = lwtunnel_state_alloc(struct_size(tun_encap_info, label,
struct_size      2811 net/netfilter/ipvs/ip_vs_ctl.c 		size = struct_size(get, entrytable, get->num_services);
struct_size      2852 net/netfilter/ipvs/ip_vs_ctl.c 		size = struct_size(get, entrytable, get->num_dests);
struct_size       298 net/netfilter/xt_hashlimit.c 	hinfo = vmalloc(struct_size(hinfo, hash, size));
struct_size       184 net/netfilter/xt_recent.c 	e = kmalloc(struct_size(e, stamps, nstamps_max), GFP_ATOMIC);
struct_size       386 net/netfilter/xt_recent.c 	t = kvzalloc(struct_size(t, iphash, ip_list_hash_size), GFP_KERNEL);
struct_size       206 net/openvswitch/meter.c 	meter = kzalloc(struct_size(meter, bands, n_bands), GFP_KERNEL);
struct_size       420 net/sched/act_pedit.c 	s = struct_size(opt, keys, p->tcfp_nkeys);
struct_size       833 net/sched/cls_u32.c 	memcpy(&new->sel, s, struct_size(s, keys, s->nkeys));
struct_size      1021 net/sched/cls_u32.c 	sel_size = struct_size(s, keys, s->nkeys);
struct_size      1022 net/sctp/auth.c 		auth_hmacs = kzalloc(struct_size(auth_hmacs, hmac_ids,
struct_size        67 net/sunrpc/xprtrdma/svc_rdma_rw.c 		ctxt = kmalloc(struct_size(ctxt, rw_first_sgl, SG_CHUNK_SIZE),
struct_size       816 net/sunrpc/xprtrdma/verbs.c 	sc = kzalloc(struct_size(sc, sc_sges, ia->ri_max_send_sges),
struct_size      4071 net/wireless/nl80211.c 	acl = kzalloc(struct_size(acl, mac_addrs, n_entries), GFP_KERNEL);
struct_size      7224 net/wireless/nl80211.c 	rd = kzalloc(struct_size(rd, reg_rules, num_rules), GFP_KERNEL);
struct_size       240 net/wireless/pmsr.c 	req = kzalloc(struct_size(req, peers, count), GFP_KERNEL);
struct_size       432 net/wireless/reg.c 	regd = kzalloc(struct_size(regd, reg_rules, src_regd->n_reg_rules),
struct_size       949 net/wireless/reg.c 	regdom = kzalloc(struct_size(regdom, reg_rules, coll->n_rules),
struct_size      1517 net/wireless/reg.c 	rd = kzalloc(struct_size(rd, reg_rules, num_rules), GFP_KERNEL);
struct_size        77 net/xdp/xsk_queue.c 	newq = kvmalloc(struct_size(newq, handles, nentries), GFP_KERNEL);
struct_size        14 scripts/dtc/libfdt/fdt_rw.c 				  int mem_rsv_size, int struct_size)
struct_size        20 scripts/dtc/libfdt/fdt_rw.c 		    (fdt_off_dt_struct(fdt) + struct_size))
struct_size       379 scripts/dtc/libfdt/fdt_rw.c 			    int mem_rsv_size, int struct_size)
struct_size       385 scripts/dtc/libfdt/fdt_rw.c 	strings_off = struct_off + struct_size;
struct_size       390 scripts/dtc/libfdt/fdt_rw.c 	memmove(new + struct_off, old + fdt_off_dt_struct(old), struct_size);
struct_size       392 scripts/dtc/libfdt/fdt_rw.c 	fdt_set_size_dt_struct(new, struct_size);
struct_size       403 scripts/dtc/libfdt/fdt_rw.c 	int mem_rsv_size, struct_size;
struct_size       415 scripts/dtc/libfdt/fdt_rw.c 		struct_size = fdt_size_dt_struct(fdt);
struct_size       417 scripts/dtc/libfdt/fdt_rw.c 		struct_size = 0;
struct_size       418 scripts/dtc/libfdt/fdt_rw.c 		while (fdt_next_tag(fdt, struct_size, &struct_size) != FDT_END)
struct_size       420 scripts/dtc/libfdt/fdt_rw.c 		if (struct_size < 0)
struct_size       421 scripts/dtc/libfdt/fdt_rw.c 			return struct_size;
struct_size       424 scripts/dtc/libfdt/fdt_rw.c 	if (!fdt_blocks_misordered_(fdt, mem_rsv_size, struct_size)) {
struct_size       430 scripts/dtc/libfdt/fdt_rw.c 		fdt_set_size_dt_struct(buf, struct_size);
struct_size       437 scripts/dtc/libfdt/fdt_rw.c 		+ struct_size + fdt_size_dt_strings(fdt);
struct_size       452 scripts/dtc/libfdt/fdt_rw.c 	fdt_packblocks_(fdt, tmp, mem_rsv_size, struct_size);
struct_size        48 security/integrity/ima/ima_api.c 	*entry = kzalloc(struct_size(*entry, template_data,
struct_size       309 security/integrity/ima/ima_template.c 	*entry = kzalloc(struct_size(*entry, template_data,
struct_size       204 sound/core/control.c 	*kctl = kzalloc(struct_size(*kctl, vd, count), GFP_KERNEL);
struct_size       326 sound/core/oss/rate.c 				   struct_size(data, channels,
struct_size       258 sound/core/vmaster.c 	srec = kzalloc(struct_size(srec, slave.vd, slave->count),
struct_size       111 sound/pci/hda/hda_codec.c 	p = kmalloc(struct_size(p, conns, len), GFP_KERNEL);
struct_size      2724 sound/pci/hda/patch_ca0132.c 	return struct_size(p, data, p->count);
struct_size       823 sound/soc/intel/skylake/skl-topology.c 		size = struct_size(params, u.map, uuid_params->num_modules);
struct_size      3225 sound/soc/intel/skylake/skl-topology.c 		size = struct_size(skl->cfg.astate_cfg, astate_table,
struct_size       143 sound/soc/qcom/apq8016_sbc.c 			    struct_size(data, dai_link, num_links),
struct_size       105 sound/soc/qcom/qdsp6/q6core.c 					    struct_size(fwk, svc_api_info,
struct_size       122 sound/soc/qcom/qdsp6/q6core.c 					    struct_size(v, svc_api_info,
struct_size       490 sound/soc/soc-dapm.c 			     struct_size(new_wlist, widgets, n),
struct_size      1139 sound/soc/soc-dapm.c 	*list = kzalloc(struct_size(*list, widgets, size), GFP_KERNEL);
struct_size        27 sound/soc/sof/loader.c 	sdev->info_window = kmemdup(w, struct_size(w, window, w->num_windows),
struct_size       457 sound/soc/sof/topology.c 	scontrol->size = struct_size(scontrol->control_data, chanv,
struct_size       517 sound/soc/sof/topology.c 	scontrol->size = struct_size(scontrol->control_data, chanv,
struct_size       187 virt/kvm/irqchip.c 	new = kzalloc(struct_size(new, map, nr_rt_entries), GFP_KERNEL_ACCOUNT);
struct_size      3981 virt/kvm/kvm_main.c 	new_bus = kmalloc(struct_size(bus, range, bus->dev_count + 1),
struct_size      4027 virt/kvm/kvm_main.c 	new_bus = kmalloc(struct_size(bus, range, bus->dev_count - 1),