Home
last modified time | relevance | path

Searched refs:chs (Results 1 – 25 of 32) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Dsetup.c160 int mlx5e_xsk_redirect_rqts_to_channels(struct mlx5e_priv *priv, struct mlx5e_channels *chs) in mlx5e_xsk_redirect_rqts_to_channels() argument
167 for (i = 0; i < chs->num; i++) { in mlx5e_xsk_redirect_rqts_to_channels()
168 struct mlx5e_channel *c = chs->c[i]; in mlx5e_xsk_redirect_rqts_to_channels()
182 if (!test_bit(MLX5E_CHANNEL_STATE_XSK, chs->c[i]->state)) in mlx5e_xsk_redirect_rqts_to_channels()
191 void mlx5e_xsk_redirect_rqts_to_drop(struct mlx5e_priv *priv, struct mlx5e_channels *chs) in mlx5e_xsk_redirect_rqts_to_drop() argument
198 for (i = 0; i < chs->num; i++) { in mlx5e_xsk_redirect_rqts_to_drop()
199 if (!test_bit(MLX5E_CHANNEL_STATE_XSK, chs->c[i]->state)) in mlx5e_xsk_redirect_rqts_to_drop()
Dsetup.h22 int mlx5e_xsk_redirect_rqts_to_channels(struct mlx5e_priv *priv, struct mlx5e_channels *chs);
23 void mlx5e_xsk_redirect_rqts_to_drop(struct mlx5e_priv *priv, struct mlx5e_channels *chs);
/kernel/linux/linux-5.10/sound/hda/
Dhdmi_chmap.c205 hda_nid_t cvt_nid, int chs) in hdmi_set_channel_count() argument
207 if (chs != hdmi_get_channel_count(codec, cvt_nid)) in hdmi_set_channel_count()
209 AC_VERB_SET_CVT_CHAN_COUNT, chs - 1); in hdmi_set_channel_count()
481 static int hdmi_manual_channel_allocation(int chs, unsigned char *map) in hdmi_manual_channel_allocation() argument
485 for (i = 0; i < chs; i++) { in hdmi_manual_channel_allocation()
495 if ((chs == channel_allocations[i].channels || in hdmi_manual_channel_allocation()
507 int chs, unsigned char *map, in hdmi_manual_setup_channel_mapping() argument
514 for (alsa_pos = 0; alsa_pos < chs; alsa_pos++) { in hdmi_manual_setup_channel_mapping()
671 int chs, count = 0; in hdmi_chmap_ctl_tlv() local
688 for (chs = 2; chs <= max_chs; chs++) { in hdmi_chmap_ctl_tlv()
[all …]
/kernel/linux/linux-5.10/sound/pci/hda/
Dhda_beep.c304 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_switch_get_beep() local
307 if (chs & 1) in snd_hda_mixer_amp_switch_get_beep()
309 if (chs & 2) in snd_hda_mixer_amp_switch_get_beep()
328 u8 chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_switch_put_beep() local
331 if (chs & 1) { in snd_hda_mixer_amp_switch_put_beep()
335 if (chs & 2) in snd_hda_mixer_amp_switch_put_beep()
Dhda_codec.c1419 u8 chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_info() local
1424 uinfo->count = chs == 3 ? 2 : 1; in snd_hda_mixer_amp_volume_info()
1482 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_get() local
1488 if (chs & 1) in snd_hda_mixer_amp_volume_get()
1490 if (chs & 2) in snd_hda_mixer_amp_volume_get()
1509 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_put() local
1516 if (chs & 1) { in snd_hda_mixer_amp_volume_put()
1520 if (chs & 2) in snd_hda_mixer_amp_volume_put()
2117 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_switch_info() local
2120 uinfo->count = chs == 3 ? 2 : 1; in snd_hda_mixer_amp_switch_info()
[all …]
Dhda_local.h26 #define HDA_COMPOSE_AMP_VAL_OFS(nid,chs,idx,dir,ofs) \ argument
27 ((nid) | ((chs)<<16) | ((dir)<<18) | ((idx)<<19) | ((ofs)<<23))
29 #define HDA_COMPOSE_AMP_VAL(nid,chs,idx,dir) \ argument
30 HDA_COMPOSE_AMP_VAL_OFS(nid, chs, idx, dir, 0)
Dhda_generic.c548 static unsigned int amp_val_replace_channels(unsigned int val, unsigned int chs) in amp_val_replace_channels() argument
551 val |= chs << 16; in amp_val_replace_channels()
1015 unsigned int chs, struct nid_path *path) in add_vol_ctl() argument
1023 val = amp_val_replace_channels(val, chs); in add_vol_ctl()
1031 int chs = 1; /* mono (left only) */ in get_default_ch_nums() local
1035 chs = 3; /* stereo */ in get_default_ch_nums()
1037 return chs; in get_default_ch_nums()
1043 int chs = get_default_ch_nums(codec, path, NID_PATH_VOL_CTL); in add_stereo_vol() local
1044 return add_vol_ctl(codec, pfx, cidx, chs, path); in add_stereo_vol()
1051 unsigned int chs, struct nid_path *path) in add_sw_ctl() argument
[all …]
Dpatch_hdmi.c3415 int chs; in nvhdmi_8ch_7x_pcm_prepare() local
3426 chs = substream->runtime->channels; in nvhdmi_8ch_7x_pcm_prepare()
3461 if (chs == 2) in nvhdmi_8ch_7x_pcm_prepare()
3504 nvhdmi_8ch_7x_set_info_frame_parameters(codec, chs); in nvhdmi_8ch_7x_pcm_prepare()
3625 int ca, int chs, unsigned char *map) in nvhdmi_chmap_validate() argument
3964 int ca, int chs, unsigned char *map) in atihdmi_paired_chmap_validate() argument
3972 for (i = 0; i < chs; ++i) { in atihdmi_paired_chmap_validate()
3986 if (i % 2 == 0 && i + 1 < chs) { in atihdmi_paired_chmap_validate()
/kernel/linux/linux-5.10/drivers/hwtracing/coresight/
Dcoresight-stm.c85 #define stm_channel_addr(drvdata, ch) (drvdata->chs.base + \
136 struct channel_space chs; member
365 addr = drvdata->chs.phys + channel * BYTES_PER_CHANNEL; in stm_mmio_addr()
390 set_bit(channel, drvdata->chs.guaranteed); in stm_generic_set_options()
394 clear_bit(channel, drvdata->chs.guaranteed); in stm_generic_set_options()
427 stm_flags |= test_bit(channel, drvdata->chs.guaranteed) ? in stm_generic_packet()
830 bitmap_clear(drvdata->chs.guaranteed, 0, drvdata->numsp); in stm_init_default_data()
891 drvdata->chs.phys = ch_res.start; in stm_probe()
896 drvdata->chs.base = base; in stm_probe()
910 drvdata->chs.guaranteed = guaranteed; in stm_probe()
/kernel/linux/linux-5.10/sound/pci/ctxfi/
Dctpcm.c419 int chs; in ct_alsa_pcm_create() local
447 chs = 2; in ct_alsa_pcm_create()
450 chs = 8; in ct_alsa_pcm_create()
466 err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, map, chs, in ct_alsa_pcm_create()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_main.c2368 struct mlx5e_channels *chs) in mlx5e_open_channels() argument
2374 chs->num = chs->params.num_channels; in mlx5e_open_channels()
2376 chs->c = kcalloc(chs->num, sizeof(struct mlx5e_channel *), GFP_KERNEL); in mlx5e_open_channels()
2378 if (!chs->c || !cparam) in mlx5e_open_channels()
2381 mlx5e_build_channel_param(priv, &chs->params, cparam); in mlx5e_open_channels()
2382 for (i = 0; i < chs->num; i++) { in mlx5e_open_channels()
2385 if (chs->params.xdp_prog) in mlx5e_open_channels()
2386 xsk_pool = mlx5e_xsk_get_pool(&chs->params, chs->params.xsk, i); in mlx5e_open_channels()
2388 err = mlx5e_open_channel(priv, i, &chs->params, cparam, xsk_pool, &chs->c[i]); in mlx5e_open_channels()
2399 mlx5e_close_channel(chs->c[i]); in mlx5e_open_channels()
[all …]
Den.h933 struct mlx5e_channels *chs);
934 void mlx5e_close_channels(struct mlx5e_channels *chs);
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Dcpsw_ethtool.c595 struct ethtool_channels *chs, in cpsw_set_channels_common() argument
603 ret = cpsw_check_ch_settings(cpsw, chs); in cpsw_set_channels_common()
609 new_pools = (chs->rx_count != cpsw->rx_ch_num) && cpsw->usage_count; in cpsw_set_channels_common()
611 ret = cpsw_update_channels_res(priv, chs->rx_count, 1, rx_handler); in cpsw_set_channels_common()
615 ret = cpsw_update_channels_res(priv, chs->tx_count, 0, rx_handler); in cpsw_set_channels_common()
Dam65-cpsw-ethtool.c438 struct ethtool_channels *chs) in am65_cpsw_set_channels() argument
442 if (!chs->rx_count || !chs->tx_count) in am65_cpsw_set_channels()
453 return am65_cpsw_nuss_update_tx_chns(common, chs->tx_count); in am65_cpsw_set_channels()
Dcpsw_priv.h494 struct ethtool_channels *chs,
/kernel/linux/linux-5.10/include/sound/
Dhda_chmap.h54 hda_nid_t cvt_nid, int chs);
/kernel/linux/linux-5.10/sound/pci/ice1712/
Dice1724.c710 int i, chs; in snd_vt1724_pcm_hw_params() local
712 chs = params_channels(hw_params); in snd_vt1724_pcm_hw_params()
717 chs = chs / 2 - 1; in snd_vt1724_pcm_hw_params()
718 for (i = 0; i < chs; i++) { in snd_vt1724_pcm_hw_params()
1027 int chs, num_indeps; in snd_vt1724_playback_pro_open() local
1038 for (chs = 0; chs < num_indeps; chs++) { in snd_vt1724_playback_pro_open()
1039 if (ice->pcm_reserved[chs]) in snd_vt1724_playback_pro_open()
1042 chs = (chs + 1) * 2; in snd_vt1724_playback_pro_open()
1043 runtime->hw.channels_max = chs; in snd_vt1724_playback_pro_open()
1044 if (chs > 2) /* channels must be even */ in snd_vt1724_playback_pro_open()
/kernel/linux/linux-5.10/drivers/ide/
Dide.c278 module_param_call(chs, ide_set_disk_chs, NULL, NULL, 0);
279 MODULE_PARM_DESC(chs, "force device as a disk (using CHS)");
/kernel/linux/linux-5.10/drivers/net/ethernet/toshiba/
Dps3_gelic_wireless.c302 unsigned int i, chs; in gelic_wl_get_range() local
314 for (i = 0, chs = 0; in gelic_wl_get_range()
315 i < NUM_CHANNELS && chs < IW_MAX_FREQUENCIES; i++) in gelic_wl_get_range()
317 range->freq[chs].i = i + 1; in gelic_wl_get_range()
318 range->freq[chs].m = channel_freq[i]; in gelic_wl_get_range()
319 range->freq[chs].e = 6; in gelic_wl_get_range()
320 chs++; in gelic_wl_get_range()
322 range->num_frequency = chs; in gelic_wl_get_range()
323 range->old_num_frequency = chs; in gelic_wl_get_range()
324 range->num_channels = chs; in gelic_wl_get_range()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dslimbus.h139 unsigned int *chs; member
/kernel/linux/linux-5.10/Documentation/ide/
Dide.rst86 ide_core.chs=[interface_number.device_number]:cyls,heads,sects
94 ide_core.chs=1.0:1050,32,64 ide_core.cdrom=1.1
109 ide_core.chs=1.0:768,16,32
233 * "chs=[interface_number.device_number]" to force device as a disk (using CHS)
/kernel/linux/linux-5.10/drivers/slimbus/
Dstream.c245 port->ch.id = cfg->chs[i]; in slim_stream_prepare()
/kernel/linux/linux-5.10/drivers/media/i2c/
Dov7670.c1321 int chs = 1; in ov7670_sine() local
1326 chs = -1; in ov7670_sine()
1334 return sine*chs; in ov7670_sine()
/kernel/linux/linux-5.10/sound/pci/
Dintel8x0.c1489 int chs = 2; in snd_intel8x0_pcm1() local
1491 chs = 8; in snd_intel8x0_pcm1()
1493 chs = 6; in snd_intel8x0_pcm1()
1495 chs = 4; in snd_intel8x0_pcm1()
1497 snd_pcm_alt_chmaps, chs, 0, in snd_intel8x0_pcm1()
/kernel/linux/linux-5.10/sound/soc/codecs/
Dwcd9335.c1729 cfg->chs = kcalloc(cfg->ch_count, sizeof(unsigned int), GFP_KERNEL); in wcd9335_slim_set_hw_params()
1730 if (!cfg->chs) in wcd9335_slim_set_hw_params()
1735 cfg->chs[i++] = ch->ch_num; in wcd9335_slim_set_hw_params()
1781 kfree(cfg->chs); in wcd9335_slim_set_hw_params()
1782 cfg->chs = NULL; in wcd9335_slim_set_hw_params()
3022 kfree(dai->sconfig.chs); in wcd9335_codec_enable_slim()

12