Home
last modified time | relevance | path

Searched full:gpiod (Results 1 – 25 of 275) sorted by relevance

1234567891011

/kernel/linux/linux-5.10/drivers/leds/
Dleds-gpio.c22 struct gpio_desc *gpiod; member
46 led_dat->platform_gpio_blink_set(led_dat->gpiod, level, in gpio_led_set()
51 gpiod_set_value_cansleep(led_dat->gpiod, level); in gpio_led_set()
53 gpiod_set_value(led_dat->gpiod, level); in gpio_led_set()
70 return led_dat->platform_gpio_blink_set(led_dat->gpiod, GPIO_LED_BLINK, in gpio_blink_set()
82 led_dat->can_sleep = gpiod_cansleep(led_dat->gpiod); in create_gpio_led()
93 state = gpiod_get_value_cansleep(led_dat->gpiod); in create_gpio_led()
107 ret = gpiod_direction_output(led_dat->gpiod, state); in create_gpio_led()
149 * Acquire gpiod from DT with uninitialized label, which in gpio_leds_create()
153 led.gpiod = devm_fwnode_get_gpiod_from_child(dev, NULL, child, in gpio_leds_create()
[all …]
Dleds-lt3593.c17 struct gpio_desc *gpiod; member
37 gpiod_set_value_cansleep(led_dat->gpiod, 0); in lt3593_led_set()
44 gpiod_set_value_cansleep(led_dat->gpiod, 0); in lt3593_led_set()
46 gpiod_set_value_cansleep(led_dat->gpiod, 1); in lt3593_led_set()
50 gpiod_set_value_cansleep(led_dat->gpiod, 1); in lt3593_led_set()
53 gpiod_set_value_cansleep(led_dat->gpiod, 0); in lt3593_led_set()
55 gpiod_set_value_cansleep(led_dat->gpiod, 1); in lt3593_led_set()
83 led_data->gpiod = devm_gpiod_get(dev, "lltc,ctrl", 0); in lt3593_led_probe()
84 if (IS_ERR(led_data->gpiod)) in lt3593_led_probe()
85 return PTR_ERR(led_data->gpiod); in lt3593_led_probe()
/kernel/linux/linux-6.6/drivers/leds/
Dleds-gpio.c24 struct gpio_desc *gpiod; member
48 led_dat->platform_gpio_blink_set(led_dat->gpiod, level, in gpio_led_set()
53 gpiod_set_value_cansleep(led_dat->gpiod, level); in gpio_led_set()
55 gpiod_set_value(led_dat->gpiod, level); in gpio_led_set()
72 return led_dat->platform_gpio_blink_set(led_dat->gpiod, GPIO_LED_BLINK, in gpio_blink_set()
85 led_dat->can_sleep = gpiod_cansleep(led_dat->gpiod); in create_gpio_led()
96 state = gpiod_get_value_cansleep(led_dat->gpiod); in create_gpio_led()
111 ret = gpiod_direction_output(led_dat->gpiod, state); in create_gpio_led()
168 * Acquire gpiod from DT with uninitialized label, which in gpio_leds_create()
172 led.gpiod = devm_fwnode_gpiod_get(dev, child, NULL, GPIOD_ASIS, in gpio_leds_create()
[all …]
Dleds-lt3593.c18 struct gpio_desc *gpiod; member
38 gpiod_set_value_cansleep(led_dat->gpiod, 0); in lt3593_led_set()
45 gpiod_set_value_cansleep(led_dat->gpiod, 0); in lt3593_led_set()
47 gpiod_set_value_cansleep(led_dat->gpiod, 1); in lt3593_led_set()
51 gpiod_set_value_cansleep(led_dat->gpiod, 1); in lt3593_led_set()
54 gpiod_set_value_cansleep(led_dat->gpiod, 0); in lt3593_led_set()
56 gpiod_set_value_cansleep(led_dat->gpiod, 1); in lt3593_led_set()
81 led_data->gpiod = devm_gpiod_get(dev, "lltc,ctrl", 0); in lt3593_led_probe()
82 if (IS_ERR(led_data->gpiod)) in lt3593_led_probe()
83 return PTR_ERR(led_data->gpiod); in lt3593_led_probe()
/kernel/linux/linux-6.6/drivers/clk/
Dclk-gpio.c35 * @gpiod: gpio descriptor
46 struct gpio_desc *gpiod; member
55 gpiod_set_value(clk->gpiod, 1); in clk_gpio_gate_enable()
64 gpiod_set_value(clk->gpiod, 0); in clk_gpio_gate_disable()
71 return gpiod_get_value(clk->gpiod); in clk_gpio_gate_is_enabled()
84 gpiod_set_value_cansleep(clk->gpiod, 1); in clk_sleeping_gpio_gate_prepare()
93 gpiod_set_value_cansleep(clk->gpiod, 0); in clk_sleeping_gpio_gate_unprepare()
100 return gpiod_get_value_cansleep(clk->gpiod); in clk_sleeping_gpio_gate_is_prepared()
121 return gpiod_get_value_cansleep(clk->gpiod); in clk_gpio_mux_get_parent()
128 gpiod_set_value_cansleep(clk->gpiod, index); in clk_gpio_mux_set_parent()
[all …]
/kernel/linux/linux-5.10/drivers/clk/
Dclk-gpio.c35 * @gpiod: gpio descriptor
46 struct gpio_desc *gpiod; member
55 gpiod_set_value(clk->gpiod, 1); in clk_gpio_gate_enable()
64 gpiod_set_value(clk->gpiod, 0); in clk_gpio_gate_disable()
71 return gpiod_get_value(clk->gpiod); in clk_gpio_gate_is_enabled()
84 gpiod_set_value_cansleep(clk->gpiod, 1); in clk_sleeping_gpio_gate_prepare()
93 gpiod_set_value_cansleep(clk->gpiod, 0); in clk_sleeping_gpio_gate_unprepare()
100 return gpiod_get_value_cansleep(clk->gpiod); in clk_sleeping_gpio_gate_is_prepared()
121 return gpiod_get_value_cansleep(clk->gpiod); in clk_gpio_mux_get_parent()
128 gpiod_set_value_cansleep(clk->gpiod, index); in clk_gpio_mux_set_parent()
[all …]
/kernel/linux/linux-6.6/drivers/leds/simple/
Dsimatic-ipc-leds-gpio-core.c54 struct gpio_desc *gpiod; in simatic_ipc_leds_gpio_probe() local
83 gpiod = gpiod_get_index(dev, NULL, 6, GPIOD_OUT_LOW); in simatic_ipc_leds_gpio_probe()
84 if (IS_ERR(gpiod)) { in simatic_ipc_leds_gpio_probe()
85 err = PTR_ERR(gpiod); in simatic_ipc_leds_gpio_probe()
88 gpiod_put(gpiod); in simatic_ipc_leds_gpio_probe()
91 gpiod = gpiod_get_index(dev, NULL, 7, GPIOD_OUT_LOW); in simatic_ipc_leds_gpio_probe()
92 if (IS_ERR(gpiod)) { in simatic_ipc_leds_gpio_probe()
93 err = PTR_ERR(gpiod); in simatic_ipc_leds_gpio_probe()
96 gpiod_put(gpiod); in simatic_ipc_leds_gpio_probe()
/kernel/linux/linux-5.10/drivers/net/phy/
Dfixed_phy.c135 struct gpio_desc *gpiod) in fixed_phy_add_gpiod() argument
154 fp->link_gpiod = gpiod; in fixed_phy_add_gpiod()
193 struct gpio_desc *gpiod; in fixed_phy_get_gpiod() local
207 gpiod = fwnode_gpiod_get_index(of_fwnode_handle(fixed_link_node), in fixed_phy_get_gpiod()
209 if (IS_ERR(gpiod) && PTR_ERR(gpiod) != -EPROBE_DEFER) { in fixed_phy_get_gpiod()
210 if (PTR_ERR(gpiod) != -ENOENT) in fixed_phy_get_gpiod()
213 gpiod = NULL; in fixed_phy_get_gpiod()
217 return gpiod; in fixed_phy_get_gpiod()
229 struct gpio_desc *gpiod) in __fixed_phy_register() argument
240 if (!gpiod) { in __fixed_phy_register()
[all …]
/kernel/linux/linux-6.6/drivers/net/phy/
Dfixed_phy.c135 struct gpio_desc *gpiod) in fixed_phy_add_gpiod() argument
154 fp->link_gpiod = gpiod; in fixed_phy_add_gpiod()
193 struct gpio_desc *gpiod; in fixed_phy_get_gpiod() local
207 gpiod = fwnode_gpiod_get_index(of_fwnode_handle(fixed_link_node), in fixed_phy_get_gpiod()
209 if (IS_ERR(gpiod) && PTR_ERR(gpiod) != -EPROBE_DEFER) { in fixed_phy_get_gpiod()
210 if (PTR_ERR(gpiod) != -ENOENT) in fixed_phy_get_gpiod()
213 gpiod = NULL; in fixed_phy_get_gpiod()
217 return gpiod; in fixed_phy_get_gpiod()
229 struct gpio_desc *gpiod) in __fixed_phy_register() argument
240 if (!gpiod) { in __fixed_phy_register()
[all …]
/kernel/linux/linux-6.6/drivers/extcon/
Dextcon-max3355.c57 struct gpio_desc *gpiod; in max3355_probe() local
65 gpiod = devm_gpiod_get(&pdev->dev, "id", GPIOD_IN); in max3355_probe()
66 if (IS_ERR(gpiod)) { in max3355_probe()
68 return PTR_ERR(gpiod); in max3355_probe()
70 data->id_gpiod = gpiod; in max3355_probe()
72 gpiod = devm_gpiod_get(&pdev->dev, "maxim,shdn", GPIOD_OUT_HIGH); in max3355_probe()
73 if (IS_ERR(gpiod)) { in max3355_probe()
75 return PTR_ERR(gpiod); in max3355_probe()
77 data->shdn_gpiod = gpiod; in max3355_probe()
Dextcon-gpio.c29 * @gpiod: GPIO descriptor for this external connector.
39 struct gpio_desc *gpiod; member
52 state = gpiod_get_value_cansleep(data->gpiod); in gpio_extcon_work()
87 data->gpiod = devm_gpiod_get(dev, "extcon", GPIOD_IN); in gpio_extcon_probe()
88 if (IS_ERR(data->gpiod)) in gpio_extcon_probe()
89 return PTR_ERR(data->gpiod); in gpio_extcon_probe()
90 irq = gpiod_to_irq(data->gpiod); in gpio_extcon_probe()
100 if (gpiod_is_active_low(data->gpiod)) in gpio_extcon_probe()
/kernel/linux/linux-5.10/drivers/extcon/
Dextcon-max3355.c58 struct gpio_desc *gpiod; in max3355_probe() local
66 gpiod = devm_gpiod_get(&pdev->dev, "id", GPIOD_IN); in max3355_probe()
67 if (IS_ERR(gpiod)) { in max3355_probe()
69 return PTR_ERR(gpiod); in max3355_probe()
71 data->id_gpiod = gpiod; in max3355_probe()
73 gpiod = devm_gpiod_get(&pdev->dev, "maxim,shdn", GPIOD_OUT_HIGH); in max3355_probe()
74 if (IS_ERR(gpiod)) { in max3355_probe()
76 return PTR_ERR(gpiod); in max3355_probe()
78 data->shdn_gpiod = gpiod; in max3355_probe()
Dextcon-gpio.c28 * @gpiod: GPIO descriptor for this external connector.
38 struct gpio_desc *gpiod; member
51 state = gpiod_get_value_cansleep(data->gpiod); in gpio_extcon_work()
86 data->gpiod = devm_gpiod_get(dev, "extcon", GPIOD_IN); in gpio_extcon_probe()
87 if (IS_ERR(data->gpiod)) in gpio_extcon_probe()
88 return PTR_ERR(data->gpiod); in gpio_extcon_probe()
89 irq = gpiod_to_irq(data->gpiod); in gpio_extcon_probe()
99 if (gpiod_is_active_low(data->gpiod)) in gpio_extcon_probe()
/kernel/linux/linux-5.10/drivers/watchdog/
Dgpio_wdt.c31 struct gpio_desc *gpiod; member
41 gpiod_set_value_cansleep(priv->gpiod, 1); in gpio_wdt_disable()
45 gpiod_direction_input(priv->gpiod); in gpio_wdt_disable()
56 gpiod_set_value_cansleep(priv->gpiod, priv->state); in gpio_wdt_ping()
60 gpiod_set_value_cansleep(priv->gpiod, 1); in gpio_wdt_ping()
62 gpiod_set_value_cansleep(priv->gpiod, 0); in gpio_wdt_ping()
73 gpiod_direction_output(priv->gpiod, priv->state); in gpio_wdt_start()
135 priv->gpiod = devm_gpiod_get(dev, NULL, gflags); in gpio_wdt_probe()
136 if (IS_ERR(priv->gpiod)) in gpio_wdt_probe()
137 return PTR_ERR(priv->gpiod); in gpio_wdt_probe()
/kernel/linux/linux-6.6/drivers/watchdog/
Dgpio_wdt.c31 struct gpio_desc *gpiod; member
41 gpiod_set_value_cansleep(priv->gpiod, 1); in gpio_wdt_disable()
45 gpiod_direction_input(priv->gpiod); in gpio_wdt_disable()
56 gpiod_set_value_cansleep(priv->gpiod, priv->state); in gpio_wdt_ping()
60 gpiod_set_value_cansleep(priv->gpiod, 1); in gpio_wdt_ping()
62 gpiod_set_value_cansleep(priv->gpiod, 0); in gpio_wdt_ping()
73 gpiod_direction_output(priv->gpiod, priv->state); in gpio_wdt_start()
135 priv->gpiod = devm_gpiod_get(dev, NULL, gflags); in gpio_wdt_probe()
136 if (IS_ERR(priv->gpiod)) in gpio_wdt_probe()
137 return PTR_ERR(priv->gpiod); in gpio_wdt_probe()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dled.c24 if (!wl->radio_led.gpiod) in brcms_radio_led_ctrl()
28 gpiod_set_value(wl->radio_led.gpiod, 1); in brcms_radio_led_ctrl()
30 gpiod_set_value(wl->radio_led.gpiod, 0); in brcms_radio_led_ctrl()
47 if (wl->radio_led.gpiod) in brcms_led_unregister()
48 gpiochip_free_own_desc(wl->radio_led.gpiod); in brcms_led_unregister()
85 radio_led->gpiod = gpiochip_request_own_desc(bcma_gpio, hwnum, in brcms_led_register()
89 if (IS_ERR(radio_led->gpiod)) { in brcms_led_register()
90 err = PTR_ERR(radio_led->gpiod); in brcms_led_register()
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dled.c25 if (!wl->radio_led.gpiod) in brcms_radio_led_ctrl()
29 gpiod_set_value(wl->radio_led.gpiod, 1); in brcms_radio_led_ctrl()
31 gpiod_set_value(wl->radio_led.gpiod, 0); in brcms_radio_led_ctrl()
48 if (wl->radio_led.gpiod) in brcms_led_unregister()
49 gpiochip_free_own_desc(wl->radio_led.gpiod); in brcms_led_unregister()
83 radio_led->gpiod = gpiochip_request_own_desc(bcma_gpio, hwnum, in brcms_led_register()
87 if (IS_ERR(radio_led->gpiod)) { in brcms_led_register()
88 err = PTR_ERR(radio_led->gpiod); in brcms_led_register()
/kernel/linux/linux-6.6/drivers/video/backlight/
Dktd253-backlight.c34 struct gpio_desc *gpiod; member
40 gpiod_set_value_cansleep(ktd253->gpiod, 1); in ktd253_backlight_set_max_ratio()
63 gpiod_set_value(ktd253->gpiod, 0); in ktd253_backlight_stepdown()
65 gpiod_set_value(ktd253->gpiod, 1); in ktd253_backlight_stepdown()
92 gpiod_set_value_cansleep(ktd253->gpiod, 0); in ktd253_backlight_update_status()
120 gpiod_set_value_cansleep(ktd253->gpiod, 0); in ktd253_backlight_update_status()
175 ktd253->gpiod = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW); in ktd253_backlight_probe()
176 if (IS_ERR(ktd253->gpiod)) in ktd253_backlight_probe()
177 return dev_err_probe(dev, PTR_ERR(ktd253->gpiod), in ktd253_backlight_probe()
179 gpiod_set_consumer_name(ktd253->gpiod, dev_name(dev)); in ktd253_backlight_probe()
Dgpio_backlight.c21 struct gpio_desc *gpiod; member
28 gpiod_set_value_cansleep(gbl->gpiod, backlight_get_brightness(bl)); in gpio_backlight_update_status()
66 gbl->gpiod = devm_gpiod_get(dev, NULL, GPIOD_ASIS); in gpio_backlight_probe()
67 if (IS_ERR(gbl->gpiod)) { in gpio_backlight_probe()
68 ret = PTR_ERR(gbl->gpiod); in gpio_backlight_probe()
90 else if (gpiod_get_value_cansleep(gbl->gpiod) == 0) in gpio_backlight_probe()
98 ret = gpiod_direction_output(gbl->gpiod, init_brightness); in gpio_backlight_probe()
/kernel/linux/linux-5.10/drivers/video/backlight/
Dgpio_backlight.c21 struct gpio_desc *gpiod; member
28 gpiod_set_value_cansleep(gbl->gpiod, backlight_get_brightness(bl)); in gpio_backlight_update_status()
66 gbl->gpiod = devm_gpiod_get(dev, NULL, GPIOD_ASIS); in gpio_backlight_probe()
67 if (IS_ERR(gbl->gpiod)) { in gpio_backlight_probe()
68 ret = PTR_ERR(gbl->gpiod); in gpio_backlight_probe()
90 else if (gpiod_get_value_cansleep(gbl->gpiod) == 0) in gpio_backlight_probe()
98 ret = gpiod_direction_output(gbl->gpiod, init_brightness); in gpio_backlight_probe()
Dktd253-backlight.c34 struct gpio_desc *gpiod; member
40 gpiod_set_value_cansleep(ktd253->gpiod, 1); in ktd253_backlight_set_max_ratio()
63 gpiod_set_value(ktd253->gpiod, 0); in ktd253_backlight_stepdown()
65 gpiod_set_value(ktd253->gpiod, 1); in ktd253_backlight_stepdown()
92 gpiod_set_value_cansleep(ktd253->gpiod, 0); in ktd253_backlight_update_status()
120 gpiod_set_value_cansleep(ktd253->gpiod, 0); in ktd253_backlight_update_status()
181 ktd253->gpiod = devm_gpiod_get(dev, "enable", in ktd253_backlight_probe()
184 if (IS_ERR(ktd253->gpiod)) { in ktd253_backlight_probe()
185 ret = PTR_ERR(ktd253->gpiod); in ktd253_backlight_probe()
190 gpiod_set_consumer_name(ktd253->gpiod, dev_name(dev)); in ktd253_backlight_probe()
/kernel/linux/linux-6.6/drivers/w1/masters/
Dw1-gpio.c33 gpiod_set_raw_value(pdata->gpiod, 1); in w1_gpio_set_pullup()
39 gpiod_set_value(pdata->gpiod, 1); in w1_gpio_set_pullup()
51 gpiod_set_value(pdata->gpiod, bit); in w1_gpio_write_bit()
58 return gpiod_get_value(pdata->gpiod) ? 1 : 0; in w1_gpio_read_bit()
107 pdata->gpiod = devm_gpiod_get_index(dev, NULL, 0, gflags); in w1_gpio_probe()
108 if (IS_ERR(pdata->gpiod)) { in w1_gpio_probe()
110 return PTR_ERR(pdata->gpiod); in w1_gpio_probe()
123 gpiod_direction_output(pdata->gpiod, 1); in w1_gpio_probe()
/kernel/linux/linux-5.10/drivers/w1/masters/
Dw1-gpio.c33 gpiod_set_raw_value(pdata->gpiod, 1); in w1_gpio_set_pullup()
39 gpiod_set_value(pdata->gpiod, 1); in w1_gpio_set_pullup()
51 gpiod_set_value(pdata->gpiod, bit); in w1_gpio_write_bit()
58 return gpiod_get_value(pdata->gpiod) ? 1 : 0; in w1_gpio_read_bit()
109 pdata->gpiod = devm_gpiod_get_index(dev, NULL, 0, gflags); in w1_gpio_probe()
110 if (IS_ERR(pdata->gpiod)) { in w1_gpio_probe()
112 return PTR_ERR(pdata->gpiod); in w1_gpio_probe()
125 gpiod_direction_output(pdata->gpiod, 1); in w1_gpio_probe()
/kernel/linux/linux-6.6/sound/soc/tegra/
Dtegra_asoc_machine.c430 struct gpio_desc *gpiod; in tegra_asoc_machine_probe() local
446 gpiod = devm_gpiod_get_optional(dev, "nvidia,hp-mute", GPIOD_OUT_HIGH); in tegra_asoc_machine_probe()
447 machine->gpiod_hp_mute = gpiod; in tegra_asoc_machine_probe()
448 if (IS_ERR(gpiod)) in tegra_asoc_machine_probe()
449 return PTR_ERR(gpiod); in tegra_asoc_machine_probe()
451 gpiod = devm_gpiod_get_optional(dev, "nvidia,hp-det", GPIOD_IN); in tegra_asoc_machine_probe()
452 machine->gpiod_hp_det = gpiod; in tegra_asoc_machine_probe()
453 if (IS_ERR(gpiod)) in tegra_asoc_machine_probe()
454 return PTR_ERR(gpiod); in tegra_asoc_machine_probe()
456 gpiod = devm_gpiod_get_optional(dev, "nvidia,mic-det", GPIOD_IN); in tegra_asoc_machine_probe()
[all …]
/kernel/linux/linux-6.6/drivers/usb/misc/
Dbrcmstb-usb-pinmap.c21 struct gpio_desc *gpiod; member
28 struct gpio_desc *gpiod; member
64 val = gpiod_get_value(pin->gpiod); in sync_in_pin()
91 gpiod_set_value(pout->gpiod, bit ? 1 : 0); in brcmstb_usb_pinmap_ovr_isr()
141 pin->gpiod = devm_gpiod_get_index(dev, "in", x, GPIOD_IN); in parse_pins()
142 if (IS_ERR(pin->gpiod)) { in parse_pins()
144 return PTR_ERR(pin->gpiod); in parse_pins()
173 pout->gpiod = devm_gpiod_get_index(dev, "out", x, in parse_pins()
175 if (IS_ERR(pout->gpiod)) { in parse_pins()
177 return PTR_ERR(pout->gpiod); in parse_pins()
[all …]

1234567891011