/drivers/leds/trigger/ |
D | ledtrig-gpio.c | 34 struct gpio_trig_data *gpio_data = led->trigger_data; in gpio_trig_irq() local 37 schedule_work(&gpio_data->work); in gpio_trig_irq() 44 struct gpio_trig_data *gpio_data = container_of(work, in gpio_trig_work() local 48 if (!gpio_data->gpio) in gpio_trig_work() 51 tmp = gpio_get_value_cansleep(gpio_data->gpio); in gpio_trig_work() 52 if (gpio_data->inverted) in gpio_trig_work() 56 if (gpio_data->desired_brightness) in gpio_trig_work() 57 led_set_brightness_async(gpio_data->led, in gpio_trig_work() 58 gpio_data->desired_brightness); in gpio_trig_work() 60 led_set_brightness_async(gpio_data->led, LED_FULL); in gpio_trig_work() [all …]
|
/drivers/staging/sm750fb/ |
D | ddk750_swi2c.c | 120 unsigned long gpio_data; in sw_i2c_scl() local 133 gpio_data = PEEK32(sw_i2c_clk_gpio_data_reg); in sw_i2c_scl() 134 gpio_data &= ~(1 << sw_i2c_clk_gpio); in sw_i2c_scl() 135 POKE32(sw_i2c_clk_gpio_data_reg, gpio_data); in sw_i2c_scl() 157 unsigned long gpio_data; in sw_i2c_sda() local 170 gpio_data = PEEK32(sw_i2c_data_gpio_data_reg); in sw_i2c_sda() 171 gpio_data &= ~(1 << sw_i2c_data_gpio); in sw_i2c_sda() 172 POKE32(sw_i2c_data_gpio_data_reg, gpio_data); in sw_i2c_sda() 189 unsigned long gpio_data; in sw_i2c_read_sda() local 200 gpio_data = PEEK32(sw_i2c_data_gpio_data_reg); in sw_i2c_read_sda() [all …]
|
/drivers/staging/android/ |
D | timed_gpio.c | 90 struct timed_gpio_data *gpio_data, *gpio_dat; in timed_gpio_probe() local 96 gpio_data = devm_kzalloc(&pdev->dev, in timed_gpio_probe() 99 if (!gpio_data) in timed_gpio_probe() 104 gpio_dat = &gpio_data[i]; in timed_gpio_probe() 129 platform_set_drvdata(pdev, gpio_data); in timed_gpio_probe() 135 timed_output_dev_unregister(&gpio_data[i].dev); in timed_gpio_probe() 136 gpio_free(gpio_data[i].gpio); in timed_gpio_probe() 145 struct timed_gpio_data *gpio_data = platform_get_drvdata(pdev); in timed_gpio_remove() local 149 timed_output_dev_unregister(&gpio_data[i].dev); in timed_gpio_remove() 150 gpio_free(gpio_data[i].gpio); in timed_gpio_remove()
|
/drivers/hwmon/ |
D | sht15.c | 207 err = gpio_direction_output(data->pdata->gpio_data, 1); in sht15_connection_reset() 229 gpio_set_value(data->pdata->gpio_data, val); in sht15_send_bit() 250 err = gpio_direction_output(data->pdata->gpio_data, 1); in sht15_transmission_start() 258 gpio_set_value(data->pdata->gpio_data, 0); in sht15_transmission_start() 264 gpio_set_value(data->pdata->gpio_data, 1); in sht15_transmission_start() 294 err = gpio_direction_input(data->pdata->gpio_data); in sht15_wait_for_response() 299 if (gpio_get_value(data->pdata->gpio_data)) { in sht15_wait_for_response() 362 err = gpio_direction_output(data->pdata->gpio_data, 0); in sht15_ack() 370 gpio_set_value(data->pdata->gpio_data, 1); in sht15_ack() 372 return gpio_direction_input(data->pdata->gpio_data); in sht15_ack() [all …]
|
/drivers/rtc/ |
D | rtc-moxart.c | 61 int gpio_data, gpio_sclk, gpio_reset; member 74 gpio_set_value(moxart_rtc->gpio_data, ((data & 1) == 1)); in moxart_rtc_write_byte() 92 if (gpio_get_value(moxart_rtc->gpio_data)) in moxart_rtc_read_byte() 107 gpio_direction_output(moxart_rtc->gpio_data, 0); in moxart_rtc_read_register() 111 gpio_direction_input(moxart_rtc->gpio_data); in moxart_rtc_read_register() 130 gpio_direction_output(moxart_rtc->gpio_data, 0); in moxart_rtc_write_register() 253 moxart_rtc->gpio_data = of_get_named_gpio(pdev->dev.of_node, in moxart_rtc_probe() 255 if (!gpio_is_valid(moxart_rtc->gpio_data)) { in moxart_rtc_probe() 257 moxart_rtc->gpio_data); in moxart_rtc_probe() 258 return moxart_rtc->gpio_data; in moxart_rtc_probe() [all …]
|
/drivers/input/keyboard/ |
D | adp5588-keys.c | 186 const struct adp5588_gpio_platform_data *gpio_data = pdata->gpio_data; in adp5588_gpio_add() local 189 if (!gpio_data) in adp5588_gpio_add() 206 kpad->gc.base = gpio_data->gpio_start; in adp5588_gpio_add() 209 kpad->gc.names = gpio_data->names; in adp5588_gpio_add() 225 if (gpio_data->setup) { in adp5588_gpio_add() 226 error = gpio_data->setup(kpad->client, in adp5588_gpio_add() 228 gpio_data->context); in adp5588_gpio_add() 240 const struct adp5588_gpio_platform_data *gpio_data = pdata->gpio_data; in adp5588_gpio_remove() local 246 if (gpio_data->teardown) { in adp5588_gpio_remove() 247 error = gpio_data->teardown(kpad->client, in adp5588_gpio_remove() [all …]
|
D | clps711x-keypad.c | 34 struct clps711x_gpio_data *gpio_data; member 52 struct clps711x_gpio_data *data = &priv->gpio_data[row]; in clps711x_keypad_poll() 112 priv->gpio_data = devm_kzalloc(dev, in clps711x_keypad_probe() 113 sizeof(*priv->gpio_data) * priv->row_count, in clps711x_keypad_probe() 115 if (!priv->gpio_data) in clps711x_keypad_probe() 121 struct clps711x_gpio_data *data = &priv->gpio_data[i]; in clps711x_keypad_probe()
|
D | adp5589-keys.c | 502 const struct adp5589_gpio_platform_data *gpio_data = pdata->gpio_data; in adp5589_gpio_add() local 505 if (!gpio_data) in adp5589_gpio_add() 522 kpad->gc.base = gpio_data->gpio_start; in adp5589_gpio_add() 541 if (gpio_data->setup) { in adp5589_gpio_add() 542 error = gpio_data->setup(kpad->client, in adp5589_gpio_add() 544 gpio_data->context); in adp5589_gpio_add() 556 const struct adp5589_gpio_platform_data *gpio_data = pdata->gpio_data; in adp5589_gpio_remove() local 562 if (gpio_data->teardown) { in adp5589_gpio_remove() 563 error = gpio_data->teardown(kpad->client, in adp5589_gpio_remove() 565 gpio_data->context); in adp5589_gpio_remove()
|
/drivers/scsi/qla2xxx/ |
D | qla_sup.c | 1513 uint16_t gpio_data; in qla2x00_beacon_blink() local 1527 gpio_data = RD_REG_WORD_PIO(PIO_REG(ha, gpiod)); in qla2x00_beacon_blink() 1530 gpio_data = RD_REG_WORD(®->gpiod); in qla2x00_beacon_blink() 1546 gpio_data &= ~GPIO_LED_MASK; in qla2x00_beacon_blink() 1549 gpio_data |= led_color; in qla2x00_beacon_blink() 1553 WRT_REG_WORD_PIO(PIO_REG(ha, gpiod), gpio_data); in qla2x00_beacon_blink() 1555 WRT_REG_WORD(®->gpiod, gpio_data); in qla2x00_beacon_blink() 1566 uint16_t gpio_data; in qla2x00_beacon_on() local 1584 gpio_data = RD_REG_WORD_PIO(PIO_REG(ha, gpiod)); in qla2x00_beacon_on() 1587 gpio_data = RD_REG_WORD(®->gpiod); in qla2x00_beacon_on() [all …]
|
/drivers/i2c/busses/ |
D | i2c-i801.c | 1106 struct i2c_mux_gpio_platform_data gpio_data; in i801_add_mux() local 1114 memset(&gpio_data, 0, sizeof(struct i2c_mux_gpio_platform_data)); in i801_add_mux() 1115 gpio_data.parent = priv->adapter.nr; in i801_add_mux() 1116 gpio_data.values = mux_config->values; in i801_add_mux() 1117 gpio_data.n_values = mux_config->n_values; in i801_add_mux() 1118 gpio_data.classes = mux_config->classes; in i801_add_mux() 1119 gpio_data.gpio_chip = mux_config->gpio_chip; in i801_add_mux() 1120 gpio_data.gpios = mux_config->gpios; in i801_add_mux() 1121 gpio_data.n_gpios = mux_config->n_gpios; in i801_add_mux() 1122 gpio_data.idle = I2C_MUX_GPIO_NO_IDLE; in i801_add_mux() [all …]
|
/drivers/gpio/ |
D | gpio-pl061.c | 41 u8 gpio_data; member 369 chip->csave_regs.gpio_data = 0; in pl061_suspend() 378 chip->csave_regs.gpio_data |= in pl061_suspend() 393 chip->csave_regs.gpio_data & in pl061_resume()
|
/drivers/pinctrl/bcm/ |
D | pinctrl-cygnus-gpio.c | 685 const struct cygnus_gpio_data *gpio_data; in cygnus_gpio_probe() local 690 gpio_data = match->data; in cygnus_gpio_probe() 691 ngpios = gpio_data->num_gpios; in cygnus_gpio_probe()
|
/drivers/media/i2c/cx25840/ |
D | cx25840-core.c | 189 u8 gpio_oe, gpio_data, strength; in cx23885_s_io_pin_config() local 193 gpio_data = cx25840_read(client, 0x164); in cx23885_s_io_pin_config() 232 gpio_data &= ~(0x1 << 0); in cx23885_s_io_pin_config() 233 gpio_data |= ((p[i].value & 0x1) << 0); in cx23885_s_io_pin_config() 253 gpio_data &= ~(0x1 << 1); in cx23885_s_io_pin_config() 254 gpio_data |= ((p[i].value & 0x1) << 1); in cx23885_s_io_pin_config() 271 gpio_data &= ~(0x1 << 2); in cx23885_s_io_pin_config() 272 gpio_data |= ((p[i].value & 0x1) << 2); in cx23885_s_io_pin_config() 289 gpio_data &= ~(0x1 << 3); in cx23885_s_io_pin_config() 290 gpio_data |= ((p[i].value & 0x1) << 3); in cx23885_s_io_pin_config() [all …]
|
/drivers/media/pci/bt8xx/ |
D | bttvp.h | 356 u32 gpio_data; member
|
D | bttv-driver.c | 4339 btv->state.gpio_data = gpio_read(); in bttv_suspend() 4381 gpio_write(btv->state.gpio_data); in bttv_resume()
|
/drivers/media/usb/cpia2/ |
D | cpia2.h | 323 u8 gpio_data; member
|
D | cpia2_core.c | 460 cam->params.vp_params.gpio_data = cmd.buffer.block_data[0]; in cpia2_do_command() 1550 cam->params.vp_params.gpio_data); in set_all_properties() 1727 cam->params.vp_params.gpio_data = setting; in cpia2_set_gpio() 2124 cam->params.vp_params.gpio_data = 0; in reset_camera_struct()
|
/drivers/video/fbdev/ |
D | nuc900fb.c | 378 modify_gpio(W90X900_VA_GPIO + 0x58, mach_info->gpio_data, in nuc900fb_init_registers()
|
/drivers/scsi/ |
D | qla1280.h | 216 uint16_t gpio_data; member
|
D | qla1280.c | 2252 WRT_REG_WORD(®->gpio_data, term); in qla1280_nvram_config()
|