Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/staging/most/i2c/
Di2c.c67 int ch_idx, in configure_channel() argument
74 BUG_ON(ch_idx < 0 || ch_idx >= NUM_CHANNELS); in configure_channel()
77 pr_err("bad data type for channel %d\n", ch_idx); in configure_channel()
81 if (channel_config->direction != dev->capabilities[ch_idx].direction) { in configure_channel()
82 pr_err("bad direction for channel %d\n", ch_idx); in configure_channel()
123 int ch_idx, struct mbo *mbo) in enqueue() argument
128 BUG_ON(ch_idx < 0 || ch_idx >= NUM_CHANNELS); in enqueue()
130 if (ch_idx == CH_RX) { in enqueue()
168 int ch_idx) in poison_channel() argument
173 BUG_ON(ch_idx < 0 || ch_idx >= NUM_CHANNELS); in poison_channel()
[all …]
/Linux-v6.6/drivers/staging/most/dim2/
Ddim2.c262 static void service_done_flag(struct dim2_hdm *dev, int ch_idx) in service_done_flag() argument
264 struct hdm_channel *hdm_ch = dev->hch + ch_idx; in service_done_flag()
337 int ch_idx; in get_active_channels() local
339 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) { in get_active_channels()
340 if (dev->hch[ch_idx].is_initialized) in get_active_channels()
341 buffer[idx++] = &dev->hch[ch_idx].ch; in get_active_channels()
368 int ch_idx; in dim2_task_irq() local
370 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) { in dim2_task_irq()
371 if (!dev->hch[ch_idx].is_initialized) in dim2_task_irq()
375 dim_service_channel(&dev->hch[ch_idx].ch); in dim2_task_irq()
[all …]
/Linux-v6.6/drivers/net/wireless/intel/iwlwifi/
Diwl-eeprom-parse.c335 int ch_idx; in iwl_eeprom_enh_txp_read_element() local
341 for (ch_idx = 0; ch_idx < n_channels; ch_idx++) { in iwl_eeprom_enh_txp_read_element()
342 struct ieee80211_channel *chan = &data->channels[ch_idx]; in iwl_eeprom_enh_txp_read_element()
511 ((eeprom_ch_info[ch_idx].flags & EEPROM_CHANNEL_##x) ? # x " " : "")
517 int band, ch_idx; in iwl_init_channel_map() local
534 for (ch_idx = 0; ch_idx < eeprom_ch_count; ch_idx++) { in iwl_init_channel_map()
537 eeprom_ch = &eeprom_ch_info[ch_idx]; in iwl_init_channel_map()
542 eeprom_ch_array[ch_idx], in iwl_init_channel_map()
543 eeprom_ch_info[ch_idx].flags, in iwl_init_channel_map()
551 channel->hw_value = eeprom_ch_array[ch_idx]; in iwl_init_channel_map()
[all …]
Diwl-nvm-parse.c329 static u32 iwl_get_channel_flags(u8 ch_num, int ch_idx, enum nl80211_band band, in iwl_get_channel_flags() argument
340 if ((ch_idx - NUM_2GHZ_CHANNELS) % 2 == 0) in iwl_get_channel_flags()
372 static enum nl80211_band iwl_nl80211_band_from_channel_idx(int ch_idx) in iwl_nl80211_band_from_channel_idx() argument
374 if (ch_idx >= NUM_2GHZ_CHANNELS + NUM_5GHZ_CHANNELS) { in iwl_nl80211_band_from_channel_idx()
378 if (ch_idx >= NUM_2GHZ_CHANNELS) in iwl_nl80211_band_from_channel_idx()
388 int ch_idx; in iwl_init_channel_map() local
406 for (ch_idx = 0; ch_idx < num_of_ch; ch_idx++) { in iwl_init_channel_map()
408 iwl_nl80211_band_from_channel_idx(ch_idx); in iwl_init_channel_map()
412 __le32_to_cpup((const __le32 *)nvm_ch_flags + ch_idx); in iwl_init_channel_map()
415 __le16_to_cpup((const __le16 *)nvm_ch_flags + ch_idx); in iwl_init_channel_map()
[all …]
/Linux-v6.6/drivers/iio/adc/
Dti-tsc2046.c240 static u8 tsc2046_adc_get_cmd(struct tsc2046_adc_priv *priv, int ch_idx, in tsc2046_adc_get_cmd() argument
254 switch (ch_idx) { in tsc2046_adc_get_cmd()
264 return TI_TSC2046_START | FIELD_PREP(TI_TSC2046_ADDR, ch_idx) | pd; in tsc2046_adc_get_cmd()
272 static int tsc2046_adc_read_one(struct tsc2046_adc_priv *priv, int ch_idx, in tsc2046_adc_read_one() argument
275 struct tsc2046_adc_ch_cfg *ch = &priv->ch_cfg[ch_idx]; in tsc2046_adc_read_one()
307 cmd = tsc2046_adc_get_cmd(priv, ch_idx, true); in tsc2046_adc_read_one()
313 tx_buf[i].cmd = tsc2046_adc_get_cmd(priv, ch_idx, false); in tsc2046_adc_read_one()
352 unsigned int ch_idx) in tsc2046_adc_group_set_layout() argument
354 struct tsc2046_adc_ch_cfg *ch = &priv->ch_cfg[ch_idx]; in tsc2046_adc_group_set_layout()
374 unsigned int group, int ch_idx) in tsc2046_adc_group_set_cmd() argument
[all …]
/Linux-v6.6/drivers/usb/gadget/udc/
Dbcm63xx_udc.c211 unsigned int ch_idx; member
656 ENETDMAC_CHANCFG_REG, iudma->ch_idx); in iudma_write()
706 int ch_idx = iudma->ch_idx; in iudma_reset_channel() local
712 usb_dmac_writel(udc, 0, ENETDMAC_CHANCFG_REG, ch_idx); in iudma_reset_channel()
714 while (usb_dmac_readl(udc, ENETDMAC_CHANCFG_REG, ch_idx) & in iudma_reset_channel()
724 ch_idx); in iudma_reset_channel()
729 ch_idx); in iudma_reset_channel()
731 ENETDMAC_CHANCFG_REG, ch_idx); in iudma_reset_channel()
734 usb_dmac_writel(udc, ~0, ENETDMAC_IR_REG, ch_idx); in iudma_reset_channel()
746 ENETDMAC_IRMASK_REG, ch_idx); in iudma_reset_channel()
[all …]
/Linux-v6.6/drivers/net/wireless/realtek/rtw88/
Dphy.c1508 int ch_idx; in rtw_channel_to_idx() local
1512 ch_idx = channel - 1; in rtw_channel_to_idx()
1516 for (ch_idx = 0; ch_idx < n_channel; ch_idx++) in rtw_channel_to_idx()
1517 if (rtw_channel_idx_5g[ch_idx] == channel) in rtw_channel_to_idx()
1523 if (ch_idx >= n_channel) in rtw_channel_to_idx()
1526 return ch_idx; in rtw_channel_to_idx()
1535 int ch_idx; in rtw_phy_set_tx_power_limit() local
1539 ch_idx = rtw_channel_to_idx(band, ch); in rtw_phy_set_tx_power_limit()
1542 rs >= RTW_RATE_SECTION_MAX || ch_idx < 0) { in rtw_phy_set_tx_power_limit()
1545 regd, band, bw, rs, ch_idx, pwr_limit); in rtw_phy_set_tx_power_limit()
[all …]
/Linux-v6.6/drivers/gpu/drm/amd/amdgpu/
Dumc_v8_10.h55 #define SWIZZLE_MODE_TMP_ADDR(na, ch_num, ch_idx) \ argument
56 ((((na) >> 10) * (ch_num) + (ch_idx)) << 10)
/Linux-v6.6/drivers/staging/most/video/
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-v6.6/drivers/net/wireless/ralink/rt2x00/
Drt2800lib.c8754 u8 ch_idx; in rt2800_rxiq_calibration() local
8867 for (ch_idx = 0; ch_idx < 2; ch_idx = ch_idx + 1) { in rt2800_rxiq_calibration()
8868 if (ch_idx == 0) { in rt2800_rxiq_calibration()
9029 if (ch_idx == 0) { in rt2800_rxiq_calibration()
9332 static void rt2800_write_dc(struct rt2x00_dev *rt2x00dev, u8 ch_idx, u8 alc, u8 iorq, u8 dc) in rt2800_write_dc() argument
9340 if (ch_idx == 0) in rt2800_write_dc()
9350 static void rt2800_loft_search(struct rt2x00_dev *rt2x00dev, u8 ch_idx, in rt2800_loft_search() argument
9371 rt2800_write_dc(rt2x00dev, ch_idx, 0, iorq, idx0); in rt2800_loft_search()
9377 rt2800_write_dc(rt2x00dev, ch_idx, 0, iorq, idx1); in rt2800_loft_search()
9397 rt2800_write_dc(rt2x00dev, ch_idx, 0, iorq, idxf[iorq]); in rt2800_loft_search()
[all …]
/Linux-v6.6/drivers/hwmon/
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-v6.6/drivers/net/can/usb/etas_es58x/
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-v6.6/drivers/bus/mhi/ep/
Dmain.c817 u32 ch_idx) in mhi_ep_queue_channel_db() argument
828 u32 ch_id = ch_idx + i; in mhi_ep_queue_channel_db()
856 u32 ch_int, ch_idx, i; in mhi_ep_check_channel_interrupt() local
863 ch_idx = i * MHI_MASK_CH_LEN; in mhi_ep_check_channel_interrupt()
868 mhi_ep_queue_channel_db(mhi_cntrl, ch_int, ch_idx); in mhi_ep_check_channel_interrupt()
/Linux-v6.6/drivers/infiniband/ulp/srp/
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()
3692 int ret, i, ch_idx; in add_target_store() local
3828 for (ch_idx = 0; ch_idx < target->ch_count; ++ch_idx) { in add_target_store()
3829 ch = &target->ch[ch_idx]; in add_target_store()
3831 ch->comp_vector = ch_idx % ibdev->num_comp_vectors; in add_target_store()
3854 ch_idx, in add_target_store()
3856 if (ch_idx == 0) { in add_target_store()
/Linux-v6.6/drivers/net/wireless/realtek/rtw89/
Dphy.c1657 u8 ch_idx = rtw89_channel_to_idx(rtwdev, band, ch); in rtw89_phy_read_txpwr_limit() local
1664 lmt = (*rule_2ghz->lmt)[bw][ntx][rs][bf][regd][ch_idx]; in rtw89_phy_read_txpwr_limit()
1668 lmt = (*rule_2ghz->lmt)[bw][ntx][rs][bf][RTW89_WW][ch_idx]; in rtw89_phy_read_txpwr_limit()
1671 lmt = (*rule_5ghz->lmt)[bw][ntx][rs][bf][regd][ch_idx]; in rtw89_phy_read_txpwr_limit()
1675 lmt = (*rule_5ghz->lmt)[bw][ntx][rs][bf][RTW89_WW][ch_idx]; in rtw89_phy_read_txpwr_limit()
1678 lmt = (*rule_6ghz->lmt)[bw][ntx][rs][bf][regd][reg6][ch_idx]; in rtw89_phy_read_txpwr_limit()
1684 [ch_idx]; in rtw89_phy_read_txpwr_limit()
1914 u8 ch_idx = rtw89_channel_to_idx(rtwdev, band, ch); in rtw89_phy_read_txpwr_limit_ru() local
1921 lmt_ru = (*rule_2ghz->lmt_ru)[ru][ntx][regd][ch_idx]; in rtw89_phy_read_txpwr_limit_ru()
1925 lmt_ru = (*rule_2ghz->lmt_ru)[ru][ntx][RTW89_WW][ch_idx]; in rtw89_phy_read_txpwr_limit_ru()
[all …]
Drtw8852b_rfk.c3580 u8 ch_idx = _tssi_ch_to_idx(rtwdev, channel); in _tssi_alimentk() local
3595 if (tssi_info->check_backup_aligmk[path][ch_idx]) { in _tssi_alimentk()
3597 tssi_info->alignment_backup_by_ch[path][ch_idx][0]); in _tssi_alimentk()
3599 tssi_info->alignment_backup_by_ch[path][ch_idx][1]); in _tssi_alimentk()
3601 tssi_info->alignment_backup_by_ch[path][ch_idx][2]); in _tssi_alimentk()
3603 tssi_info->alignment_backup_by_ch[path][ch_idx][3]); in _tssi_alimentk()
3704 tssi_info->check_backup_aligmk[path][ch_idx] = true; in _tssi_alimentk()
3705 tssi_info->alignment_backup_by_ch[path][ch_idx][0] = in _tssi_alimentk()
3707 tssi_info->alignment_backup_by_ch[path][ch_idx][1] = in _tssi_alimentk()
3709 tssi_info->alignment_backup_by_ch[path][ch_idx][2] = in _tssi_alimentk()
[all …]
/Linux-v6.6/drivers/net/wireless/intel/iwlwifi/mvm/
Dscan.c1528 int ch_idx, bitmap_idx; in iwl_mvm_scan_ch_add_n_aps_override() local
1530 ch_idx = iwl_mvm_scan_ch_and_band_to_idx(ch_id, band); in iwl_mvm_scan_ch_add_n_aps_override()
1531 if (ch_idx < 0) in iwl_mvm_scan_ch_add_n_aps_override()
1534 bitmap_idx = ch_idx / 8; in iwl_mvm_scan_ch_add_n_aps_override()
1538 ch_idx = ch_idx % 8; in iwl_mvm_scan_ch_add_n_aps_override()
1539 ch_bitmap[bitmap_idx] |= BIT(ch_idx); in iwl_mvm_scan_ch_add_n_aps_override()
/Linux-v6.6/sound/soc/codecs/
Dwcd938x.c1902 int portidx, ch_idx = mixer->reg; in wcd938x_get_swr_port() local
1906 portidx = wcd->ch_info[ch_idx].port_num; in wcd938x_get_swr_port()
1921 int ch_idx = mixer->reg; in wcd938x_set_swr_port() local
1928 portidx = wcd->ch_info[ch_idx].port_num; in wcd938x_set_swr_port()
1936 wcd938x_connect_port(wcd, portidx, ch_idx, enable); in wcd938x_set_swr_port()
Dmadera.c403 int n, i, in_idx, ch_idx; in madera_prop_get_inmode() local
415 ch_idx = 0; in madera_prop_get_inmode()
417 pdata->inmode[in_idx][ch_idx] = tmp[i]; in madera_prop_get_inmode()
419 if (++ch_idx == MADERA_MAX_MUXED_CHANNELS) { in madera_prop_get_inmode()
420 ch_idx = 0; in madera_prop_get_inmode()