Home
last modified time | relevance | path

Searched refs:ch_idx (Results 1 - 25 of 30) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/staging/most/dim2/
H A Ddim2.c255 * @ch_idx: channel index
259 static void service_done_flag(struct dim2_hdm *dev, int ch_idx) in service_done_flag() argument
261 struct hdm_channel *hdm_ch = dev->hch + ch_idx; in service_done_flag()
334 int ch_idx; in get_active_channels() local
336 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) { in get_active_channels()
337 if (dev->hch[ch_idx].is_initialized) in get_active_channels()
338 buffer[idx++] = &dev->hch[ch_idx].ch; in get_active_channels()
371 int ch_idx; in dim2_tasklet_fn() local
448 configure_channel(struct most_interface *most_iface, int ch_idx, struct most_channel_config *ccfg) configure_channel() argument
566 enqueue(struct most_interface *most_iface, int ch_idx, struct mbo *mbo) enqueue() argument
598 request_netinfo(struct most_interface *most_iface, int ch_idx, void (*on_netinfo)(struct most_interface *, unsigned char, unsigned char *)) request_netinfo() argument
640 poison_channel(struct most_interface *most_iface, int ch_idx) poison_channel() argument
[all...]
/kernel/linux/linux-6.6/drivers/staging/most/dim2/
H A Ddim2.c258 * @ch_idx: channel index
262 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
445 configure_channel(struct most_interface *most_iface, int ch_idx, struct most_channel_config *ccfg) configure_channel() argument
563 enqueue(struct most_interface *most_iface, int ch_idx, struct mbo *mbo) enqueue() argument
596 request_netinfo(struct most_interface *most_iface, int ch_idx, void (*on_netinfo)(struct most_interface *, unsigned char, unsigned char *)) request_netinfo() argument
638 poison_channel(struct most_interface *most_iface, int ch_idx) poison_channel() argument
[all...]
/kernel/linux/linux-5.10/drivers/staging/most/i2c/
H A Di2c.c64 int ch_idx, in configure_channel()
71 BUG_ON(ch_idx < 0 || ch_idx >= NUM_CHANNELS); in configure_channel()
74 pr_err("bad data type for channel %d\n", ch_idx); in configure_channel()
78 if (channel_config->direction != dev->capabilities[ch_idx].direction) { in configure_channel()
79 pr_err("bad direction for channel %d\n", ch_idx); in configure_channel()
120 int ch_idx, struct mbo *mbo) in enqueue()
125 BUG_ON(ch_idx < 0 || ch_idx >= NUM_CHANNELS); in enqueue()
127 if (ch_idx in enqueue()
63 configure_channel(struct most_interface *most_iface, int ch_idx, struct most_channel_config *channel_config) configure_channel() argument
119 enqueue(struct most_interface *most_iface, int ch_idx, struct mbo *mbo) enqueue() argument
164 poison_channel(struct most_interface *most_iface, int ch_idx) poison_channel() argument
[all...]
/kernel/linux/linux-6.6/drivers/staging/most/i2c/
H A Di2c.c58 * @ch_idx: channel to be configured
67 int ch_idx, in configure_channel()
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()
114 * @ch_idx: ID of the channel the buffer is intended for
123 int ch_idx, struct mbo *mbo) in enqueue()
128 BUG_ON(ch_idx < in enqueue()
66 configure_channel(struct most_interface *most_iface, int ch_idx, struct most_channel_config *channel_config) configure_channel() argument
122 enqueue(struct most_interface *most_iface, int ch_idx, struct mbo *mbo) enqueue() argument
167 poison_channel(struct most_interface *most_iface, int ch_idx) poison_channel() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/
H A Diwl-eeprom-parse.c389 int ch_idx; in iwl_eeprom_enh_txp_read_element() local
395 for (ch_idx = 0; ch_idx < n_channels; ch_idx++) { in iwl_eeprom_enh_txp_read_element()
396 struct ieee80211_channel *chan = &data->channels[ch_idx]; in iwl_eeprom_enh_txp_read_element()
565 ((eeprom_ch_info[ch_idx].flags & EEPROM_CHANNEL_##x) ? # x " " : "")
571 int band, ch_idx; in iwl_init_channel_map() local
588 for (ch_idx = 0; ch_idx < eeprom_ch_count; ch_idx in iwl_init_channel_map()
[all...]
H A Diwl-nvm-parse.c347 static u32 iwl_get_channel_flags(u8 ch_num, int ch_idx, enum nl80211_band band, in iwl_get_channel_flags() argument
358 if ((ch_idx - NUM_2GHZ_CHANNELS) % 2 == 0) in iwl_get_channel_flags()
390 static enum nl80211_band iwl_nl80211_band_from_channel_idx(int ch_idx) in iwl_nl80211_band_from_channel_idx() argument
392 if (ch_idx >= NUM_2GHZ_CHANNELS) in iwl_nl80211_band_from_channel_idx()
402 int ch_idx; in iwl_init_channel_map() local
420 for (ch_idx = 0; ch_idx < num_of_ch; ch_idx++) { in iwl_init_channel_map()
422 iwl_nl80211_band_from_channel_idx(ch_idx); in iwl_init_channel_map()
426 __le32_to_cpup((__le32 *)nvm_ch_flags + ch_idx); in iwl_init_channel_map()
1123 iwl_nvm_get_regdom_bw_flags(const u16 *nvm_chan, int ch_idx, u16 nvm_flags, struct iwl_reg_capa reg_capa, const struct iwl_cfg *cfg) iwl_nvm_get_regdom_bw_flags() argument
1206 int ch_idx; iwl_parse_nvm_mcc_info() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/
H A 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()
[all...]
H A 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()
1524 iwl_nvm_get_regdom_bw_flags(const u16 *nvm_chan, int ch_idx, u16 nvm_flags, struct iwl_reg_capa reg_capa, const struct iwl_cfg *cfg) iwl_nvm_get_regdom_bw_flags() argument
1621 int ch_idx; iwl_parse_nvm_mcc_info() local
[all...]
/kernel/linux/linux-6.6/drivers/iio/adc/
H A 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()
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()
350 tsc2046_adc_group_set_layout(struct tsc2046_adc_priv *priv, unsigned int group, unsigned int ch_idx) tsc2046_adc_group_set_layout() argument
373 tsc2046_adc_group_set_cmd(struct tsc2046_adc_priv *priv, unsigned int group, int ch_idx) tsc2046_adc_group_set_cmd() argument
489 unsigned int ch_idx, group = 0; tsc2046_adc_update_scan_mode() local
654 unsigned int ch_idx; tsc2046_adc_setup_spi_msg() local
[all...]
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/
H A Dbcm63xx_udc.c188 * @ch_idx: IUDMA channel index (0 to BCM63XX_NUM_IUDMA-1).
211 unsigned int ch_idx; member
659 ENETDMAC_CHANCFG_REG, iudma->ch_idx); in iudma_write()
709 int ch_idx = iudma->ch_idx; in iudma_reset_channel() local
715 usb_dmac_writel(udc, 0, ENETDMAC_CHANCFG_REG, ch_idx); in iudma_reset_channel()
717 while (usb_dmac_readl(udc, ENETDMAC_CHANCFG_REG, ch_idx) & in iudma_reset_channel()
727 ch_idx); in iudma_reset_channel()
732 ch_idx); in iudma_reset_channel()
734 ENETDMAC_CHANCFG_REG, ch_idx); in iudma_reset_channel()
761 iudma_init_channel(struct bcm63xx_udc *udc, unsigned int ch_idx) iudma_init_channel() argument
1384 bcm63xx_ep0_map_write(struct bcm63xx_udc *udc, int ch_idx, struct usb_request *req) bcm63xx_ep0_map_write() argument
1461 bcm63xx_ep0_internal_request(struct bcm63xx_udc *udc, int ch_idx, int length) bcm63xx_ep0_internal_request() argument
2170 int ch_idx, i; bcm63xx_iudma_dbg_show() local
[all...]
/kernel/linux/linux-6.6/drivers/usb/gadget/udc/
H A Dbcm63xx_udc.c188 * @ch_idx: IUDMA channel index (0 to BCM63XX_NUM_IUDMA-1).
211 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()
758 iudma_init_channel(struct bcm63xx_udc *udc, unsigned int ch_idx) iudma_init_channel() argument
1381 bcm63xx_ep0_map_write(struct bcm63xx_udc *udc, int ch_idx, struct usb_request *req) bcm63xx_ep0_map_write() argument
1458 bcm63xx_ep0_internal_request(struct bcm63xx_udc *udc, int ch_idx, int length) bcm63xx_ep0_internal_request() argument
2166 int ch_idx, i; bcm63xx_iudma_dbg_show() local
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/
H A Dphy.c1301 int ch_idx; in rtw_channel_to_idx() local
1305 ch_idx = channel - 1; in rtw_channel_to_idx()
1309 for (ch_idx = 0; ch_idx < n_channel; ch_idx++) in rtw_channel_to_idx()
1310 if (rtw_channel_idx_5g[ch_idx] == channel) in rtw_channel_to_idx()
1316 if (ch_idx >= n_channel) in rtw_channel_to_idx()
1319 return ch_idx; in rtw_channel_to_idx()
1328 int ch_idx; in rtw_phy_set_tx_power_limit() local
1332 ch_idx in rtw_phy_set_tx_power_limit()
1357 rtw_xref_5g_txpwr_lmt(struct rtw_dev *rtwdev, u8 regd, u8 bw, u8 ch_idx, u8 rs_ht, u8 rs_vht) rtw_xref_5g_txpwr_lmt() argument
1377 rtw_xref_txpwr_lmt_by_rs(struct rtw_dev *rtwdev, u8 regd, u8 bw, u8 ch_idx) rtw_xref_txpwr_lmt_by_rs() argument
1395 u8 ch_idx; rtw_xref_5g_txpwr_lmt_by_ch() local
1751 int ch_idx; rtw_phy_get_tx_power_limit() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtw88/
H A 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 in rtw_phy_set_tx_power_limit()
1564 rtw_xref_5g_txpwr_lmt(struct rtw_dev *rtwdev, u8 regd, u8 bw, u8 ch_idx, u8 rs_ht, u8 rs_vht) rtw_xref_5g_txpwr_lmt() argument
1584 rtw_xref_txpwr_lmt_by_rs(struct rtw_dev *rtwdev, u8 regd, u8 bw, u8 ch_idx) rtw_xref_txpwr_lmt_by_rs() argument
1602 u8 ch_idx; rtw_xref_5g_txpwr_lmt_by_ch() local
2033 int ch_idx; rtw_phy_get_tx_power_limit() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/
H A Dumc_v8_10.h55 #define SWIZZLE_MODE_TMP_ADDR(na, ch_num, ch_idx) \
56 ((((na) >> 10) * (ch_num) + (ch_idx)) << 10)
/kernel/linux/linux-5.10/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()
376 if (mdev->iface == iface && mdev->ch_idx == channel_idx) { in get_comp_dev()
482 mdev->ch_idx = channel_idx; in comp_probe_channel()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/drivers/net/wireless/ralink/rt2x00/
H A 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
9405 rt2800_iq_search(struct rt2x00_dev *rt2x00dev, u8 ch_idx, u8 *ges, u8 *pes) rt2800_iq_search() argument
9585 u8 bbp = 0, ch_idx = 0, rf_alc_idx = 0, idx = 0; rt2800_loft_iq_calibration() local
[all...]
/kernel/linux/linux-5.10/drivers/hwmon/
H A Dmr75203.c183 u8 vm_idx, ch_idx; in pvt_read_in() local
191 ch_idx = channel % pvt->c_num; in pvt_read_in()
202 ret = regmap_read(v_map, VM_SDIF_DATA(vm_idx, ch_idx), &n); in pvt_read_in()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtw89/
H A 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...]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dscan.c1570 int ch_idx, bitmap_idx; in iwl_mvm_scan_ch_add_n_aps_override() local
1572 ch_idx = iwl_mvm_scan_ch_and_band_to_idx(ch_id, band); in iwl_mvm_scan_ch_add_n_aps_override()
1573 if (ch_idx < 0) in iwl_mvm_scan_ch_add_n_aps_override()
1576 bitmap_idx = ch_idx / 8; in iwl_mvm_scan_ch_add_n_aps_override()
1580 ch_idx = ch_idx % 8; in iwl_mvm_scan_ch_add_n_aps_override()
1581 ch_bitmap[bitmap_idx] |= BIT(ch_idx); in iwl_mvm_scan_ch_add_n_aps_override()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/drivers/bus/mhi/ep/
H A Dmain.c851 u32 ch_idx) in mhi_ep_queue_channel_db()
862 u32 ch_id = ch_idx + i; in mhi_ep_queue_channel_db()
890 u32 ch_int, ch_idx, i; in mhi_ep_check_channel_interrupt() local
897 ch_idx = i * MHI_MASK_CH_LEN; in mhi_ep_check_channel_interrupt()
902 mhi_ep_queue_channel_db(mhi_cntrl, ch_int, ch_idx); in mhi_ep_check_channel_interrupt()
850 mhi_ep_queue_channel_db(struct mhi_ep_cntrl *mhi_cntrl, unsigned long ch_int, u32 ch_idx) mhi_ep_queue_channel_db() argument
/kernel/linux/linux-5.10/drivers/infiniband/ulp/srp/
H A Dib_srp.c2783 u16 ch_idx; in srp_abort() local
2789 ch_idx = blk_mq_unique_tag_to_hwq(tag); in srp_abort()
2790 if (WARN_ON_ONCE(ch_idx >= target->ch_count)) in srp_abort()
2792 ch = &target->ch[ch_idx]; in srp_abort()
3664 int ret, i, ch_idx; in srp_create_target() local
3800 for (ch_idx = 0; ch_idx < target->ch_count; ++ch_idx) { in srp_create_target()
3801 ch = &target->ch[ch_idx]; in srp_create_target()
3803 ch->comp_vector = ch_idx in srp_create_target()
[all...]
/kernel/linux/linux-6.6/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()
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 in add_target_store()
[all...]

Completed in 54 milliseconds

12