| /linux/drivers/media/i2c/ |
| H 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()
|
| H A D | max9271.h | 153 int max9271_set_gpios(struct max9271_device *dev, u8 gpio_mask); 165 int max9271_clear_gpios(struct max9271_device *dev, u8 gpio_mask); 177 int max9271_enable_gpios(struct max9271_device *dev, u8 gpio_mask); 189 int max9271_disable_gpios(struct max9271_device *dev, u8 gpio_mask);
|
| /linux/sound/hda/codecs/ |
| H A D | 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 …]
|
| /linux/sound/hda/codecs/cirrus/ |
| H A D | cs421x.c | 21 unsigned int gpio_mask; member 368 if (spec->gpio_mask) in cs4210_pinmux_init() 380 if ((spec->gpio_mask || spec->sense_b) && in cs4210_pinmux_init() 445 if (spec->gpio_mask) { in cs421x_init() 447 spec->gpio_mask); in cs421x_init()
|
| H A D | cs420x.c | 23 unsigned int gpio_mask; member 267 if (spec->gpio_mask) { in cs_init() 269 spec->gpio_mask); in cs_init() 453 spec->gpio_mask = spec->gpio_dir = in cs420x_fixup_gpio_13() 466 spec->gpio_mask = spec->gpio_dir = in cs420x_fixup_gpio_23() 601 spec->gpio_mask = spec->gpio_dir = in cs4208_fixup_gpio0()
|
| H A D | cs8409.c | 1045 if (spec->gpio_mask) { in cs8409_cs42l42_hw_init() 1047 spec->gpio_mask); in cs8409_cs42l42_hw_init() 1141 spec->gpio_mask = 0x03f; in cs8409_cs42l42_fixups() 1445 if (spec->gpio_mask) { in dolphin_hw_init() 1447 spec->gpio_mask); in dolphin_hw_init() 1530 spec->gpio_mask = 0x03f; in dolphin_fixups()
|
| H A D | cs8409.h | 332 unsigned int gpio_mask; 329 unsigned int gpio_mask; global() member
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | hw.c | 1615 u32 gpio_mask = ah->gpio_mask; in ath9k_hw_apply_gpio_override() local 1618 for (i = 0; gpio_mask; i++, gpio_mask >>= 1) { in ath9k_hw_apply_gpio_override() 1619 if (!(gpio_mask & 1)) in ath9k_hw_apply_gpio_override() 2427 pCap->gpio_mask = AR9271_GPIO_MASK; in ath9k_gpio_cap_init() 2430 pCap->gpio_mask = AR7010_GPIO_MASK; in ath9k_gpio_cap_init() 2433 pCap->gpio_mask = AR9287_GPIO_MASK; in ath9k_gpio_cap_init() 2436 pCap->gpio_mask = AR9285_GPIO_MASK; in ath9k_gpio_cap_init() 2439 pCap->gpio_mask = AR9280_GPIO_MASK; in ath9k_gpio_cap_init() 2442 pCap->gpio_mask = AR9300_GPIO_MASK; in ath9k_gpio_cap_init() 2445 pCap->gpio_mask = AR9330_GPIO_MASK; in ath9k_gpio_cap_init() [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpio-omap.c | 263 static bool omap_gpio_is_off_wakeup_capable(struct gpio_bank *bank, u32 gpio_mask) in omap_gpio_is_off_wakeup_capable() argument 268 return !!(~no_wake & gpio_mask); in omap_gpio_is_off_wakeup_capable() 470 static void omap_clear_gpio_irqbank(struct gpio_bank *bank, int gpio_mask) in omap_clear_gpio_irqbank() argument 475 writel_relaxed(gpio_mask, reg); in omap_clear_gpio_irqbank() 480 writel_relaxed(gpio_mask, reg); in omap_clear_gpio_irqbank() 511 u32 gpio_mask = BIT(offset); in omap_set_gpio_irqenable() local 516 bank->context.irqenable1 |= gpio_mask; in omap_set_gpio_irqenable() 519 bank->context.irqenable1 &= ~gpio_mask; in omap_set_gpio_irqenable() 521 writel_relaxed(gpio_mask, reg); in omap_set_gpio_irqenable() 524 omap_gpio_rmw(reg + bank->regs->irqenable, gpio_mask, in omap_set_gpio_irqenable() [all …]
|
| H A D | gpio-max3191x.c | 226 unsigned long gpio_mask; in max3191x_get_multiple() local 235 for_each_set_clump8(bit, gpio_mask, mask, gpio->ngpio) { in max3191x_get_multiple() 244 in &= gpio_mask; in max3191x_get_multiple()
|
| /linux/sound/hda/codecs/realtek/ |
| H A D | alc861vd.c | 41 spec->gpio_mask |= 0x02; in alc660vd_fixup_asus_gpio1()
|
| H A D | realtek.c | 96 spec->gpio_mask |= mask; in alc_setup_gpio() 130 if (!spec->gpio_mask) in alc_write_gpio() 134 AC_VERB_SET_GPIO_MASK, spec->gpio_mask); in alc_write_gpio()
|
| H A D | alc269.c | 1398 spec->gpio_mask |= 0x10; in alc269_fixup_hp_gpio_mic1_led() 1429 spec->gpio_mask |= 0x01; in alc245_fixup_hp_x360_amp() 1464 spec->gpio_mask |= 0x04; in alc274_fixup_hp_envy_gpio() 2120 spec->gpio_mask |= 0x06; in alc280_fixup_hp_gpio2_mic_hotkey() 2154 spec->gpio_mask |= 0x04; in alc233_fixup_lenovo_gpio2_mic_hotkey() 2295 spec->gpio_mask |= 0x40; in alc_fixup_headset_mode_dell_alc288() 2613 spec->gpio_mask |= 0x10; in alc280_fixup_hp_9480m() 2626 spec->gpio_mask |= 0x04; in alc275_fixup_gpio4_off() 2919 spec->gpio_mask |= 0x01; in alc285_fixup_hp_spectre_x360_eb1() 2954 spec->gpio_mask |= 0x01; in alc285_fixup_hp_spectre_x360_df1() [all …]
|
| /linux/drivers/gpu/drm/radeon/ |
| H 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()
|
| H A D | radeon_atombios.c | 3331 u32 *gpio_value, u32 *gpio_mask) in radeon_atom_get_voltage_gpio_settings() argument 3350 *gpio_mask = le32_to_cpu(*(u32 *)&args.v2); in radeon_atom_get_voltage_gpio_settings()
|
| /linux/drivers/media/usb/em28xx/ |
| H A D | em28xx-cards.c | 618 .gpio_mask = 0x01, 624 .gpio_mask = 0x40, 634 .gpio_mask = 0x80, 644 .gpio_mask = 0x80, 654 .gpio_mask = EM_GPIO_3, 664 .gpio_mask = EM_GPIO_1, 670 .gpio_mask = EM_GPIO_3, 680 .gpio_mask = EM_GPIO_2, 686 .gpio_mask = EM_GPIO_0,
|
| H A D | em28xx-core.c | 700 ~led->gpio_mask : led->gpio_mask, in em28xx_capture_start() 701 led->gpio_mask); in em28xx_capture_start()
|
| H A D | em28xx.h | 454 u8 gpio_mask; member
|
| H A D | em28xx-input.c | 559 led->gpio_mask); in em28xx_query_buttons()
|
| /linux/drivers/hid/ |
| H A D | hid-cp2112.c | 1113 u8 gpio_mask; in cp2112_gpio_poll_callback() local 1123 gpio_mask = ret; in cp2112_gpio_poll_callback() 1133 if (gpio_mask & BIT(virq)) { in cp2112_gpio_poll_callback() 1154 dev->gpio_prev_state = gpio_mask; in cp2112_gpio_poll_callback()
|
| /linux/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_main.c | 2089 u32 gpio_mask = (1 << gpio_shift); in bnx2x_get_gpio() local 2102 if ((gpio_reg & gpio_mask) == gpio_mask) in bnx2x_get_gpio() 2117 u32 gpio_mask = (1 << gpio_shift); in bnx2x_set_gpio() local 2135 gpio_reg &= ~(gpio_mask << MISC_REGISTERS_GPIO_FLOAT_POS); in bnx2x_set_gpio() 2136 gpio_reg |= (gpio_mask << MISC_REGISTERS_GPIO_CLR_POS); in bnx2x_set_gpio() 2144 gpio_reg &= ~(gpio_mask << MISC_REGISTERS_GPIO_FLOAT_POS); in bnx2x_set_gpio() 2145 gpio_reg |= (gpio_mask << MISC_REGISTERS_GPIO_SET_POS); in bnx2x_set_gpio() 2153 gpio_reg |= (gpio_mask << MISC_REGISTERS_GPIO_FLOAT_POS); in bnx2x_set_gpio() 2220 u32 gpio_mask = (1 << gpio_shift); in bnx2x_set_gpio_int() local 2238 gpio_reg &= ~(gpio_mask << MISC_REGISTERS_GPIO_INT_SET_POS); in bnx2x_set_gpio_int() [all …]
|
| /linux/drivers/net/ethernet/broadcom/ |
| H A D | tg3.c | 10523 u32 gpio_mask; in tg3_reset_hw() local 10525 gpio_mask = GRC_LCLCTRL_GPIO_OE0 | GRC_LCLCTRL_GPIO_OE1 | in tg3_reset_hw() 10530 gpio_mask |= GRC_LCLCTRL_GPIO_OE3 | in tg3_reset_hw() 10534 gpio_mask |= GRC_LCLCTRL_GPIO_UART_SEL; in tg3_reset_hw() 10536 tp->grc_local_ctrl &= ~gpio_mask; in tg3_reset_hw() 10537 tp->grc_local_ctrl |= tr32(GRC_LOCAL_CTRL) & gpio_mask; in tg3_reset_hw()
|