| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | channels.c | 11 return chs->num; in mlx5e_channels_get_num() 16 WARN_ON_ONCE(ix >= mlx5e_channels_get_num(chs)); in mlx5e_channels_get() 17 return chs->c[ix]; in mlx5e_channels_get() 51 struct mlx5e_ptp *c = chs->ptp; in mlx5e_channels_get_ptp_rqn() 64 for (i = 0; i < chs->num; i++) { in mlx5e_channels_rx_change_dim() 78 for (i = 0; i < chs->num; i++) { in mlx5e_channels_tx_change_dim() 94 for (i = 0; i < chs->num; i++) { in mlx5e_channels_rx_toggle_dim() 101 if (chs->c[i]->rq.dim) { in mlx5e_channels_rx_toggle_dim() 104 mlx5e_dim_rx_change(&chs->c[i]->rq, false); in mlx5e_channels_rx_toggle_dim() 118 for (i = 0; i < chs->num; i++) { in mlx5e_channels_tx_toggle_dim() [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 49 return (chs->params.num_channels + is_ptp) * mlx5e_get_dcb_num_tc(&chs->params) + qid; in mlx5e_qid_from_qos() 82 params = &chs->params; in mlx5e_open_qos_sq() 114 c = chs->c[ix]; in mlx5e_open_qos_sq() 265 for (i = 0; i < chs->num; i++) in mlx5e_qos_close_all_queues() 266 mlx5e_qos_close_queues(chs->c[i]); in mlx5e_qos_close_all_queues() 276 for (i = 0; i < chs->num; i++) { in mlx5e_qos_alloc_queues() 308 err = mlx5e_qos_alloc_queues(priv, chs); in mlx5e_qos_open_queues() 313 callback_params.chs = chs; in mlx5e_qos_open_queues() 317 mlx5e_qos_close_all_queues(chs); in mlx5e_qos_open_queues() [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 | 535 struct mlx5e_channels *chs, in mlx5e_rx_res_channel_activate_direct() argument 566 nch = mlx5e_channels_get_num(chs); in mlx5e_rx_res_channels_activate() 568 for (ix = 0; ix < chs->num; ix++) { in mlx5e_rx_res_channels_activate() 571 if (mlx5e_channels_is_xsk(chs, ix)) in mlx5e_rx_res_channels_activate() 572 mlx5e_channels_get_xsk_rqn(chs, ix, &res->rss_rqns[ix], vhca_id); in mlx5e_rx_res_channels_activate() 576 res->rss_nch = chs->num; in mlx5e_rx_res_channels_activate() 581 mlx5e_rx_res_channel_activate_direct(res, chs, ix); in mlx5e_rx_res_channels_activate() 588 if (!mlx5e_channels_get_ptp_rqn(chs, &rqn)) in mlx5e_rx_res_channels_activate() 624 mlx5e_channels_get_xsk_rqn(chs, ix, &res->rss_rqns[ix], vhca_id); in mlx5e_rx_res_xsk_update() 626 mlx5e_channels_get_regular_rqn(chs, ix, &res->rss_rqns[ix], vhca_id); in mlx5e_rx_res_xsk_update() [all …]
|
| H A D | rx_res.h | 44 void mlx5e_rx_res_channels_activate(struct mlx5e_rx_res *res, struct mlx5e_channels *chs); 46 void mlx5e_rx_res_xsk_update(struct mlx5e_rx_res *res, struct mlx5e_channels *chs,
|
| H A D | reporter_tx.c | 168 struct mlx5e_channels *chs; in mlx5e_tx_reporter_ptpsq_unhealthy_recover() local 181 chs = &priv->channels; in mlx5e_tx_reporter_ptpsq_unhealthy_recover() 189 mlx5e_ptp_close(chs->ptp); in mlx5e_tx_reporter_ptpsq_unhealthy_recover() 190 err = mlx5e_ptp_open(priv, &chs->params, chs->c[0]->lag_port, &chs->ptp); in mlx5e_tx_reporter_ptpsq_unhealthy_recover()
|
| /linux-6.15/sound/hda/ |
| H A D | hdmi_chmap.c | 205 hda_nid_t cvt_nid, int chs) in hdmi_set_channel_count() argument 209 AC_VERB_SET_CVT_CHAN_COUNT, chs - 1); in hdmi_set_channel_count() 485 for (i = 0; i < chs; i++) { in hdmi_manual_channel_allocation() 507 int chs, unsigned char *map, in hdmi_manual_setup_channel_mapping() argument 671 int chs, count = 0; in hdmi_chmap_ctl_tlv() local 688 for (chs = 2; chs <= max_chs; chs++) { in hdmi_chmap_ctl_tlv() 694 int chs_bytes = chs * 4; in hdmi_chmap_ctl_tlv() 697 if (cap->channels != chs) in hdmi_chmap_ctl_tlv() 704 chmap, cap, chs); in hdmi_chmap_ctl_tlv() 724 tlv_chmap, chs); in hdmi_chmap_ctl_tlv() [all …]
|
| /linux-6.15/sound/pci/hda/ |
| H A D | hda_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 | patch_cs8409.c | 500 if (chs & BIT(0)) in cs42l42_volume_get() 502 if (chs & BIT(1)) in cs42l42_volume_get() 506 if (chs & BIT(0)) in cs42l42_volume_get() 521 if (chs & BIT(0)) in cs42l42_mute() 523 if (chs & BIT(1)) in cs42l42_mute() 526 if (chs & BIT(0)) in cs42l42_mute() 531 if (chs & BIT(0)) in cs42l42_mute() 535 if (chs & BIT(1)) in cs42l42_mute() 540 if (chs & BIT(0)) in cs42l42_mute() 559 if (chs & BIT(0)) in cs42l42_volume_put() [all …]
|
| H A D | hda_codec.c | 1459 uinfo->count = chs == 3 ? 2 : 1; in snd_hda_mixer_amp_volume_info() 1523 if (chs & 1) in snd_hda_mixer_amp_volume_get() 1525 if (chs & 2) in snd_hda_mixer_amp_volume_get() 1552 if (chs & 1) { in snd_hda_mixer_amp_volume_put() 1559 if (chs & 2) { in snd_hda_mixer_amp_volume_put() 2105 uinfo->count = chs == 3 ? 2 : 1; in snd_hda_mixer_amp_switch_info() 2130 if (chs & 1) in snd_hda_mixer_amp_switch_get() 2133 if (chs & 2) in snd_hda_mixer_amp_switch_get() 2159 if (chs & 1) { in snd_hda_mixer_amp_switch_put() 2167 if (chs & 2) { in snd_hda_mixer_amp_switch_put() [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)
|
| H A D | hda_generic.c | 551 val |= chs << 16; in amp_val_replace_channels() 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() 1057 unsigned int chs, struct nid_path *path) in add_sw_ctl() argument 1067 val = amp_val_replace_channels(val, chs); in add_sw_ctl() 1083 return add_sw_ctl(codec, pfx, cidx, chs, path); in add_stereo_sw() 2334 int chs; in ch_mode_info() local 3629 unsigned int chs = inv_dmic ? 1 : 3; in add_single_cap_ctl() local [all …]
|
| /linux-6.15/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() 866 drvdata->chs.phys = ch_res.start; in __stm_probe() 871 drvdata->chs.base = base; in __stm_probe() 880 drvdata->chs.guaranteed = devm_bitmap_zalloc(dev, drvdata->numsp, in __stm_probe() [all …]
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_main.c | 2796 chs->num = chs->params.num_channels; in mlx5e_open_channels() 2799 if (!chs->c) in mlx5e_open_channels() 2814 err = mlx5e_ptp_open(priv, &chs->params, chs->c[0]->lag_port, &chs->ptp); in mlx5e_open_channels() 2829 if (chs->ptp) in mlx5e_open_channels() 2836 kfree(chs->c); in mlx5e_open_channels() 2838 chs->num = 0; in mlx5e_open_channels() 2855 if (chs->ptp) in mlx5e_activate_channels() 2885 if (chs->ptp) in mlx5e_deactivate_channels() 2904 kfree(chs->c); in mlx5e_close_channels() 2905 chs->num = 0; in mlx5e_close_channels() [all …]
|
| H A D | en.h | 1039 bool mlx5e_reset_rx_channels_moderation(struct mlx5e_channels *chs, u8 cq_period_mode, 1074 struct mlx5e_channels *chs); 1075 void mlx5e_close_channels(struct mlx5e_channels *chs); 1127 bool mlx5e_reset_tx_channels_moderation(struct mlx5e_channels *chs, u8 cq_period_mode,
|
| H A D | en_ethtool.c | 610 struct mlx5e_channels *chs; in mlx5e_ethtool_get_per_queue_coalesce() local 618 chs = &priv->channels; in mlx5e_ethtool_get_per_queue_coalesce() 619 if (chs->num <= queue) { in mlx5e_ethtool_get_per_queue_coalesce() 624 c = chs->c[queue]; in mlx5e_ethtool_get_per_queue_coalesce() 839 struct mlx5e_channels *chs; in mlx5e_ethtool_set_per_queue_coalesce() local 866 chs = &priv->channels; in mlx5e_ethtool_set_per_queue_coalesce() 867 if (chs->num <= queue) { in mlx5e_ethtool_set_per_queue_coalesce() 872 c = chs->c[queue]; in mlx5e_ethtool_set_per_queue_coalesce()
|
| /linux-6.15/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-6.15/drivers/net/ethernet/ti/ |
| H A D | cpsw_ethtool.c | 585 struct ethtool_channels *chs, in cpsw_set_channels_common() argument 593 ret = cpsw_check_ch_settings(cpsw, chs); in cpsw_set_channels_common() 599 new_pools = (chs->rx_count != cpsw->rx_ch_num) && cpsw->usage_count; in cpsw_set_channels_common() 601 ret = cpsw_update_channels_res(priv, chs->rx_count, 1, rx_handler); in cpsw_set_channels_common() 605 ret = cpsw_update_channels_res(priv, chs->tx_count, 0, rx_handler); in cpsw_set_channels_common()
|
| H A D | am65-cpsw-ethtool.c | 437 struct ethtool_channels *chs) in am65_cpsw_set_channels() argument 441 if (!chs->rx_count || !chs->tx_count) in am65_cpsw_set_channels() 450 return am65_cpsw_nuss_update_tx_rx_chns(common, chs->tx_count, in am65_cpsw_set_channels() 451 chs->rx_count); in am65_cpsw_set_channels()
|
| /linux-6.15/include/sound/ |
| H A D | hda_chmap.h | 54 hda_nid_t cvt_nid, int chs);
|
| /linux-6.15/sound/pci/ice1712/ |
| H A D | ice1724.c | 691 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.15/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-6.15/include/linux/ |
| H A D | slimbus.h | 139 unsigned int *chs; member
|
| /linux-6.15/drivers/iio/accel/ |
| H A D | kionix-kx022a.c | 850 __le16 *chs; in __kx022a_fifo_flush() local 853 chs = &data->scan.channels[0]; in __kx022a_fifo_flush() 855 chs[bit] = sam[bit]; in __kx022a_fifo_flush()
|