Home
last modified time | relevance | path

Searched refs:gpiod_get_value (Results 1 – 25 of 80) sorted by relevance

1234

/drivers/input/mouse/
Dgpio_mouse.c53 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()
/drivers/media/cec/platform/cec-gpio/
Dcec-gpio.c40 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()
/drivers/power/supply/
Dmax8903_charger.c56 if (gpiod_get_value(data->chg)) in max8903_get_property()
95 ta_in = gpiod_get_value(data->dok); in max8903_dcin()
154 usb_in = gpiod_get_value(data->uok); in max8903_usbin()
210 fault = gpiod_get_value(data->flt); in max8903_fault()
245 ta_in = gpiod_get_value(data->dok); in max8903_setup_gpios()
260 usb_in = gpiod_get_value(data->uok); in max8903_setup_gpios()
Dlt3651-charger.c52 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()
Dact8945a_charger.c214 int lbo_level = gpiod_get_value(charger->lbo_gpio); in act8945a_get_capacity_level()
282 int chgin_level = gpiod_get_value(charger->chglev_gpio); in act8945a_get_current_max()
Dlego_ev3_battery.c189 if (gpiod_get_value(batt->rechargeable_gpio)) { in lego_ev3_battery_probe()
/drivers/watchdog/
Dmena21_wdt.c46 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()
/drivers/fpga/
Dice40-spi.c36 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()
Dxilinx-spi.c35 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()
/drivers/staging/olpc_dcon/
Dolpc_dcon_xo_1_5.c191 *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()
Dolpc_dcon_xo_1.c187 *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()
/drivers/pcmcia/
Dsoc_common.c295 state.detect = !!gpiod_get_value(skt->stat[SOC_STAT_CD].desc); in soc_common_pcmcia_skt_state()
297 state.ready = !!gpiod_get_value(skt->stat[SOC_STAT_RDY].desc); in soc_common_pcmcia_skt_state()
299 state.bvd1 = !!gpiod_get_value(skt->stat[SOC_STAT_BVD1].desc); in soc_common_pcmcia_skt_state()
301 state.bvd2 = !!gpiod_get_value(skt->stat[SOC_STAT_BVD2].desc); in soc_common_pcmcia_skt_state()
303 state.vs_3v = !!gpiod_get_value(skt->stat[SOC_STAT_VS1].desc); in soc_common_pcmcia_skt_state()
305 state.vs_Xv = !!gpiod_get_value(skt->stat[SOC_STAT_VS2].desc); in soc_common_pcmcia_skt_state()
/drivers/hwmon/
Dsht15.c299 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()
Dnsa320-hwmon.c88 if (gpiod_get_value(hwmon->data)) in nsa320_hwmon_update()
/drivers/power/reset/
Dltc2952-poweroff.c104 state = gpiod_get_value(data->gpio_watchdog); in ltc2952_poweroff_timer_wde()
148 if (gpiod_get_value(data->gpio_trigger)) { in ltc2952_poweroff_handler()
/drivers/mmc/core/
Dslot-gpio.c80 gpiod_get_value(ctx->ro_gpio); in mmc_gpio_get_ro()
95 gpiod_get_value(ctx->cd_gpio); in mmc_gpio_get_cd()
/drivers/iio/adc/
Dhx711.c137 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()
/drivers/tty/serial/
Dserial_mctrl_gpio.c85 if (gpiod_get_value(gpios->gpio[i])) in mctrl_gpio_get()
106 if (gpiod_get_value(gpios->gpio[i])) in mctrl_gpio_get_outputs()
/drivers/input/serio/
Dps2-gpio.c146 data = gpiod_get_value(drvdata->gpio_data); in ps2_gpio_irq_rx()
280 data = gpiod_get_value(drvdata->gpio_data); in ps2_gpio_irq_tx()
/drivers/usb/phy/
Dphy-generic.c107 vbus = gpiod_get_value(nop->gpiod_vbus); in nop_gpio_vbus_thread()
317 nop->phy.otg->state = gpiod_get_value(nop->gpiod_vbus) ? in usb_phy_generic_probe()
/drivers/staging/emxx_udc/
Demxx_udc.c2219 reg_dt = gpiod_get_value(vbus_gpio); in _nbu2ss_check_vbus()
2246 reg_dt = gpiod_get_value(vbus_gpio); in _nbu2ss_check_vbus()
2310 reg_dt = gpiod_get_value(vbus_gpio); in _nbu2ss_int_usb_suspend()
2350 if (gpiod_get_value(vbus_gpio) == 0) { in _nbu2ss_udc_irq()
2359 if (gpiod_get_value(vbus_gpio) == 0) { in _nbu2ss_udc_irq()
2752 data = gpiod_get_value(vbus_gpio); in nbu2ss_ep_fifo_status()
2792 data = gpiod_get_value(vbus_gpio); in nbu2ss_ep_fifo_flush()
2834 data = gpiod_get_value(vbus_gpio); in nbu2ss_gad_get_frame()
2856 data = gpiod_get_value(vbus_gpio); in nbu2ss_gad_wakeup()
3200 data = gpiod_get_value(vbus_gpio); in nbu2ss_drv_resume()
/drivers/input/touchscreen/
Djornada720_ts.c72 if (gpiod_get_value(jornada_ts->gpio)) { in jornada720_ts_interrupt()
/drivers/ata/
Dpata_rb532_cf.c59 if (gpiod_get_value(info->gpio_line)) { in rb532_pata_irq_handler()
/drivers/w1/masters/
Dw1-gpio.c58 return gpiod_get_value(pdata->gpiod) ? 1 : 0; in w1_gpio_read_bit()
/drivers/i2c/muxes/
Di2c-arb-gpio-challenge.c57 int gpio_val = gpiod_get_value(arb->their_gpio); in i2c_arbitrator_select()

1234