Home
last modified time | relevance | path

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

123456789

/kernel/linux/linux-5.10/drivers/net/dsa/
Drealtek-smi-core.c64 gpiod_set_value(smi->mdc, 1); in realtek_smi_start()
66 gpiod_set_value(smi->mdc, 0); in realtek_smi_start()
70 gpiod_set_value(smi->mdc, 1); in realtek_smi_start()
72 gpiod_set_value(smi->mdio, 0); in realtek_smi_start()
74 gpiod_set_value(smi->mdc, 0); in realtek_smi_start()
76 gpiod_set_value(smi->mdio, 1); in realtek_smi_start()
82 gpiod_set_value(smi->mdio, 0); in realtek_smi_stop()
83 gpiod_set_value(smi->mdc, 1); in realtek_smi_stop()
85 gpiod_set_value(smi->mdio, 1); in realtek_smi_stop()
87 gpiod_set_value(smi->mdc, 1); in realtek_smi_stop()
[all …]
/kernel/linux/linux-5.10/drivers/staging/fbtft/
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()
Dfb_agm1264k-fl.c87 gpiod_set_value(par->gpio.reset, 1); in reset()
89 gpiod_set_value(par->gpio.reset, 0); in reset()
197 gpiod_set_value(par->CS0, 0); in write_reg8_bus8()
198 gpiod_set_value(par->CS1, 1); in write_reg8_bus8()
201 gpiod_set_value(par->CS0, 1); in write_reg8_bus8()
202 gpiod_set_value(par->CS1, 0); in write_reg8_bus8()
205 gpiod_set_value(par->RS, 0); /* RS->0 (command mode) */ in write_reg8_bus8()
367 gpiod_set_value(par->RS, 1); /* RS->1 (data mode) */ in write_vmem()
390 gpiod_set_value(par->RS, 1); /* RS->1 (data mode) */ in write_vmem()
400 gpiod_set_value(par->CS0, 0); in write_vmem()
[all …]
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-cbus-gpio.c52 gpiod_set_value(host->dat, bit ? 1 : 0); in cbus_send_bit()
53 gpiod_set_value(host->clk, 1); in cbus_send_bit()
54 gpiod_set_value(host->clk, 0); in cbus_send_bit()
79 gpiod_set_value(host->clk, 1); in cbus_receive_bit()
81 gpiod_set_value(host->clk, 0); in cbus_receive_bit()
124 gpiod_set_value(host->sel, 0); in cbus_transfer()
147 gpiod_set_value(host->clk, 1); in cbus_transfer()
157 gpiod_set_value(host->sel, 1); in cbus_transfer()
158 gpiod_set_value(host->clk, 1); in cbus_transfer()
159 gpiod_set_value(host->clk, 0); in cbus_transfer()
/kernel/linux/linux-5.10/drivers/hwmon/
Dsht15.c211 gpiod_set_value(data->sck, 0); in sht15_connection_reset()
214 gpiod_set_value(data->sck, 1); in sht15_connection_reset()
216 gpiod_set_value(data->sck, 0); in sht15_connection_reset()
229 gpiod_set_value(data->data, val); in sht15_send_bit()
231 gpiod_set_value(data->sck, 1); in sht15_send_bit()
233 gpiod_set_value(data->sck, 0); in sht15_send_bit()
254 gpiod_set_value(data->sck, 0); in sht15_transmission_start()
256 gpiod_set_value(data->sck, 1); in sht15_transmission_start()
258 gpiod_set_value(data->data, 0); in sht15_transmission_start()
260 gpiod_set_value(data->sck, 0); in sht15_transmission_start()
[all …]
Dnsa320-hwmon.c79 gpiod_set_value(hwmon->act, 1); in nsa320_hwmon_update()
84 gpiod_set_value(hwmon->clk, 0); in nsa320_hwmon_update()
86 gpiod_set_value(hwmon->clk, 1); in nsa320_hwmon_update()
92 gpiod_set_value(hwmon->act, 0); in nsa320_hwmon_update()
/kernel/linux/linux-5.10/drivers/staging/iio/adc/
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 …]
/kernel/linux/linux-5.10/drivers/watchdog/
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()
/kernel/linux/linux-5.10/drivers/ata/
Dpata_palmld.c76 gpiod_set_value(lda->power, 0); in palmld_pata_probe()
81 gpiod_set_value(lda->reset, 1); in palmld_pata_probe()
83 gpiod_set_value(lda->reset, 0); in palmld_pata_probe()
105 gpiod_set_value(lda->power, 0); in palmld_pata_probe()
120 gpiod_set_value(lda->power, 0); in palmld_pata_remove()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
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 …]
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()
388 gpiod_set_value(gpiomtd->nwp, 0); in gpio_nand_probe()
391 gpiod_set_value(gpiomtd->nce, 0); in gpio_nand_probe()
/kernel/linux/linux-5.10/drivers/iio/adc/
Dad7606.c54 gpiod_set_value(st->gpio_reset, 1); in ad7606_reset()
56 gpiod_set_value(st->gpio_reset, 0); in ad7606_reset()
135 gpiod_set_value(st->gpio_convst, 1); in ad7606_trigger_handler()
147 gpiod_set_value(st->gpio_convst, 1); in ad7606_scan_direct()
160 gpiod_set_value(st->gpio_convst, 0); in ad7606_scan_direct()
231 gpiod_set_value(st->gpio_range, val); in ad7606_write_scale_hw()
478 gpiod_set_value(st->gpio_convst, 0); in ad7606_interrupt()
502 gpiod_set_value(st->gpio_convst, 1); in ad7606_buffer_postenable()
511 gpiod_set_value(st->gpio_convst, 0); in ad7606_buffer_predisable()
706 gpiod_set_value(st->gpio_range, 1); in ad7606_suspend()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/panel/
Dpanel-boe-himax8279d.c63 gpiod_set_value(pinfo->enable_gpio, 0); in disable_gpios()
64 gpiod_set_value(pinfo->pp33_gpio, 0); in disable_gpios()
65 gpiod_set_value(pinfo->pp18_gpio, 0); in disable_gpios()
138 gpiod_set_value(pinfo->pp18_gpio, 1); in boe_panel_prepare()
141 gpiod_set_value(pinfo->pp33_gpio, 1); in boe_panel_prepare()
146 gpiod_set_value(pinfo->enable_gpio, 1); in boe_panel_prepare()
150 gpiod_set_value(pinfo->enable_gpio, 0); in boe_panel_prepare()
154 gpiod_set_value(pinfo->enable_gpio, 1); in boe_panel_prepare()
Dpanel-jdi-lt070me05000.c208 gpiod_set_value(jdi->enable_gpio, 0); in jdi_panel_unprepare()
210 gpiod_set_value(jdi->reset_gpio, 1); in jdi_panel_unprepare()
212 gpiod_set_value(jdi->dcdc_en_gpio, 0); in jdi_panel_unprepare()
236 gpiod_set_value(jdi->dcdc_en_gpio, 1); in jdi_panel_prepare()
239 gpiod_set_value(jdi->reset_gpio, 0); in jdi_panel_prepare()
242 gpiod_set_value(jdi->enable_gpio, 1); in jdi_panel_prepare()
266 gpiod_set_value(jdi->enable_gpio, 0); in jdi_panel_prepare()
268 gpiod_set_value(jdi->reset_gpio, 1); in jdi_panel_prepare()
270 gpiod_set_value(jdi->dcdc_en_gpio, 0); in jdi_panel_prepare()
Dpanel-sharp-ls043t1le01.c129 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_unprepare()
151 gpiod_set_value(sharp_nt->reset_gpio, 1); in sharp_nt_panel_prepare()
153 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_prepare()
155 gpiod_set_value(sharp_nt->reset_gpio, 1); in sharp_nt_panel_prepare()
178 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_prepare()
254 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_add()
Dpanel-ronbo-rb070d30.c57 gpiod_set_value(ctx->gpios.power, 1); in rb070d30_panel_prepare()
59 gpiod_set_value(ctx->gpios.reset, 1); in rb070d30_panel_prepare()
68 gpiod_set_value(ctx->gpios.reset, 0); in rb070d30_panel_unprepare()
69 gpiod_set_value(ctx->gpios.power, 0); in rb070d30_panel_unprepare()
/kernel/linux/linux-5.10/drivers/input/touchscreen/
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()
/kernel/linux/linux-5.10/drivers/video/fbdev/omap/
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()
/kernel/linux/linux-5.10/drivers/w1/masters/
Dw1-gpio.c39 gpiod_set_value(pdata->gpiod, 1); in w1_gpio_set_pullup()
51 gpiod_set_value(pdata->gpiod, bit); in w1_gpio_write_bit()
147 gpiod_set_value(pdata->pullup_gpiod, 1); in w1_gpio_probe()
163 gpiod_set_value(pdata->pullup_gpiod, 0); in w1_gpio_remove()
/kernel/linux/linux-5.10/drivers/i2c/muxes/
Di2c-arb-gpio-challenge.c51 gpiod_set_value(arb->our_gpio, 1); in i2c_arbitrator_select()
68 gpiod_set_value(arb->our_gpio, 0); in i2c_arbitrator_select()
74 gpiod_set_value(arb->our_gpio, 0); in i2c_arbitrator_select()
90 gpiod_set_value(arb->our_gpio, 0); in i2c_arbitrator_deselect()
/kernel/linux/linux-5.10/drivers/video/backlight/
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()
/kernel/linux/linux-5.10/drivers/media/rc/
Dgpio-ir-tx.c81 gpiod_set_value(gpio_ir->gpio, !(i % 2)); in gpio_ir_tx_unmodulated()
87 gpiod_set_value(gpio_ir->gpio, 0); in gpio_ir_tx_unmodulated()
122 gpiod_set_value(gpio_ir->gpio, 1); in gpio_ir_tx_modulated()
128 gpiod_set_value(gpio_ir->gpio, 0); in gpio_ir_tx_modulated()
/kernel/linux/linux-5.10/drivers/staging/iio/resolver/
Dad2s1210.c110 gpiod_set_value(st->gpios[AD2S1210_A0], ad2s1210_mode_vals[mode][0]); in ad2s1210_set_mode()
111 gpiod_set_value(st->gpios[AD2S1210_A1], ad2s1210_mode_vals[mode][1]); in ad2s1210_set_mode()
182 gpiod_set_value(st->gpios[AD2S1210_RES0], in ad2s1210_set_resolution_pin()
184 gpiod_set_value(st->gpios[AD2S1210_RES1], in ad2s1210_set_resolution_pin()
407 gpiod_set_value(st->gpios[AD2S1210_SAMPLE], 0); in ad2s1210_clear_fault()
410 gpiod_set_value(st->gpios[AD2S1210_SAMPLE], 1); in ad2s1210_clear_fault()
414 gpiod_set_value(st->gpios[AD2S1210_SAMPLE], 0); in ad2s1210_clear_fault()
415 gpiod_set_value(st->gpios[AD2S1210_SAMPLE], 1); in ad2s1210_clear_fault()
472 gpiod_set_value(st->gpios[AD2S1210_SAMPLE], 0); in ad2s1210_read_raw()
518 gpiod_set_value(st->gpios[AD2S1210_SAMPLE], 1); in ad2s1210_read_raw()
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/
Dnxp-ptn3460.c123 gpiod_set_value(ptn_bridge->gpio_pd_n, 1); in ptn3460_pre_enable()
125 gpiod_set_value(ptn_bridge->gpio_rst_n, 0); in ptn3460_pre_enable()
127 gpiod_set_value(ptn_bridge->gpio_rst_n, 1); in ptn3460_pre_enable()
152 gpiod_set_value(ptn_bridge->gpio_rst_n, 1); in ptn3460_disable()
153 gpiod_set_value(ptn_bridge->gpio_pd_n, 0); in ptn3460_disable()
Dthc63lvd1024.c96 gpiod_set_value(thc63->pdwn, 0); in thc63_enable()
97 gpiod_set_value(thc63->oe, 1); in thc63_enable()
105 gpiod_set_value(thc63->oe, 0); in thc63_disable()
106 gpiod_set_value(thc63->pdwn, 1); in thc63_disable()

123456789