Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
154 chip->gpio_state[index]); in xgpio_set_multiple()
162 chip->gpio_state[index] |= BIT(offset); in xgpio_set_multiple()
164 chip->gpio_state[index] &= ~BIT(offset); in xgpio_set_multiple()
169 index * XGPIO_CHANNEL_OFFSET, chip->gpio_state[index]); in xgpio_set_multiple()
225 chip->gpio_state[index] |= BIT(offset); in xgpio_dir_out()
227 chip->gpio_state[index] &= ~BIT(offset); in xgpio_dir_out()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/media/i2c/
Dmax9286.c160 u8 gpio_state; member
1012 priv->gpio_state |= BIT(offset); in max9286_gpio_set()
1014 priv->gpio_state &= ~BIT(offset); in max9286_gpio_set()
1016 max9286_write(priv, 0x0f, MAX9286_0X0F_RESERVED | priv->gpio_state); in max9286_gpio_set()
1023 return priv->gpio_state & BIT(offset); in max9286_gpio_get()
1044 priv->gpio_state = BIT(0) | BIT(1); in max9286_register_gpio()
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb/
Dcxusb.c134 u8 o[2], gpio_state; in cxusb_bluebird_gpio_rw() local
140 rc = cxusb_ctrl_msg(d, CMD_BLUEBIRD_GPIO_RW, o, 2, &gpio_state, 1); in cxusb_bluebird_gpio_rw()
141 if (rc < 0 || (gpio_state & changemask) != (newval & changemask)) in cxusb_bluebird_gpio_rw()
144 return rc < 0 ? rc : gpio_state; in cxusb_bluebird_gpio_rw()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
Ddrxk_hard.c5944 bool gpio_state; in switch_antenna_to_qam() local
5951 gpio_state = state->m_gpio & state->antenna_gpio; in switch_antenna_to_qam()
5953 if (state->antenna_dvbt ^ gpio_state) { in switch_antenna_to_qam()
5969 bool gpio_state; in switch_antenna_to_dvbt() local
5976 gpio_state = state->m_gpio & state->antenna_gpio; in switch_antenna_to_dvbt()
5978 if (!(state->antenna_dvbt ^ gpio_state)) { in switch_antenna_to_dvbt()
/kernel/linux/patches/linux-5.10/yangfan_patch/
Ddrivers.patch60499 + * @gpio_state: pinctrl select gpio function
60522 + struct pinctrl_state *gpio_state;
61040 + if (!IS_ERR(thermal->pinctrl) && !IS_ERR_OR_NULL(thermal->gpio_state))
61042 + thermal->gpio_state);
61241 + thermal->gpio_state = pinctrl_lookup_state(thermal->pinctrl,
61243 + if (IS_ERR_OR_NULL(thermal->gpio_state))