| /linux/drivers/leds/trigger/ |
| H A D | ledtrig-gpio.c | 27 struct gpio_trig_data *gpio_data = led_get_trigger_data(led); in gpio_trig_irq() local 30 tmp = gpiod_get_value_cansleep(gpio_data->gpiod); in gpio_trig_irq() 32 if (gpio_data->desired_brightness) in gpio_trig_irq() 33 led_set_brightness_nosleep(gpio_data->led, in gpio_trig_irq() 34 gpio_data->desired_brightness); in gpio_trig_irq() 36 led_set_brightness_nosleep(gpio_data->led, LED_FULL); in gpio_trig_irq() 38 led_set_brightness_nosleep(gpio_data->led, LED_OFF); in gpio_trig_irq() 47 struct gpio_trig_data *gpio_data = led_trigger_get_drvdata(dev); in desired_brightness_show() local 49 return sysfs_emit(buf, "%u\n", gpio_data->desired_brightness); in desired_brightness_show() 55 struct gpio_trig_data *gpio_data = led_trigger_get_drvdata(dev); in desired_brightness_store() local [all …]
|
| /linux/drivers/staging/sm750fb/ |
| H A D | ddk750_swi2c.c | 117 unsigned long gpio_data; in sw_i2c_scl() local 130 gpio_data = peek32(sw_i2c_clk_gpio_data_reg); in sw_i2c_scl() 131 gpio_data &= ~(1 << sw_i2c_clk_gpio); in sw_i2c_scl() 132 poke32(sw_i2c_clk_gpio_data_reg, gpio_data); in sw_i2c_scl() 154 unsigned long gpio_data; in sw_i2c_sda() local 167 gpio_data = peek32(sw_i2c_data_gpio_data_reg); in sw_i2c_sda() 168 gpio_data &= ~(1 << sw_i2c_data_gpio); in sw_i2c_sda() 169 poke32(sw_i2c_data_gpio_data_reg, gpio_data); in sw_i2c_sda() 186 unsigned long gpio_data; in sw_i2c_read_sda() local 197 gpio_data = peek32(sw_i2c_data_gpio_data_reg); in sw_i2c_read_sda() [all …]
|
| /linux/drivers/input/keyboard/ |
| H A D | clps711x-keypad.c | 31 struct clps711x_gpio_data *gpio_data; member 49 struct clps711x_gpio_data *data = &priv->gpio_data[row]; in clps711x_keypad_poll() 107 priv->gpio_data = devm_kcalloc(dev, in clps711x_keypad_probe() 108 priv->row_count, sizeof(*priv->gpio_data), in clps711x_keypad_probe() 110 if (!priv->gpio_data) in clps711x_keypad_probe() 116 struct clps711x_gpio_data *data = &priv->gpio_data[i]; in clps711x_keypad_probe()
|
| /linux/drivers/rtc/ |
| H A D | rtc-moxart.c | 59 struct gpio_desc *gpio_data; member 74 gpiod_set_value(moxart_rtc->gpio_data, ((data & 1) == 1)); in moxart_rtc_write_byte() 92 if (gpiod_get_value(moxart_rtc->gpio_data)) in moxart_rtc_read_byte() 107 gpiod_direction_output(moxart_rtc->gpio_data, 0); in moxart_rtc_read_register() 111 gpiod_direction_input(moxart_rtc->gpio_data); in moxart_rtc_read_register() 130 gpiod_direction_output(moxart_rtc->gpio_data, 0); in moxart_rtc_write_register() 253 moxart_rtc->gpio_data = devm_gpiod_get(&pdev->dev, "rtc-data", in moxart_rtc_probe() 255 ret = PTR_ERR_OR_ZERO(moxart_rtc->gpio_data); in moxart_rtc_probe()
|
| /linux/sound/hda/codecs/ |
| H A D | sigmatel.c | 184 unsigned int gpio_data; member 331 spec->gpio_data |= spec->mic_mute_led_gpio; in stac_capture_led_update() 333 spec->gpio_data &= ~spec->mic_mute_led_gpio; in stac_capture_led_update() 334 stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, spec->gpio_data); in stac_capture_led_update() 386 spec->gpio_data |= spec->gpio_led; in stac_update_led_status() 388 spec->gpio_data &= ~spec->gpio_led; in stac_update_led_status() 390 spec->gpio_dir, spec->gpio_data); in stac_update_led_status() 421 unsigned int val = spec->gpio_data; in stac_update_outputs() 426 if (spec->gpio_data != val) { in stac_update_outputs() 427 spec->gpio_data = val; in stac_update_outputs() [all …]
|
| /linux/drivers/input/rmi4/ |
| H A D | rmi_f30.c | 175 if (pdata->gpio_data.trackstick_buttons) { in rmi_f30_config() 181 if (pdata->gpio_data.disable) { in rmi_f30_config() 248 if (pdata->gpio_data.trackstick_buttons && in rmi_f30_map_gpios() 251 } else if (!pdata->gpio_data.buttonpad || !button_mapped) { in rmi_f30_map_gpios() 267 if (pdata->gpio_data.buttonpad || (button - BTN_LEFT == 1)) in rmi_f30_map_gpios() 375 if (pdata->gpio_data.disable) in rmi_f30_probe()
|
| H A D | rmi_f3a.c | 104 if (pdata->gpio_data.trackstick_buttons) { in rmi_f3a_config() 147 if (pdata->gpio_data.trackstick_buttons && in rmi_f3a_map_gpios() 151 } else if (!pdata->gpio_data.buttonpad || !button_mapped) { in rmi_f3a_map_gpios() 161 if (pdata->gpio_data.buttonpad || (button - BTN_LEFT == 1)) in rmi_f3a_map_gpios()
|
| /linux/drivers/fsi/ |
| H A D | fsi-master-gpio.c | 28 struct gpio_desc *gpio_data; member 72 gpiod_get_value(master->gpio_data); in sda_clock_in() 75 in = gpiod_get_value(master->gpio_data); in sda_clock_in() 84 gpiod_set_value(master->gpio_data, value); in sda_out() 89 gpiod_direction_input(master->gpio_data); in set_sda_input() 96 gpiod_direction_output(master->gpio_data, value); in set_sda_output() 664 gpiod_direction_output(master->gpio_data, 1); in fsi_master_gpio_init() 678 gpiod_direction_input(master->gpio_data); in fsi_master_gpio_init_external() 801 master->gpio_data = gpio; in fsi_master_gpio_probe()
|
| H A D | fsi-master-ast-cf.c | 93 struct gpio_desc *gpio_data; member 804 rc = aspeed_gpio_copro_grab_gpio(master->gpio_data, &master->gpio_dat_vreg, in setup_gpios_for_copro() 816 aspeed_gpio_copro_release_gpio(master->gpio_data); in setup_gpios_for_copro() 825 aspeed_gpio_copro_release_gpio(master->gpio_data); in release_copro_gpios() 1039 gpiod_direction_input(master->gpio_data); in fsi_master_acf_setup_external() 1260 master->gpio_data = gpio; in fsi_master_acf_probe()
|
| /linux/sound/hda/codecs/cirrus/ |
| H A D | cs421x.c | 23 unsigned int gpio_data; member 143 spec->gpio_data = spec->gen.hp_jack_present ? in cs_automute() 146 spec->gpio_data = in cs_automute() 149 AC_VERB_SET_GPIO_DATA, spec->gpio_data); in cs_automute() 451 spec->gpio_data); in cs421x_init()
|
| H A D | cs420x.c | 25 unsigned int gpio_data; member 129 spec->gpio_data = spec->gen.hp_jack_present ? in cs_automute() 132 spec->gpio_data = in cs_automute() 135 AC_VERB_SET_GPIO_DATA, spec->gpio_data); in cs_automute() 273 spec->gpio_data); in cs_init()
|
| H A D | cs8409.h | 331 unsigned int gpio_data; member
|
| /linux/drivers/scsi/qla2xxx/ |
| H A D | qla_sup.c | 1592 uint16_t gpio_data; in qla2x00_beacon_blink() local 1606 gpio_data = RD_REG_WORD_PIO(PIO_REG(ha, gpiod)); in qla2x00_beacon_blink() 1609 gpio_data = rd_reg_word(®->gpiod); in qla2x00_beacon_blink() 1625 gpio_data &= ~GPIO_LED_MASK; in qla2x00_beacon_blink() 1628 gpio_data |= led_color; in qla2x00_beacon_blink() 1632 WRT_REG_WORD_PIO(PIO_REG(ha, gpiod), gpio_data); in qla2x00_beacon_blink() 1634 wrt_reg_word(®->gpiod, gpio_data); in qla2x00_beacon_blink() 1645 uint16_t gpio_data; in qla2x00_beacon_on() local 1663 gpio_data = RD_REG_WORD_PIO(PIO_REG(ha, gpiod)); in qla2x00_beacon_on() 1666 gpio_data = rd_reg_word(®->gpiod); in qla2x00_beacon_on() [all …]
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| H A D | global2_scratch.c | 137 chip->gpio_data[offset] |= mask; in mv88e6352_g2_scratch_gpio_set_data() 139 chip->gpio_data[offset] &= ~mask; in mv88e6352_g2_scratch_gpio_set_data() 141 return mv88e6xxx_g2_scratch_write(chip, reg, chip->gpio_data[offset]); in mv88e6352_g2_scratch_gpio_set_data()
|
| /linux/include/linux/input/ |
| H A D | adp5589.h | 171 const struct adp5589_gpio_platform_data *gpio_data; member
|
| /linux/drivers/net/ethernet/amd/xgbe/ |
| H A D | xgbe-phy-v2.c | 2922 u8 gpio_reg, gpio_ports[2], gpio_data[3]; in xgbe_phy_i2c_mdio_reset() local 2934 gpio_data[0] = 2; in xgbe_phy_i2c_mdio_reset() 2935 gpio_data[1] = gpio_ports[0]; in xgbe_phy_i2c_mdio_reset() 2936 gpio_data[2] = gpio_ports[1]; in xgbe_phy_i2c_mdio_reset() 2940 gpio_data[1] |= (1 << (phy_data->mdio_reset_gpio % 8)); in xgbe_phy_i2c_mdio_reset() 2942 gpio_data[2] |= (1 << (phy_data->mdio_reset_gpio % 8)); in xgbe_phy_i2c_mdio_reset() 2946 gpio_data, sizeof(gpio_data)); in xgbe_phy_i2c_mdio_reset() 2952 gpio_data[1] &= ~(1 << (phy_data->mdio_reset_gpio % 8)); in xgbe_phy_i2c_mdio_reset() 2954 gpio_data[2] &= ~(1 << (phy_data->mdio_reset_gpio % 8)); in xgbe_phy_i2c_mdio_reset() 2958 gpio_data, sizeof(gpio_data)); in xgbe_phy_i2c_mdio_reset()
|
| /linux/include/linux/ |
| H A D | rmi.h | 222 struct rmi_gpio_data gpio_data; member
|
| /linux/drivers/media/pci/bt8xx/ |
| H A D | bttvp.h | 301 u32 gpio_data; member
|
| /linux/arch/m68k/include/asm/ |
| H A D | atarihw.h | 405 u_char gpio_data; member
|
| /linux/drivers/hid/ |
| H A D | hid-rmi.c | 721 rmi_hid_pdata.gpio_data.disable = true; in rmi_probe()
|
| /linux/drivers/scsi/ |
| H A D | qla1280.h | 206 uint16_t gpio_data; member
|
| H A D | qla1280.c | 2213 WRT_REG_WORD(®->gpio_data, term); in qla1280_nvram_config()
|
| /linux/sound/hda/codecs/realtek/ |
| H A D | alc662.c | 61 if (nid == codec->core.afg && power_state == AC_PWRST_D3 && spec->gpio_data) in gpio_led_power_filter()
|
| H A D | alc269.c | 1011 if (spec->gpio_data) in alc269_resume() 1903 spec->gpio_data |= 0x02; in alc280_fixup_hp_gpio2_mic_hotkey()
|
| /linux/drivers/input/mouse/ |
| H A D | synaptics.c | 1798 .gpio_data = { in synaptics_create_intertouch()
|