Home
last modified time | relevance | path

Searched refs:is_high (Results 1 – 13 of 13) sorted by relevance

/linux-6.15/drivers/media/cec/platform/cec-gpio/
H A Dcec-gpio.c76 bool is_high = val > 0; in cec_5v_gpio_irq_handler() local
78 if (val < 0 || is_high == cec->v5_is_high) in cec_5v_gpio_irq_handler()
81 cec->v5_is_high = is_high; in cec_5v_gpio_irq_handler()
97 bool is_high = val > 0; in cec_hpd_gpio_irq_handler() local
99 if (val < 0 || is_high == cec->hpd_is_high) in cec_hpd_gpio_irq_handler()
102 cec->hpd_is_high = is_high; in cec_hpd_gpio_irq_handler()
/linux-6.15/drivers/spi/
H A Dspi-ch341.c42 static void ch341_set_cs(struct spi_device *spi, bool is_high) in ch341_set_cs() argument
50 ch341->tx_buf[1] = CH341A_CMD_UIO_STM_OUT | (is_high ? 0x36 : 0x37); in ch341_set_cs()
52 if (is_high) { in ch341_set_cs()
60 (is_high ? 4 : 3), NULL, CH341_DEFAULT_TIMEOUT); in ch341_set_cs()
H A Dspi-sifive.c153 static void sifive_spi_set_cs(struct spi_device *device, bool is_high) in sifive_spi_set_cs() argument
159 is_high = !is_high; in sifive_spi_set_cs()
161 sifive_spi_write(spi, SIFIVE_SPI_REG_CSMODE, is_high ? in sifive_spi_set_cs()
H A Dspi-altera-core.c73 static void altera_spi_set_cs(struct spi_device *spi, bool is_high) in altera_spi_set_cs() argument
77 if (is_high) { in altera_spi_set_cs()
H A Dspi-cs42l43.c176 static void cs42l43_set_cs(struct spi_device *spi, bool is_high) in cs42l43_set_cs() argument
180 regmap_write(priv->regmap, CS42L43_SPI_CONFIG2, !is_high); in cs42l43_set_cs()
H A Dspi-apple.c189 static void apple_spi_set_cs(struct spi_device *device, bool is_high) in apple_spi_set_cs() argument
193 reg_mask(spi, APPLE_SPI_PIN, APPLE_SPI_PIN_CS, is_high ? APPLE_SPI_PIN_CS : 0); in apple_spi_set_cs()
H A Dspi-cadence.c183 static void cdns_spi_chipselect(struct spi_device *spi, bool is_high) in cdns_spi_chipselect() argument
190 if (is_high) { in cdns_spi_chipselect()
H A Dspi-zynqmp-gqspi.c459 static void zynqmp_qspi_chipselect(struct spi_device *qspi, bool is_high) in zynqmp_qspi_chipselect() argument
467 if (!is_high) { in zynqmp_qspi_chipselect()
/linux-6.15/include/media/
H A Dcec.h426 void cec_queue_pin_cec_event(struct cec_adapter *adap, bool is_high,
437 void cec_queue_pin_hpd_event(struct cec_adapter *adap, bool is_high, ktime_t ts);
447 void cec_queue_pin_5v_event(struct cec_adapter *adap, bool is_high, ktime_t ts);
/linux-6.15/drivers/media/cec/core/
H A Dcec-adap.c151 void cec_queue_pin_cec_event(struct cec_adapter *adap, bool is_high, in cec_queue_pin_cec_event() argument
155 .event = is_high ? CEC_EVENT_PIN_CEC_HIGH : in cec_queue_pin_cec_event()
171 void cec_queue_pin_hpd_event(struct cec_adapter *adap, bool is_high, ktime_t ts) in cec_queue_pin_hpd_event() argument
174 .event = is_high ? CEC_EVENT_PIN_HPD_HIGH : in cec_queue_pin_hpd_event()
187 void cec_queue_pin_5v_event(struct cec_adapter *adap, bool is_high, ktime_t ts) in cec_queue_pin_5v_event() argument
190 .event = is_high ? CEC_EVENT_PIN_5V_HIGH : in cec_queue_pin_5v_event()
/linux-6.15/drivers/iio/adc/
H A Dad7606.c641 bool is_high; in ad7606_set_sampling_freq() local
648 is_high = cnvst_pwm_state.duty_cycle == cnvst_pwm_state.period; in ad7606_set_sampling_freq()
652 if (is_high) in ad7606_set_sampling_freq()
/linux-6.15/sound/soc/codecs/
H A Dnau8821.c1011 bool active_high, is_high; in nau8821_is_jack_inserted() local
1017 is_high = status & NAU8821_GPIO2_IN; in nau8821_is_jack_inserted()
1021 return active_high == is_high; in nau8821_is_jack_inserted()
H A Dnau8825.c1578 bool active_high, is_high; in nau8825_is_jack_inserted() local
1584 is_high = status & NAU8825_GPIO2JD1; in nau8825_is_jack_inserted()
1588 return active_high == is_high; in nau8825_is_jack_inserted()