/linux/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/drivers/gpio/ |
A D | gpio-gpio-mm.c | 177 unsigned long gpio_mask; in gpiomm_gpio_get_multiple() local 184 for_each_set_clump8(offset, gpio_mask, mask, ARRAY_SIZE(ports) * 8) { in gpiomm_gpio_get_multiple() 186 port_state = inb(port_addr) & gpio_mask; in gpiomm_gpio_get_multiple() 220 unsigned long gpio_mask; in gpiomm_gpio_set_multiple() local 226 for_each_set_clump8(offset, gpio_mask, mask, ARRAY_SIZE(ports) * 8) { in gpiomm_gpio_set_multiple() 230 bitmask = bitmap_get_value8(bits, offset) & gpio_mask; in gpiomm_gpio_set_multiple() 235 gpiommgpio->out_state[index] &= ~gpio_mask; in gpiomm_gpio_set_multiple()
|
A 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()
|
A D | gpio-ws16c48.c | 133 unsigned long gpio_mask; in ws16c48_gpio_get_multiple() local 140 for_each_set_clump8(offset, gpio_mask, mask, chip->ngpio) { in ws16c48_gpio_get_multiple() 142 port_state = inb(port_addr) & gpio_mask; in ws16c48_gpio_get_multiple() 179 unsigned long gpio_mask; in ws16c48_gpio_set_multiple() local 185 for_each_set_clump8(offset, gpio_mask, mask, chip->ngpio) { in ws16c48_gpio_set_multiple() 190 gpio_mask &= ~ws16c48gpio->io_state[index]; in ws16c48_gpio_set_multiple() 191 bitmask = bitmap_get_value8(bits, offset) & gpio_mask; in ws16c48_gpio_set_multiple() 196 ws16c48gpio->out_state[index] &= ~gpio_mask; in ws16c48_gpio_set_multiple()
|
A D | gpio-104-dio-48e.c | 188 unsigned long gpio_mask; in dio48e_gpio_get_multiple() local 195 for_each_set_clump8(offset, gpio_mask, mask, ARRAY_SIZE(ports) * 8) { in dio48e_gpio_get_multiple() 197 port_state = inb(port_addr) & gpio_mask; in dio48e_gpio_get_multiple() 230 unsigned long gpio_mask; in dio48e_gpio_set_multiple() local 236 for_each_set_clump8(offset, gpio_mask, mask, ARRAY_SIZE(ports) * 8) { in dio48e_gpio_set_multiple() 240 bitmask = bitmap_get_value8(bits, offset) & gpio_mask; in dio48e_gpio_set_multiple() 245 dio48egpio->out_state[index] &= ~gpio_mask; in dio48e_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 | 100 unsigned long gpio_mask; in pisosr_gpio_get_multiple() local 106 for_each_set_clump8(offset, gpio_mask, mask, chip->ngpio) { in pisosr_gpio_get_multiple() 107 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-104-idi-48.c | 89 unsigned long gpio_mask; in idi_48_gpio_get_multiple() local 97 for_each_set_clump8(offset, gpio_mask, mask, ARRAY_SIZE(ports) * 8) { in idi_48_gpio_get_multiple() 99 port_state = inb(port_addr) & gpio_mask; in idi_48_gpio_get_multiple()
|
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/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() 501 spec->gpio_mask = spec->gpio_dir = in cs420x_fixup_gpio_13() 514 spec->gpio_mask = spec->gpio_dir = in cs420x_fixup_gpio_23() 659 spec->gpio_mask = spec->gpio_dir = in cs4208_fixup_gpio0() 997 if (spec->gpio_mask) in cs4210_pinmux_init() 1009 if ((spec->gpio_mask || spec->sense_b) && in cs4210_pinmux_init() 1074 if (spec->gpio_mask) { in cs421x_init() 1076 spec->gpio_mask); in cs421x_init()
|
A D | patch_sigmatel.c | 182 unsigned int gpio_mask; member 388 stac_gpio_set(codec, spec->gpio_mask, in stac_update_led_status() 550 spec->gpio_mask; in stac_store_hints() 553 spec->gpio_dir &= spec->gpio_mask; in stac_store_hints() 555 spec->gpio_data &= spec->gpio_mask; in stac_store_hints() 557 spec->eapd_mask &= spec->gpio_mask; in stac_store_hints() 559 spec->gpio_mute &= spec->gpio_mask; in stac_store_hints() 2982 spec->gpio_mask |= 0x20; in stac_add_hp_bass_switch() 3077 spec->gpio_mask |= 0x02; in stac92hd71bxx_fixup_hp_m4() 4121 spec->gpio_mask = 0x1b; in stac9205_fixup_dell_m43() [all …]
|
A D | patch_cs8409.c | 889 if (spec->gpio_mask) { in cs8409_cs42l42_hw_init() 891 spec->gpio_mask); in cs8409_cs42l42_hw_init() 985 spec->gpio_mask = 0x03f; in cs8409_cs42l42_fixups() 1112 if (spec->gpio_mask) { in dolphin_hw_init() 1114 spec->gpio_mask); in dolphin_hw_init() 1207 spec->gpio_mask = 0x03f; in dolphin_fixups()
|
A D | patch_cs8409.h | 325 unsigned int gpio_mask; member
|
A D | patch_realtek.c | 85 unsigned int gpio_mask; member 217 spec->gpio_mask |= mask; in alc_setup_gpio() 248 if (!spec->gpio_mask) in alc_write_gpio() 4391 spec->gpio_mask |= 0x10; in alc269_fixup_hp_gpio_mic1_led() 4422 spec->gpio_mask |= 0x01; in alc245_fixup_hp_x360_amp() 4457 spec->gpio_mask |= 0x04; in alc274_fixup_hp_envy_gpio() 4652 spec->gpio_mask |= 0x06; in alc280_fixup_hp_gpio2_mic_hotkey() 5734 spec->gpio_mask |= 0x40; in alc_fixup_headset_mode_dell_alc288() 6148 spec->gpio_mask |= 0x10; in alc280_fixup_hp_9480m() 6161 spec->gpio_mask |= 0x04; in alc275_fixup_gpio4_off() [all …]
|
/linux/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 …]
|
/linux/include/linux/ |
A D | ath9k_platform.h | 31 u32 gpio_mask; member
|
/linux/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 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/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/drivers/media/usb/em28xx/ |
A D | em28xx-cards.c | 604 .gpio_mask = 0x01, 610 .gpio_mask = 0x40, 620 .gpio_mask = 0x80, 630 .gpio_mask = 0x80, 640 .gpio_mask = EM_GPIO_3, 650 .gpio_mask = EM_GPIO_1, 656 .gpio_mask = EM_GPIO_3, 666 .gpio_mask = EM_GPIO_2, 672 .gpio_mask = EM_GPIO_0,
|
A D | em28xx-core.c | 709 ~led->gpio_mask : led->gpio_mask, in em28xx_capture_start() 710 led->gpio_mask); in em28xx_capture_start()
|
/linux/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/drivers/hid/ |
A D | hid-cp2112.c | 1095 u8 gpio_mask; in cp2112_gpio_poll_callback() local 1106 gpio_mask = ret; in cp2112_gpio_poll_callback() 1123 if (gpio_mask & BIT(virq)) { in cp2112_gpio_poll_callback() 1144 dev->gpio_prev_state = gpio_mask; in cp2112_gpio_poll_callback()
|