/openbmc/linux/drivers/net/dsa/realtek/ |
H A D | realtek-smi.c | 61 gpiod_set_value(priv->mdc, 1); in realtek_smi_start() 63 gpiod_set_value(priv->mdc, 0); in realtek_smi_start() 67 gpiod_set_value(priv->mdc, 1); in realtek_smi_start() 69 gpiod_set_value(priv->mdio, 0); in realtek_smi_start() 71 gpiod_set_value(priv->mdc, 0); in realtek_smi_start() 73 gpiod_set_value(priv->mdio, 1); in realtek_smi_start() 79 gpiod_set_value(priv->mdio, 0); in realtek_smi_stop() 80 gpiod_set_value(priv->mdc, 1); in realtek_smi_stop() 82 gpiod_set_value(priv->mdio, 1); in realtek_smi_stop() 84 gpiod_set_value(priv->mdc, 1); in realtek_smi_stop() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-cbus-gpio.c | 52 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()
|
/openbmc/linux/drivers/staging/fbtft/ |
H A D | fbtft-io.c | 145 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 D | fb_agm1264k-fl.c | 184 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 …]
|
/openbmc/linux/sound/soc/pxa/ |
H A D | spitz.c | 58 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()
|
/openbmc/linux/drivers/hwmon/ |
H A D | sht15.c | 211 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 …]
|
H A D | nsa320-hwmon.c | 77 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()
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-moxart.c | 73 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 D | rtc-ds2404.c | 59 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()
|
/openbmc/linux/drivers/staging/iio/adc/ |
H A D | ad7816.c | 70 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 …]
|
/openbmc/linux/drivers/watchdog/ |
H A D | mena21_wdt.c | 57 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()
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | ams-delta.c | 52 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 D | gpio.c | 84 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()
|
/openbmc/linux/drivers/iio/adc/ |
H A D | ad7606.c | 55 gpiod_set_value(st->gpio_reset, 1); in ad7606_reset() 57 gpiod_set_value(st->gpio_reset, 0); in ad7606_reset() 112 gpiod_set_value(st->gpio_convst, 1); in ad7606_trigger_handler() 124 gpiod_set_value(st->gpio_convst, 1); in ad7606_scan_direct() 137 gpiod_set_value(st->gpio_convst, 0); in ad7606_scan_direct() 208 gpiod_set_value(st->gpio_range, val); in ad7606_write_scale_hw() 455 gpiod_set_value(st->gpio_convst, 0); in ad7606_interrupt() 479 gpiod_set_value(st->gpio_convst, 1); in ad7606_buffer_postenable() 488 gpiod_set_value(st->gpio_convst, 0); in ad7606_buffer_predisable() 667 gpiod_set_value(st->gpio_range, 1); in ad7606_suspend() [all …]
|
/openbmc/linux/drivers/gpu/drm/panel/ |
H A D | panel-startek-kd070fhfid015.c | 153 gpiod_set_value(stk->reset_gpio, 0); in stk_panel_unprepare() 154 gpiod_set_value(stk->enable_gpio, 1); in stk_panel_unprepare() 170 gpiod_set_value(stk->reset_gpio, 0); in stk_panel_prepare() 171 gpiod_set_value(stk->enable_gpio, 0); in stk_panel_prepare() 182 gpiod_set_value(stk->enable_gpio, 1); in stk_panel_prepare() 184 gpiod_set_value(stk->reset_gpio, 1); in stk_panel_prepare() 206 gpiod_set_value(stk->reset_gpio, 0); in stk_panel_prepare() 207 gpiod_set_value(stk->enable_gpio, 0); in stk_panel_prepare()
|
H A D | panel-boe-himax8279d.c | 62 gpiod_set_value(pinfo->enable_gpio, 0); in disable_gpios() 63 gpiod_set_value(pinfo->pp33_gpio, 0); in disable_gpios() 64 gpiod_set_value(pinfo->pp18_gpio, 0); in disable_gpios() 137 gpiod_set_value(pinfo->pp18_gpio, 1); in boe_panel_prepare() 140 gpiod_set_value(pinfo->pp33_gpio, 1); in boe_panel_prepare() 145 gpiod_set_value(pinfo->enable_gpio, 1); in boe_panel_prepare() 149 gpiod_set_value(pinfo->enable_gpio, 0); in boe_panel_prepare() 153 gpiod_set_value(pinfo->enable_gpio, 1); in boe_panel_prepare()
|
H A D | panel-jdi-lt070me05000.c | 208 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()
|
H A D | panel-sharp-ls043t1le01.c | 113 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_unprepare() 135 gpiod_set_value(sharp_nt->reset_gpio, 1); in sharp_nt_panel_prepare() 137 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_prepare() 139 gpiod_set_value(sharp_nt->reset_gpio, 1); in sharp_nt_panel_prepare() 162 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_prepare() 222 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_add()
|
/openbmc/linux/drivers/video/backlight/ |
H A D | lms283gf05.c | 95 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()
|
/openbmc/linux/drivers/video/fbdev/omap/ |
H A D | lcd_ams_delta.c | 92 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()
|
/openbmc/linux/drivers/input/touchscreen/ |
H A D | colibri-vf50-ts.c | 58 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()
|
/openbmc/linux/drivers/power/supply/ |
H A D | collie_battery.c | 61 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()
|
/openbmc/linux/drivers/usb/typec/mux/ |
H A D | gpio-sbu-mux.c | 51 gpiod_set_value(sbu_mux->enable_gpio, enabled); in gpio_sbu_switch_set() 54 gpiod_set_value(sbu_mux->select_gpio, swapped); in gpio_sbu_switch_set() 85 gpiod_set_value(sbu_mux->enable_gpio, sbu_mux->enabled); in gpio_sbu_mux_set() 144 gpiod_set_value(sbu_mux->enable_gpio, 0); in gpio_sbu_mux_remove()
|
/openbmc/linux/drivers/w1/masters/ |
H A D | w1-gpio.c | 39 gpiod_set_value(pdata->gpiod, 1); in w1_gpio_set_pullup() 51 gpiod_set_value(pdata->gpiod, bit); in w1_gpio_write_bit() 145 gpiod_set_value(pdata->pullup_gpiod, 1); in w1_gpio_probe() 161 gpiod_set_value(pdata->pullup_gpiod, 0); in w1_gpio_remove()
|
/openbmc/linux/drivers/i2c/muxes/ |
H A D | i2c-arb-gpio-challenge.c | 51 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()
|