Home
last modified time | relevance | path

Searched refs:gpio_state (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.4/drivers/gpio/
Dgpio-xilinx.c46 u32 gpio_state[2]; member
117 chip->gpio_state[index] |= BIT(offset); in xgpio_set()
119 chip->gpio_state[index] &= ~BIT(offset); in xgpio_set()
122 xgpio_regoffset(chip, gpio), chip->gpio_state[index]); in xgpio_set()
153 chip->gpio_state[index]); in xgpio_set_multiple()
161 chip->gpio_state[index] |= BIT(offset); in xgpio_set_multiple()
163 chip->gpio_state[index] &= ~BIT(offset); in xgpio_set_multiple()
168 xgpio_regoffset(chip, i), chip->gpio_state[index]); in xgpio_set_multiple()
224 chip->gpio_state[index] |= BIT(offset); in xgpio_dir_out()
226 chip->gpio_state[index] &= ~BIT(offset); in xgpio_dir_out()
[all …]
/Linux-v5.4/drivers/spi/
Dspi-tle62x0.c30 unsigned int gpio_state; member
41 unsigned int gpio_state = st->gpio_state; in tle62x0_write() local
46 buff[1] = gpio_state >> 8; in tle62x0_write()
47 buff[2] = gpio_state; in tle62x0_write()
49 buff[1] = gpio_state; in tle62x0_write()
141 value = (st->gpio_state >> gpio_num) & 1; in tle62x0_gpio_show()
165 st->gpio_state |= 1 << gpio_num; in tle62x0_gpio_store()
167 st->gpio_state &= ~(1 << gpio_num); in tle62x0_gpio_store()
258 st->gpio_state = pdata->init_state; in tle62x0_probe()
/Linux-v5.4/drivers/media/usb/dvb-usb/
Dcxusb.c137 u8 o[2], gpio_state; in cxusb_bluebird_gpio_rw() local
143 rc = cxusb_ctrl_msg(d, CMD_BLUEBIRD_GPIO_RW, o, 2, &gpio_state, 1); in cxusb_bluebird_gpio_rw()
144 if (rc < 0 || (gpio_state & changemask) != (newval & changemask)) in cxusb_bluebird_gpio_rw()
147 return rc < 0 ? rc : gpio_state; in cxusb_bluebird_gpio_rw()
/Linux-v5.4/sound/soc/codecs/
Drt5645.c3255 int val, btn_type, gpio_state = 0, report = 0; in rt5645_jack_detect_work() local
3263 gpio_state = gpiod_get_value(rt5645->gpiod_hp_det); in rt5645_jack_detect_work()
3265 gpio_state); in rt5645_jack_detect_work()
3266 report = rt5645_jack_detect(rt5645->component, gpio_state); in rt5645_jack_detect_work()
/Linux-v5.4/drivers/media/dvb-frontends/
Ddrxk_hard.c5956 bool gpio_state; in switch_antenna_to_qam() local
5963 gpio_state = state->m_gpio & state->antenna_gpio; in switch_antenna_to_qam()
5965 if (state->antenna_dvbt ^ gpio_state) { in switch_antenna_to_qam()
5981 bool gpio_state; in switch_antenna_to_dvbt() local
5988 gpio_state = state->m_gpio & state->antenna_gpio; in switch_antenna_to_dvbt()
5990 if (!(state->antenna_dvbt ^ gpio_state)) { in switch_antenna_to_dvbt()