Home
last modified time | relevance | path

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

123

/linux-6.6.21/drivers/bus/
Dbrcmstb_gisb.c133 u32 valid_mask; member
230 u32 mask = gdev->valid_mask & masters; in brcmstb_gisb_master_to_str()
454 &gdev->valid_mask)) in brcmstb_gisb_arb_probe()
455 gdev->valid_mask = 0xffffffff; in brcmstb_gisb_arb_probe()
462 if (hweight_long(gdev->valid_mask) == num_masters) { in brcmstb_gisb_arb_probe()
463 first = ffs(gdev->valid_mask) - 1; in brcmstb_gisb_arb_probe()
464 last = fls(gdev->valid_mask) - 1; in brcmstb_gisb_arb_probe()
467 if (!(gdev->valid_mask & BIT(i))) in brcmstb_gisb_arb_probe()
/linux-6.6.21/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()
293 gc->unused = 0xffffffff & ~valid_mask[idx]; in bcm7120_l2_intc_probe()
/linux-6.6.21/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.c221 unsigned long *valid_mask, in tqmx86_init_irq_valid_mask() argument
225 clear_bit(0, valid_mask); in tqmx86_init_irq_valid_mask()
226 clear_bit(1, valid_mask); in tqmx86_init_irq_valid_mask()
227 clear_bit(2, valid_mask); in tqmx86_init_irq_valid_mask()
228 clear_bit(3, valid_mask); in tqmx86_init_irq_valid_mask()
Dgpio-rcar.c339 if (chip->valid_mask) in gpio_rcar_get_multiple()
340 bankmask &= chip->valid_mask[0]; in gpio_rcar_get_multiple()
383 if (chip->valid_mask) in gpio_rcar_set_multiple()
384 bankmask &= chip->valid_mask[0]; in gpio_rcar_set_multiple()
487 if (p->gpio_chip.valid_mask) in gpio_rcar_enable_inputs()
488 mask &= p->gpio_chip.valid_mask[0]; in gpio_rcar_enable_inputs()
Dgpio-ljca.c200 static int ljca_gpio_init_valid_mask(struct gpio_chip *chip, unsigned long *valid_mask, in ljca_gpio_init_valid_mask() argument
206 bitmap_copy(valid_mask, ljca_gpio->gpio_info->valid_pin_map, ngpios); in ljca_gpio_init_valid_mask()
211 static void ljca_gpio_irq_init_valid_mask(struct gpio_chip *chip, unsigned long *valid_mask, in ljca_gpio_irq_init_valid_mask() argument
214 ljca_gpio_init_valid_mask(chip, valid_mask, ngpios); in ljca_gpio_irq_init_valid_mask()
Dgpio-aspeed-sgpio.c146 unsigned long *valid_mask, unsigned int ngpios) in aspeed_sgpio_init_valid_mask() argument
148 bitmap_set(valid_mask, 0, ngpios); in aspeed_sgpio_init_valid_mask()
153 unsigned long *valid_mask, unsigned int ngpios) in aspeed_sgpio_irq_init_valid_mask() argument
160 clear_bit(i, valid_mask); in aspeed_sgpio_irq_init_valid_mask()
Dgpiolib.c516 bitmap_clear(gc->valid_mask, start, count); in gpiochip_apply_reserved_ranges()
530 gc->valid_mask = gpiochip_allocate_mask(gc); in gpiochip_init_valid_mask()
531 if (!gc->valid_mask) in gpiochip_init_valid_mask()
540 gc->valid_mask, in gpiochip_init_valid_mask()
548 gpiochip_free_mask(&gc->valid_mask); in gpiochip_free_valid_mask()
571 if (likely(!gc->valid_mask)) in gpiochip_line_is_valid()
573 return test_bit(offset, gc->valid_mask); in gpiochip_line_is_valid()
1143 girq->valid_mask = gpiochip_allocate_mask(gc); in gpiochip_irqchip_init_valid_mask()
1144 if (!girq->valid_mask) in gpiochip_irqchip_init_valid_mask()
1147 girq->init_valid_mask(gc, girq->valid_mask, gc->ngpio); in gpiochip_irqchip_init_valid_mask()
[all …]
Dgpio-stmpe.c440 unsigned long *valid_mask, in stmpe_init_irq_valid_mask() argument
452 clear_bit(i, valid_mask); in stmpe_init_irq_valid_mask()
/linux-6.6.21/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-6.6.21/include/linux/gpio/
Ddriver.h273 unsigned long *valid_mask,
282 unsigned long *valid_mask; member
452 unsigned long *valid_mask,
506 unsigned long *valid_mask; member
/linux-6.6.21/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-6.6.21/arch/arm64/kernel/
Dprocess.c667 unsigned long valid_mask = PR_TAGGED_ADDR_ENABLE; in set_tagged_addr_ctrl() local
674 valid_mask |= PR_MTE_TCF_SYNC | PR_MTE_TCF_ASYNC \ in set_tagged_addr_ctrl()
677 if (arg & ~valid_mask) in set_tagged_addr_ctrl()
/linux-6.6.21/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-6.6.21/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-6.6.21/drivers/platform/x86/amd/pmf/
Dacpi.c247 params.valid_mask, in apmf_get_system_params()
251 params.flags = params.flags & params.valid_mask; in apmf_get_system_params()
/linux-6.6.21/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-6.6.21/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.c912 u64 valid_mask = 0; in drm_client_rotation() local
972 valid_mask |= (1ULL << plane->rotation_property->values[i]); in drm_client_rotation()
974 if (!(*rotation & valid_mask)) in drm_client_rotation()
/linux-6.6.21/arch/x86/events/amd/
Dibs.c89 u64 valid_mask; member
501 config &= ~perf_ibs->valid_mask; in perf_ibs_stop()
673 .valid_mask = IBS_FETCH_VAL,
698 .valid_mask = IBS_OP_VAL,
1053 if (!(*buf++ & perf_ibs->valid_mask)) in perf_ibs_handle_irq()
/linux-6.6.21/drivers/gpu/drm/amd/include/
Damd_acpi.h38 u32 valid_mask; /* valid flags mask */ member
/linux-6.6.21/include/uapi/linux/
Disst_if.h254 __u16 valid_mask; member
/linux-6.6.21/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-6.6.21/tools/testing/selftests/kvm/x86_64/
Duserspace_msr_exit_test.c722 #define test_user_exit_msr_ioctl(vm, cmd, arg, flag, valid_mask) \ argument
726 if (flag & valid_mask) \

123