/linux-6.3-rc2/drivers/media/i2c/ |
A 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()
|
A 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.3-rc2/drivers/gpio/ |
A 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()
|
A 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()
|
A 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()
|
A D | gpio-omap.c | 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() 534 (bank->regs->edgectrl1 || !(bank->non_wakeup_gpios & gpio_mask))) { in omap_set_gpio_irqenable() [all …]
|
A 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.3-rc2/sound/pci/hda/ |
A 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()
|
A D | patch_sigmatel.c | 182 unsigned int gpio_mask; member 389 stac_gpio_set(codec, spec->gpio_mask, in stac_update_led_status() 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() 2983 spec->gpio_mask |= 0x20; in stac_add_hp_bass_switch() 3078 spec->gpio_mask |= 0x02; in stac92hd71bxx_fixup_hp_m4() 4122 spec->gpio_mask = 0x1b; in stac9205_fixup_dell_m43() [all …]
|
A 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()
|
A D | patch_cs8409.h | 327 unsigned int gpio_mask; member
|
A 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() 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() 6332 spec->gpio_mask |= 0x04; in alc275_fixup_gpio4_off() [all …]
|
/linux-6.3-rc2/drivers/net/wireless/ath/ath9k/ |
A 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() 2480 pCap->gpio_mask = AR_GPIO_MASK; in ath9k_gpio_cap_init() [all …]
|
A D | hw.h | 304 u32 gpio_mask; member 910 u32 gpio_mask; member
|
A D | init.c | 635 ah->gpio_mask = pdata->gpio_mask; in ath9k_init_platform()
|
/linux-6.3-rc2/include/linux/ |
A D | ath9k_platform.h | 31 u32 gpio_mask; member
|
/linux-6.3-rc2/drivers/infiniband/hw/qib/ |
A D | qib_7220.h | 56 u64 gpio_mask; /* shadow the gpio mask register */ member
|
A D | qib_iba6120.c | 231 u64 gpio_mask; /* shadow the gpio mask register */ member 1573 dd->cspec->gpio_mask &= ~(gpiostatus & mask); in unlikely_6120_intr() 1575 dd->cspec->gpio_mask); in unlikely_6120_intr() 1696 dd->cspec->gpio_mask |= GPIO_ERRINTR_MASK; in qib_setup_6120_interrupt() 1697 qib_write_kreg(dd, kr_gpio_mask, dd->cspec->gpio_mask); in qib_setup_6120_interrupt() 1812 qib_write_kreg(dd, kr_gpio_mask, dd->cspec->gpio_mask); in qib_6120_setup_reset()
|
/linux-6.3-rc2/drivers/gpu/drm/radeon/ |
A 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.3-rc2/drivers/media/usb/em28xx/ |
A 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,
|
A D | em28xx-core.c | 699 ~led->gpio_mask : led->gpio_mask, in em28xx_capture_start() 700 led->gpio_mask); in em28xx_capture_start()
|
A D | em28xx.h | 453 u8 gpio_mask; member
|
A D | em28xx-input.c | 559 led->gpio_mask); in em28xx_query_buttons()
|
/linux-6.3-rc2/drivers/hwmon/ |
A 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.3-rc2/drivers/hid/ |
A 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()
|