Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/
Dchannels.c8 unsigned int mlx5e_channels_get_num(struct mlx5e_channels *chs) in mlx5e_channels_get_num() argument
10 return chs->num; in mlx5e_channels_get_num()
13 static struct mlx5e_channel *mlx5e_channels_get(struct mlx5e_channels *chs, unsigned int ix) in mlx5e_channels_get() argument
15 WARN_ON_ONCE(ix >= mlx5e_channels_get_num(chs)); in mlx5e_channels_get()
16 return chs->c[ix]; in mlx5e_channels_get()
19 bool mlx5e_channels_is_xsk(struct mlx5e_channels *chs, unsigned int ix) in mlx5e_channels_is_xsk() argument
21 struct mlx5e_channel *c = mlx5e_channels_get(chs, ix); in mlx5e_channels_is_xsk()
26 void mlx5e_channels_get_regular_rqn(struct mlx5e_channels *chs, unsigned int ix, u32 *rqn) in mlx5e_channels_get_regular_rqn() argument
28 struct mlx5e_channel *c = mlx5e_channels_get(chs, ix); in mlx5e_channels_get_regular_rqn()
33 void mlx5e_channels_get_xsk_rqn(struct mlx5e_channels *chs, unsigned int ix, u32 *rqn) in mlx5e_channels_get_xsk_rqn() argument
[all …]
Dqos.c13 struct mlx5e_channels *chs; member
38 u16 mlx5e_qid_from_qos(struct mlx5e_channels *chs, u16 qid) in mlx5e_qid_from_qos() argument
47 bool is_ptp = MLX5E_GET_PFLAG(&chs->params, MLX5E_PFLAG_TX_PORT_TS); in mlx5e_qid_from_qos()
49 return (chs->params.num_channels + is_ptp) * mlx5e_get_dcb_num_tc(&chs->params) + qid; in mlx5e_qid_from_qos()
69 int mlx5e_open_qos_sq(struct mlx5e_priv *priv, struct mlx5e_channels *chs, in mlx5e_open_qos_sq() argument
81 params = &chs->params; in mlx5e_open_qos_sq()
83 txq_ix = mlx5e_qid_from_qos(chs, node_qid); in mlx5e_open_qos_sq()
112 c = chs->c[ix]; in mlx5e_open_qos_sq()
150 return mlx5e_open_qos_sq(cb_params->priv, cb_params->chs, node_qid, hw_id); in mlx5e_open_qos_sq_cb_wrapper()
252 void mlx5e_qos_close_all_queues(struct mlx5e_channels *chs) in mlx5e_qos_close_all_queues() argument
[all …]
Dchannels.h11 unsigned int mlx5e_channels_get_num(struct mlx5e_channels *chs);
12 bool mlx5e_channels_is_xsk(struct mlx5e_channels *chs, unsigned int ix);
13 void mlx5e_channels_get_regular_rqn(struct mlx5e_channels *chs, unsigned int ix, u32 *rqn);
14 void mlx5e_channels_get_xsk_rqn(struct mlx5e_channels *chs, unsigned int ix, u32 *rqn);
15 bool mlx5e_channels_get_ptp_rqn(struct mlx5e_channels *chs, u32 *rqn);
Dqos.h21 int mlx5e_open_qos_sq(struct mlx5e_priv *priv, struct mlx5e_channels *chs,
29 int mlx5e_qos_open_queues(struct mlx5e_priv *priv, struct mlx5e_channels *chs);
32 void mlx5e_qos_deactivate_all_queues(struct mlx5e_channels *chs);
34 void mlx5e_qos_close_all_queues(struct mlx5e_channels *chs);
35 int mlx5e_qos_alloc_queues(struct mlx5e_priv *priv, struct mlx5e_channels *chs);
38 u16 mlx5e_qid_from_qos(struct mlx5e_channels *chs, u16 qid);
Drx_res.c487 struct mlx5e_channels *chs, in mlx5e_rx_res_channel_activate_direct() argument
512 void mlx5e_rx_res_channels_activate(struct mlx5e_rx_res *res, struct mlx5e_channels *chs) in mlx5e_rx_res_channels_activate() argument
517 nch = mlx5e_channels_get_num(chs); in mlx5e_rx_res_channels_activate()
519 for (ix = 0; ix < chs->num; ix++) { in mlx5e_rx_res_channels_activate()
520 if (mlx5e_channels_is_xsk(chs, ix)) in mlx5e_rx_res_channels_activate()
521 mlx5e_channels_get_xsk_rqn(chs, ix, &res->rss_rqns[ix]); in mlx5e_rx_res_channels_activate()
523 mlx5e_channels_get_regular_rqn(chs, ix, &res->rss_rqns[ix]); in mlx5e_rx_res_channels_activate()
525 res->rss_nch = chs->num; in mlx5e_rx_res_channels_activate()
530 mlx5e_rx_res_channel_activate_direct(res, chs, ix); in mlx5e_rx_res_channels_activate()
537 if (!mlx5e_channels_get_ptp_rqn(chs, &rqn)) in mlx5e_rx_res_channels_activate()
[all …]
Drx_res.h39 void mlx5e_rx_res_channels_activate(struct mlx5e_rx_res *res, struct mlx5e_channels *chs);
41 void mlx5e_rx_res_xsk_update(struct mlx5e_rx_res *res, struct mlx5e_channels *chs,
Dreporter_tx.c170 struct mlx5e_channels *chs; in mlx5e_tx_reporter_ptpsq_unhealthy_recover() local
182 chs = &priv->channels; in mlx5e_tx_reporter_ptpsq_unhealthy_recover()
190 mlx5e_ptp_close(chs->ptp); in mlx5e_tx_reporter_ptpsq_unhealthy_recover()
191 err = mlx5e_ptp_open(priv, &chs->params, chs->c[0]->lag_port, &chs->ptp); in mlx5e_tx_reporter_ptpsq_unhealthy_recover()
/linux-6.6.21/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 …]
/linux-6.6.21/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()
Dpatch_cs8409.c462 u8 chs = get_amp_channels(kctrl); in cs42l42_volume_info() local
466 uinfo->count = chs == 3 ? 2 : 1; in cs42l42_volume_info()
489 int chs = get_amp_channels(kctrl); in cs42l42_volume_get() local
495 if (chs & BIT(0)) in cs42l42_volume_get()
497 if (chs & BIT(1)) in cs42l42_volume_get()
501 if (chs & BIT(0)) in cs42l42_volume_get()
512 unsigned int chs, bool mute) in cs42l42_mute() argument
516 if (chs & BIT(0)) in cs42l42_mute()
518 if (chs & BIT(1)) in cs42l42_mute()
521 if (chs & BIT(0)) in cs42l42_mute()
[all …]
Dhda_codec.c1460 u8 chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_info() local
1465 uinfo->count = chs == 3 ? 2 : 1; in snd_hda_mixer_amp_volume_info()
1523 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_get() local
1529 if (chs & 1) in snd_hda_mixer_amp_volume_get()
1531 if (chs & 2) in snd_hda_mixer_amp_volume_get()
1550 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_put() local
1557 if (chs & 1) { in snd_hda_mixer_amp_volume_put()
1561 if (chs & 2) in snd_hda_mixer_amp_volume_put()
2100 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_switch_info() local
2103 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()
1021 unsigned int chs, struct nid_path *path) in add_vol_ctl() argument
1029 val = amp_val_replace_channels(val, chs); in add_vol_ctl()
1037 int chs = 1; /* mono (left only) */ in get_default_ch_nums() local
1041 chs = 3; /* stereo */ in get_default_ch_nums()
1043 return chs; in get_default_ch_nums()
1049 int chs = get_default_ch_nums(codec, path, NID_PATH_VOL_CTL); in add_stereo_vol() local
1050 return add_vol_ctl(codec, pfx, cidx, chs, path); in add_stereo_vol()
1057 unsigned int chs, struct nid_path *path) in add_sw_ctl() argument
[all …]
Dpatch_hdmi.c3552 int chs; in nvhdmi_8ch_7x_pcm_prepare() local
3563 chs = substream->runtime->channels; in nvhdmi_8ch_7x_pcm_prepare()
3598 if (chs == 2) in nvhdmi_8ch_7x_pcm_prepare()
3641 nvhdmi_8ch_7x_set_info_frame_parameters(codec, chs); in nvhdmi_8ch_7x_pcm_prepare()
3762 int ca, int chs, unsigned char *map) in nvhdmi_chmap_validate() argument
4169 int ca, int chs, unsigned char *map) in atihdmi_paired_chmap_validate() argument
4177 for (i = 0; i < chs; ++i) { in atihdmi_paired_chmap_validate()
4191 if (i % 2 == 0 && i + 1 < chs) { in atihdmi_paired_chmap_validate()
/linux-6.6.21/drivers/hwtracing/coresight/
Dcoresight-stm.c86 #define stm_channel_addr(drvdata, ch) (drvdata->chs.base + \
137 struct channel_space chs; member
359 addr = drvdata->chs.phys + channel * BYTES_PER_CHANNEL; in stm_mmio_addr()
384 set_bit(channel, drvdata->chs.guaranteed); in stm_generic_set_options()
388 clear_bit(channel, drvdata->chs.guaranteed); in stm_generic_set_options()
421 stm_flags |= test_bit(channel, drvdata->chs.guaranteed) ? in stm_generic_packet()
783 bitmap_clear(drvdata->chs.guaranteed, 0, drvdata->numsp); in stm_init_default_data()
843 drvdata->chs.phys = ch_res.start; in stm_probe()
848 drvdata->chs.base = base; in stm_probe()
857 drvdata->chs.guaranteed = devm_bitmap_zalloc(dev, drvdata->numsp, in stm_probe()
[all …]
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Den_main.c2558 struct mlx5e_channels *chs) in mlx5e_open_channels() argument
2564 chs->num = chs->params.num_channels; in mlx5e_open_channels()
2566 chs->c = kcalloc(chs->num, sizeof(struct mlx5e_channel *), GFP_KERNEL); in mlx5e_open_channels()
2568 if (!chs->c || !cparam) in mlx5e_open_channels()
2571 err = mlx5e_build_channel_param(priv->mdev, &chs->params, priv->q_counter, cparam); in mlx5e_open_channels()
2575 for (i = 0; i < chs->num; i++) { in mlx5e_open_channels()
2578 if (chs->params.xdp_prog) in mlx5e_open_channels()
2579 xsk_pool = mlx5e_xsk_get_pool(&chs->params, chs->params.xsk, i); in mlx5e_open_channels()
2581 err = mlx5e_open_channel(priv, i, &chs->params, cparam, xsk_pool, &chs->c[i]); in mlx5e_open_channels()
2586 if (MLX5E_GET_PFLAG(&chs->params, MLX5E_PFLAG_TX_PORT_TS) || chs->params.ptp_rx) { in mlx5e_open_channels()
[all …]
/linux-6.6.21/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()
/linux-6.6.21/drivers/net/ethernet/ti/
Dcpsw_ethtool.c597 struct ethtool_channels *chs, in cpsw_set_channels_common() argument
605 ret = cpsw_check_ch_settings(cpsw, chs); in cpsw_set_channels_common()
611 new_pools = (chs->rx_count != cpsw->rx_ch_num) && cpsw->usage_count; in cpsw_set_channels_common()
613 ret = cpsw_update_channels_res(priv, chs->rx_count, 1, rx_handler); in cpsw_set_channels_common()
617 ret = cpsw_update_channels_res(priv, chs->tx_count, 0, rx_handler); in cpsw_set_channels_common()
Dam65-cpsw-ethtool.c436 struct ethtool_channels *chs) in am65_cpsw_set_channels() argument
440 if (!chs->rx_count || !chs->tx_count) in am65_cpsw_set_channels()
451 return am65_cpsw_nuss_update_tx_chns(common, chs->tx_count); in am65_cpsw_set_channels()
/linux-6.6.21/include/sound/
Dhda_chmap.h54 hda_nid_t cvt_nid, int chs);
/linux-6.6.21/sound/pci/ice1712/
Dice1724.c691 int i, chs; in snd_vt1724_pcm_hw_params() local
693 chs = params_channels(hw_params); in snd_vt1724_pcm_hw_params()
698 chs = chs / 2 - 1; in snd_vt1724_pcm_hw_params()
699 for (i = 0; i < chs; i++) { in snd_vt1724_pcm_hw_params()
1008 int chs, num_indeps; in snd_vt1724_playback_pro_open() local
1019 for (chs = 0; chs < num_indeps; chs++) { in snd_vt1724_playback_pro_open()
1020 if (ice->pcm_reserved[chs]) in snd_vt1724_playback_pro_open()
1023 chs = (chs + 1) * 2; in snd_vt1724_playback_pro_open()
1024 runtime->hw.channels_max = chs; in snd_vt1724_playback_pro_open()
1025 if (chs > 2) /* channels must be even */ in snd_vt1724_playback_pro_open()
/linux-6.6.21/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 …]
/linux-6.6.21/include/linux/
Dslimbus.h139 unsigned int *chs; member
/linux-6.6.21/drivers/iio/accel/
Dkionix-kx022a.c693 __le16 *chs; in __kx022a_fifo_flush() local
696 chs = &data->scan.channels[0]; in __kx022a_fifo_flush()
698 chs[bit] = sam[bit]; in __kx022a_fifo_flush()
/linux-6.6.21/drivers/slimbus/
Dstream.c252 port->ch.id = cfg->chs[i]; in slim_stream_prepare()

12