Home
last modified time | relevance | path

Searched refs:gpiod_set_value (Results 1 – 25 of 249) sorted by relevance

12345678910

/linux/drivers/net/dsa/realtek/
H A Drealtek-smi.c62 gpiod_set_value(priv->mdc, 1); in realtek_smi_start()
64 gpiod_set_value(priv->mdc, 0); in realtek_smi_start()
68 gpiod_set_value(priv->mdc, 1); in realtek_smi_start()
70 gpiod_set_value(priv->mdio, 0); in realtek_smi_start()
72 gpiod_set_value(priv->mdc, 0); in realtek_smi_start()
74 gpiod_set_value(priv->mdio, 1); in realtek_smi_start()
80 gpiod_set_value(priv->mdio, 0); in realtek_smi_stop()
81 gpiod_set_value(priv->mdc, 1); in realtek_smi_stop()
83 gpiod_set_value(priv->mdio, 1); in realtek_smi_stop()
85 gpiod_set_value(priv->mdc, 1); in realtek_smi_stop()
[all …]
/linux/drivers/leds/
H A Dleds-expresswire.c25 gpiod_set_value(props->ctrl_gpio, 1); in expresswire_enable()
27 gpiod_set_value(props->ctrl_gpio, 0); in expresswire_enable()
29 gpiod_set_value(props->ctrl_gpio, 1); in expresswire_enable()
35 gpiod_set_value(props->ctrl_gpio, 1); in expresswire_start()
42 gpiod_set_value(props->ctrl_gpio, 0); in expresswire_end()
44 gpiod_set_value(props->ctrl_gpio, 1); in expresswire_end()
52 gpiod_set_value(props->ctrl_gpio, 0); in expresswire_set_bit()
54 gpiod_set_value(props->ctrl_gpio, 1); in expresswire_set_bit()
57 gpiod_set_value(props->ctrl_gpio, 0); in expresswire_set_bit()
59 gpiod_set_value(props->ctrl_gpio, 1); in expresswire_set_bit()
/linux/sound/soc/pxa/
H A Dspitz.c58 gpiod_set_value(gpiod_mute_l, 1); in spitz_ext_control()
59 gpiod_set_value(gpiod_mute_r, 1); in spitz_ext_control()
67 gpiod_set_value(gpiod_mute_l, 0); in spitz_ext_control()
68 gpiod_set_value(gpiod_mute_r, 0); in spitz_ext_control()
76 gpiod_set_value(gpiod_mute_l, 0); in spitz_ext_control()
77 gpiod_set_value(gpiod_mute_r, 0); in spitz_ext_control()
85 gpiod_set_value(gpiod_mute_l, 0); in spitz_ext_control()
86 gpiod_set_value(gpiod_mute_r, 1); in spitz_ext_control()
95 gpiod_set_value(gpiod_mute_l, 0); in spitz_ext_control()
96 gpiod_set_value(gpiod_mute_r, 0); in spitz_ext_control()
/linux/drivers/staging/fbtft/
H A Dfbtft-io.c145 gpiod_set_value(par->gpio.wr, 1); in fbtft_write_gpio8_wr()
150 gpiod_set_value(par->gpio.wr, 1); /* used as delay */ in fbtft_write_gpio8_wr()
154 gpiod_set_value(par->gpio.db[i], in fbtft_write_gpio8_wr()
162 gpiod_set_value(par->gpio.db[i], data & 1); in fbtft_write_gpio8_wr()
168 gpiod_set_value(par->gpio.wr, 0); in fbtft_write_gpio8_wr()
195 gpiod_set_value(par->gpio.wr, 1); in fbtft_write_gpio16_wr()
200 gpiod_set_value(par->gpio.wr, 1); /* used as delay */ in fbtft_write_gpio16_wr()
204 gpiod_set_value(par->gpio.db[i], in fbtft_write_gpio16_wr()
212 gpiod_set_value(par->gpio.db[i], data & 1); in fbtft_write_gpio16_wr()
218 gpiod_set_value(par->gpio.wr, 0); in fbtft_write_gpio16_wr()
H A Dfb_agm1264k-fl.c184 gpiod_set_value(par->CS0, 0); in write_reg8_bus8()
185 gpiod_set_value(par->CS1, 1); in write_reg8_bus8()
188 gpiod_set_value(par->CS0, 1); in write_reg8_bus8()
189 gpiod_set_value(par->CS1, 0); in write_reg8_bus8()
192 gpiod_set_value(par->RS, 0); /* RS->0 (command mode) */ in write_reg8_bus8()
354 gpiod_set_value(par->RS, 1); /* RS->1 (data mode) */ in write_vmem()
377 gpiod_set_value(par->RS, 1); /* RS->1 (data mode) */ in write_vmem()
387 gpiod_set_value(par->CS0, 0); in write_vmem()
388 gpiod_set_value(par->CS1, 0); in write_vmem()
398 gpiod_set_value(par->RW, 0); /* set write mode */ in write()
[all …]
/linux/drivers/rtc/
H A Drtc-moxart.c73 gpiod_set_value(moxart_rtc->gpio_sclk, 0); in moxart_rtc_write_byte()
74 gpiod_set_value(moxart_rtc->gpio_data, ((data & 1) == 1)); in moxart_rtc_write_byte()
76 gpiod_set_value(moxart_rtc->gpio_sclk, 1); in moxart_rtc_write_byte()
88 gpiod_set_value(moxart_rtc->gpio_sclk, 0); in moxart_rtc_read_byte()
90 gpiod_set_value(moxart_rtc->gpio_sclk, 1); in moxart_rtc_read_byte()
108 gpiod_set_value(moxart_rtc->gpio_reset, 1); in moxart_rtc_read_register()
114 gpiod_set_value(moxart_rtc->gpio_sclk, 0); in moxart_rtc_read_register()
115 gpiod_set_value(moxart_rtc->gpio_reset, 0); in moxart_rtc_read_register()
131 gpiod_set_value(moxart_rtc->gpio_reset, 1); in moxart_rtc_write_register()
135 gpiod_set_value(moxart_rtc->gpio_sclk, 0); in moxart_rtc_write_register()
[all …]
H A Drtc-ds2404.c59 gpiod_set_value(chip->rst_gpiod, 1); in ds2404_reset()
61 gpiod_set_value(chip->rst_gpiod, 0); in ds2404_reset()
62 gpiod_set_value(chip->clk_gpiod, 0); in ds2404_reset()
73 gpiod_set_value(chip->dq_gpiod, byte & (1 << i)); in ds2404_write_byte()
75 gpiod_set_value(chip->clk_gpiod, 1); in ds2404_write_byte()
77 gpiod_set_value(chip->clk_gpiod, 0); in ds2404_write_byte()
90 gpiod_set_value(chip->clk_gpiod, 0); in ds2404_read_byte()
94 gpiod_set_value(chip->clk_gpiod, 1); in ds2404_read_byte()
/linux/sound/soc/codecs/
H A Dwm1250-ev1.c70 gpiod_set_value(wm1250->clk_sel0, 1); in wm1250_ev1_hw_params()
71 gpiod_set_value(wm1250->clk_sel1, 1); in wm1250_ev1_hw_params()
74 gpiod_set_value(wm1250->clk_sel0, 0); in wm1250_ev1_hw_params()
75 gpiod_set_value(wm1250->clk_sel1, 1); in wm1250_ev1_hw_params()
78 gpiod_set_value(wm1250->clk_sel0, 1); in wm1250_ev1_hw_params()
79 gpiod_set_value(wm1250->clk_sel1, 0); in wm1250_ev1_hw_params()
82 gpiod_set_value(wm1250->clk_sel0, 0); in wm1250_ev1_hw_params()
83 gpiod_set_value(wm1250->clk_sel1, 0); in wm1250_ev1_hw_params()
/linux/drivers/staging/iio/adc/
H A Dad7816.c70 gpiod_set_value(chip->rdwr_pin, 1); in ad7816_spi_read()
71 gpiod_set_value(chip->rdwr_pin, 0); in ad7816_spi_read()
77 gpiod_set_value(chip->rdwr_pin, 1); in ad7816_spi_read()
80 gpiod_set_value(chip->convert_pin, 1); in ad7816_spi_read()
81 gpiod_set_value(chip->convert_pin, 0); in ad7816_spi_read()
83 gpiod_set_value(chip->convert_pin, 0); in ad7816_spi_read()
84 gpiod_set_value(chip->convert_pin, 1); in ad7816_spi_read()
92 gpiod_set_value(chip->rdwr_pin, 0); in ad7816_spi_read()
93 gpiod_set_value(chip->rdwr_pin, 1); in ad7816_spi_read()
110 gpiod_set_value(chip->rdwr_pin, 1); in ad7816_spi_write()
[all …]
/linux/drivers/watchdog/
H A Dmena21_wdt.c57 gpiod_set_value(drv->gpios[GPIO_WD_ENAB], 1); in a21_wdt_start()
66 gpiod_set_value(drv->gpios[GPIO_WD_ENAB], 0); in a21_wdt_stop()
75 gpiod_set_value(drv->gpios[GPIO_WD_TRIG], 0); in a21_wdt_ping()
77 gpiod_set_value(drv->gpios[GPIO_WD_TRIG], 1); in a21_wdt_ping()
99 gpiod_set_value(drv->gpios[GPIO_WD_FAST], 1); in a21_wdt_set_timeout()
101 gpiod_set_value(drv->gpios[GPIO_WD_FAST], 0); in a21_wdt_set_timeout()
205 gpiod_set_value(drv->gpios[GPIO_WD_ENAB], 0); in a21_wdt_shutdown()
/linux/drivers/mtd/nand/raw/
H A Dams-delta.c52 gpiod_set_value(priv->gpiod_nwe, 1); in gpio_nand_write_commit()
54 gpiod_set_value(priv->gpiod_nwe, 0); in gpio_nand_write_commit()
89 gpiod_set_value(priv->gpiod_nre, 1); in gpio_nand_io_read()
95 gpiod_set_value(priv->gpiod_nre, 0); in gpio_nand_io_read()
136 gpiod_set_value(priv->gpiod_nce, assert); in gpio_nand_ctrl_cs()
154 gpiod_set_value(priv->gpiod_cle, 1); in gpio_nand_exec_op()
156 gpiod_set_value(priv->gpiod_cle, 0); in gpio_nand_exec_op()
160 gpiod_set_value(priv->gpiod_ale, 1); in gpio_nand_exec_op()
163 gpiod_set_value(priv->gpiod_ale, 0); in gpio_nand_exec_op()
370 gpiod_set_value(priv->gpiod_nwp, 0); in gpio_nand_probe()
[all …]
H A Dgpio.c84 gpiod_set_value(gpiomtd->cle, 1); in gpio_nand_exec_instr()
88 gpiod_set_value(gpiomtd->cle, 0); in gpio_nand_exec_instr()
93 gpiod_set_value(gpiomtd->ale, 1); in gpio_nand_exec_instr()
98 gpiod_set_value(gpiomtd->ale, 0); in gpio_nand_exec_instr()
149 gpiod_set_value(gpiomtd->nce, 0); in gpio_nand_exec_op()
159 gpiod_set_value(gpiomtd->nce, 1); in gpio_nand_exec_op()
280 gpiod_set_value(gpiomtd->nwp, 0); in gpio_nand_remove()
282 gpiod_set_value(gpiomtd->nce, 0); in gpio_nand_remove()
385 gpiod_set_value(gpiomtd->nwp, 0); in gpio_nand_probe()
388 gpiod_set_value(gpiomtd->nce, 0); in gpio_nand_probe()
/linux/drivers/gpu/drm/panel/
H A Dpanel-boe-himax8279d.c59 gpiod_set_value(pinfo->enable_gpio, 0); in disable_gpios()
60 gpiod_set_value(pinfo->pp33_gpio, 0); in disable_gpios()
61 gpiod_set_value(pinfo->pp18_gpio, 0); in disable_gpios()
121 gpiod_set_value(pinfo->pp18_gpio, 1); in boe_panel_prepare()
124 gpiod_set_value(pinfo->pp33_gpio, 1); in boe_panel_prepare()
129 gpiod_set_value(pinfo->enable_gpio, 1); in boe_panel_prepare()
133 gpiod_set_value(pinfo->enable_gpio, 0); in boe_panel_prepare()
137 gpiod_set_value(pinfo->enable_gpio, 1); in boe_panel_prepare()
H A Dpanel-startek-kd070fhfid015.c112 gpiod_set_value(stk->reset_gpio, 0); in stk_panel_unprepare()
113 gpiod_set_value(stk->enable_gpio, 1); in stk_panel_unprepare()
123 gpiod_set_value(stk->reset_gpio, 0); in stk_panel_prepare()
124 gpiod_set_value(stk->enable_gpio, 0); in stk_panel_prepare()
135 gpiod_set_value(stk->enable_gpio, 1); in stk_panel_prepare()
137 gpiod_set_value(stk->reset_gpio, 1); in stk_panel_prepare()
153 gpiod_set_value(stk->reset_gpio, 0); in stk_panel_prepare()
154 gpiod_set_value(stk->enable_gpio, 0); in stk_panel_prepare()
H A Dpanel-sharp-ls043t1le01.c108 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_unprepare()
125 gpiod_set_value(sharp_nt->reset_gpio, 1); in sharp_nt_panel_prepare()
127 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_prepare()
129 gpiod_set_value(sharp_nt->reset_gpio, 1); in sharp_nt_panel_prepare()
150 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_prepare()
210 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_add()
H A Dpanel-jdi-lt070me05000.c193 gpiod_set_value(jdi->enable_gpio, 0); in jdi_panel_unprepare()
195 gpiod_set_value(jdi->reset_gpio, 1); in jdi_panel_unprepare()
197 gpiod_set_value(jdi->dcdc_en_gpio, 0); in jdi_panel_unprepare()
216 gpiod_set_value(jdi->dcdc_en_gpio, 1); in jdi_panel_prepare()
219 gpiod_set_value(jdi->reset_gpio, 0); in jdi_panel_prepare()
222 gpiod_set_value(jdi->enable_gpio, 1); in jdi_panel_prepare()
244 gpiod_set_value(jdi->enable_gpio, 0); in jdi_panel_prepare()
246 gpiod_set_value(jdi->reset_gpio, 1); in jdi_panel_prepare()
248 gpiod_set_value(jdi->dcdc_en_gpio, 0); in jdi_panel_prepare()
H A Dpanel-lg-sw43408.c53 gpiod_set_value(sw43408->reset_gpio, 1); in sw43408_unprepare()
133 gpiod_set_value(ctx->reset_gpio, 0); in sw43408_prepare()
135 gpiod_set_value(ctx->reset_gpio, 1); in sw43408_prepare()
137 gpiod_set_value(ctx->reset_gpio, 0); in sw43408_prepare()
147 gpiod_set_value(ctx->reset_gpio, 1); in sw43408_prepare()
/linux/sound/soc/mediatek/mt2701/
H A Dmt2701-cs42448.c55 gpiod_set_value(priv->i2s1_in_mux_sel_1, 0); in mt2701_cs42448_i2sin1_mux_set()
56 gpiod_set_value(priv->i2s1_in_mux_sel_2, 0); in mt2701_cs42448_i2sin1_mux_set()
59 gpiod_set_value(priv->i2s1_in_mux_sel_1, 1); in mt2701_cs42448_i2sin1_mux_set()
60 gpiod_set_value(priv->i2s1_in_mux_sel_2, 0); in mt2701_cs42448_i2sin1_mux_set()
63 gpiod_set_value(priv->i2s1_in_mux_sel_1, 0); in mt2701_cs42448_i2sin1_mux_set()
64 gpiod_set_value(priv->i2s1_in_mux_sel_2, 1); in mt2701_cs42448_i2sin1_mux_set()
67 gpiod_set_value(priv->i2s1_in_mux_sel_1, 1); in mt2701_cs42448_i2sin1_mux_set()
68 gpiod_set_value(priv->i2s1_in_mux_sel_2, 1); in mt2701_cs42448_i2sin1_mux_set()
/linux/drivers/input/touchscreen/
H A Dcolibri-vf50-ts.c58 gpiod_set_value(plate_p, 1); in adc_ts_measure()
59 gpiod_set_value(plate_m, 1); in adc_ts_measure()
76 gpiod_set_value(plate_p, 0); in adc_ts_measure()
77 gpiod_set_value(plate_m, 0); in adc_ts_measure()
88 gpiod_set_value(vf50_ts->gpio_ym, 1); in vf50_ts_enable_touch_detection()
111 gpiod_set_value(vf50_ts->gpio_ym, 0); in vf50_ts_irq_bh()
232 gpiod_set_value(touchdev->gpio_ym, 0); in vf50_ts_close()
/linux/drivers/w1/masters/
H A Dw1-gpio.c44 gpiod_set_value(ddata->gpiod, 1); in w1_gpio_set_pullup()
56 gpiod_set_value(ddata->gpiod, bit); in w1_gpio_write_bit()
120 gpiod_set_value(ddata->pullup_gpiod, 1); in w1_gpio_probe()
132 gpiod_set_value(ddata->pullup_gpiod, 0); in w1_gpio_remove()
/linux/drivers/video/backlight/
H A Dlms283gf05.c95 gpiod_set_value(gpiod, 0); /* De-asserted */ in lms283gf05_reset()
97 gpiod_set_value(gpiod, 1); /* Asserted */ in lms283gf05_reset()
99 gpiod_set_value(gpiod, 0); /* De-asserted */ in lms283gf05_reset()
136 gpiod_set_value(st->reset, 1); /* Asserted */ in lms283gf05_power_set()
H A Dl4f00242t03.c36 gpiod_set_value(gpiod, 1); in l4f00242t03_reset()
38 gpiod_set_value(gpiod, 0); in l4f00242t03_reset()
40 gpiod_set_value(gpiod, 1); in l4f00242t03_reset()
80 gpiod_set_value(priv->enable, 1); in l4f00242t03_lcd_init()
91 gpiod_set_value(priv->enable, 0); in l4f00242t03_lcd_powerdown()
/linux/drivers/video/fbdev/omap/
H A Dlcd_ams_delta.c92 gpiod_set_value(gpiod_ndisp, 1); in ams_delta_panel_enable()
93 gpiod_set_value(gpiod_vblen, 1); in ams_delta_panel_enable()
99 gpiod_set_value(gpiod_vblen, 0); in ams_delta_panel_disable()
100 gpiod_set_value(gpiod_ndisp, 0); in ams_delta_panel_disable()
/linux/drivers/power/supply/
H A Dcollie_battery.c61 gpiod_set_value(bat->gpio_bat, 1); in collie_read_bat()
66 gpiod_set_value(bat->gpio_bat, 0); in collie_read_bat()
80 gpiod_set_value(bat->gpio_temp, 1); in collie_read_temp()
85 gpiod_set_value(bat->gpio_temp, 0); in collie_read_temp()
167 gpiod_set_value(bat->gpio_charge_on, 1); in collie_bat_update()
176 gpiod_set_value(bat->gpio_charge_on, 0); in collie_bat_update()
179 gpiod_set_value(bat->gpio_charge_on, 1); in collie_bat_update()
183 gpiod_set_value(bat->gpio_charge_on, 0); in collie_bat_update()
/linux/drivers/hwmon/
H A Dnsa320-hwmon.c77 gpiod_set_value(hwmon->act, 1); in nsa320_hwmon_update()
82 gpiod_set_value(hwmon->clk, 0); in nsa320_hwmon_update()
84 gpiod_set_value(hwmon->clk, 1); in nsa320_hwmon_update()
90 gpiod_set_value(hwmon->act, 0); in nsa320_hwmon_update()

12345678910