/Linux-v6.6/drivers/leds/trigger/ |
D | ledtrig-gpio.c | 28 struct gpio_trig_data *gpio_data = led_get_trigger_data(led); in gpio_trig_irq() local 31 tmp = gpio_get_value_cansleep(gpio_data->gpio); in gpio_trig_irq() 32 if (gpio_data->inverted) in gpio_trig_irq() 36 if (gpio_data->desired_brightness) in gpio_trig_irq() 37 led_set_brightness_nosleep(gpio_data->led, in gpio_trig_irq() 38 gpio_data->desired_brightness); in gpio_trig_irq() 40 led_set_brightness_nosleep(gpio_data->led, LED_FULL); in gpio_trig_irq() 42 led_set_brightness_nosleep(gpio_data->led, LED_OFF); in gpio_trig_irq() 51 struct gpio_trig_data *gpio_data = led_trigger_get_drvdata(dev); in gpio_trig_brightness_show() local 53 return sprintf(buf, "%u\n", gpio_data->desired_brightness); in gpio_trig_brightness_show() [all …]
|
/Linux-v6.6/drivers/staging/sm750fb/ |
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-v6.6/drivers/gpio/ |
D | gpio-msc313.c | 484 const struct msc313_gpio_data *gpio_data; member 491 u8 gpioreg = readb_relaxed(gpio->base + gpio->gpio_data->offsets[offset]); in msc313_gpio_set() 498 writeb_relaxed(gpioreg, gpio->base + gpio->gpio_data->offsets[offset]); in msc313_gpio_set() 505 return readb_relaxed(gpio->base + gpio->gpio_data->offsets[offset]) & MSC313_GPIO_IN; in msc313_gpio_get() 511 u8 gpioreg = readb_relaxed(gpio->base + gpio->gpio_data->offsets[offset]); in msc313_gpio_direction_input() 514 writeb_relaxed(gpioreg, gpio->base + gpio->gpio_data->offsets[offset]); in msc313_gpio_direction_input() 522 u8 gpioreg = readb_relaxed(gpio->base + gpio->gpio_data->offsets[offset]); in msc313_gpio_direction_output() 529 writeb_relaxed(gpioreg, gpio->base + gpio->gpio_data->offsets[offset]); in msc313_gpio_direction_output() 593 unsigned int offset = priv->gpio_data->offsets[child]; in msc313e_gpio_child_to_parent_hwirq() 635 gpio->gpio_data = match_data; in msc313_gpio_probe() [all …]
|
D | gpio-pl061.c | 42 u8 gpio_data; member 374 pl061->csave_regs.gpio_data = 0; in pl061_suspend() 383 pl061->csave_regs.gpio_data |= in pl061_suspend() 398 pl061->csave_regs.gpio_data & in pl061_resume()
|
/Linux-v6.6/drivers/input/serio/ |
D | ps2-gpio.c | 76 struct gpio_desc *gpio_data; member 158 gpiod_direction_output(drvdata->gpio_data, 0); in ps2_gpio_tx_work_fn() 193 data = gpiod_get_value(drvdata->gpio_data); in ps2_gpio_irq_rx() 318 gpiod_set_value(drvdata->gpio_data, data); in ps2_gpio_irq_tx() 323 gpiod_set_value(drvdata->gpio_data, data); in ps2_gpio_irq_tx() 327 gpiod_direction_input(drvdata->gpio_data); in ps2_gpio_irq_tx() 330 data = gpiod_get_value(drvdata->gpio_data); in ps2_gpio_irq_tx() 347 gpiod_direction_input(drvdata->gpio_data); in ps2_gpio_irq_tx() 357 gpiod_direction_input(drvdata->gpio_data); in ps2_gpio_irq_tx() 380 drvdata->gpio_data = devm_gpiod_get(dev, "data", gflags); in ps2_gpio_get_props() [all …]
|
/Linux-v6.6/drivers/input/keyboard/ |
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()
|
D | adp5589-keys.c | 503 const struct adp5589_gpio_platform_data *gpio_data = pdata->gpio_data; in adp5589_gpio_add() local 506 if (!gpio_data) in adp5589_gpio_add() 522 kpad->gc.base = gpio_data->gpio_start; in adp5589_gpio_add()
|
/Linux-v6.6/drivers/rtc/ |
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-v6.6/sound/pci/hda/ |
D | patch_cs8409.c | 428 ucontrol->value.integer.value[0] = !!(spec->gpio_data & spec->speaker_pdn_gpio); in cs8409_spk_sw_gpio_get() 437 unsigned int gpio_data; in cs8409_spk_sw_gpio_put() local 439 gpio_data = (spec->gpio_data & ~spec->speaker_pdn_gpio) | in cs8409_spk_sw_gpio_put() 441 if (gpio_data == spec->gpio_data) in cs8409_spk_sw_gpio_put() 443 spec->gpio_data = gpio_data; in cs8409_spk_sw_gpio_put() 444 snd_hda_codec_write(codec, CS8409_PIN_AFG, 0, AC_VERB_SET_GPIO_DATA, spec->gpio_data); in cs8409_spk_sw_gpio_put() 882 spec->gpio_data = snd_hda_codec_read(codec, CS8409_PIN_AFG, 0, AC_VERB_GET_GPIO_DATA, 0); in cs42l42_resume() 883 spec->gpio_data |= cs42l42->reset_gpio; in cs42l42_resume() 884 snd_hda_codec_write(codec, CS8409_PIN_AFG, 0, AC_VERB_SET_GPIO_DATA, spec->gpio_data); in cs42l42_resume() 947 spec->gpio_data = snd_hda_codec_read(codec, CS8409_PIN_AFG, 0, AC_VERB_GET_GPIO_DATA, 0); in cs42l42_suspend() [all …]
|
D | patch_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 …]
|
D | patch_cirrus.c | 28 unsigned int gpio_data; member 168 spec->gpio_data = spec->gen.hp_jack_present ? in cs_automute() 171 spec->gpio_data = in cs_automute() 174 AC_VERB_SET_GPIO_DATA, spec->gpio_data); in cs_automute() 312 spec->gpio_data); in cs_init() 1081 spec->gpio_data); in cs421x_init()
|
D | patch_cs8409.h | 330 unsigned int gpio_data; member
|
/Linux-v6.6/drivers/input/rmi4/ |
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()
|
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-v6.6/drivers/fsi/ |
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()
|
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-v6.6/drivers/net/dsa/mv88e6xxx/ |
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()
|
D | chip.h | 392 u8 gpio_data[2]; member
|
/Linux-v6.6/drivers/scsi/qla2xxx/ |
D | qla_sup.c | 1576 uint16_t gpio_data; in qla2x00_beacon_blink() local 1590 gpio_data = RD_REG_WORD_PIO(PIO_REG(ha, gpiod)); in qla2x00_beacon_blink() 1593 gpio_data = rd_reg_word(®->gpiod); in qla2x00_beacon_blink() 1609 gpio_data &= ~GPIO_LED_MASK; in qla2x00_beacon_blink() 1612 gpio_data |= led_color; in qla2x00_beacon_blink() 1616 WRT_REG_WORD_PIO(PIO_REG(ha, gpiod), gpio_data); in qla2x00_beacon_blink() 1618 wrt_reg_word(®->gpiod, gpio_data); in qla2x00_beacon_blink() 1629 uint16_t gpio_data; in qla2x00_beacon_on() local 1647 gpio_data = RD_REG_WORD_PIO(PIO_REG(ha, gpiod)); in qla2x00_beacon_on() 1650 gpio_data = rd_reg_word(®->gpiod); in qla2x00_beacon_on() [all …]
|
/Linux-v6.6/drivers/i2c/busses/ |
D | i2c-i801.c | 1391 struct i2c_mux_gpio_platform_data gpio_data; in i801_add_mux() local 1400 memset(&gpio_data, 0, sizeof(struct i2c_mux_gpio_platform_data)); in i801_add_mux() 1401 gpio_data.parent = priv->adapter.nr; in i801_add_mux() 1402 gpio_data.values = mux_config->values; in i801_add_mux() 1403 gpio_data.n_values = mux_config->n_values; in i801_add_mux() 1404 gpio_data.classes = mux_config->classes; in i801_add_mux() 1405 gpio_data.idle = I2C_MUX_GPIO_NO_IDLE; in i801_add_mux() 1428 PLATFORM_DEVID_NONE, &gpio_data, in i801_add_mux()
|
/Linux-v6.6/include/linux/input/ |
D | adp5589.h | 171 const struct adp5589_gpio_platform_data *gpio_data; member
|
/Linux-v6.6/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-phy-v2.c | 3037 u8 gpio_reg, gpio_ports[2], gpio_data[3]; in xgbe_phy_i2c_mdio_reset() local 3049 gpio_data[0] = 2; in xgbe_phy_i2c_mdio_reset() 3050 gpio_data[1] = gpio_ports[0]; in xgbe_phy_i2c_mdio_reset() 3051 gpio_data[2] = gpio_ports[1]; in xgbe_phy_i2c_mdio_reset() 3055 gpio_data[1] |= (1 << (phy_data->mdio_reset_gpio % 8)); in xgbe_phy_i2c_mdio_reset() 3057 gpio_data[2] |= (1 << (phy_data->mdio_reset_gpio % 8)); in xgbe_phy_i2c_mdio_reset() 3061 gpio_data, sizeof(gpio_data)); in xgbe_phy_i2c_mdio_reset() 3067 gpio_data[1] &= ~(1 << (phy_data->mdio_reset_gpio % 8)); in xgbe_phy_i2c_mdio_reset() 3069 gpio_data[2] &= ~(1 << (phy_data->mdio_reset_gpio % 8)); in xgbe_phy_i2c_mdio_reset() 3073 gpio_data, sizeof(gpio_data)); in xgbe_phy_i2c_mdio_reset()
|
/Linux-v6.6/include/linux/ |
D | rmi.h | 222 struct rmi_gpio_data gpio_data; member
|
/Linux-v6.6/drivers/media/pci/bt8xx/ |
D | bttvp.h | 301 u32 gpio_data; member
|
/Linux-v6.6/drivers/media/i2c/cx25840/ |
D | cx25840-core.c | 180 u8 gpio_oe, gpio_data, strength; in cx23885_s_io_pin_config() local 184 gpio_data = cx25840_read(client, 0x164); in cx23885_s_io_pin_config() 223 gpio_data &= ~(0x1 << 0); in cx23885_s_io_pin_config() 224 gpio_data |= ((p[i].value & 0x1) << 0); in cx23885_s_io_pin_config() 244 gpio_data &= ~(0x1 << 1); in cx23885_s_io_pin_config() 245 gpio_data |= ((p[i].value & 0x1) << 1); in cx23885_s_io_pin_config() 262 gpio_data &= ~(0x1 << 2); in cx23885_s_io_pin_config() 263 gpio_data |= ((p[i].value & 0x1) << 2); in cx23885_s_io_pin_config() 280 gpio_data &= ~(0x1 << 3); in cx23885_s_io_pin_config() 281 gpio_data |= ((p[i].value & 0x1) << 3); in cx23885_s_io_pin_config() [all …]
|