chs                85 drivers/hwtracing/coresight/coresight-stm.c #define stm_channel_addr(drvdata, ch)	(drvdata->chs.base +	\
chs               136 drivers/hwtracing/coresight/coresight-stm.c 	struct channel_space	chs;
chs               365 drivers/hwtracing/coresight/coresight-stm.c 	addr = drvdata->chs.phys + channel * BYTES_PER_CHANNEL;
chs               390 drivers/hwtracing/coresight/coresight-stm.c 		set_bit(channel, drvdata->chs.guaranteed);
chs               394 drivers/hwtracing/coresight/coresight-stm.c 		clear_bit(channel, drvdata->chs.guaranteed);
chs               425 drivers/hwtracing/coresight/coresight-stm.c 	flags |= test_bit(channel, drvdata->chs.guaranteed) ?
chs               829 drivers/hwtracing/coresight/coresight-stm.c 	bitmap_clear(drvdata->chs.guaranteed, 0, drvdata->numsp);
chs               890 drivers/hwtracing/coresight/coresight-stm.c 	drvdata->chs.phys = ch_res.start;
chs               895 drivers/hwtracing/coresight/coresight-stm.c 	drvdata->chs.base = base;
chs               909 drivers/hwtracing/coresight/coresight-stm.c 	drvdata->chs.guaranteed = guaranteed;
chs               278 drivers/ide/ide.c module_param_call(chs, ide_set_disk_chs, NULL, NULL, 0);
chs               279 drivers/ide/ide.c MODULE_PARM_DESC(chs, "force device as a disk (using CHS)");
chs              1321 drivers/media/i2c/ov7670.c 	int chs = 1;
chs              1326 drivers/media/i2c/ov7670.c 		chs = -1;
chs              1334 drivers/media/i2c/ov7670.c 	return sine*chs;
chs              1036 drivers/net/ethernet/mellanox/mlx5/core/en.h 			struct mlx5e_channels *chs);
chs              1037 drivers/net/ethernet/mellanox/mlx5/core/en.h void mlx5e_close_channels(struct mlx5e_channels *chs);
chs               203 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c int mlx5e_xsk_redirect_rqts_to_channels(struct mlx5e_priv *priv, struct mlx5e_channels *chs)
chs               210 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c 	for (i = 0; i < chs->num; i++) {
chs               211 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c 		struct mlx5e_channel *c = chs->c[i];
chs               225 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c 		if (!test_bit(MLX5E_CHANNEL_STATE_XSK, chs->c[i]->state))
chs               234 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c void mlx5e_xsk_redirect_rqts_to_drop(struct mlx5e_priv *priv, struct mlx5e_channels *chs)
chs               241 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c 	for (i = 0; i < chs->num; i++) {
chs               242 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c 		if (!test_bit(MLX5E_CHANNEL_STATE_XSK, chs->c[i]->state))
chs                22 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.h int mlx5e_xsk_redirect_rqts_to_channels(struct mlx5e_priv *priv, struct mlx5e_channels *chs);
chs                23 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.h void mlx5e_xsk_redirect_rqts_to_drop(struct mlx5e_priv *priv, struct mlx5e_channels *chs);
chs              2347 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 			struct mlx5e_channels *chs)
chs              2353 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	chs->num = chs->params.num_channels;
chs              2355 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	chs->c = kcalloc(chs->num, sizeof(struct mlx5e_channel *), GFP_KERNEL);
chs              2357 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	if (!chs->c || !cparam)
chs              2360 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	mlx5e_build_channel_param(priv, &chs->params, cparam);
chs              2361 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	for (i = 0; i < chs->num; i++) {
chs              2364 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		if (chs->params.xdp_prog)
chs              2365 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 			umem = mlx5e_xsk_get_umem(&chs->params, chs->params.xsk, i);
chs              2367 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		err = mlx5e_open_channel(priv, i, &chs->params, cparam, umem, &chs->c[i]);
chs              2378 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		mlx5e_close_channel(chs->c[i]);
chs              2381 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	kfree(chs->c);
chs              2383 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	chs->num = 0;
chs              2387 drivers/net/ethernet/mellanox/mlx5/core/en_main.c static void mlx5e_activate_channels(struct mlx5e_channels *chs)
chs              2391 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	for (i = 0; i < chs->num; i++)
chs              2392 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		mlx5e_activate_channel(chs->c[i]);
chs              2397 drivers/net/ethernet/mellanox/mlx5/core/en_main.c static int mlx5e_wait_channels_min_rx_wqes(struct mlx5e_channels *chs)
chs              2402 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	for (i = 0; i < chs->num; i++) {
chs              2405 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		err |= mlx5e_wait_for_min_rx_wqes(&chs->c[i]->rq, timeout);
chs              2415 drivers/net/ethernet/mellanox/mlx5/core/en_main.c static void mlx5e_deactivate_channels(struct mlx5e_channels *chs)
chs              2419 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	for (i = 0; i < chs->num; i++)
chs              2420 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		mlx5e_deactivate_channel(chs->c[i]);
chs              2423 drivers/net/ethernet/mellanox/mlx5/core/en_main.c void mlx5e_close_channels(struct mlx5e_channels *chs)
chs              2427 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	for (i = 0; i < chs->num; i++)
chs              2428 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		mlx5e_close_channel(chs->c[i]);
chs              2430 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	kfree(chs->c);
chs              2431 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	chs->num = 0;
chs              2619 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 					    struct mlx5e_channels *chs)
chs              2625 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 				.channels  = chs,
chs              3432 drivers/net/ethernet/mellanox/mlx5/core/en_main.c static int mlx5e_modify_channels_scatter_fcs(struct mlx5e_channels *chs, bool enable)
chs              3437 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	for (i = 0; i < chs->num; i++) {
chs              3438 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		err = mlx5e_modify_rq_scatter_fcs(&chs->c[i]->rq, enable);
chs              3446 drivers/net/ethernet/mellanox/mlx5/core/en_main.c static int mlx5e_modify_channels_vsd(struct mlx5e_channels *chs, bool vsd)
chs              3451 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	for (i = 0; i < chs->num; i++) {
chs              3452 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		err = mlx5e_modify_rq_vsd(&chs->c[i]->rq, vsd);
chs              3882 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 				   struct mlx5e_channels *chs,
chs              3888 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	for (ix = 0; ix < chs->params.num_channels; ix++) {
chs              3889 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 		struct xdp_umem *umem = mlx5e_xsk_get_umem(&chs->params, chs->params.xsk, ix);
chs              2456 drivers/net/ethernet/ti/cpsw.c 			     struct ethtool_channels *chs)
chs              2458 drivers/net/ethernet/ti/cpsw.c 	return cpsw_set_channels_common(ndev, chs, cpsw_rx_handler);
chs               594 drivers/net/ethernet/ti/cpsw_ethtool.c 			     struct ethtool_channels *chs,
chs               602 drivers/net/ethernet/ti/cpsw_ethtool.c 	ret = cpsw_check_ch_settings(cpsw, chs);
chs               608 drivers/net/ethernet/ti/cpsw_ethtool.c 	new_pools = (chs->rx_count != cpsw->rx_ch_num) && cpsw->usage_count;
chs               610 drivers/net/ethernet/ti/cpsw_ethtool.c 	ret = cpsw_update_channels_res(priv, chs->rx_count, 1, rx_handler);
chs               614 drivers/net/ethernet/ti/cpsw_ethtool.c 	ret = cpsw_update_channels_res(priv, chs->tx_count, 0, rx_handler);
chs               433 drivers/net/ethernet/ti/cpsw_priv.h 			     struct ethtool_channels *chs,
chs               302 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 	unsigned int i, chs;
chs               314 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 	for (i = 0, chs = 0;
chs               315 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 	     i < NUM_CHANNELS && chs < IW_MAX_FREQUENCIES; i++)
chs               317 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 			range->freq[chs].i = i + 1;
chs               318 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 			range->freq[chs].m = channel_freq[i];
chs               319 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 			range->freq[chs].e = 6;
chs               320 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 			chs++;
chs               322 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 	range->num_frequency = chs;
chs               323 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 	range->old_num_frequency = chs;
chs               324 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 	range->num_channels = chs;
chs               325 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 	range->old_num_channels = chs;
chs               245 drivers/slimbus/stream.c 		port->ch.id = cfg->chs[i];
chs               139 include/linux/slimbus.h 	unsigned int *chs;
chs                54 include/sound/hda_chmap.h 				hda_nid_t cvt_nid, int chs);
chs               205 sound/hda/hdmi_chmap.c 				   hda_nid_t cvt_nid, int chs)
chs               207 sound/hda/hdmi_chmap.c 	if (chs != hdmi_get_channel_count(codec, cvt_nid))
chs               209 sound/hda/hdmi_chmap.c 				    AC_VERB_SET_CVT_CHAN_COUNT, chs - 1);
chs               481 sound/hda/hdmi_chmap.c static int hdmi_manual_channel_allocation(int chs, unsigned char *map)
chs               485 sound/hda/hdmi_chmap.c 	for (i = 0; i < chs; i++) {
chs               495 sound/hda/hdmi_chmap.c 		if ((chs == channel_allocations[i].channels ||
chs               507 sound/hda/hdmi_chmap.c 					     int chs, unsigned char *map,
chs               514 sound/hda/hdmi_chmap.c 	for (alsa_pos = 0; alsa_pos < chs; alsa_pos++) {
chs               671 sound/hda/hdmi_chmap.c 	int chs, count = 0;
chs               688 sound/hda/hdmi_chmap.c 	for (chs = 2; chs <= max_chs; chs++) {
chs               694 sound/hda/hdmi_chmap.c 			int chs_bytes = chs * 4;
chs               697 sound/hda/hdmi_chmap.c 			if (cap->channels != chs)
chs               704 sound/hda/hdmi_chmap.c 							chmap, cap, chs);
chs               724 sound/hda/hdmi_chmap.c 						tlv_chmap, chs);
chs               728 sound/hda/hdmi_chmap.c 			dst += chs;
chs               429 sound/pci/ctxfi/ctpcm.c 	int chs;
chs               457 sound/pci/ctxfi/ctpcm.c 	chs = 2;
chs               460 sound/pci/ctxfi/ctpcm.c 		chs = 8;
chs               476 sound/pci/ctxfi/ctpcm.c 	err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, map, chs,
chs               293 sound/pci/hda/hda_beep.c 	int chs = get_amp_channels(kcontrol);
chs               296 sound/pci/hda/hda_beep.c 		if (chs & 1)
chs               298 sound/pci/hda/hda_beep.c 		if (chs & 2)
chs               317 sound/pci/hda/hda_beep.c 		u8 chs = get_amp_channels(kcontrol);
chs               320 sound/pci/hda/hda_beep.c 		if (chs & 1) {
chs               324 sound/pci/hda/hda_beep.c 		if (chs & 2)
chs              1403 sound/pci/hda/hda_codec.c 	u8 chs = get_amp_channels(kcontrol);
chs              1408 sound/pci/hda/hda_codec.c 	uinfo->count = chs == 3 ? 2 : 1;
chs              1466 sound/pci/hda/hda_codec.c 	int chs = get_amp_channels(kcontrol);
chs              1472 sound/pci/hda/hda_codec.c 	if (chs & 1)
chs              1474 sound/pci/hda/hda_codec.c 	if (chs & 2)
chs              1493 sound/pci/hda/hda_codec.c 	int chs = get_amp_channels(kcontrol);
chs              1500 sound/pci/hda/hda_codec.c 	if (chs & 1) {
chs              1504 sound/pci/hda/hda_codec.c 	if (chs & 2)
chs              2098 sound/pci/hda/hda_codec.c 	int chs = get_amp_channels(kcontrol);
chs              2101 sound/pci/hda/hda_codec.c 	uinfo->count = chs == 3 ? 2 : 1;
chs              2121 sound/pci/hda/hda_codec.c 	int chs = get_amp_channels(kcontrol);
chs              2126 sound/pci/hda/hda_codec.c 	if (chs & 1)
chs              2129 sound/pci/hda/hda_codec.c 	if (chs & 2)
chs              2149 sound/pci/hda/hda_codec.c 	int chs = get_amp_channels(kcontrol);
chs              2155 sound/pci/hda/hda_codec.c 	if (chs & 1) {
chs              2161 sound/pci/hda/hda_codec.c 	if (chs & 2)
chs              3739 sound/pci/hda/hda_codec.c 	int chs = substream->runtime->channels;
chs              3747 sound/pci/hda/hda_codec.c 		if (chs == 2 && spdif != NULL &&
chs              3778 sound/pci/hda/hda_codec.c 		if (chs >= (i + 1) * 2) /* independent out */
chs              3791 sound/pci/hda/hda_codec.c 		if (chs >= (i + 1) * 2)
chs               542 sound/pci/hda/hda_generic.c static unsigned int amp_val_replace_channels(unsigned int val, unsigned int chs)
chs               545 sound/pci/hda/hda_generic.c 	val |= chs << 16;
chs              1009 sound/pci/hda/hda_generic.c 		       unsigned int chs, struct nid_path *path)
chs              1017 sound/pci/hda/hda_generic.c 	val = amp_val_replace_channels(val, chs);
chs              1025 sound/pci/hda/hda_generic.c 	int chs = 1; /* mono (left only) */
chs              1029 sound/pci/hda/hda_generic.c 			chs = 3; /* stereo */
chs              1031 sound/pci/hda/hda_generic.c 	return chs;
chs              1037 sound/pci/hda/hda_generic.c 	int chs = get_default_ch_nums(codec, path, NID_PATH_VOL_CTL);
chs              1038 sound/pci/hda/hda_generic.c 	return add_vol_ctl(codec, pfx, cidx, chs, path);
chs              1045 sound/pci/hda/hda_generic.c 		      unsigned int chs, struct nid_path *path)
chs              1055 sound/pci/hda/hda_generic.c 	val = amp_val_replace_channels(val, chs);
chs              1070 sound/pci/hda/hda_generic.c 	int chs = get_default_ch_nums(codec, path, NID_PATH_MUTE_CTL);
chs              1071 sound/pci/hda/hda_generic.c 	return add_sw_ctl(codec, pfx, cidx, chs, path);
chs              2311 sound/pci/hda/hda_generic.c 	int chs;
chs              2318 sound/pci/hda/hda_generic.c 	chs = uinfo->value.enumerated.item * 2 + spec->min_channel_count;
chs              2319 sound/pci/hda/hda_generic.c 	sprintf(uinfo->value.enumerated.name, "%dch", chs);
chs              3601 sound/pci/hda/hda_generic.c 	unsigned int chs = inv_dmic ? 1 : 3;
chs              3614 sound/pci/hda/hda_generic.c 			   amp_val_replace_channels(ctl, chs));
chs                26 sound/pci/hda/hda_local.h #define HDA_COMPOSE_AMP_VAL_OFS(nid,chs,idx,dir,ofs)		\
chs                27 sound/pci/hda/hda_local.h 	((nid) | ((chs)<<16) | ((dir)<<18) | ((idx)<<19) | ((ofs)<<23))
chs                29 sound/pci/hda/hda_local.h #define HDA_COMPOSE_AMP_VAL(nid,chs,idx,dir) \
chs                30 sound/pci/hda/hda_local.h 	HDA_COMPOSE_AMP_VAL_OFS(nid, chs, idx, dir, 0)
chs              3868 sound/pci/hda/patch_ca0132.c 	int chs = get_amp_channels(kcontrol);
chs              3870 sound/pci/hda/patch_ca0132.c 	uinfo->count = chs == 3 ? 2 : 1;
chs              3903 sound/pci/hda/patch_ca0132.c 	int chs = get_amp_channels(kcontrol);
chs              3905 sound/pci/hda/patch_ca0132.c 	uinfo->count = chs == 3 ? 2 : 1;
chs              3938 sound/pci/hda/patch_ca0132.c 	int chs = get_amp_channels(kcontrol);
chs              3940 sound/pci/hda/patch_ca0132.c 	uinfo->count = chs == 3 ? 2 : 1;
chs              5213 sound/pci/hda/patch_ca0132.c 	int chs = get_amp_channels(kcontrol);
chs              5216 sound/pci/hda/patch_ca0132.c 	uinfo->count = chs == 3 ? 2 : 1;
chs              3263 sound/pci/hda/patch_hdmi.c 	int chs;
chs              3274 sound/pci/hda/patch_hdmi.c 	chs = substream->runtime->channels;
chs              3309 sound/pci/hda/patch_hdmi.c 		if (chs == 2)
chs              3352 sound/pci/hda/patch_hdmi.c 	nvhdmi_8ch_7x_set_info_frame_parameters(codec, chs);
chs              3472 sound/pci/hda/patch_hdmi.c 		int ca, int chs, unsigned char *map)
chs              3745 sound/pci/hda/patch_hdmi.c 			int ca, int chs, unsigned char *map)
chs              3753 sound/pci/hda/patch_hdmi.c 	for (i = 0; i < chs; ++i) {
chs              3767 sound/pci/hda/patch_hdmi.c 				if (i % 2 == 0 && i + 1 < chs) {
chs               710 sound/pci/ice1712/ice1724.c 	int i, chs, err;
chs               712 sound/pci/ice1712/ice1724.c 	chs = params_channels(hw_params);
chs               717 sound/pci/ice1712/ice1724.c 		chs = chs / 2 - 1;
chs               718 sound/pci/ice1712/ice1724.c 		for (i = 0; i < chs; i++) {
chs              1031 sound/pci/ice1712/ice1724.c 	int chs, num_indeps;
chs              1042 sound/pci/ice1712/ice1724.c 	for (chs = 0; chs < num_indeps; chs++) {
chs              1043 sound/pci/ice1712/ice1724.c 		if (ice->pcm_reserved[chs])
chs              1046 sound/pci/ice1712/ice1724.c 	chs = (chs + 1) * 2;
chs              1047 sound/pci/ice1712/ice1724.c 	runtime->hw.channels_max = chs;
chs              1048 sound/pci/ice1712/ice1724.c 	if (chs > 2) /* channels must be even */
chs              1497 sound/pci/intel8x0.c 		int chs = 2;
chs              1499 sound/pci/intel8x0.c 			chs = 8;
chs              1501 sound/pci/intel8x0.c 			chs = 6;
chs              1503 sound/pci/intel8x0.c 			chs = 4;
chs              1505 sound/pci/intel8x0.c 					     snd_pcm_alt_chmaps, chs, 0,
chs              1729 sound/soc/codecs/wcd9335.c 	cfg->chs = kcalloc(cfg->ch_count, sizeof(unsigned int), GFP_KERNEL);
chs              1730 sound/soc/codecs/wcd9335.c 	if (!cfg->chs)
chs              1735 sound/soc/codecs/wcd9335.c 		cfg->chs[i++] = ch->ch_num;
chs              1781 sound/soc/codecs/wcd9335.c 	kfree(cfg->chs);
chs              1782 sound/soc/codecs/wcd9335.c 	cfg->chs = NULL;
chs              3031 sound/soc/codecs/wcd9335.c 		kfree(dai->sconfig.chs);
chs               132 sound/soc/intel/skylake/skl-topology.c static void skl_tplg_update_chmap(struct skl_module_fmt *fmt, int chs)
chs               138 sound/soc/intel/skylake/skl-topology.c 	for (i = 0; i < chs; i++) {