Home
last modified time | relevance | path

Searched refs:chan_type (Results 1 – 25 of 36) sorted by relevance

12

/linux-6.15/include/linux/iio/
H A Devents.h27 #define _IIO_EVENT_CODE(chan_type, diff, modifier, direction, \ argument
31 ((u64)chan_type << 32) | (((u16)chan2) << 16) | ((u16)chan1) | \
45 #define IIO_MOD_EVENT_CODE(chan_type, number, modifier, \ argument
47 _IIO_EVENT_CODE(chan_type, 0, modifier, direction, type, number, 0, 0)
58 #define IIO_UNMOD_EVENT_CODE(chan_type, number, type, direction) \ argument
59 _IIO_EVENT_CODE(chan_type, 0, 0, direction, type, number, 0, 0)
70 #define IIO_DIFF_EVENT_CODE(chan_type, chan1, chan2, type, direction) \ argument
71 _IIO_EVENT_CODE(chan_type, 1, 0, direction, type, 0, chan1, chan2)
/linux-6.15/drivers/mailbox/
H A Dzynqmp-ipi-mailbox.c91 unsigned int chan_type; member
366 nchan_type = (mchan->chan_type + 1) % 2; in zynqmp_ipi_startup()
401 unsigned int chan_type; in zynqmp_ipi_shutdown() local
407 chan_type = mchan->chan_type; in zynqmp_ipi_shutdown()
408 if (chan_type == IPI_MB_CHNL_RX) { in zynqmp_ipi_shutdown()
413 chan_type = (chan_type + 1) % 2; in zynqmp_ipi_shutdown()
444 unsigned int chan_type; in zynqmp_ipi_of_xlate() local
447 chan_type = p->args[0]; in zynqmp_ipi_of_xlate()
448 if (chan_type != IPI_MB_CHNL_TX && chan_type != IPI_MB_CHNL_RX) { in zynqmp_ipi_of_xlate()
450 chan_type); in zynqmp_ipi_of_xlate()
[all …]
H A Dexynos-mailbox.c57 if (msg->chan_type != EXYNOS_MBOX_CHAN_TYPE_DOORBELL) { in exynos_mbox_send_data()
58 dev_err(dev, "Unsupported channel type [%d]\n", msg->chan_type); in exynos_mbox_send_data()
/linux-6.15/drivers/thermal/
H A Dthermal-generic-adc.c80 enum iio_chan_type chan_type; in gadc_thermal_read_linear_lookup_table() local
87 ret = iio_get_channel_type(gti->channel, &chan_type); in gadc_thermal_read_linear_lookup_table()
88 if (ret || chan_type != IIO_TEMP) in gadc_thermal_read_linear_lookup_table()
/linux-6.15/drivers/iio/imu/bmi270/
H A Dbmi270_core.c285 static int bmi270_set_scale(struct bmi270_data *data, int chan_type, int uscale) in bmi270_set_scale() argument
291 switch (chan_type) { in bmi270_set_scale()
318 static int bmi270_get_scale(struct bmi270_data *data, int chan_type, int *scale, in bmi270_get_scale() argument
327 switch (chan_type) { in bmi270_get_scale()
360 static int bmi270_set_odr(struct bmi270_data *data, int chan_type, int odr, in bmi270_set_odr() argument
367 switch (chan_type) { in bmi270_set_odr()
396 static int bmi270_get_odr(struct bmi270_data *data, int chan_type, int *odr, in bmi270_get_odr() argument
404 switch (chan_type) { in bmi270_get_odr()
514 static int bmi270_get_data(struct bmi270_data *data, int chan_type, int axis, in bmi270_get_data() argument
521 switch (chan_type) { in bmi270_get_data()
/linux-6.15/drivers/iio/light/
H A Dopt3001.c80 enum iio_chan_type chan_type; member
486 if (chan->type != opt->chip_info->chan_type) in opt3001_read_raw()
518 if (chan->type != opt->chip_info->chan_type) in opt3001_write_raw()
790 enum iio_chan_type chan_type = opt->chip_info->chan_type; in opt3001_irq() local
807 IIO_UNMOD_EVENT_CODE(chan_type, 0, in opt3001_irq()
813 IIO_UNMOD_EVENT_CODE(chan_type, 0, in opt3001_irq()
930 .chan_type = IIO_LIGHT,
941 .chan_type = IIO_INTENSITY,
H A Drpr0521.c608 enum iio_chan_type chan_type, in rpr0521_read_samp_freq() argument
621 switch (chan_type) { in rpr0521_read_samp_freq()
638 enum iio_chan_type chan_type, in rpr0521_write_samp_freq_common() argument
/linux-6.15/drivers/net/wireless/ath/ath9k/
H A Dcommon-spectral.c128 u8 *sample_buf, u64 tsf, u16 freq, int chan_type);
134 u64 tsf, u16 freq, int chan_type) in ath_cmn_process_ht20_fft() argument
238 u64 tsf, u16 freq, int chan_type) in ath_cmn_process_ht20_40_fft() argument
265 fft_sample_40.channel_type = chan_type; in ath_cmn_process_ht20_40_fft()
267 if (chan_type == NL80211_CHAN_HT40PLUS) { in ath_cmn_process_ht20_40_fft()
484 enum nl80211_channel_type chan_type; in ath_cmn_process_fft() local
517 chan_type = cfg80211_get_chandef_type(&common->hw->conf.chandef); in ath_cmn_process_fft()
518 if ((chan_type == NL80211_CHAN_HT40MINUS) || in ath_cmn_process_fft()
519 (chan_type == NL80211_CHAN_HT40PLUS)) { in ath_cmn_process_fft()
624 tsf, freq, chan_type); in ath_cmn_process_fft()
[all …]
/linux-6.15/net/bluetooth/
H A Dl2cap_sock.c143 switch (chan->chan_type) { in l2cap_sock_bind()
581 chan->chan_type != L2CAP_CHAN_FIXED && in l2cap_sock_getsockopt()
582 chan->chan_type != L2CAP_CHAN_RAW) { in l2cap_sock_getsockopt()
905 chan->chan_type != L2CAP_CHAN_FIXED && in l2cap_sock_setsockopt()
906 chan->chan_type != L2CAP_CHAN_RAW) { in l2cap_sock_setsockopt()
1001 chan->chan_type != L2CAP_CHAN_RAW) { in l2cap_sock_setsockopt()
1823 chan->chan_type = pchan->chan_type; in l2cap_sock_init()
1837 if (chan->chan_type == L2CAP_CHAN_FIXED) { in l2cap_sock_init()
1846 chan->chan_type = L2CAP_CHAN_RAW; in l2cap_sock_init()
1849 chan->chan_type = L2CAP_CHAN_CONN_LESS; in l2cap_sock_init()
[all …]
H A Dl2cap_core.c233 chan->chan_type = L2CAP_CHAN_FIXED; in l2cap_add_scid()
595 switch (chan->chan_type) { in __l2cap_chan_add()
631 if (chan->chan_type != L2CAP_CHAN_FIXED || in __l2cap_chan_add()
669 if (chan->chan_type != L2CAP_CHAN_FIXED || in l2cap_chan_del()
861 switch (chan->chan_type) { in l2cap_get_auth_type()
1219 if (chan->chan_type != L2CAP_CHAN_CONN_ORIENTED) in __l2cap_no_conn_pending()
2555 if (chan->chan_type == L2CAP_CHAN_CONN_LESS) { in l2cap_chan_send()
2956 if (chan->chan_type != L2CAP_CHAN_RAW) in l2cap_raw_recv()
6691 if (chan->chan_type == L2CAP_CHAN_FIXED) in l2cap_data_channel()
6959 chan->chan_type != L2CAP_CHAN_RAW) { in l2cap_chan_connect()
[all …]
/linux-6.15/drivers/iio/imu/st_lsm6dsx/
H A Dst_lsm6dsx.h83 #define ST_LSM6DSX_CHANNEL_ACC(chan_type, addr, mod, scan_idx) \ argument
85 .type = chan_type, \
104 #define ST_LSM6DSX_CHANNEL(chan_type, addr, mod, scan_idx) \ argument
106 .type = chan_type, \
/linux-6.15/arch/powerpc/platforms/pasemi/
H A Ddma_lib.c204 chan->chan_type = type; in pasemi_dma_alloc_chan()
221 switch (chan->chan_type & (RXCHAN|TXCHAN)) { in pasemi_dma_free_chan()
284 if (chan->chan_type == RXCHAN) in pasemi_dma_start_chan()
311 if (chan->chan_type == RXCHAN) { in pasemi_dma_stop_chan()
/linux-6.15/include/linux/mailbox/
H A Dexynos-message.h16 unsigned int chan_type; member
/linux-6.15/drivers/iio/imu/
H A Dsmi240.c325 int chan_type, int *val) in smi240_get_low_pass_filter_freq() argument
327 switch (chan_type) { in smi240_get_low_pass_filter_freq()
339 static int smi240_get_data(struct smi240_data *data, int chan_type, int axis, in smi240_get_data() argument
345 switch (chan_type) { in smi240_get_data()
H A Dfxos8700_core.c416 static int fxos8700_get_data(struct fxos8700_data *data, int chan_type, in fxos8700_get_data() argument
428 switch (chan_type) { in fxos8700_get_data()
462 switch (chan_type) { in fxos8700_get_data()
/linux-6.15/arch/um/drivers/
H A Dchan_kern.c436 struct chan_type { struct
441 static const struct chan_type chan_table[] = { argument
480 const struct chan_type *entry; in parse_chan()
/linux-6.15/drivers/staging/rtl8723bs/include/
H A Dioctl_cfg80211.h115 #define rtw_cfg80211_remain_on_channel_expired(adapter, cookie, chan, chan_type, gfp) cfg80211_rema… argument
/linux-6.15/drivers/gpu/drm/mediatek/
H A Dmtk_hdmi.c871 enum hdmi_aud_channel_type chan_type; in mtk_hdmi_aud_set_input() local
893 chan_type = HDMI_AUD_CHAN_TYPE_2_0; in mtk_hdmi_aud_set_input()
895 chan_type = hdmi->aud_param.aud_input_chan_type; in mtk_hdmi_aud_set_input()
896 chan_count = mtk_hdmi_aud_get_chnl_count(chan_type); in mtk_hdmi_aud_set_input()
897 mtk_hdmi_hw_aud_set_i2s_chan_num(hdmi, chan_type, chan_count); in mtk_hdmi_aud_set_input()
/linux-6.15/drivers/net/wireless/mediatek/mt7601u/
H A Dphy.c372 enum nl80211_channel_type chan_type = in __mt7601u_phy_set_channel() local
381 chan_ext_below = (chan_type == NL80211_CHAN_HT40MINUS); in __mt7601u_phy_set_channel()
387 if (chan_idx > 1 && chan_type == NL80211_CHAN_HT40MINUS) in __mt7601u_phy_set_channel()
389 else if (chan_idx < 12 && chan_type == NL80211_CHAN_HT40PLUS) in __mt7601u_phy_set_channel()
/linux-6.15/net/mac80211/
H A Dtdls.c1845 enum nl80211_channel_type chan_type; in ieee80211_process_tdls_channel_switch_req() local
1922 chan_type = NL80211_CHAN_HT20; in ieee80211_process_tdls_channel_switch_req()
1926 chan_type = NL80211_CHAN_HT40PLUS; in ieee80211_process_tdls_channel_switch_req()
1929 chan_type = NL80211_CHAN_HT40MINUS; in ieee80211_process_tdls_channel_switch_req()
1932 chan_type = NL80211_CHAN_HT20; in ieee80211_process_tdls_channel_switch_req()
1937 cfg80211_chandef_create(&chandef, chan, chan_type); in ieee80211_process_tdls_channel_switch_req()
/linux-6.15/drivers/iio/imu/bmi160/
H A Dbmi160_core.c367 static int bmi160_get_data(struct bmi160_data *data, int chan_type, in bmi160_get_data() argument
373 enum bmi160_sensor_type t = bmi160_to_sensor(chan_type); in bmi160_get_data()
/linux-6.15/drivers/iio/adc/
H A Dmxs-lradc-adc.c577 #define MXS_ADC_CHAN(idx, chan_type, name) { \ argument
578 .type = (chan_type), \
/linux-6.15/drivers/iio/temperature/
H A Dltc2983.c1461 u32 chan_type = 0, *iio_chan; in ltc2983_setup() local
1478 chan_type = IIO_TEMP; in ltc2983_setup()
1481 chan_type = IIO_VOLTAGE; in ltc2983_setup()
1489 st->iio_chan[iio_idx++] = LTC2983_CHAN(chan_type, (*iio_chan)++, in ltc2983_setup()
/linux-6.15/drivers/iio/dac/
H A Dad8460.c502 static int ad8460_select_fault_type(int chan_type, enum iio_event_direction dir) in ad8460_select_fault_type() argument
504 switch (chan_type) { in ad8460_select_fault_type()
/linux-6.15/arch/powerpc/include/asm/
H A Dpasemi_dma.h472 enum pasemi_dmachan_type chan_type; /* TX / RX */ member

12