/openbmc/linux/drivers/input/mouse/ |
H A D | gpio_mouse.c | 53 gpiod_get_value(gpio->bleft)); in gpio_mouse_scan() 56 gpiod_get_value(gpio->bmiddle)); in gpio_mouse_scan() 59 gpiod_get_value(gpio->bright)); in gpio_mouse_scan() 61 x = gpiod_get_value(gpio->right) - gpiod_get_value(gpio->left); in gpio_mouse_scan() 62 y = gpiod_get_value(gpio->down) - gpiod_get_value(gpio->up); in gpio_mouse_scan()
|
/openbmc/linux/drivers/media/cec/platform/cec-gpio/ |
H A D | cec-gpio.c | 40 return gpiod_get_value(cec->cec_gpio); in cec_gpio_read() 74 int val = gpiod_get_value(cec->v5_gpio); in cec_5v_gpio_irq_handler() 95 int val = gpiod_get_value(cec->hpd_gpio); in cec_hpd_gpio_irq_handler() 108 int val = gpiod_get_value(cec->cec_gpio); in cec_gpio_irq_handler() 150 return gpiod_get_value(cec->hpd_gpio); in cec_gpio_read_hpd() 159 return gpiod_get_value(cec->v5_gpio); in cec_gpio_read_5v()
|
/openbmc/linux/drivers/power/supply/ |
H A D | lt3651-charger.c | 52 if (gpiod_get_value(lt3651_charger->chrg_gpio)) in lt3651_charger_get_property() 58 val->intval = gpiod_get_value(lt3651_charger->acpr_gpio); in lt3651_charger_get_property() 65 if (!gpiod_get_value(lt3651_charger->fault_gpio)) { in lt3651_charger_get_property() 77 val->intval = gpiod_get_value(lt3651_charger->chrg_gpio) ? in lt3651_charger_get_property()
|
H A D | max8903_charger.c | 55 if (gpiod_get_value(data->chg)) in max8903_get_property() 94 ta_in = gpiod_get_value(data->dok); in max8903_dcin() 153 usb_in = gpiod_get_value(data->uok); in max8903_usbin() 209 fault = gpiod_get_value(data->flt); in max8903_fault() 244 ta_in = gpiod_get_value(data->dok); in max8903_setup_gpios() 259 usb_in = gpiod_get_value(data->uok); in max8903_setup_gpios()
|
/openbmc/linux/drivers/watchdog/ |
H A D | mena21_wdt.c | 46 reset |= gpiod_get_value(drv->gpios[GPIO_WD_RST0]) ? (1 << 0) : 0; in a21_wdt_get_bootstatus() 47 reset |= gpiod_get_value(drv->gpios[GPIO_WD_RST1]) ? (1 << 1) : 0; in a21_wdt_get_bootstatus() 48 reset |= gpiod_get_value(drv->gpios[GPIO_WD_RST2]) ? (1 << 2) : 0; in a21_wdt_get_bootstatus() 169 val = gpiod_get_value(drv->gpios[i]); in a21_wdt_probe()
|
/openbmc/linux/drivers/platform/x86/ |
H A D | sel3350-platform.c | 98 if (gpiod_get_value(data->ps_detect)) { in sel3350_power_get_property() 99 if (gpiod_get_value(data->ps_good)) in sel3350_power_get_property() 108 val->intval = gpiod_get_value(data->ps_detect); in sel3350_power_get_property() 111 val->intval = gpiod_get_value(data->ps_good); in sel3350_power_get_property()
|
/openbmc/linux/drivers/fpga/ |
H A D | ice40-spi.c | 36 return gpiod_get_value(priv->cdone) ? FPGA_MGR_STATE_OPERATING : in ice40_fpga_ops_state() 85 if (gpiod_get_value(priv->cdone)) { in ice40_fpga_ops_write_init() 118 if (!gpiod_get_value(priv->cdone)) { in ice40_fpga_ops_write_complete()
|
H A D | xilinx-spi.c | 35 ret = gpiod_get_value(conf->done); in get_done_gpio() 71 int ret = gpiod_get_value(conf->init_b); in wait_for_init_b() 199 ret = gpiod_get_value(conf->init_b); in xilinx_spi_write_complete()
|
H A D | lattice-sysconfig.c | 78 ret = read_poll_timeout(gpiod_get_value, val, in sysconfig_poll_gpio() 262 if (done && (gpiod_get_value(done) > 0)) in sysconfig_ops_state()
|
/openbmc/linux/drivers/iio/adc/ |
H A D | ad7606_par.c | 40 if (!gpiod_get_value(st->gpio_frstdata)) { in ad7606_par16_read_block() 74 if (!gpiod_get_value(st->gpio_frstdata)) { in ad7606_par8_read_block()
|
H A D | hx711.c | 137 return gpiod_get_value(hx711_data->gpiod_dout); in hx711_cycle() 144 int val = gpiod_get_value(hx711_data->gpiod_dout); in hx711_read() 175 val = gpiod_get_value(hx711_data->gpiod_dout); in hx711_wait_for_ready()
|
/openbmc/linux/drivers/staging/olpc_dcon/ |
H A D | olpc_dcon_xo_1_5.c | 191 *status = gpiod_get_value(gpios[OLPC_DCON_STAT0]); in dcon_read_status_xo_1_5() 192 *status |= gpiod_get_value(gpios[OLPC_DCON_STAT1]) << 1; in dcon_read_status_xo_1_5()
|
H A D | olpc_dcon_xo_1.c | 187 *status = gpiod_get_value(gpios[OLPC_DCON_STAT0]); in dcon_read_status_xo_1() 188 *status |= gpiod_get_value(gpios[OLPC_DCON_STAT1]) << 1; in dcon_read_status_xo_1()
|
/openbmc/linux/drivers/pcmcia/ |
H A D | soc_common.c | 294 state.detect = !!gpiod_get_value(skt->stat[SOC_STAT_CD].desc); in soc_common_pcmcia_skt_state() 296 state.ready = !!gpiod_get_value(skt->stat[SOC_STAT_RDY].desc); in soc_common_pcmcia_skt_state() 298 state.bvd1 = !!gpiod_get_value(skt->stat[SOC_STAT_BVD1].desc); in soc_common_pcmcia_skt_state() 300 state.bvd2 = !!gpiod_get_value(skt->stat[SOC_STAT_BVD2].desc); in soc_common_pcmcia_skt_state() 302 state.vs_3v = !!gpiod_get_value(skt->stat[SOC_STAT_VS1].desc); in soc_common_pcmcia_skt_state() 304 state.vs_Xv = !!gpiod_get_value(skt->stat[SOC_STAT_VS2].desc); in soc_common_pcmcia_skt_state()
|
/openbmc/linux/drivers/power/reset/ |
H A D | ltc2952-poweroff.c | 103 state = gpiod_get_value(data->gpio_watchdog); in ltc2952_poweroff_timer_wde() 146 if (gpiod_get_value(data->gpio_trigger)) { in ltc2952_poweroff_handler()
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-ds2404.c | 92 if (gpiod_get_value(chip->dq_gpiod)) in ds2404_read_byte() 145 while (gpiod_get_value(chip->dq_gpiod)) in ds2404_write_memory()
|
/openbmc/linux/drivers/hwmon/ |
H A D | sht15.c | 299 if (gpiod_get_value(data->data)) { in sht15_wait_for_response() 409 byte |= !!gpiod_get_value(data->data); in sht15_read_byte() 536 if (gpiod_get_value(data->data) == 0) { in sht15_measurement() 822 if (gpiod_get_value(data->data)) { in sht15_bh_read_data() 830 if (gpiod_get_value(data->data) in sht15_bh_read_data()
|
H A D | nsa320-hwmon.c | 86 if (gpiod_get_value(hwmon->data)) in nsa320_hwmon_update()
|
/openbmc/linux/drivers/mmc/core/ |
H A D | slot-gpio.c | 86 gpiod_get_value(ctx->ro_gpio); in mmc_gpio_get_ro() 101 gpiod_get_value(ctx->cd_gpio); in mmc_gpio_get_cd()
|
/openbmc/linux/drivers/tty/serial/ |
H A D | serial_mctrl_gpio.c | 106 if (gpiod_get_value(gpios->gpio[i])) in mctrl_gpio_get() 127 if (gpiod_get_value(gpios->gpio[i])) in mctrl_gpio_get_outputs()
|
/openbmc/linux/drivers/usb/phy/ |
H A D | phy-generic.c | 107 vbus = gpiod_get_value(nop->gpiod_vbus); in nop_gpio_vbus_thread() 311 nop->phy.otg->state = gpiod_get_value(nop->gpiod_vbus) ? in usb_phy_generic_probe()
|
/openbmc/linux/drivers/usb/typec/ucsi/ |
H A D | ucsi_glink.c | 234 int orientation = gpiod_get_value(ucsi->port_orientation[con_num - 1]); in pmic_glink_ucsi_notify() 261 orientation = gpiod_get_value(ucsi->port_orientation[i]); in pmic_glink_ucsi_register()
|
/openbmc/linux/drivers/input/touchscreen/ |
H A D | jornada720_ts.c | 72 if (gpiod_get_value(jornada_ts->gpio)) { in jornada720_ts_interrupt()
|
/openbmc/linux/drivers/ata/ |
H A D | pata_rb532_cf.c | 59 if (gpiod_get_value(info->gpio_line)) { in rb532_pata_irq_handler()
|
/openbmc/linux/drivers/w1/masters/ |
H A D | w1-gpio.c | 58 return gpiod_get_value(pdata->gpiod) ? 1 : 0; in w1_gpio_read_bit()
|