Searched refs:gpiod (Results 1 - 20 of 20) sorted by relevance

/linux-4.1.27/drivers/leds/
H A Dleds-gpio.c26 struct gpio_desc *gpiod; member in struct:gpio_led_data
41 led_dat->platform_gpio_blink_set(led_dat->gpiod, gpio_led_work()
45 gpiod_set_value_cansleep(led_dat->gpiod, led_dat->new_level); gpio_led_work()
69 led_dat->platform_gpio_blink_set(led_dat->gpiod, level, gpio_led_set()
73 gpiod_set_value(led_dat->gpiod, level); gpio_led_set()
84 return led_dat->platform_gpio_blink_set(led_dat->gpiod, GPIO_LED_BLINK, gpio_blink_set()
95 led_dat->gpiod = template->gpiod; create_gpio_led()
96 if (!led_dat->gpiod) { create_gpio_led()
119 led_dat->gpiod = gpio_to_desc(template->gpio); create_gpio_led()
120 if (IS_ERR(led_dat->gpiod)) create_gpio_led()
121 return PTR_ERR(led_dat->gpiod); create_gpio_led()
126 led_dat->can_sleep = gpiod_cansleep(led_dat->gpiod); create_gpio_led()
134 state = !!gpiod_get_value_cansleep(led_dat->gpiod); create_gpio_led()
141 ret = gpiod_direction_output(led_dat->gpiod, state); create_gpio_led()
187 led.gpiod = devm_get_gpiod_from_child(dev, NULL, child); device_for_each_child_node()
188 if (IS_ERR(led.gpiod)) { device_for_each_child_node()
190 ret = PTR_ERR(led.gpiod); device_for_each_child_node()
/linux-4.1.27/arch/mips/include/asm/mach-rc32434/
H A Dgpio.h37 u32 gpiod; /* GPIO Data Register member in struct:rb532_gpio_reg
38 * gpiod[x] read/write gpio pinX status
44 * istat[x] = (gpiod[x] == level[x])
/linux-4.1.27/drivers/input/keyboard/
H A Dgpio_keys_polled.c53 state = !!gpiod_get_value_cansleep(button->gpiod); gpio_keys_polled_check_state()
55 state = !!gpiod_get_value(button->gpiod); gpio_keys_polled_check_state()
140 button->gpiod = desc; device_for_each_child_node()
248 if (!button->gpiod && gpio_is_valid(button->gpio)) { gpio_keys_polled_probe()
262 button->gpiod = gpio_to_desc(button->gpio); gpio_keys_polled_probe()
265 if (IS_ERR(button->gpiod)) gpio_keys_polled_probe()
266 return PTR_ERR(button->gpiod); gpio_keys_polled_probe()
268 bdata->can_sleep = gpiod_cansleep(button->gpiod); gpio_keys_polled_probe()
/linux-4.1.27/include/linux/
H A Dgpio_keys.h21 * @gpiod: GPIO descriptor
34 struct gpio_desc *gpiod; member in struct:gpio_keys_button
H A Dleds.h310 struct gpio_desc *gpiod; member in struct:gpio_led
H A Dclk-provider.h531 * @gpiod: gpio descriptor
539 struct gpio_desc *gpiod; member in struct:clk_gpio
/linux-4.1.27/drivers/clk/
H A Dclk-gpio-gate.c37 gpiod_set_value(clk->gpiod, 1); clk_gpio_gate_enable()
46 gpiod_set_value(clk->gpiod, 0); clk_gpio_gate_disable()
53 return gpiod_get_value(clk->gpiod); clk_gpio_gate_is_enabled()
115 clk_gpio->gpiod = gpio_to_desc(gpio); clk_register_gpio_gate()
/linux-4.1.27/drivers/video/fbdev/omap2/displays-new/
H A Dpanel-sharp-ls037v7dw01.c201 char *desc, struct gpio_desc **gpiod) sharp_ls_get_gpio()
206 *gpiod = NULL; sharp_ls_get_gpio()
216 *gpiod = gd; sharp_ls_get_gpio()
268 const char *desc, struct gpio_desc **gpiod) sharp_ls_get_gpio_of()
273 *gpiod = NULL; sharp_ls_get_gpio_of()
283 *gpiod = gd; sharp_ls_get_gpio_of()
200 sharp_ls_get_gpio(struct device *dev, int gpio, unsigned long flags, char *desc, struct gpio_desc **gpiod) sharp_ls_get_gpio() argument
267 sharp_ls_get_gpio_of(struct device *dev, int index, int val, const char *desc, struct gpio_desc **gpiod) sharp_ls_get_gpio_of() argument
/linux-4.1.27/drivers/scsi/qla2xxx/
H A Dqla_sup.c1527 gpio_data = RD_REG_WORD_PIO(PIO_REG(ha, gpiod)); qla2x00_beacon_blink()
1530 gpio_data = RD_REG_WORD(&reg->gpiod); qla2x00_beacon_blink()
1553 WRT_REG_WORD_PIO(PIO_REG(ha, gpiod), gpio_data); qla2x00_beacon_blink()
1555 WRT_REG_WORD(&reg->gpiod, gpio_data); qla2x00_beacon_blink()
1556 RD_REG_WORD(&reg->gpiod); qla2x00_beacon_blink()
1584 gpio_data = RD_REG_WORD_PIO(PIO_REG(ha, gpiod)); qla2x00_beacon_on()
1587 gpio_data = RD_REG_WORD(&reg->gpiod); qla2x00_beacon_on()
1602 WRT_REG_WORD_PIO(PIO_REG(ha, gpiod), gpio_data); qla2x00_beacon_on()
1604 WRT_REG_WORD(&reg->gpiod, gpio_data); qla2x00_beacon_on()
1605 RD_REG_WORD(&reg->gpiod); qla2x00_beacon_on()
1672 gpio_data = RD_REG_DWORD(&reg->gpiod); qla24xx_beacon_blink()
1677 WRT_REG_DWORD(&reg->gpiod, gpio_data); qla24xx_beacon_blink()
1678 gpio_data = RD_REG_DWORD(&reg->gpiod); qla24xx_beacon_blink()
1690 WRT_REG_DWORD(&reg->gpiod, gpio_data); qla24xx_beacon_blink()
1691 gpio_data = RD_REG_DWORD(&reg->gpiod); qla24xx_beacon_blink()
1821 gpio_data = RD_REG_DWORD(&reg->gpiod); qla24xx_beacon_on()
1825 WRT_REG_DWORD(&reg->gpiod, gpio_data); qla24xx_beacon_on()
1826 RD_REG_DWORD(&reg->gpiod); qla24xx_beacon_on()
1866 gpio_data = RD_REG_DWORD(&reg->gpiod); qla24xx_beacon_off()
1870 WRT_REG_DWORD(&reg->gpiod, gpio_data); qla24xx_beacon_off()
1871 RD_REG_DWORD(&reg->gpiod); qla24xx_beacon_off()
H A Dqla_fw.h1025 uint32_t gpiod; /* GPIO Data register. */ member in struct:device_reg_24xx
H A Dqla_def.h552 uint16_t gpiod; /* GPIO Data register. */ member in struct:device_reg_2xxx
/linux-4.1.27/arch/cris/include/uapi/asm/
H A Detraxgpio.h19 * /dev/gpiod minor 4, 18 bit GPIO, each bit can change direction
27 * /dev/gpiod minor 4, 32 bit GPIO, input only
/linux-4.1.27/arch/mips/cavium-octeon/
H A Docteon-irq.c1215 struct octeon_irq_gpio_domain_data *gpiod = d->host_data; octeon_irq_gpio_map() local
1222 line = (hw + gpiod->base_hwirq) >> 6; octeon_irq_gpio_map()
1223 bit = (hw + gpiod->base_hwirq) & 63; octeon_irq_gpio_map()
1537 struct octeon_irq_gpio_domain_data *gpiod; octeon_irq_init_gpio() local
1575 gpiod = kzalloc(sizeof(*gpiod), GFP_KERNEL); octeon_irq_init_gpio()
1576 if (gpiod) { octeon_irq_init_gpio()
1578 gpiod->base_hwirq = base_hwirq; octeon_irq_init_gpio()
1580 gpio_node, 16, &octeon_irq_domain_gpio_ops, gpiod); octeon_irq_init_gpio()
/linux-4.1.27/drivers/tty/serial/
H A Dmxs-auart.c1161 struct gpio_desc *gpiod; mxs_auart_init_gpios() local
1176 gpiod = mctrl_gpio_to_gpiod(s->gpios, i); mxs_auart_init_gpios()
1177 if (gpiod && (gpiod_get_direction(gpiod) == GPIOF_DIR_IN)) mxs_auart_init_gpios()
1178 s->gpio_irq[i] = gpiod_to_irq(gpiod); mxs_auart_init_gpios()
H A Datmel_serial.c2584 struct gpio_desc *gpiod; atmel_init_gpios() local
2591 gpiod = mctrl_gpio_to_gpiod(p->gpios, i); atmel_init_gpios()
2592 if (gpiod && (gpiod_get_direction(gpiod) == GPIOF_DIR_IN)) atmel_init_gpios()
2593 p->gpio_irq[i] = gpiod_to_irq(gpiod); atmel_init_gpios()
/linux-4.1.27/drivers/usb/gadget/udc/
H A Dpxa27x_udc.c1501 if (udc->gpiod) { dplus_pullup()
1502 gpiod_set_value(udc->gpiod, on); dplus_pullup()
1598 if (!udc->gpiod && !udc->udc_command) pxa_udc_pullup()
2421 udc->gpiod = gpio_to_desc(mach->gpio_pullup); pxa_udc_probe()
2425 udc->gpiod = devm_gpiod_get(&pdev->dev, NULL); pxa_udc_probe()
2439 if (IS_ERR(udc->gpiod)) { pxa_udc_probe()
2441 PTR_ERR(udc->gpiod)); pxa_udc_probe()
2442 return PTR_ERR(udc->gpiod); pxa_udc_probe()
2444 if (udc->gpiod) pxa_udc_probe()
2445 gpiod_direction_output(udc->gpiod, 0); pxa_udc_probe()
H A Dpxa27x_udc.h424 * @gpiod: gpio descriptor of gpio for D+ pullup (or NULL if none)
451 struct gpio_desc *gpiod; member in struct:pxa_udc
/linux-4.1.27/drivers/gpio/
H A Dgpiolib-sysfs.c803 /* prevent further gpiod exports */ gpiochip_unexport()
813 /* unregister gpiod class devices owned by sysfs */ gpiochip_unexport()
/linux-4.1.27/drivers/regulator/
H A Dcore.c81 struct gpio_desc *gpiod; member in struct:regulator_enable_gpio
1732 struct gpio_desc *gpiod; regulator_ena_gpio_request() local
1735 gpiod = gpio_to_desc(config->ena_gpio); regulator_ena_gpio_request()
1738 if (pin->gpiod == gpiod) { regulator_ena_gpio_request()
1757 pin->gpiod = gpiod; regulator_ena_gpio_request()
1776 if (pin->gpiod == rdev->ena_pin->gpiod) { regulator_ena_gpio_free()
1779 gpiod_put(pin->gpiod); regulator_ena_gpio_free()
1809 gpiod_set_value_cansleep(pin->gpiod, regulator_ena_gpio_ctrl()
1821 gpiod_set_value_cansleep(pin->gpiod, regulator_ena_gpio_ctrl()
/linux-4.1.27/drivers/pinctrl/
H A Dpinctrl-tb10x.c455 DEFPINFUNCGRP(gpiod, -1, 0, 1),

Completed in 760 milliseconds