/linux-master/drivers/clk/ |
H A D | clk-gpio.c | 35 * @gpiod: gpio descriptor 46 struct gpio_desc *gpiod; member in struct:clk_gpio 55 gpiod_set_value(clk->gpiod, 1); 64 gpiod_set_value(clk->gpiod, 0); 71 return gpiod_get_value(clk->gpiod); 84 gpiod_set_value_cansleep(clk->gpiod, 1); 93 gpiod_set_value_cansleep(clk->gpiod, 0); 100 return gpiod_get_value_cansleep(clk->gpiod); 121 return gpiod_get_value_cansleep(clk->gpiod); 128 gpiod_set_value_cansleep(clk->gpiod, inde 139 clk_register_gpio(struct device *dev, u8 num_parents, struct gpio_desc *gpiod, const struct clk_ops *clk_gpio_ops) argument 173 clk_hw_register_gpio_gate(struct device *dev, int num_parents, struct gpio_desc *gpiod) argument 187 clk_hw_register_gpio_mux(struct device *dev, struct gpio_desc *gpiod) argument 199 struct gpio_desc *gpiod; local [all...] |
/linux-master/drivers/leds/simple/ |
H A D | simatic-ipc-leds-gpio-core.c | 52 struct gpio_desc *gpiod; local 81 gpiod = gpiod_get_index(dev, NULL, 6, GPIOD_OUT_LOW); 82 if (IS_ERR(gpiod)) { 83 err = PTR_ERR(gpiod); 86 gpiod_put(gpiod); 89 gpiod = gpiod_get_index(dev, NULL, 7, GPIOD_OUT_LOW); 90 if (IS_ERR(gpiod)) { 91 err = PTR_ERR(gpiod); 94 gpiod_put(gpiod);
|
/linux-master/drivers/leds/trigger/ |
H A D | ledtrig-gpio.c | 21 struct gpio_desc *gpiod; /* gpio that triggers the led */ member in struct:gpio_trig_data 30 tmp = gpiod_get_value_cansleep(gpio_data->gpiod); 89 gpio_data->gpiod = gpiod_get_optional(dev, "trigger-sources", GPIOD_IN); 90 if (IS_ERR(gpio_data->gpiod)) { 91 ret = PTR_ERR(gpio_data->gpiod); 95 if (!gpio_data->gpiod) { 101 gpiod_set_consumer_name(gpio_data->gpiod, "led-trigger"); 106 ret = request_threaded_irq(gpiod_to_irq(gpio_data->gpiod), NULL, gpio_trig_irq, 111 gpiod_put(gpio_data->gpiod); 126 free_irq(gpiod_to_irq(gpio_data->gpiod), le [all...] |
/linux-master/drivers/leds/ |
H A D | leds-gpio.c | 28 struct gpio_desc *gpiod; member in struct:gpio_led_data 52 led_dat->platform_gpio_blink_set(led_dat->gpiod, level, 57 gpiod_set_value_cansleep(led_dat->gpiod, level); 59 gpiod_set_value(led_dat->gpiod, level); 76 return led_dat->platform_gpio_blink_set(led_dat->gpiod, GPIO_LED_BLINK, 89 led_dat->can_sleep = gpiod_cansleep(led_dat->gpiod); 100 state = gpiod_get_value_cansleep(led_dat->gpiod); 115 ret = gpiod_direction_output(led_dat->gpiod, state); 168 * Acquire gpiod from DT with uninitialized label, which 172 led.gpiod 216 struct gpio_desc *gpiod; local [all...] |
H A D | leds-lt3593.c | 18 struct gpio_desc *gpiod; member in struct:lt3593_led_data 38 gpiod_set_value_cansleep(led_dat->gpiod, 0); 45 gpiod_set_value_cansleep(led_dat->gpiod, 0); 47 gpiod_set_value_cansleep(led_dat->gpiod, 1); 51 gpiod_set_value_cansleep(led_dat->gpiod, 1); 54 gpiod_set_value_cansleep(led_dat->gpiod, 0); 56 gpiod_set_value_cansleep(led_dat->gpiod, 1); 81 led_data->gpiod = devm_gpiod_get(dev, "lltc,ctrl", 0); 82 if (IS_ERR(led_data->gpiod)) 83 return PTR_ERR(led_data->gpiod); [all...] |
/linux-master/drivers/extcon/ |
H A D | extcon-max3355.c | 57 struct gpio_desc *gpiod; local 65 gpiod = devm_gpiod_get(&pdev->dev, "id", GPIOD_IN); 66 if (IS_ERR(gpiod)) { 68 return PTR_ERR(gpiod); 70 data->id_gpiod = gpiod; 72 gpiod = devm_gpiod_get(&pdev->dev, "maxim,shdn", GPIOD_OUT_HIGH); 73 if (IS_ERR(gpiod)) { 75 return PTR_ERR(gpiod); 77 data->shdn_gpiod = gpiod;
|
H A D | extcon-gpio.c | 29 * @gpiod: GPIO descriptor for this external connector. 39 struct gpio_desc *gpiod; member in struct:gpio_extcon_data 52 state = gpiod_get_value_cansleep(data->gpiod); 87 data->gpiod = devm_gpiod_get(dev, "extcon", GPIOD_IN); 88 if (IS_ERR(data->gpiod)) 89 return PTR_ERR(data->gpiod); 90 irq = gpiod_to_irq(data->gpiod); 100 if (gpiod_is_active_low(data->gpiod))
|
/linux-master/drivers/w1/masters/ |
H A D | w1-gpio.c | 21 struct gpio_desc *gpiod; member in struct:w1_gpio_ddata 38 gpiod_set_raw_value(ddata->gpiod, 1); 44 gpiod_set_value(ddata->gpiod, 1); 56 gpiod_set_value(ddata->gpiod, bit); 63 return gpiod_get_value(ddata->gpiod) ? 1 : 0; 102 ddata->gpiod = devm_gpiod_get_index(dev, NULL, 0, gflags); 103 if (IS_ERR(ddata->gpiod)) { 105 return PTR_ERR(ddata->gpiod); 118 gpiod_direction_output(ddata->gpiod, 1);
|
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A D | led.c | 24 if (!wl->radio_led.gpiod) 28 gpiod_set_value(wl->radio_led.gpiod, 1); 30 gpiod_set_value(wl->radio_led.gpiod, 0); 47 if (wl->radio_led.gpiod) 48 gpiochip_free_own_desc(wl->radio_led.gpiod); 82 radio_led->gpiod = gpiochip_request_own_desc(bcma_gpio, hwnum, 86 if (IS_ERR(radio_led->gpiod)) { 87 err = PTR_ERR(radio_led->gpiod);
|
H A D | led.h | 24 struct gpio_desc *gpiod; member in struct:brcms_led
|
/linux-master/drivers/video/backlight/ |
H A D | gpio_backlight.c | 21 struct gpio_desc *gpiod; member in struct:gpio_backlight 28 gpiod_set_value_cansleep(gbl->gpiod, backlight_get_brightness(bl)); 66 gbl->gpiod = devm_gpiod_get(dev, NULL, GPIOD_ASIS); 67 if (IS_ERR(gbl->gpiod)) 68 return dev_err_probe(dev, PTR_ERR(gbl->gpiod), 86 else if (gpiod_get_value_cansleep(gbl->gpiod) == 0) 94 ret = gpiod_direction_output(gbl->gpiod, init_brightness);
|
H A D | ktd253-backlight.c | 34 struct gpio_desc *gpiod; member in struct:ktd253_backlight 40 gpiod_set_value_cansleep(ktd253->gpiod, 1); 63 gpiod_set_value(ktd253->gpiod, 0); 65 gpiod_set_value(ktd253->gpiod, 1); 92 gpiod_set_value_cansleep(ktd253->gpiod, 0); 120 gpiod_set_value_cansleep(ktd253->gpiod, 0); 175 ktd253->gpiod = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW); 176 if (IS_ERR(ktd253->gpiod)) 177 return dev_err_probe(dev, PTR_ERR(ktd253->gpiod), 179 gpiod_set_consumer_name(ktd253->gpiod, dev_nam [all...] |
H A D | lms283gf05.c | 93 static void lms283gf05_reset(struct gpio_desc *gpiod) argument 95 gpiod_set_value(gpiod, 0); /* De-asserted */ 97 gpiod_set_value(gpiod, 1); /* Asserted */ 99 gpiod_set_value(gpiod, 0); /* De-asserted */
|
/linux-master/drivers/watchdog/ |
H A D | gpio_wdt.c | 32 struct gpio_desc *gpiod; member in struct:gpio_wdt_priv 42 gpiod_set_value_cansleep(priv->gpiod, 1); 46 gpiod_direction_input(priv->gpiod); 57 gpiod_set_value_cansleep(priv->gpiod, priv->state); 61 gpiod_set_value_cansleep(priv->gpiod, 1); 63 gpiod_set_value_cansleep(priv->gpiod, 0); 74 gpiod_direction_output(priv->gpiod, priv->state); 135 priv->gpiod = devm_gpiod_get(dev, NULL, gflags); 136 if (IS_ERR(priv->gpiod)) 137 return PTR_ERR(priv->gpiod); [all...] |
H A D | mtx-1_wdt.c | 56 struct gpio_desc *gpiod; member in struct:__anon2919 68 gpiod_set_value(mtx1_wdt_device.gpiod, mtx1_wdt_device.gstate); 91 gpiod_set_value(mtx1_wdt_device.gpiod, 1); 106 gpiod_set_value(mtx1_wdt_device.gpiod, 0); 200 mtx1_wdt_device.gpiod = devm_gpiod_get(&pdev->dev, 202 if (IS_ERR(mtx1_wdt_device.gpiod)) { 204 return PTR_ERR(mtx1_wdt_device.gpiod);
|
/linux-master/drivers/net/phy/ |
H A D | fixed_phy.c | 135 struct gpio_desc *gpiod) 154 fp->link_gpiod = gpiod; 193 struct gpio_desc *gpiod; local 207 gpiod = fwnode_gpiod_get_index(of_fwnode_handle(fixed_link_node), 209 if (IS_ERR(gpiod) && PTR_ERR(gpiod) != -EPROBE_DEFER) { 210 if (PTR_ERR(gpiod) != -ENOENT) 213 gpiod = NULL; 217 return gpiod; 229 struct gpio_desc *gpiod) 133 fixed_phy_add_gpiod(unsigned int irq, int phy_addr, struct fixed_phy_status *status, struct gpio_desc *gpiod) argument 226 __fixed_phy_register(unsigned int irq, struct fixed_phy_status *status, struct device_node *np, struct gpio_desc *gpiod) argument 319 fixed_phy_register_with_gpiod(unsigned int irq, struct fixed_phy_status *status, struct gpio_desc *gpiod) argument [all...] |
/linux-master/arch/arm/mach-omap1/ |
H A D | ams-delta-fiq.c | 87 struct gpio_desc *gpiod, *data = NULL, *clk = NULL; local 103 gpiod = gpiochip_request_own_desc(chip, i, pin_name[i], 105 if (IS_ERR(gpiod)) { 107 __func__, i, PTR_ERR(gpiod)); 111 irq_data[i] = irq_get_irq_data(gpiod_to_irq(gpiod)); 120 data = gpiod; 124 clk = gpiod; 128 gpiochip_free_own_desc(gpiod);
|
/linux-master/drivers/ata/ |
H A D | pata_rb532_cf.c | 105 struct gpio_desc *gpiod; local 123 gpiod = devm_gpiod_get(&pdev->dev, NULL, GPIOD_IN); 124 if (IS_ERR(gpiod)) { 126 return PTR_ERR(gpiod); 128 gpiod_set_consumer_name(gpiod, DRV_NAME); 140 info->gpio_line = gpiod;
|
/linux-master/drivers/usb/misc/ |
H A D | brcmstb-usb-pinmap.c | 21 struct gpio_desc *gpiod; member in struct:out_pin 28 struct gpio_desc *gpiod; member in struct:in_pin 64 val = gpiod_get_value(pin->gpiod); 91 gpiod_set_value(pout->gpiod, bit ? 1 : 0); 141 pin->gpiod = devm_gpiod_get_index(dev, "in", x, GPIOD_IN); 142 if (IS_ERR(pin->gpiod)) { 144 return PTR_ERR(pin->gpiod); 173 pout->gpiod = devm_gpiod_get_index(dev, "out", x, 175 if (IS_ERR(pout->gpiod)) { 177 return PTR_ERR(pout->gpiod); [all...] |
/linux-master/arch/mips/include/asm/mach-rc32434/ |
H A D | gpio.h | 26 u32 gpiod; /* GPIO Data Register member in struct:rb532_gpio_reg 27 * gpiod[x] read/write gpio pinX status 33 * istat[x] = (gpiod[x] == level[x])
|
/linux-master/include/linux/ |
H A D | phy_fixed.h | 30 struct gpio_desc *gpiod); 52 struct gpio_desc *gpiod) 50 fixed_phy_register_with_gpiod(unsigned int irq, struct fixed_phy_status *status, struct gpio_desc *gpiod) argument
|
/linux-master/arch/powerpc/platforms/44x/ |
H A D | warp.c | 96 .gpiod = NULL, /* to be filled by pika_setup_leds() */ 101 .gpiod = NULL, /* to be filled by pika_setup_leds() */ 124 gpiod_set_value(warp_gpio_led_pins[WARP_GREEN_LED].gpiod, 0); 134 gpiod_set_value(warp_gpio_led_pins[WARP_RED_LED].gpiod, value); 172 if (led->gpiod) { 189 led->gpiod = gpio; 211 gpiod_put(led->gpiod); 212 led->gpiod = NULL;
|
/linux-master/drivers/platform/x86/x86-android-tablets/ |
H A D | core.c | 48 struct gpio_desc *gpiod; local 61 gpiod = devm_gpiod_get(&x86_android_tablet_device->dev, con_id, dflags); 65 if (IS_ERR(gpiod)) { 66 pr_err("error %ld getting GPIO %s %d\n", PTR_ERR(gpiod), chip, pin); 67 return PTR_ERR(gpiod); 71 *desc = gpiod; 81 struct gpio_desc *gpiod; local 103 false, GPIOD_ASIS, &gpiod); 107 irq = gpiod_to_irq(gpiod); 118 devm_gpiod_put(&x86_android_tablet_device->dev, gpiod); 417 struct gpio_desc *gpiod; local [all...] |
/linux-master/sound/soc/intel/avs/boards/ |
H A D | es8336.c | 28 struct gpio_desc *gpiod; member in struct:avs_card_drvdata 49 gpiod_set_value_cansleep(data->gpiod, speaker_en); 106 struct gpio_desc *gpiod; local 125 gpiod = gpiod_get_optional(codec_dai->dev, "speaker-enable", GPIOD_OUT_LOW); 126 if (IS_ERR(gpiod)) 127 return dev_err_probe(codec_dai->dev, PTR_ERR(gpiod), "Get gpiod failed: %ld\n", 128 PTR_ERR(gpiod)); 130 data->gpiod = gpiod; [all...] |
/linux-master/drivers/iio/humidity/ |
H A D | dht11.c | 73 struct gpio_desc *gpiod; member in struct:dht11 179 gpiod_get_value(dht11->gpiod); 217 ret = gpiod_direction_output(dht11->gpiod, 0); 222 ret = gpiod_direction_input(dht11->gpiod); 305 dht11->gpiod = devm_gpiod_get(dev, NULL, GPIOD_IN); 306 if (IS_ERR(dht11->gpiod)) 307 return PTR_ERR(dht11->gpiod); 309 dht11->irq = gpiod_to_irq(dht11->gpiod); 311 dev_err(dev, "GPIO %d has no interrupt\n", desc_to_gpio(dht11->gpiod));
|