Home
last modified time | relevance | path

Searched refs:ch_idx (Results 1 – 12 of 12) sorted by relevance

/linux/drivers/iio/adc/
H A Dti-tsc2046.c241 static u8 tsc2046_adc_get_cmd(struct tsc2046_adc_priv *priv, int ch_idx, in tsc2046_adc_get_cmd() argument
255 switch (ch_idx) { in tsc2046_adc_get_cmd()
265 return TI_TSC2046_START | FIELD_PREP(TI_TSC2046_ADDR, ch_idx) | pd; in tsc2046_adc_get_cmd()
273 static int tsc2046_adc_read_one(struct tsc2046_adc_priv *priv, int ch_idx, in tsc2046_adc_read_one() argument
276 struct tsc2046_adc_ch_cfg *ch = &priv->ch_cfg[ch_idx]; in tsc2046_adc_read_one()
309 cmd = tsc2046_adc_get_cmd(priv, ch_idx, true); in tsc2046_adc_read_one()
315 tx_buf[i].cmd = tsc2046_adc_get_cmd(priv, ch_idx, false); in tsc2046_adc_read_one()
347 unsigned int ch_idx) in tsc2046_adc_group_set_layout() argument
349 struct tsc2046_adc_ch_cfg *ch = &priv->ch_cfg[ch_idx]; in tsc2046_adc_group_set_layout()
369 unsigned int group, int ch_idx) in tsc2046_adc_group_set_cmd() argument
484 unsigned int ch_idx, group = 0; tsc2046_adc_update_scan_mode() local
649 unsigned int ch_idx; tsc2046_adc_setup_spi_msg() local
[all...]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Dumc_v8_10.h55 #define SWIZZLE_MODE_TMP_ADDR(na, ch_num, ch_idx) \ argument
56 ((((na) >> 10) * (ch_num) + (ch_idx)) << 10)
/linux/drivers/staging/most/video/
H A Dvideo.c31 int ch_idx; member
98 ret = most_start_channel(mdev->iface, mdev->ch_idx, &comp); in comp_vdev_open()
140 most_stop_channel(mdev->iface, mdev->ch_idx, &comp); in comp_vdev_close()
375 if (mdev->iface == iface && mdev->ch_idx == channel_idx) { in get_comp_dev()
481 mdev->ch_idx = channel_idx; in comp_probe_channel()
/linux/drivers/hwmon/
H A Dmr75203.c316 u8 vm_idx, ch_idx; in pvt_read_in() local
323 ch_idx = pvt->vd[channel].ch_map; in pvt_read_in()
334 ret = regmap_read(v_map, VM_SDIF_DATA(vm_idx, ch_idx), &n); in pvt_read_in()
/linux/drivers/net/can/usb/etas_es58x/
H A Des58x_core.c2222 int ch_idx; in es58x_probe() local
2231 for (ch_idx = 0; ch_idx < es58x_dev->num_can_ch; ch_idx++) { in es58x_probe()
2232 int ret = es58x_init_netdev(es58x_dev, ch_idx); in es58x_probe()
/linux/drivers/bus/mhi/ep/
H A Dmain.c916 u32 ch_idx) in mhi_ep_queue_channel_db() argument
927 u32 ch_id = ch_idx + i; in mhi_ep_queue_channel_db()
955 u32 ch_int, ch_idx, i; in mhi_ep_check_channel_interrupt() local
962 ch_idx = i * MHI_MASK_CH_LEN; in mhi_ep_check_channel_interrupt()
967 mhi_ep_queue_channel_db(mhi_cntrl, ch_int, ch_idx); in mhi_ep_check_channel_interrupt()
/linux/drivers/infiniband/ulp/srp/
H A Dib_srp.c2785 u16 ch_idx; in srp_abort() local
2791 ch_idx = blk_mq_unique_tag_to_hwq(tag); in srp_abort()
2792 if (WARN_ON_ONCE(ch_idx >= target->ch_count)) in srp_abort()
2794 ch = &target->ch[ch_idx]; in srp_abort()
3693 int ret, i, ch_idx; in add_target_store() local
3829 for (ch_idx = 0; ch_idx < target->ch_count; ++ch_idx) { in add_target_store()
3830 ch = &target->ch[ch_idx]; in add_target_store()
3832 ch->comp_vector = ch_idx % ibdev->num_comp_vectors; in add_target_store()
3855 ch_idx, in add_target_store()
3857 if (ch_idx == 0) { in add_target_store()
/linux/drivers/net/wireless/realtek/rtw89/
H A Drtw8852b_rfk.c3585 u8 ch_idx = _tssi_ch_to_idx(rtwdev, channel); in _tssi_alimentk() local
3600 if (tssi_info->check_backup_aligmk[path][ch_idx]) { in _tssi_alimentk()
3602 tssi_info->alignment_backup_by_ch[path][ch_idx][0]); in _tssi_alimentk()
3604 tssi_info->alignment_backup_by_ch[path][ch_idx][1]); in _tssi_alimentk()
3606 tssi_info->alignment_backup_by_ch[path][ch_idx][2]); in _tssi_alimentk()
3608 tssi_info->alignment_backup_by_ch[path][ch_idx][3]); in _tssi_alimentk()
3709 tssi_info->check_backup_aligmk[path][ch_idx] = true; in _tssi_alimentk()
3710 tssi_info->alignment_backup_by_ch[path][ch_idx][0] = in _tssi_alimentk()
3712 tssi_info->alignment_backup_by_ch[path][ch_idx][1] = in _tssi_alimentk()
3714 tssi_info->alignment_backup_by_ch[path][ch_idx][2] = in _tssi_alimentk()
[all …]
H A Drtw8852bt_rfk.c3663 u8 ch_idx = _tssi_ch_to_idx(rtwdev, channel); in _tssi_alimentk() local
3772 tssi_info->check_backup_aligmk[path][ch_idx] = true; in _tssi_alimentk()
3773 tssi_info->alignment_backup_by_ch[path][ch_idx][0] = in _tssi_alimentk()
3775 tssi_info->alignment_backup_by_ch[path][ch_idx][1] = in _tssi_alimentk()
3777 tssi_info->alignment_backup_by_ch[path][ch_idx][2] = in _tssi_alimentk()
3779 tssi_info->alignment_backup_by_ch[path][ch_idx][3] = in _tssi_alimentk()
/linux/sound/soc/codecs/
H A Dwcd937x.c1314 int ch_idx = mixer->reg; in wcd937x_get_swr_port() local
1318 portidx = wcd->ch_info[ch_idx].port_num; in wcd937x_get_swr_port()
1333 int ch_idx = mixer->reg; in wcd937x_set_swr_port() local
1339 portidx = wcd->ch_info[ch_idx].port_num; in wcd937x_set_swr_port()
1344 wcd937x_connect_port(wcd, portidx, ch_idx, enable); in wcd937x_set_swr_port()
1349 wcd937x_connect_port(wcd, portidx, ch_idx, enable); in wcd937x_set_swr_port()
H A Dwcd938x.c1858 int portidx, ch_idx = mixer->reg; in wcd938x_get_swr_port() local
1862 portidx = wcd->ch_info[ch_idx].port_num; in wcd938x_get_swr_port()
1877 int ch_idx = mixer->reg; in wcd938x_set_swr_port() local
1884 portidx = wcd->ch_info[ch_idx].port_num; in wcd938x_set_swr_port()
1892 wcd938x_connect_port(wcd, portidx, ch_idx, enable); in wcd938x_set_swr_port()
H A Dmadera.c404 int n, i, in_idx, ch_idx; in madera_prop_get_inmode() local
416 ch_idx = 0; in madera_prop_get_inmode()
418 pdata->inmode[in_idx][ch_idx] = tmp[i]; in madera_prop_get_inmode()
420 if (++ch_idx == MADERA_MAX_MUXED_CHANNELS) { in madera_prop_get_inmode()
421 ch_idx = 0; in madera_prop_get_inmode()