/linux-6.3-rc2/drivers/staging/most/i2c/ |
A D | i2c.c | 64 int ch_idx, in configure_channel() argument 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() argument 125 BUG_ON(ch_idx < 0 || ch_idx >= NUM_CHANNELS); in enqueue() 127 if (ch_idx == CH_RX) { in enqueue() 165 int ch_idx) in poison_channel() argument 170 BUG_ON(ch_idx < 0 || ch_idx >= NUM_CHANNELS); in poison_channel() [all …]
|
/linux-6.3-rc2/drivers/staging/most/dim2/ |
A D | dim2.c | 334 int ch_idx; in get_active_channels() local 336 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) { in get_active_channels() 365 int ch_idx; in dim2_task_irq() local 367 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) { in dim2_task_irq() 375 service_done_flag(dev, ch_idx); in dim2_task_irq() 452 int const ch_addr = ch_idx * 2 + 2; in configure_channel() 455 BUG_ON(ch_idx < 0 || ch_idx >= DMA_CHANNELS); in configure_channel() 543 dev->atx_idx = ch_idx; in configure_channel() 567 BUG_ON(ch_idx < 0 || ch_idx >= DMA_CHANNELS); in enqueue() 643 BUG_ON(ch_idx < 0 || ch_idx >= DMA_CHANNELS); in poison_channel() [all …]
|
/linux-6.3-rc2/drivers/net/wireless/intel/iwlwifi/ |
A D | iwl-eeprom-parse.c | 335 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() 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() 542 eeprom_ch_array[ch_idx], in iwl_init_channel_map() 543 eeprom_ch_info[ch_idx].flags, in iwl_init_channel_map() 583 eeprom_ch_info[ch_idx].flags, in iwl_init_channel_map() 634 for (ch_idx = 0; ch_idx < eeprom_ch_count; ch_idx++) { in iwl_init_channel_map() 637 eeprom_ch_array[ch_idx], in iwl_init_channel_map() 638 &eeprom_ch_info[ch_idx], in iwl_init_channel_map() [all …]
|
A D | iwl-nvm-parse.c | 344 if (ch_idx >= NUM_2GHZ_CHANNELS) in iwl_nl80211_band_from_channel_idx() 354 int ch_idx; in iwl_init_channel_map() local 372 for (ch_idx = 0; ch_idx < num_of_ch; ch_idx++) { in iwl_init_channel_map() 406 nvm_chan[ch_idx], ch_flags); in iwl_init_channel_map() 430 ch_idx, band, in iwl_init_channel_map() 1465 int ch_idx, u16 nvm_flags, in iwl_nvm_get_regdom_bw_flags() argument 1471 if (ch_idx < NUM_2GHZ_CHANNELS && in iwl_nvm_get_regdom_bw_flags() 1508 if (ch_idx >= NUM_2GHZ_CHANNELS) { in iwl_nvm_get_regdom_bw_flags() 1547 int ch_idx; in iwl_parse_nvm_mcc_info() local 1596 for (ch_idx = 0; ch_idx < num_of_ch; ch_idx++) { in iwl_parse_nvm_mcc_info() [all …]
|
/linux-6.3-rc2/drivers/iio/adc/ |
A D | ti-tsc2046.c | 254 switch (ch_idx) { in tsc2046_adc_get_cmd() 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() 352 unsigned int ch_idx) in tsc2046_adc_group_set_layout() argument 374 unsigned int group, int ch_idx) in tsc2046_adc_group_set_cmd() argument 384 cmd = tsc2046_adc_get_cmd(priv, ch_idx, true); in tsc2046_adc_group_set_cmd() 489 unsigned int ch_idx, group = 0; in tsc2046_adc_update_scan_mode() local 497 tsc2046_adc_group_set_cmd(priv, group, ch_idx); in tsc2046_adc_update_scan_mode() 654 unsigned int ch_idx; in tsc2046_adc_setup_spi_msg() local 685 for (ch_idx = 0; ch_idx < ARRAY_SIZE(priv->l); ch_idx++) in tsc2046_adc_setup_spi_msg() [all …]
|
/linux-6.3-rc2/drivers/usb/gadget/udc/ |
A D | bcm63xx_udc.c | 211 unsigned int ch_idx; member 706 int ch_idx = iudma->ch_idx; in iudma_reset_channel() local 724 ch_idx); in iudma_reset_channel() 729 ch_idx); in iudma_reset_channel() 731 ENETDMAC_CHANCFG_REG, ch_idx); in iudma_reset_channel() 746 ENETDMAC_IRMASK_REG, ch_idx); in iudma_reset_channel() 766 iudma->ch_idx = ch_idx; in iudma_init_channel() 767 iudma->is_tx = !!(ch_idx & 0x01); in iudma_init_channel() 2051 ENETDMAC_IR_REG, iudma->ch_idx); in bcm63xx_udc_data_isr() 2166 int ch_idx, i; in bcm63xx_iudma_dbg_show() local [all …]
|
/linux-6.3-rc2/drivers/net/wireless/realtek/rtw88/ |
A D | phy.c | 1508 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() 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() 1602 u8 ch_idx; in rtw_xref_5g_txpwr_lmt_by_ch() local 1604 for (ch_idx = 0; ch_idx < RTW_MAX_CHANNEL_NUM_5G; ch_idx++) in rtw_xref_5g_txpwr_lmt_by_ch() 2030 int ch_idx; in rtw_phy_get_tx_power_limit() local [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/ |
A D | umc_v8_10.h | 54 #define SWIZZLE_MODE_TMP_ADDR(na, ch_num, ch_idx) \ argument 55 ((((na) >> 10) * (ch_num) + (ch_idx)) << 10)
|
/linux-6.3-rc2/drivers/staging/most/video/ |
A D | video.c | 31 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()
|
/linux-6.3-rc2/drivers/net/wireless/ralink/rt2x00/ |
A D | rt2800lib.c | 8731 u8 ch_idx; in rt2800_rxiq_calibration() local 8844 for (ch_idx = 0; ch_idx < 2; ch_idx = ch_idx + 1) { in rt2800_rxiq_calibration() 9317 if (ch_idx == 0) in rt2800_write_dc() 9598 for (ch_idx = 0; ch_idx < 2; ch_idx++) in rt2800_loft_iq_calibration() 9614 for (ch_idx = 0; ch_idx < 2; ch_idx++) { in rt2800_loft_iq_calibration() 9624 if (ch_idx == 0) in rt2800_loft_iq_calibration() 9661 vga_gain[ch_idx] = vga_gain[ch_idx] - 2) { in rt2800_loft_iq_calibration() 9819 for (ch_idx = 0; ch_idx < 2; ch_idx++) in rt2800_loft_iq_calibration() 9830 for (ch_idx = 0; ch_idx < 2; ch_idx++) { in rt2800_loft_iq_calibration() 9873 for (; vga_gain[ch_idx] < 19; vga_gain[ch_idx] = (vga_gain[ch_idx] + count_step)) { in rt2800_loft_iq_calibration() [all …]
|
/linux-6.3-rc2/drivers/hwmon/ |
A D | mr75203.c | 316 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-6.3-rc2/drivers/bus/mhi/ep/ |
A D | main.c | 817 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-6.3-rc2/drivers/net/can/usb/etas_es58x/ |
A D | es58x_core.c | 2222 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-6.3-rc2/drivers/net/wireless/realtek/rtw89/ |
A D | phy.c | 1621 u8 ch_idx = rtw89_channel_to_idx(rtwdev, band, ch); in rtw89_phy_read_txpwr_limit() local 1630 [RTW89_WW][ch_idx]; in rtw89_phy_read_txpwr_limit() 1636 [RTW89_WW][ch_idx]; in rtw89_phy_read_txpwr_limit() 1642 [RTW89_WW][ch_idx]; in rtw89_phy_read_txpwr_limit() 1866 u8 ch_idx = rtw89_channel_to_idx(rtwdev, band, ch); in rtw89_phy_read_txpwr_limit_ru() local 1872 lmt_ru = (*chip->txpwr_lmt_ru_2g)[ru][ntx][regd][ch_idx]; in rtw89_phy_read_txpwr_limit_ru() 1875 [RTW89_WW][ch_idx]; in rtw89_phy_read_txpwr_limit_ru() 1878 lmt_ru = (*chip->txpwr_lmt_ru_5g)[ru][ntx][regd][ch_idx]; in rtw89_phy_read_txpwr_limit_ru() 1881 [RTW89_WW][ch_idx]; in rtw89_phy_read_txpwr_limit_ru() 1884 lmt_ru = (*chip->txpwr_lmt_ru_6g)[ru][ntx][regd][ch_idx]; in rtw89_phy_read_txpwr_limit_ru() [all …]
|
A D | rtw8852b_rfk.c | 3586 u8 ch_idx = _tssi_ch_to_idx(rtwdev, channel); in _tssi_alimentk() local 3601 if (tssi_info->check_backup_aligmk[path][ch_idx]) { in _tssi_alimentk() 3603 tssi_info->alignment_backup_by_ch[path][ch_idx][0]); in _tssi_alimentk() 3605 tssi_info->alignment_backup_by_ch[path][ch_idx][1]); in _tssi_alimentk() 3607 tssi_info->alignment_backup_by_ch[path][ch_idx][2]); in _tssi_alimentk() 3609 tssi_info->alignment_backup_by_ch[path][ch_idx][3]); in _tssi_alimentk() 3710 tssi_info->check_backup_aligmk[path][ch_idx] = true; in _tssi_alimentk() 3711 tssi_info->alignment_backup_by_ch[path][ch_idx][0] = in _tssi_alimentk() 3713 tssi_info->alignment_backup_by_ch[path][ch_idx][1] = in _tssi_alimentk() 3715 tssi_info->alignment_backup_by_ch[path][ch_idx][2] = in _tssi_alimentk() [all …]
|
/linux-6.3-rc2/drivers/infiniband/ulp/srp/ |
A D | ib_srp.c | 2794 u16 ch_idx; in srp_abort() local 2801 ch_idx = blk_mq_unique_tag_to_hwq(tag); in srp_abort() 2802 if (WARN_ON_ONCE(ch_idx >= target->ch_count)) in srp_abort() 2804 ch = &target->ch[ch_idx]; in srp_abort() 3707 int ret, i, ch_idx; in add_target_store() local 3843 for (ch_idx = 0; ch_idx < target->ch_count; ++ch_idx) { in add_target_store() 3844 ch = &target->ch[ch_idx]; in add_target_store() 3846 ch->comp_vector = ch_idx % ibdev->num_comp_vectors; in add_target_store() 3869 ch_idx, in add_target_store() 3871 if (ch_idx == 0) { in add_target_store()
|
/linux-6.3-rc2/drivers/net/wireless/intel/iwlwifi/mvm/ |
A D | scan.c | 1522 int ch_idx, bitmap_idx; in iwl_mvm_scan_ch_add_n_aps_override() local 1524 ch_idx = iwl_mvm_scan_ch_and_band_to_idx(ch_id, band); in iwl_mvm_scan_ch_add_n_aps_override() 1525 if (ch_idx < 0) in iwl_mvm_scan_ch_add_n_aps_override() 1528 bitmap_idx = ch_idx / 8; in iwl_mvm_scan_ch_add_n_aps_override() 1532 ch_idx = ch_idx % 8; in iwl_mvm_scan_ch_add_n_aps_override() 1533 ch_bitmap[bitmap_idx] |= BIT(ch_idx); in iwl_mvm_scan_ch_add_n_aps_override()
|
/linux-6.3-rc2/sound/soc/codecs/ |
A D | madera.c | 403 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()
|
A D | wcd938x.c | 2897 int portidx, ch_idx = mixer->reg; in wcd938x_get_swr_port() local 2901 portidx = wcd->ch_info[ch_idx].port_num; in wcd938x_get_swr_port() 2916 int ch_idx = mixer->reg; in wcd938x_set_swr_port() local 2923 portidx = wcd->ch_info[ch_idx].port_num; in wcd938x_set_swr_port() 2931 wcd938x_connect_port(wcd, portidx, ch_idx, enable); in wcd938x_set_swr_port()
|