Home
last modified time | relevance | path

Searched refs:valid_mask (Results 1 – 25 of 45) sorted by relevance

12

/Linux-v6.1/drivers/bus/
Dbrcmstb_gisb.c133 u32 valid_mask; member
230 u32 mask = gdev->valid_mask & masters; in brcmstb_gisb_master_to_str()
456 &gdev->valid_mask)) in brcmstb_gisb_arb_probe()
457 gdev->valid_mask = 0xffffffff; in brcmstb_gisb_arb_probe()
464 if (hweight_long(gdev->valid_mask) == num_masters) { in brcmstb_gisb_arb_probe()
465 first = ffs(gdev->valid_mask) - 1; in brcmstb_gisb_arb_probe()
466 last = fls(gdev->valid_mask) - 1; in brcmstb_gisb_arb_probe()
469 if (!(gdev->valid_mask & BIT(i))) in brcmstb_gisb_arb_probe()
/Linux-v6.1/drivers/irqchip/
Dirq-versatile-fpga.c206 u32 valid_mask; in fpga_irq_of_init() local
218 if (of_property_read_u32(node, "valid-mask", &valid_mask)) in fpga_irq_of_init()
219 valid_mask = 0; in fpga_irq_of_init()
231 fpga_irq_init(base, parent_irq, valid_mask, node); in fpga_irq_of_init()
Dirq-bcm7120-l2.c108 int irq, u32 *valid_mask) in bcm7120_l2_intc_init_one() argument
137 valid_mask[idx] |= l1_data->irq_map_mask[idx]; in bcm7120_l2_intc_init_one()
228 u32 valid_mask[MAX_WORDS] = { }; in bcm7120_l2_intc_probe() local
262 ret = bcm7120_l2_intc_init_one(dn, data, irq, valid_mask); in bcm7120_l2_intc_probe()
292 gc->unused = 0xffffffff & ~valid_mask[idx]; in bcm7120_l2_intc_probe()
/Linux-v6.1/drivers/gpio/
Dgpio-bd71815.c115 unsigned long *valid_mask, in bd71815_init_valid_mask() argument
123 *valid_mask = BD71815_TWO_GPIOS; in bd71815_init_valid_mask()
125 *valid_mask = BD71815_ONE_GPIO; in bd71815_init_valid_mask()
Dgpio-tqmx86.c219 unsigned long *valid_mask, in tqmx86_init_irq_valid_mask() argument
223 clear_bit(0, valid_mask); in tqmx86_init_irq_valid_mask()
224 clear_bit(1, valid_mask); in tqmx86_init_irq_valid_mask()
225 clear_bit(2, valid_mask); in tqmx86_init_irq_valid_mask()
226 clear_bit(3, valid_mask); in tqmx86_init_irq_valid_mask()
Dgpio-rcar.c340 if (chip->valid_mask) in gpio_rcar_get_multiple()
341 bankmask &= chip->valid_mask[0]; in gpio_rcar_get_multiple()
384 if (chip->valid_mask) in gpio_rcar_set_multiple()
385 bankmask &= chip->valid_mask[0]; in gpio_rcar_set_multiple()
488 if (p->gpio_chip.valid_mask) in gpio_rcar_enable_inputs()
489 mask &= p->gpio_chip.valid_mask[0]; in gpio_rcar_enable_inputs()
Dgpio-aspeed-sgpio.c145 unsigned long *valid_mask, unsigned int ngpios) in aspeed_sgpio_init_valid_mask() argument
147 bitmap_set(valid_mask, 0, ngpios); in aspeed_sgpio_init_valid_mask()
152 unsigned long *valid_mask, unsigned int ngpios) in aspeed_sgpio_irq_init_valid_mask() argument
159 clear_bit(i, valid_mask); in aspeed_sgpio_irq_init_valid_mask()
Dgpiolib.c453 gc->valid_mask = gpiochip_allocate_mask(gc); in gpiochip_alloc_valid_mask()
454 if (!gc->valid_mask) in gpiochip_alloc_valid_mask()
464 gc->valid_mask, in gpiochip_init_valid_mask()
472 bitmap_free(gc->valid_mask); in gpiochip_free_valid_mask()
473 gc->valid_mask = NULL; in gpiochip_free_valid_mask()
488 if (likely(!gc->valid_mask)) in gpiochip_line_is_valid()
490 return test_bit(offset, gc->valid_mask); in gpiochip_line_is_valid()
983 girq->valid_mask = gpiochip_allocate_mask(gc); in gpiochip_irqchip_init_valid_mask()
984 if (!girq->valid_mask) in gpiochip_irqchip_init_valid_mask()
987 girq->init_valid_mask(gc, girq->valid_mask, gc->ngpio); in gpiochip_irqchip_init_valid_mask()
[all …]
Dgpio-stmpe.c436 unsigned long *valid_mask, in stmpe_init_irq_valid_mask() argument
448 clear_bit(i, valid_mask); in stmpe_init_irq_valid_mask()
/Linux-v6.1/arch/mips/cavium-octeon/executive/
Dcvmx-l2c.c87 uint32_t valid_mask; in cvmx_l2c_set_core_way_partition() local
89 valid_mask = (0x1 << cvmx_l2c_get_num_assoc()) - 1; in cvmx_l2c_set_core_way_partition()
91 mask &= valid_mask; in cvmx_l2c_set_core_way_partition()
94 if (mask == valid_mask && !OCTEON_IS_MODEL(OCTEON_CN63XX)) in cvmx_l2c_set_core_way_partition()
144 uint32_t valid_mask; in cvmx_l2c_set_hw_way_partition() local
146 valid_mask = (0x1 << cvmx_l2c_get_num_assoc()) - 1; in cvmx_l2c_set_hw_way_partition()
147 mask &= valid_mask; in cvmx_l2c_set_hw_way_partition()
150 if (mask == valid_mask && !OCTEON_IS_MODEL(OCTEON_CN63XX)) in cvmx_l2c_set_hw_way_partition()
/Linux-v6.1/include/linux/gpio/
Ddriver.h265 unsigned long *valid_mask,
274 unsigned long *valid_mask; member
444 unsigned long *valid_mask,
498 unsigned long *valid_mask; member
/Linux-v6.1/drivers/platform/x86/intel/
Dint0002_vgpio.c152 unsigned long *valid_mask, in int0002_init_irq_valid_mask() argument
155 bitmap_clear(valid_mask, 0, GPE0A_PME_B0_VIRT_GPIO_PIN); in int0002_init_irq_valid_mask()
/Linux-v6.1/arch/arm64/kernel/
Dprocess.c664 unsigned long valid_mask = PR_TAGGED_ADDR_ENABLE; in set_tagged_addr_ctrl() local
671 valid_mask |= PR_MTE_TCF_SYNC | PR_MTE_TCF_ASYNC \ in set_tagged_addr_ctrl()
674 if (arg & ~valid_mask) in set_tagged_addr_ctrl()
/Linux-v6.1/arch/alpha/kernel/
Derr_marvel.c140 marvel_print_po7_uncrr_sym(u64 uncrr_sym, u64 valid_mask) in marvel_print_po7_uncrr_sym() argument
187 uncrr_sym &= valid_mask; in marvel_print_po7_uncrr_sym()
189 if (EXTRACT(valid_mask, IO7__PO7_UNCRR_SYM__SYN)) in marvel_print_po7_uncrr_sym()
194 if (EXTRACT(valid_mask, IO7__PO7_UNCRR_SYM__ERR_CYC)) in marvel_print_po7_uncrr_sym()
255 if (EXTRACT(valid_mask, IO7__PO7_UNCRR_SYM__STRV_VTR)) { in marvel_print_po7_uncrr_sym()
/Linux-v6.1/drivers/platform/x86/amd/pmf/
Dacpi.c226 params.valid_mask, in apmf_get_system_params()
230 params.flags = params.flags & params.valid_mask; in apmf_get_system_params()
Dpmf.h63 u32 valid_mask; member
/Linux-v6.1/arch/powerpc/perf/
Disa207-common.c56 u64 valid_mask = EVENT_VALID_MASK; in is_event_valid() local
59 valid_mask = p10_EVENT_VALID_MASK; in is_event_valid()
61 valid_mask = p9_EVENT_VALID_MASK; in is_event_valid()
63 return !(event & ~valid_mask); in is_event_valid()
/Linux-v6.1/drivers/gpu/drm/radeon/
Dradeon_acpi.c58 u32 valid_mask; /* valid flags mask */ member
281 params.flags, params.valid_mask); in radeon_atif_get_notification_params()
282 params.flags = params.flags & params.valid_mask; in radeon_atif_get_notification_params()
/Linux-v6.1/drivers/gpu/drm/
Ddrm_property.c896 uint64_t valid_mask = 0; in drm_property_change_valid_get() local
899 valid_mask |= (1ULL << property->values[i]); in drm_property_change_valid_get()
900 return !(value & ~valid_mask); in drm_property_change_valid_get()
Ddrm_client_modeset.c910 u64 valid_mask = 0; in drm_client_rotation() local
970 valid_mask |= (1ULL << plane->rotation_property->values[i]); in drm_client_rotation()
972 if (!(*rotation & valid_mask)) in drm_client_rotation()
/Linux-v6.1/arch/x86/events/amd/
Dibs.c89 u64 valid_mask; member
476 config &= ~perf_ibs->valid_mask; in perf_ibs_stop()
648 .valid_mask = IBS_FETCH_VAL,
673 .valid_mask = IBS_OP_VAL,
1048 if (!(*buf++ & perf_ibs->valid_mask)) in perf_ibs_handle_irq()
/Linux-v6.1/drivers/gpu/drm/amd/include/
Damd_acpi.h38 u32 valid_mask; /* valid flags mask */ member
/Linux-v6.1/drivers/pinctrl/qcom/
Dpinctrl-msm.c702 unsigned long *valid_mask, in msm_gpio_init_valid_mask() argument
713 bitmap_fill(valid_mask, ngpios); in msm_gpio_init_valid_mask()
719 clear_bit(reserved[i], valid_mask); in msm_gpio_init_valid_mask()
743 bitmap_zero(valid_mask, ngpios); in msm_gpio_init_valid_mask()
745 set_bit(tmp[i], valid_mask); in msm_gpio_init_valid_mask()
/Linux-v6.1/drivers/firmware/psci/
Dpsci.c104 const u32 valid_mask = psci_has_ext_power_state() ? in psci_power_state_is_valid() local
108 return !(state & ~valid_mask); in psci_power_state_is_valid()
/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_acpi.c266 params.flags, params.valid_mask); in amdgpu_atif_get_notification_params()
267 params.flags = params.flags & params.valid_mask; in amdgpu_atif_get_notification_params()

12