/linux-6.1.9/drivers/media/i2c/ |
D | max9271.c | 209 int max9271_set_gpios(struct max9271_device *dev, u8 gpio_mask) in max9271_set_gpios() argument 217 ret |= gpio_mask; in max9271_set_gpios() 230 int max9271_clear_gpios(struct max9271_device *dev, u8 gpio_mask) in max9271_clear_gpios() argument 238 ret &= ~gpio_mask; in max9271_clear_gpios() 251 int max9271_enable_gpios(struct max9271_device *dev, u8 gpio_mask) in max9271_enable_gpios() argument 260 ret |= (gpio_mask & ~BIT(0)); in max9271_enable_gpios() 273 int max9271_disable_gpios(struct max9271_device *dev, u8 gpio_mask) in max9271_disable_gpios() argument 282 ret &= ~(gpio_mask | BIT(0)); in max9271_disable_gpios()
|
D | max9271.h | 150 int max9271_set_gpios(struct max9271_device *dev, u8 gpio_mask); 162 int max9271_clear_gpios(struct max9271_device *dev, u8 gpio_mask); 174 int max9271_enable_gpios(struct max9271_device *dev, u8 gpio_mask); 186 int max9271_disable_gpios(struct max9271_device *dev, u8 gpio_mask);
|
/linux-6.1.9/drivers/gpio/ |
D | gpio-pci-idio-16.c | 104 unsigned long gpio_mask; in idio_16_gpio_get_multiple() local 115 for_each_set_clump8(offset, gpio_mask, mask, ARRAY_SIZE(ports) * 8) { in idio_16_gpio_get_multiple() 117 port_state = ioread8(port_addr) & gpio_mask; in idio_16_gpio_get_multiple() 160 unsigned long gpio_mask; in idio_16_gpio_set_multiple() local 170 for_each_set_clump8(offset, gpio_mask, mask, ARRAY_SIZE(ports) * 8) { in idio_16_gpio_set_multiple() 174 bitmask = bitmap_get_value8(bits, offset) & gpio_mask; in idio_16_gpio_set_multiple() 178 out_state = ioread8(port_addr) & ~gpio_mask; in idio_16_gpio_set_multiple()
|
D | gpio-ws16c48.c | 148 unsigned long gpio_mask; in ws16c48_gpio_get_multiple() local 156 for_each_set_clump8(offset, gpio_mask, mask, chip->ngpio) { in ws16c48_gpio_get_multiple() 159 port_state = ioread8(port_addr) & gpio_mask; in ws16c48_gpio_get_multiple() 196 unsigned long gpio_mask; in ws16c48_gpio_set_multiple() local 202 for_each_set_clump8(offset, gpio_mask, mask, chip->ngpio) { in ws16c48_gpio_set_multiple() 207 gpio_mask &= ~ws16c48gpio->io_state[index]; in ws16c48_gpio_set_multiple() 208 bitmask = bitmap_get_value8(bits, offset) & gpio_mask; in ws16c48_gpio_set_multiple() 213 ws16c48gpio->out_state[index] &= ~gpio_mask; in ws16c48_gpio_set_multiple()
|
D | gpio-pcie-idio-24.c | 247 unsigned long gpio_mask; in idio_24_gpio_get_multiple() local 260 for_each_set_clump8(offset, gpio_mask, mask, ARRAY_SIZE(ports) * 8) { in idio_24_gpio_get_multiple() 271 port_state &= gpio_mask; in idio_24_gpio_get_multiple() 325 unsigned long gpio_mask; in idio_24_gpio_set_multiple() local 336 for_each_set_clump8(offset, gpio_mask, mask, ARRAY_SIZE(ports) * 8) { in idio_24_gpio_set_multiple() 339 bitmask = bitmap_get_value8(bits, offset) & gpio_mask; in idio_24_gpio_set_multiple() 355 out_state &= ~gpio_mask; in idio_24_gpio_set_multiple()
|
D | gpio-pisosr.c | 92 unsigned long gpio_mask; in pisosr_gpio_get_multiple() local 98 for_each_set_clump8(offset, gpio_mask, mask, chip->ngpio) { in pisosr_gpio_get_multiple() 99 buffer_state = gpio->buffer[offset / 8] & gpio_mask; in pisosr_gpio_get_multiple()
|
D | gpio-omap.c | 262 static bool omap_gpio_is_off_wakeup_capable(struct gpio_bank *bank, u32 gpio_mask) in omap_gpio_is_off_wakeup_capable() argument 267 return !!(~no_wake & gpio_mask); in omap_gpio_is_off_wakeup_capable() 469 static void omap_clear_gpio_irqbank(struct gpio_bank *bank, int gpio_mask) in omap_clear_gpio_irqbank() argument 474 writel_relaxed(gpio_mask, reg); in omap_clear_gpio_irqbank() 479 writel_relaxed(gpio_mask, reg); in omap_clear_gpio_irqbank() 510 u32 gpio_mask = BIT(offset); in omap_set_gpio_irqenable() local 515 bank->context.irqenable1 |= gpio_mask; in omap_set_gpio_irqenable() 518 bank->context.irqenable1 &= ~gpio_mask; in omap_set_gpio_irqenable() 520 writel_relaxed(gpio_mask, reg); in omap_set_gpio_irqenable() 523 omap_gpio_rmw(reg + bank->regs->irqenable, gpio_mask, in omap_set_gpio_irqenable() [all …]
|
D | gpio-max3191x.c | 239 unsigned long gpio_mask; in max3191x_get_multiple() local 248 for_each_set_clump8(bit, gpio_mask, mask, gpio->ngpio) { in max3191x_get_multiple() 257 in &= gpio_mask; in max3191x_get_multiple()
|
/linux-6.1.9/sound/pci/hda/ |
D | patch_cirrus.c | 26 unsigned int gpio_mask; member 306 if (spec->gpio_mask) { in cs_init() 308 spec->gpio_mask); in cs_init() 502 spec->gpio_mask = spec->gpio_dir = in cs420x_fixup_gpio_13() 515 spec->gpio_mask = spec->gpio_dir = in cs420x_fixup_gpio_23() 660 spec->gpio_mask = spec->gpio_dir = in cs4208_fixup_gpio0() 998 if (spec->gpio_mask) in cs4210_pinmux_init() 1010 if ((spec->gpio_mask || spec->sense_b) && in cs4210_pinmux_init() 1075 if (spec->gpio_mask) { in cs421x_init() 1077 spec->gpio_mask); in cs421x_init()
|
D | patch_sigmatel.c | 182 unsigned int gpio_mask; member 334 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, spec->gpio_data); in stac_capture_led_update() 389 stac_gpio_set(codec, spec->gpio_mask, in stac_update_led_status() 428 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, in stac_update_outputs() 549 if (get_int_hint(codec, "gpio_mask", &spec->gpio_mask)) { in stac_store_hints() 551 spec->gpio_mask; in stac_store_hints() 554 spec->gpio_dir &= spec->gpio_mask; in stac_store_hints() 556 spec->gpio_data &= spec->gpio_mask; in stac_store_hints() 558 spec->eapd_mask &= spec->gpio_mask; in stac_store_hints() 560 spec->gpio_mute &= spec->gpio_mask; in stac_store_hints() [all …]
|
D | patch_cs8409.c | 1040 if (spec->gpio_mask) { in cs8409_cs42l42_hw_init() 1042 spec->gpio_mask); in cs8409_cs42l42_hw_init() 1148 spec->gpio_mask = 0x03f; in cs8409_cs42l42_fixups() 1286 if (spec->gpio_mask) { in dolphin_hw_init() 1288 spec->gpio_mask); in dolphin_hw_init() 1381 spec->gpio_mask = 0x03f; in dolphin_fixups()
|
D | patch_cs8409.h | 327 unsigned int gpio_mask; member
|
D | patch_realtek.c | 87 unsigned int gpio_mask; member 270 spec->gpio_mask |= mask; in alc_setup_gpio() 301 if (!spec->gpio_mask) in alc_write_gpio() 305 AC_VERB_SET_GPIO_MASK, spec->gpio_mask); in alc_write_gpio() 4496 spec->gpio_mask |= 0x10; in alc269_fixup_hp_gpio_mic1_led() 4527 spec->gpio_mask |= 0x01; in alc245_fixup_hp_x360_amp() 4562 spec->gpio_mask |= 0x04; in alc274_fixup_hp_envy_gpio() 4816 spec->gpio_mask |= 0x06; in alc280_fixup_hp_gpio2_mic_hotkey() 5905 spec->gpio_mask |= 0x40; in alc_fixup_headset_mode_dell_alc288() 6319 spec->gpio_mask |= 0x10; in alc280_fixup_hp_9480m() [all …]
|
/linux-6.1.9/drivers/net/wireless/ath/ath9k/ |
D | hw.c | 1614 u32 gpio_mask = ah->gpio_mask; in ath9k_hw_apply_gpio_override() local 1617 for (i = 0; gpio_mask; i++, gpio_mask >>= 1) { in ath9k_hw_apply_gpio_override() 1618 if (!(gpio_mask & 1)) in ath9k_hw_apply_gpio_override() 2435 pCap->gpio_mask = AR9271_GPIO_MASK; in ath9k_gpio_cap_init() 2438 pCap->gpio_mask = AR7010_GPIO_MASK; in ath9k_gpio_cap_init() 2441 pCap->gpio_mask = AR9287_GPIO_MASK; in ath9k_gpio_cap_init() 2444 pCap->gpio_mask = AR9285_GPIO_MASK; in ath9k_gpio_cap_init() 2447 pCap->gpio_mask = AR9280_GPIO_MASK; in ath9k_gpio_cap_init() 2450 pCap->gpio_mask = AR9300_GPIO_MASK; in ath9k_gpio_cap_init() 2453 pCap->gpio_mask = AR9330_GPIO_MASK; in ath9k_gpio_cap_init() [all …]
|
D | hw.h | 304 u32 gpio_mask; member 910 u32 gpio_mask; member
|
D | init.c | 635 ah->gpio_mask = pdata->gpio_mask; in ath9k_init_platform()
|
/linux-6.1.9/include/linux/ |
D | ath9k_platform.h | 31 u32 gpio_mask; member
|
/linux-6.1.9/drivers/infiniband/hw/qib/ |
D | qib_7220.h | 56 u64 gpio_mask; /* shadow the gpio mask register */ member
|
D | qib_iba6120.c | 231 u64 gpio_mask; /* shadow the gpio mask register */ member 1576 dd->cspec->gpio_mask &= ~(gpiostatus & mask); in unlikely_6120_intr() 1578 dd->cspec->gpio_mask); in unlikely_6120_intr() 1699 dd->cspec->gpio_mask |= GPIO_ERRINTR_MASK; in qib_setup_6120_interrupt() 1700 qib_write_kreg(dd, kr_gpio_mask, dd->cspec->gpio_mask); in qib_setup_6120_interrupt() 1815 qib_write_kreg(dd, kr_gpio_mask, dd->cspec->gpio_mask); in qib_6120_setup_reset()
|
/linux-6.1.9/drivers/gpu/drm/radeon/ |
D | rv770_dpm.c | 1251 u32 gpio_pins, gpio_mask; in rv770_construct_vddc_table() local 1257 &gpio_pins, &gpio_mask); in rv770_construct_vddc_table() 1258 pi->vddc_table[i].low_smio = gpio_pins & gpio_mask; in rv770_construct_vddc_table() 1260 pi->vddc_mask_low = gpio_mask; in rv770_construct_vddc_table() 1287 u32 gpio_pins, gpio_mask; in rv770_get_mvdd_pin_configuration() local 1291 &gpio_pins, &gpio_mask); in rv770_get_mvdd_pin_configuration() 1292 pi->mvdd_mask_low = gpio_mask; in rv770_get_mvdd_pin_configuration() 1294 gpio_pins & gpio_mask; in rv770_get_mvdd_pin_configuration() 1298 &gpio_pins, &gpio_mask); in rv770_get_mvdd_pin_configuration() 1300 gpio_pins & gpio_mask; in rv770_get_mvdd_pin_configuration()
|
/linux-6.1.9/drivers/media/usb/em28xx/ |
D | em28xx-cards.c | 594 .gpio_mask = 0x01, 600 .gpio_mask = 0x40, 610 .gpio_mask = 0x80, 620 .gpio_mask = 0x80, 630 .gpio_mask = EM_GPIO_3, 640 .gpio_mask = EM_GPIO_1, 646 .gpio_mask = EM_GPIO_3, 656 .gpio_mask = EM_GPIO_2, 662 .gpio_mask = EM_GPIO_0,
|
D | em28xx-core.c | 699 ~led->gpio_mask : led->gpio_mask, in em28xx_capture_start() 700 led->gpio_mask); in em28xx_capture_start()
|
D | em28xx.h | 453 u8 gpio_mask; member
|
/linux-6.1.9/drivers/hwmon/ |
D | adm1026.c | 284 long gpio_mask; /* Register encoding, combined */ member 432 data->gpio_mask = gpio; in adm1026_update_device() 1177 | (data->gpio_mask & 0x10000 ? 0x80000000 : 0); in alarm_mask_store() 1233 return sprintf(buf, "%ld\n", data->gpio_mask); in gpio_mask_show() 1250 data->gpio_mask = val & 0x1ffff; in gpio_mask_store() 1251 mask = data->gpio_mask; in gpio_mask_store() 1261 static DEVICE_ATTR_RW(gpio_mask);
|
/linux-6.1.9/drivers/hid/ |
D | hid-cp2112.c | 1100 u8 gpio_mask; in cp2112_gpio_poll_callback() local 1111 gpio_mask = ret; in cp2112_gpio_poll_callback() 1128 if (gpio_mask & BIT(virq)) { in cp2112_gpio_poll_callback() 1149 dev->gpio_prev_state = gpio_mask; in cp2112_gpio_poll_callback()
|