Home
last modified time | relevance | path

Searched refs:num_reg (Results 1 – 18 of 18) sorted by relevance

/linux-6.6.21/arch/sparc/kernel/
Dof_device_64.c322 int index, num_reg; in build_device_resources() local
332 preg = of_get_property(op->dev.of_node, bus->addr_prop_name, &num_reg); in build_device_resources()
333 if (!preg || num_reg == 0) in build_device_resources()
337 num_reg /= 4; in build_device_resources()
340 num_reg /= na + ns; in build_device_resources()
343 if (num_reg > PROMREG_MAX) { in build_device_resources()
346 op->dev.of_node, num_reg, PROMREG_MAX); in build_device_resources()
347 num_reg = PROMREG_MAX; in build_device_resources()
351 op->num_resources = num_reg; in build_device_resources()
352 for (index = 0; index < num_reg; index++) { in build_device_resources()
[all …]
Dof_device_32.c252 int index, num_reg; in build_device_resources() local
262 preg = of_get_property(op->dev.of_node, bus->addr_prop_name, &num_reg); in build_device_resources()
263 if (!preg || num_reg == 0) in build_device_resources()
267 num_reg /= 4; in build_device_resources()
270 num_reg /= na + ns; in build_device_resources()
273 op->num_resources = num_reg; in build_device_resources()
274 for (index = 0; index < num_reg; index++) { in build_device_resources()
/linux-6.6.21/arch/powerpc/sysdev/xics/
Dicp-native.c262 int num_reg; in icp_native_init_one_node() local
283 num_reg = of_address_count(np); in icp_native_init_one_node()
284 if (num_servers && (num_servers != num_reg)) { in icp_native_init_one_node()
286 num_reg, num_servers); in icp_native_init_one_node()
290 for (i = 0; i < num_reg; i++) { in icp_native_init_one_node()
/linux-6.6.21/arch/x86/kernel/cpu/mtrr/
Dcleanup.c464 int num_reg; in x86_setup_var_mtrrs() local
485 num_reg = var_state.reg; in x86_setup_var_mtrrs()
492 return num_reg; in x86_setup_var_mtrrs()
499 unsigned int num_reg; member
591 int num_reg; in mtrr_calc_range_state() local
594 num_reg = x86_setup_var_mtrrs(range, nr_range, chunk_size, gran_size); in mtrr_calc_range_state()
604 result[i].num_reg = num_reg; in mtrr_calc_range_state()
619 if (!result[i].bad && (range_sums - range_sums_new < min_loss_pfn[num_reg])) in mtrr_calc_range_state()
620 min_loss_pfn[num_reg] = range_sums - range_sums_new; in mtrr_calc_range_state()
636 result[i].num_reg, result[i].bad ? "-" : "", in mtrr_print_out_one_result()
[all …]
/linux-6.6.21/drivers/mfd/
Dstm32-timers.c52 unsigned int num_reg, unsigned int bursts, in stm32_timers_dma_burst_read() argument
59 size_t len = num_reg * bursts * sizeof(u32); in stm32_timers_dma_burst_read()
72 if (!num_reg || !bursts || reg > STM32_TIMERS_MAX_REGISTERS || in stm32_timers_dma_burst_read()
73 (reg + num_reg * sizeof(u32)) > STM32_TIMERS_MAX_REGISTERS) in stm32_timers_dma_burst_read()
/linux-6.6.21/drivers/of/
Dplatform.c151 int rc, i, num_reg = 0; in of_device_alloc() local
159 num_reg = of_address_count(np); in of_device_alloc()
162 if (num_reg) { in of_device_alloc()
163 res = kcalloc(num_reg, sizeof(*res), GFP_KERNEL); in of_device_alloc()
169 dev->num_resources = num_reg; in of_device_alloc()
171 for (i = 0; i < num_reg; i++, res++) { in of_device_alloc()
/linux-6.6.21/include/linux/mfd/
Dstm32-timers.h131 unsigned int num_reg, unsigned int bursts,
137 unsigned int num_reg, in stm32_timers_dma_burst_read() argument
/linux-6.6.21/drivers/crypto/marvell/octeontx2/
Dotx2_cptpf_main.c176 int reg, dev, vf, start_vf, num_reg = 1; in cptpf_vf_flr_intr() local
181 num_reg = 2; in cptpf_vf_flr_intr()
183 for (reg = 0; reg < num_reg; reg++) { in cptpf_vf_flr_intr()
209 int reg, vf, num_reg = 1; in cptpf_vf_me_intr() local
213 num_reg = 2; in cptpf_vf_me_intr()
215 for (reg = 0; reg < num_reg; reg++) { in cptpf_vf_me_intr()
/linux-6.6.21/drivers/gpu/drm/msm/hdmi/
Dhdmi_pll_8960.c32 int num_reg; member
393 for (i = 0; i < pll_rate->num_reg; i++) in hdmi_pll_set_rate()
/linux-6.6.21/drivers/gpu/drm/radeon/
Dradeon_device.c273 rdev->scratch.num_reg = 5; in radeon_scratch_init()
275 rdev->scratch.num_reg = 7; in radeon_scratch_init()
278 for (i = 0; i < rdev->scratch.num_reg; i++) { in radeon_scratch_init()
297 for (i = 0; i < rdev->scratch.num_reg; i++) { in radeon_scratch_get()
319 for (i = 0; i < rdev->scratch.num_reg; i++) { in radeon_scratch_free()
Dr600.c2815 rdev->scratch.num_reg = 7; in r600_scratch_init()
2817 for (i = 0; i < rdev->scratch.num_reg; i++) { in r600_scratch_init()
Dsi.c3361 rdev->scratch.num_reg = 7; in si_scratch_init()
3363 for (i = 0; i < rdev->scratch.num_reg; i++) { in si_scratch_init()
Dradeon.h665 unsigned num_reg; member
Dcik.c3426 rdev->scratch.num_reg = 7; in cik_scratch_init()
3428 for (i = 0; i < rdev->scratch.num_reg; i++) { in cik_scratch_init()
/linux-6.6.21/net/netfilter/
Dnft_bitwise.c298 track->regs[priv->sreg].num_reg == 0 && in nft_bitwise_reduce()
313 track->regs[priv->sreg].num_reg != 0) { in nft_bitwise_reduce()
Dnf_tables_api.c729 for (i = track->regs[dreg].num_reg; i > 0; i--) in __nft_reg_track_clobber()
735 u8 dreg, u8 num_reg) in __nft_reg_track_update() argument
739 track->regs[dreg].num_reg = num_reg; in __nft_reg_track_update()
773 track->regs[dreg].num_reg = 0; in __nft_reg_track_cancel()
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_pf.c148 int reg, dev, vf, start_vf, num_reg = 1; in otx2_pf_flr_intr_handler() local
152 num_reg = 2; in otx2_pf_flr_intr_handler()
154 for (reg = 0; reg < num_reg; reg++) { in otx2_pf_flr_intr_handler()
177 int vf, reg, num_reg = 1; in otx2_pf_me_intr_handler() local
181 num_reg = 2; in otx2_pf_me_intr_handler()
183 for (reg = 0; reg < num_reg; reg++) { in otx2_pf_me_intr_handler()
/linux-6.6.21/include/net/netfilter/
Dnf_tables.h130 u8 num_reg; member
1768 track->regs[dreg].num_reg == 0; in nft_reg_track_cmp()