/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | umc_v8_10.h | 55 #define SWIZZLE_MODE_TMP_ADDR(na, ch_num, ch_idx) \ 56 ((((na) >> 10) * (ch_num) + (ch_idx)) << 10)
|
/linux-master/drivers/staging/most/i2c/ |
H A D | i2c.c | 58 * @ch_idx: channel to be configured 67 int ch_idx, 74 BUG_ON(ch_idx < 0 || ch_idx >= NUM_CHANNELS); 77 pr_err("bad data type for channel %d\n", ch_idx); 81 if (channel_config->direction != dev->capabilities[ch_idx].direction) { 82 pr_err("bad direction for channel %d\n", ch_idx); 114 * @ch_idx: ID of the channel the buffer is intended for 123 int ch_idx, struct mbo *mbo) 128 BUG_ON(ch_idx < 66 configure_channel(struct most_interface *most_iface, int ch_idx, struct most_channel_config *channel_config) argument 122 enqueue(struct most_interface *most_iface, int ch_idx, struct mbo *mbo) argument 167 poison_channel(struct most_interface *most_iface, int ch_idx) argument [all...] |
/linux-master/drivers/staging/most/dim2/ |
H A D | dim2.c | 258 * @ch_idx: channel index 262 static void service_done_flag(struct dim2_hdm *dev, int ch_idx) argument 264 struct hdm_channel *hdm_ch = dev->hch + ch_idx; 337 int ch_idx; local 339 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) { 340 if (dev->hch[ch_idx].is_initialized) 341 buffer[idx++] = &dev->hch[ch_idx].ch; 368 int ch_idx; local 445 configure_channel(struct most_interface *most_iface, int ch_idx, struct most_channel_config *ccfg) argument 563 enqueue(struct most_interface *most_iface, int ch_idx, struct mbo *mbo) argument 596 request_netinfo(struct most_interface *most_iface, int ch_idx, void (*on_netinfo)(struct most_interface *, unsigned char, unsigned char *)) argument 638 poison_channel(struct most_interface *most_iface, int ch_idx) argument [all...] |
/linux-master/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-eeprom-parse.c | 335 int ch_idx; local 341 for (ch_idx = 0; ch_idx < n_channels; ch_idx++) { 342 struct ieee80211_channel *chan = &data->channels[ch_idx]; 511 ((eeprom_ch_info[ch_idx].flags & EEPROM_CHANNEL_##x) ? # x " " : "") 517 int band, ch_idx; local 534 for (ch_idx = 0; ch_idx < eeprom_ch_count; ch_idx [all...] |
H A D | iwl-nvm-parse.c | 335 static u32 iwl_get_channel_flags(u8 ch_num, int ch_idx, enum nl80211_band band, argument 346 if ((ch_idx - NUM_2GHZ_CHANNELS) % 2 == 0) 384 static enum nl80211_band iwl_nl80211_band_from_channel_idx(int ch_idx) argument 386 if (ch_idx >= NUM_2GHZ_CHANNELS + NUM_5GHZ_CHANNELS) { 390 if (ch_idx >= NUM_2GHZ_CHANNELS) 400 int ch_idx; local 418 for (ch_idx = 0; ch_idx < num_of_ch; ch_idx++) { 420 iwl_nl80211_band_from_channel_idx(ch_idx); 1612 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, bool uats_enabled) argument 1727 int ch_idx; local [all...] |
/linux-master/drivers/usb/gadget/udc/ |
H A D | bcm63xx_udc.c | 188 * @ch_idx: IUDMA channel index (0 to BCM63XX_NUM_IUDMA-1). 211 unsigned int ch_idx; member in struct:iudma_ch 656 ENETDMAC_CHANCFG_REG, iudma->ch_idx); 706 int ch_idx = iudma->ch_idx; local 712 usb_dmac_writel(udc, 0, ENETDMAC_CHANCFG_REG, ch_idx); 714 while (usb_dmac_readl(udc, ENETDMAC_CHANCFG_REG, ch_idx) & 724 ch_idx); 729 ch_idx); 731 ENETDMAC_CHANCFG_REG, ch_idx); 758 iudma_init_channel(struct bcm63xx_udc *udc, unsigned int ch_idx) argument 1381 bcm63xx_ep0_map_write(struct bcm63xx_udc *udc, int ch_idx, struct usb_request *req) argument 1458 bcm63xx_ep0_internal_request(struct bcm63xx_udc *udc, int ch_idx, int length) argument 2166 int ch_idx, i; local [all...] |
/linux-master/drivers/iio/adc/ |
H A D | ti-tsc2046.c | 240 static u8 tsc2046_adc_get_cmd(struct tsc2046_adc_priv *priv, int ch_idx, argument 254 switch (ch_idx) { 264 return TI_TSC2046_START | FIELD_PREP(TI_TSC2046_ADDR, ch_idx) | pd; 272 static int tsc2046_adc_read_one(struct tsc2046_adc_priv *priv, int ch_idx, argument 275 struct tsc2046_adc_ch_cfg *ch = &priv->ch_cfg[ch_idx]; 307 cmd = tsc2046_adc_get_cmd(priv, ch_idx, true); 313 tx_buf[i].cmd = tsc2046_adc_get_cmd(priv, ch_idx, false); 352 unsigned int ch_idx) 354 struct tsc2046_adc_ch_cfg *ch = &priv->ch_cfg[ch_idx]; 374 unsigned int group, int ch_idx) 350 tsc2046_adc_group_set_layout(struct tsc2046_adc_priv *priv, unsigned int group, unsigned int ch_idx) argument 373 tsc2046_adc_group_set_cmd(struct tsc2046_adc_priv *priv, unsigned int group, int ch_idx) argument 489 unsigned int ch_idx, group = 0; local 654 unsigned int ch_idx; local [all...] |
/linux-master/drivers/net/wireless/realtek/rtw88/ |
H A D | phy.c | 1508 int ch_idx; local 1512 ch_idx = channel - 1; 1516 for (ch_idx = 0; ch_idx < n_channel; ch_idx++) 1517 if (rtw_channel_idx_5g[ch_idx] == channel) 1523 if (ch_idx >= n_channel) 1526 return ch_idx; 1535 int ch_idx; local 1539 ch_idx 1564 rtw_xref_5g_txpwr_lmt(struct rtw_dev *rtwdev, u8 regd, u8 bw, u8 ch_idx, u8 rs_ht, u8 rs_vht) argument 1584 rtw_xref_txpwr_lmt_by_rs(struct rtw_dev *rtwdev, u8 regd, u8 bw, u8 ch_idx) argument 1602 u8 ch_idx; local 2033 int ch_idx; local [all...] |
/linux-master/drivers/staging/most/video/ |
H A D | video.c | 31 int ch_idx; member in struct:most_video_dev 98 ret = most_start_channel(mdev->iface, mdev->ch_idx, &comp); 140 most_stop_channel(mdev->iface, mdev->ch_idx, &comp); 375 if (mdev->iface == iface && mdev->ch_idx == channel_idx) { 481 mdev->ch_idx = channel_idx;
|
/linux-master/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2800lib.c | 8770 u8 ch_idx; local 8883 for (ch_idx = 0; ch_idx < 2; ch_idx = ch_idx + 1) { 8884 if (ch_idx == 0) { 9045 if (ch_idx == 0) { 9348 static void rt2800_write_dc(struct rt2x00_dev *rt2x00dev, u8 ch_idx, u8 alc, u8 iorq, u8 dc) argument 9356 if (ch_idx == 0) 9366 static void rt2800_loft_search(struct rt2x00_dev *rt2x00dev, u8 ch_idx, argument 9421 rt2800_iq_search(struct rt2x00_dev *rt2x00dev, u8 ch_idx, u8 *ges, u8 *pes) argument 9601 u8 bbp = 0, ch_idx = 0, rf_alc_idx = 0, idx = 0; local [all...] |
/linux-master/drivers/hwmon/ |
H A D | mr75203.c | 316 u8 vm_idx, ch_idx; local 323 ch_idx = pvt->vd[channel].ch_map; 334 ret = regmap_read(v_map, VM_SDIF_DATA(vm_idx, ch_idx), &n);
|
/linux-master/drivers/infiniband/ulp/srp/ |
H A D | ib_srp.c | 2785 u16 ch_idx; local 2791 ch_idx = blk_mq_unique_tag_to_hwq(tag); 2792 if (WARN_ON_ONCE(ch_idx >= target->ch_count)) 2794 ch = &target->ch[ch_idx]; 3692 int ret, i, ch_idx; local 3828 for (ch_idx = 0; ch_idx < target->ch_count; ++ch_idx) { 3829 ch = &target->ch[ch_idx]; 3831 ch->comp_vector = ch_idx [all...] |
/linux-master/drivers/net/can/usb/etas_es58x/ |
H A D | es58x_core.c | 2222 int ch_idx; local 2231 for (ch_idx = 0; ch_idx < es58x_dev->num_can_ch; ch_idx++) { 2232 int ret = es58x_init_netdev(es58x_dev, ch_idx);
|
/linux-master/drivers/bus/mhi/ep/ |
H A D | main.c | 916 u32 ch_idx) 927 u32 ch_id = ch_idx + i; 955 u32 ch_int, ch_idx, i; local 962 ch_idx = i * MHI_MASK_CH_LEN; 967 mhi_ep_queue_channel_db(mhi_cntrl, ch_int, ch_idx); 915 mhi_ep_queue_channel_db(struct mhi_ep_cntrl *mhi_cntrl, unsigned long ch_int, u32 ch_idx) argument
|
/linux-master/drivers/net/wireless/realtek/rtw89/ |
H A D | rtw8852b_rfk.c | 3580 u8 ch_idx = _tssi_ch_to_idx(rtwdev, channel); local 3595 if (tssi_info->check_backup_aligmk[path][ch_idx]) { 3597 tssi_info->alignment_backup_by_ch[path][ch_idx][0]); 3599 tssi_info->alignment_backup_by_ch[path][ch_idx][1]); 3601 tssi_info->alignment_backup_by_ch[path][ch_idx][2]); 3603 tssi_info->alignment_backup_by_ch[path][ch_idx][3]); 3704 tssi_info->check_backup_aligmk[path][ch_idx] = true; 3705 tssi_info->alignment_backup_by_ch[path][ch_idx][0] = 3707 tssi_info->alignment_backup_by_ch[path][ch_idx][1] = 3709 tssi_info->alignment_backup_by_ch[path][ch_idx][ [all...] |
H A D | phy.c | 1915 u8 ch_idx = rtw89_channel_to_idx(rtwdev, band, ch); local 1922 lmt = (*rule_2ghz->lmt)[bw][ntx][rs][bf][regd][ch_idx]; 1926 lmt = (*rule_2ghz->lmt)[bw][ntx][rs][bf][RTW89_WW][ch_idx]; 1929 lmt = (*rule_5ghz->lmt)[bw][ntx][rs][bf][regd][ch_idx]; 1933 lmt = (*rule_5ghz->lmt)[bw][ntx][rs][bf][RTW89_WW][ch_idx]; 1936 lmt = (*rule_6ghz->lmt)[bw][ntx][rs][bf][regd][reg6][ch_idx]; 1942 [ch_idx]; 2172 u8 ch_idx = rtw89_channel_to_idx(rtwdev, band, ch); local 2179 lmt_ru = (*rule_2ghz->lmt_ru)[ru][ntx][regd][ch_idx]; 2183 lmt_ru = (*rule_2ghz->lmt_ru)[ru][ntx][RTW89_WW][ch_idx]; [all...] |
H A D | fw.c | 7228 if (e->ch_idx >= RTW89_2G_CH_NUM) 7246 [entry.ch_idx] = entry.v; 7268 if (e->ch_idx >= RTW89_5G_CH_NUM) 7286 [entry.ch_idx] = entry.v; 7310 if (e->ch_idx >= RTW89_6G_CH_NUM) 7328 [entry.reg_6ghz_power][entry.ch_idx] = entry.v; 7346 if (e->ch_idx >= RTW89_2G_CH_NUM) 7363 data->v[entry.ru][entry.nt][entry.regd][entry.ch_idx] = entry.v; 7381 if (e->ch_idx >= RTW89_5G_CH_NUM) 7398 data->v[entry.ru][entry.nt][entry.regd][entry.ch_idx] [all...] |
H A D | fw.h | 4783 u8 ch_idx; member in struct:rtw89_fw_txpwr_lmt_2ghz_entry 4794 u8 ch_idx; member in struct:rtw89_fw_txpwr_lmt_5ghz_entry 4806 u8 ch_idx; member in struct:rtw89_fw_txpwr_lmt_6ghz_entry 4815 u8 ch_idx; member in struct:rtw89_fw_txpwr_lmt_ru_2ghz_entry 4824 u8 ch_idx; member in struct:rtw89_fw_txpwr_lmt_ru_5ghz_entry 4834 u8 ch_idx; member in struct:rtw89_fw_txpwr_lmt_ru_6ghz_entry
|
H A D | pci.c | 919 #define DEF_TXCHADDRS_TYPE2(gen, ch_idx, txch, v...) \ 920 [RTW89_TXCH_##ch_idx] = { \ 946 #define DEF_RXCHADDRS(gen, ch_idx, rxch, v...) \ 947 [RTW89_RXCH_##ch_idx] = { \
|
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | scan.c | 1527 int ch_idx, bitmap_idx; local 1529 ch_idx = iwl_mvm_scan_ch_and_band_to_idx(ch_id, band); 1530 if (ch_idx < 0) 1533 bitmap_idx = ch_idx / 8; 1537 ch_idx = ch_idx % 8; 1538 ch_bitmap[bitmap_idx] |= BIT(ch_idx);
|
/linux-master/sound/soc/codecs/ |
H A D | wcd938x.c | 1902 int portidx, ch_idx = mixer->reg; local 1906 portidx = wcd->ch_info[ch_idx].port_num; 1921 int ch_idx = mixer->reg; local 1928 portidx = wcd->ch_info[ch_idx].port_num; 1936 wcd938x_connect_port(wcd, portidx, ch_idx, enable);
|
H A D | madera.c | 403 int n, i, in_idx, ch_idx; local 415 ch_idx = 0; 417 pdata->inmode[in_idx][ch_idx] = tmp[i]; 419 if (++ch_idx == MADERA_MAX_MUXED_CHANNELS) { 420 ch_idx = 0;
|