| /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 | 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() 484 static int hdmi_manual_channel_allocation(int chs, unsigned char *map) in hdmi_manual_channel_allocation() 488 for (i = 0; i < chs; i++) { in hdmi_manual_channel_allocation() 498 if ((chs == channel_allocations[i].channels || in hdmi_manual_channel_allocation() 510 int chs, unsigned char *map, in hdmi_manual_setup_channel_mapping() 517 for (alsa_pos = 0; alsa_pos < chs; alsa_pos++) { in hdmi_manual_setup_channel_mapping() 674 int chs, count = 0; in hdmi_chmap_ctl_tlv() 691 for (chs in hdmi_chmap_ctl_tlv() 481 hdmi_manual_channel_allocation(int chs,unsigned char * map) hdmi_manual_channel_allocation() argument 507 hdmi_manual_setup_channel_mapping(struct hdac_chmap * chmap,hda_nid_t pin_nid,int chs,unsigned char * map,int ca) hdmi_manual_setup_channel_mapping() argument 671 int chs, count = 0; hdmi_chmap_ctl_tlv() local [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 | 1444 u8 chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_info() local 1449 uinfo->count = chs == 3 ? 2 : 1; in snd_hda_mixer_amp_volume_info() 1507 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_get() local 1513 if (chs & 1) in snd_hda_mixer_amp_volume_get() 1515 if (chs & 2) in snd_hda_mixer_amp_volume_get() 1534 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_put() local 1542 if (chs & 1) { in snd_hda_mixer_amp_volume_put() 1549 if (chs & 2) { in snd_hda_mixer_amp_volume_put() 2060 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_switch_info() local 2063 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 in cs42l42_mute() 546 int chs = get_amp_channels(kctrl); cs42l42_volume_put() local [all...] |
| /linux/drivers/hwtracing/coresight/ |
| H A D | coresight-stm.c | 87 #define stm_channel_addr(drvdata, ch) (drvdata->chs.base + \ 137 struct channel_space chs; member 368 addr = drvdata->chs.phys + channel * BYTES_PER_CHANNEL; in stm_mmio_addr() 393 set_bit(channel, drvdata->chs.guaranteed); in stm_generic_set_options() 397 clear_bit(channel, drvdata->chs.guaranteed); in stm_generic_set_options() 430 stm_flags |= test_bit(channel, drvdata->chs.guaranteed) ? in stm_generic_packet() 792 bitmap_clear(drvdata->chs.guaranteed, 0, drvdata->numsp); in stm_init_default_data() 858 drvdata->chs.phys = ch_res.start; in __stm_probe() 863 drvdata->chs.base = base; in __stm_probe() 872 drvdata->chs.guaranteed = devm_bitmap_zalloc(dev, drvdata->numsp, in __stm_probe() [all …]
|
| /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()
|
| H A D | nvhdmi.c | 41 int ca, int chs, unsigned char *map) in nvhdmi_chmap_validate() argument
|
| H A D | tegrahdmi.c | 222 int ca, int chs, unsigned char *map) in nvhdmi_chmap_validate() argument
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_main.c | 2028 bool mlx5e_reset_tx_channels_moderation(struct mlx5e_channels *chs, u8 cq_period_mode, in mlx5e_reset_tx_channels_moderation() argument 2034 for (i = 0; i < chs->num; i++) { in mlx5e_reset_tx_channels_moderation() 2035 for (tc = 0; tc < mlx5e_get_dcb_num_tc(&chs->params); tc++) { in mlx5e_reset_tx_channels_moderation() 2037 dim_enabled = !!chs->c[i]->sq[tc].dim; in mlx5e_reset_tx_channels_moderation() 2039 reset |= mlx5e_reset_tx_moderation(&chs->c[i]->tx_cq_moder, in mlx5e_reset_tx_channels_moderation() 2970 struct mlx5e_channels *chs) in mlx5e_open_channels() argument 2975 chs->num = chs->params.num_channels; in mlx5e_open_channels() 2977 chs->c = kzalloc_objs(struct mlx5e_channel *, chs->num); in mlx5e_open_channels() 2978 if (!chs->c) in mlx5e_open_channels() 2981 for (i = 0; i < chs->num; i++) { in mlx5e_open_channels() [all …]
|
| H A D | en_ethtool.c | 639 struct mlx5e_channels *chs; in mlx5e_ethtool_get_per_queue_coalesce() local 647 chs = &priv->channels; in mlx5e_ethtool_get_per_queue_coalesce() 648 if (chs->num <= queue) { in mlx5e_ethtool_get_per_queue_coalesce() 653 c = chs->c[queue]; in mlx5e_ethtool_get_per_queue_coalesce() 868 struct mlx5e_channels *chs; in mlx5e_ethtool_set_per_queue_coalesce() local 895 chs = &priv->channels; in mlx5e_ethtool_set_per_queue_coalesce() 896 if (chs->num <= queue) { in mlx5e_ethtool_set_per_queue_coalesce() 901 c = chs->c[queue]; in mlx5e_ethtool_set_per_queue_coalesce()
|
| /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/include/sound/ |
| H A D | hda_chmap.h | 54 hda_nid_t cvt_nid, int chs);
|
| /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/linux/ |
| H A D | slimbus.h | 139 unsigned int *chs; member
|
| /linux/sound/hda/codecs/ |
| H A D | generic.c | 548 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, struc in add_sw_ctl() argument 1082 int chs = get_default_ch_nums(codec, path, NID_PATH_MUTE_CTL); add_stereo_sw() local 2325 int chs; ch_mode_info() local 3618 unsigned int chs = inv_dmic ? 1 : 3; add_single_cap_ctl() local [all...] |
| /linux/drivers/iio/accel/ |
| H A D | kionix-kx022a.c | 860 __le16 *chs; in __kx022a_fifo_flush() local 863 chs = &data->scan.channels[0]; in __kx022a_fifo_flush() 865 chs[bit] = sam[bit]; in __kx022a_fifo_flush()
|
| /linux/drivers/slimbus/ |
| H A D | stream.c | 254 port->ch.id = cfg->chs[i]; in slim_stream_prepare()
|