| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | channels.c | 9 unsigned int mlx5e_channels_get_num(struct mlx5e_channels *chs) in mlx5e_channels_get_num() argument 11 return chs->num; in mlx5e_channels_get_num() 14 static struct mlx5e_channel *mlx5e_channels_get(struct mlx5e_channels *chs, unsigned int ix) in mlx5e_channels_get() argument 16 WARN_ON_ONCE(ix >= mlx5e_channels_get_num(chs)); in mlx5e_channels_get() 17 return chs->c[ix]; in mlx5e_channels_get() 20 bool mlx5e_channels_is_xsk(struct mlx5e_channels *chs, unsigned int ix) in mlx5e_channels_is_xsk() argument 22 struct mlx5e_channel *c = mlx5e_channels_get(chs, ix); in mlx5e_channels_is_xsk() 27 void mlx5e_channels_get_regular_rqn(struct mlx5e_channels *chs, unsigned int ix, u32 *rqn, in mlx5e_channels_get_regular_rqn() argument 30 struct mlx5e_channel *c = mlx5e_channels_get(chs, ix); in mlx5e_channels_get_regular_rqn() 37 void mlx5e_channels_get_xsk_rqn(struct mlx5e_channels *chs, unsigned int ix, u32 *rqn, in mlx5e_channels_get_xsk_rqn() argument [all …]
|
| H A D | channels.h | 11 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, 15 void mlx5e_channels_get_xsk_rqn(struct mlx5e_channels *chs, unsigned int ix, u32 *rqn, 17 bool mlx5e_channels_get_ptp_rqn(struct mlx5e_channels *chs, u32 *rqn); 18 int mlx5e_channels_rx_change_dim(struct mlx5e_channels *chs, bool enabled); 19 int mlx5e_channels_tx_change_dim(struct mlx5e_channels *chs, bool enabled); 20 int mlx5e_channels_rx_toggle_dim(struct mlx5e_channels *chs); 21 int mlx5e_channels_tx_toggle_dim(struct mlx5e_channels *chs);
|
| H A D | qos.c | 13 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 82 params = &chs->params; in mlx5e_open_qos_sq() 84 txq_ix = mlx5e_qid_from_qos(chs, node_qid); in mlx5e_open_qos_sq() 114 c = chs->c[ix]; in mlx5e_open_qos_sq() 154 return mlx5e_open_qos_sq(cb_params->priv, cb_params->chs, node_qid, hw_id); in mlx5e_open_qos_sq_cb_wrapper() 261 void mlx5e_qos_close_all_queues(struct mlx5e_channels *chs) in mlx5e_qos_close_all_queues() argument [all …]
|
| H A D | qos.h | 21 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);
|
| H A D | rx_res.c | 559 struct mlx5e_channels *chs, in mlx5e_rx_res_channel_activate_direct() argument 585 void mlx5e_rx_res_channels_activate(struct mlx5e_rx_res *res, struct mlx5e_channels *chs) in mlx5e_rx_res_channels_activate() argument 590 nch = mlx5e_channels_get_num(chs); in mlx5e_rx_res_channels_activate() 592 for (ix = 0; ix < chs->num; ix++) { in mlx5e_rx_res_channels_activate() 595 if (mlx5e_channels_is_xsk(chs, ix)) in mlx5e_rx_res_channels_activate() 596 mlx5e_channels_get_xsk_rqn(chs, ix, &res->rss_rqns[ix], vhca_id); in mlx5e_rx_res_channels_activate() 598 mlx5e_channels_get_regular_rqn(chs, ix, &res->rss_rqns[ix], vhca_id); in mlx5e_rx_res_channels_activate() 600 res->rss_nch = chs->num; in mlx5e_rx_res_channels_activate() 605 mlx5e_rx_res_channel_activate_direct(res, chs, ix); in mlx5e_rx_res_channels_activate() 610 if (!mlx5e_channels_get_ptp_rqn(chs, &rqn)) in mlx5e_rx_res_channels_activate() [all …]
|
| H A D | rx_res.h | 45 void mlx5e_rx_res_channels_activate(struct mlx5e_rx_res *res, struct mlx5e_channels *chs); 47 void mlx5e_rx_res_xsk_update(struct mlx5e_rx_res *res, struct mlx5e_channels *chs,
|
| H A D | reporter_tx.c | 196 struct mlx5e_channels *chs; in mlx5e_tx_reporter_ptpsq_unhealthy_recover() local 221 chs = &priv->channels; in mlx5e_tx_reporter_ptpsq_unhealthy_recover() 228 mlx5e_ptp_close(chs->ptp); in mlx5e_tx_reporter_ptpsq_unhealthy_recover() 229 err = mlx5e_ptp_open(priv, &chs->params, chs->c[0]->lag_port, &chs->ptp); in mlx5e_tx_reporter_ptpsq_unhealthy_recover()
|
| /linux/sound/hda/core/ |
| H A D | hdmi_chmap.c | 205 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/sound/hda/common/ |
| H A D | beep.c | 306 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_switch_get_beep() local 309 if (chs & 1) in snd_hda_mixer_amp_switch_get_beep() 311 if (chs & 2) in snd_hda_mixer_amp_switch_get_beep() 330 u8 chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_switch_put_beep() local 333 if (chs & 1) { in snd_hda_mixer_amp_switch_put_beep() 337 if (chs & 2) in snd_hda_mixer_amp_switch_put_beep()
|
| H A D | codec.c | 1445 u8 chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_info() local 1450 uinfo->count = chs == 3 ? 2 : 1; in snd_hda_mixer_amp_volume_info() 1508 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_get() local 1514 if (chs & 1) in snd_hda_mixer_amp_volume_get() 1516 if (chs & 2) in snd_hda_mixer_amp_volume_get() 1535 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_put() local 1543 if (chs & 1) { in snd_hda_mixer_amp_volume_put() 1550 if (chs & 2) { in snd_hda_mixer_amp_volume_put() 2058 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_switch_info() local 2061 uinfo->count = chs == 3 ? 2 : 1; in snd_hda_mixer_amp_switch_info() [all …]
|
| H A D | hda_local.h | 28 #define HDA_COMPOSE_AMP_VAL_OFS(nid,chs,idx,dir,ofs) \ argument 29 ((nid) | ((chs)<<16) | ((dir)<<18) | ((idx)<<19) | ((ofs)<<23)) 31 #define HDA_COMPOSE_AMP_VAL(nid,chs,idx,dir) \ argument 32 HDA_COMPOSE_AMP_VAL_OFS(nid, chs, idx, dir, 0)
|
| /linux/sound/hda/codecs/cirrus/ |
| H A D | cs8409.c | 460 u8 chs = get_amp_channels(kctrl); in cs42l42_volume_info() local 464 uinfo->count = chs == 3 ? 2 : 1; in cs42l42_volume_info() 487 int chs = get_amp_channels(kctrl); in cs42l42_volume_get() local 493 if (chs & BIT(0)) in cs42l42_volume_get() 495 if (chs & BIT(1)) in cs42l42_volume_get() 499 if (chs & BIT(0)) in cs42l42_volume_get() 510 unsigned int chs, bool mute) in cs42l42_mute() argument 514 if (chs & BIT(0)) in cs42l42_mute() 516 if (chs & BIT(1)) in cs42l42_mute() 519 if (chs & BIT(0)) in cs42l42_mute() [all …]
|
| /linux/drivers/hwtracing/coresight/ |
| H A D | coresight-stm.c | 87 #define stm_channel_addr(drvdata, ch) (drvdata->chs.base + \ 139 struct channel_space chs; member 370 addr = drvdata->chs.phys + channel * BYTES_PER_CHANNEL; in stm_mmio_addr() 395 set_bit(channel, drvdata->chs.guaranteed); in stm_generic_set_options() 399 clear_bit(channel, drvdata->chs.guaranteed); in stm_generic_set_options() 432 stm_flags |= test_bit(channel, drvdata->chs.guaranteed) ? in stm_generic_packet() 794 bitmap_clear(drvdata->chs.guaranteed, 0, drvdata->numsp); in stm_init_default_data() 860 drvdata->chs.phys = ch_res.start; in __stm_probe() 865 drvdata->chs.base = base; in __stm_probe() 874 drvdata->chs.guaranteed = devm_bitmap_zalloc(dev, drvdata->numsp, in __stm_probe() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_main.c | 1970 bool mlx5e_reset_tx_channels_moderation(struct mlx5e_channels *chs, u8 cq_period_mode, in mlx5e_reset_tx_channels_moderation() argument 1976 for (i = 0; i < chs->num; i++) { in mlx5e_reset_tx_channels_moderation() 1977 for (tc = 0; tc < mlx5e_get_dcb_num_tc(&chs->params); tc++) { in mlx5e_reset_tx_channels_moderation() 1979 dim_enabled = !!chs->c[i]->sq[tc].dim; in mlx5e_reset_tx_channels_moderation() 1981 reset |= mlx5e_reset_tx_moderation(&chs->c[i]->tx_cq_moder, in mlx5e_reset_tx_channels_moderation() 2907 struct mlx5e_channels *chs) in mlx5e_open_channels() argument 2912 chs->num = chs->params.num_channels; in mlx5e_open_channels() 2914 chs->c = kzalloc_objs(struct mlx5e_channel *, chs->num); in mlx5e_open_channels() 2915 if (!chs->c) in mlx5e_open_channels() 2918 for (i = 0; i < chs->num; i++) { in mlx5e_open_channels() [all …]
|
| H A D | en.h | 1074 bool mlx5e_reset_rx_channels_moderation(struct mlx5e_channels *chs, u8 cq_period_mode, 1111 struct mlx5e_channels *chs); 1112 void mlx5e_close_channels(struct mlx5e_channels *chs); 1164 bool mlx5e_reset_tx_channels_moderation(struct mlx5e_channels *chs, u8 cq_period_mode,
|
| H A D | en_ethtool.c | 636 struct mlx5e_channels *chs; in mlx5e_ethtool_get_per_queue_coalesce() local 644 chs = &priv->channels; in mlx5e_ethtool_get_per_queue_coalesce() 645 if (chs->num <= queue) { in mlx5e_ethtool_get_per_queue_coalesce() 650 c = chs->c[queue]; in mlx5e_ethtool_get_per_queue_coalesce() 865 struct mlx5e_channels *chs; in mlx5e_ethtool_set_per_queue_coalesce() local 892 chs = &priv->channels; in mlx5e_ethtool_set_per_queue_coalesce() 893 if (chs->num <= queue) { in mlx5e_ethtool_set_per_queue_coalesce() 898 c = chs->c[queue]; in mlx5e_ethtool_set_per_queue_coalesce()
|
| /linux/sound/hda/codecs/hdmi/ |
| H A D | nvhdmi-mcp.c | 127 int chs; in nvhdmi_8ch_7x_pcm_prepare() local 138 chs = substream->runtime->channels; in nvhdmi_8ch_7x_pcm_prepare() 173 if (chs == 2) in nvhdmi_8ch_7x_pcm_prepare() 216 nvhdmi_8ch_7x_set_info_frame_parameters(codec, chs); in nvhdmi_8ch_7x_pcm_prepare()
|
| H A D | atihdmi.c | 263 int ca, int chs, unsigned char *map) in atihdmi_paired_chmap_validate() argument 271 for (i = 0; i < chs; ++i) { in atihdmi_paired_chmap_validate() 286 if (i % 2 == 0 && i + 1 < chs) { in atihdmi_paired_chmap_validate()
|
| /linux/sound/pci/ctxfi/ |
| H A D | ctpcm.c | 419 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/drivers/net/ethernet/ti/ |
| H A D | cpsw_ethtool.c | 582 struct ethtool_channels *chs, in cpsw_set_channels_common() argument 590 ret = cpsw_check_ch_settings(cpsw, chs); in cpsw_set_channels_common() 596 new_pools = (chs->rx_count != cpsw->rx_ch_num) && cpsw->usage_count; in cpsw_set_channels_common() 598 ret = cpsw_update_channels_res(priv, chs->rx_count, 1, rx_handler); in cpsw_set_channels_common() 602 ret = cpsw_update_channels_res(priv, chs->tx_count, 0, rx_handler); in cpsw_set_channels_common()
|
| H A D | am65-cpsw-ethtool.c | 434 struct ethtool_channels *chs) in am65_cpsw_set_channels() argument 438 if (!chs->rx_count || !chs->tx_count) in am65_cpsw_set_channels() 447 return am65_cpsw_nuss_update_tx_rx_chns(common, chs->tx_count, in am65_cpsw_set_channels() 448 chs->rx_count); in am65_cpsw_set_channels()
|
| /linux/sound/pci/ice1712/ |
| H A D | ice1724.c | 682 int i, chs; in __snd_vt1724_pcm_hw_params() local 684 chs = params_channels(hw_params); in __snd_vt1724_pcm_hw_params() 688 chs = chs / 2 - 1; in __snd_vt1724_pcm_hw_params() 689 for (i = 0; i < chs; i++) { in __snd_vt1724_pcm_hw_params() 1004 int chs, num_indeps; in snd_vt1724_playback_pro_open() local 1015 for (chs = 0; chs < num_indeps; chs++) { in snd_vt1724_playback_pro_open() 1016 if (ice->pcm_reserved[chs]) in snd_vt1724_playback_pro_open() [all...] |
| /linux/drivers/net/ethernet/toshiba/ |
| H A D | ps3_gelic_wireless.c | 302 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/include/sound/ |
| H A D | hda_chmap.h | 54 hda_nid_t cvt_nid, int chs);
|
| /linux/include/linux/ |
| H A D | slimbus.h | 139 unsigned int *chs; member
|