Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A 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()
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()
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
35 struct mlx5e_channel *c = mlx5e_channels_get(chs, ix); in mlx5e_channels_get_xsk_rqn()
42 bool mlx5e_channels_get_ptp_rqn(struct mlx5e_channels *chs, u32 *rqn) in mlx5e_channels_get_ptp_rqn() argument
[all …]
H A Dqos.c13 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()
81 params = &chs->params; in mlx5e_open_qos_sq()
113 c = chs->c[ix]; in mlx5e_open_qos_sq()
257 for (i = 0; i < chs->num; i++) in mlx5e_qos_close_all_queues()
258 mlx5e_qos_close_queues(chs->c[i]); in mlx5e_qos_close_all_queues()
268 for (i = 0; i < chs->num; i++) { in mlx5e_qos_alloc_queues()
300 err = mlx5e_qos_alloc_queues(priv, chs); in mlx5e_qos_open_queues()
305 callback_params.chs = chs; in mlx5e_qos_open_queues()
309 mlx5e_qos_close_all_queues(chs); in mlx5e_qos_open_queues()
[all …]
H A 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);
H A 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);
H A Drx_res.c487 struct mlx5e_channels *chs, in mlx5e_rx_res_channel_activate_direct() 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()
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()
571 mlx5e_channels_get_xsk_rqn(chs, ix, &res->rss_rqns[ix]); in mlx5e_rx_res_xsk_update()
573 mlx5e_channels_get_regular_rqn(chs, ix, &res->rss_rqns[ix]); in mlx5e_rx_res_xsk_update()
[all …]
H A 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,
H A 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()
/openbmc/u-boot/tools/
H A Domapimage.c70 if (chs->section_key) in omapimage_print_section()
81 chs->section_key, in omapimage_print_section()
82 chs->valid, in omapimage_print_section()
83 chs->version, in omapimage_print_section()
84 chs->reserved, in omapimage_print_section()
85 chs->flags); in omapimage_print_section()
138 chs->section_key = KEY_CHSETTINGS; in omapimage_set_header()
139 chs->valid = 0; in omapimage_set_header()
140 chs->version = 1; in omapimage_set_header()
141 chs->reserved = 0; in omapimage_set_header()
[all …]
/openbmc/qemu/pc-bios/s390-ccw/
H A Dbootmap.c81 *c = ptr->ldptr.chs.cylinder; in eckd_format_chs()
82 *h = ptr->ldptr.chs.head; in eckd_format_chs()
83 *s = ptr->ldptr.chs.sector; in eckd_format_chs()
85 *c = ptr->bptr.chs.cylinder; in eckd_format_chs()
86 *h = ptr->bptr.chs.head; in eckd_format_chs()
87 *s = ptr->bptr.chs.sector; in eckd_format_chs()
103 static block_number_t eckd_block_num(EckdCHS *chs) in eckd_block_num() argument
105 return eckd_chs_to_block(chs->cylinder, chs->head, chs->sector); in eckd_block_num()
240 cur_block_nr = eckd_block_num(&s1b->seek[i].chs); in eckd_get_boot_menu_index()
364 s1b_block_nr = eckd_block_num(&ipl2->stage1.seek[0].chs); in ipl_eckd_cdl()
[all …]
H A Dbootmap.h42 EckdCHS chs; /* cylinder/head/sector is an address of the block */ member
55 LdEckdCHS chs; /* cylinder/head/sector is an address of the block */ member
283 EckdCHS chs; member
/openbmc/qemu/tests/qemu-iotests/
H A D14668 echo === Testing VPC with chs force ===
95 echo === Testing Hyper-V with chs force ===
122 echo === Testing d2v with chs force ===
148 echo === Read created image, force_size_calc=chs ====
178 echo === Read created image, force_size_calc=chs ====
/openbmc/linux/sound/hda/
H A Dhdmi_chmap.c205 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 …]
/openbmc/linux/sound/pci/hda/
H A 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()
H A Dpatch_cs8409.c495 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()
516 if (chs & BIT(0)) in cs42l42_mute()
518 if (chs & BIT(1)) in cs42l42_mute()
521 if (chs & BIT(0)) in cs42l42_mute()
526 if (chs & BIT(0)) in cs42l42_mute()
530 if (chs & BIT(1)) in cs42l42_mute()
535 if (chs & BIT(0)) in cs42l42_mute()
554 if (chs & BIT(0)) in cs42l42_volume_put()
[all …]
H A Dhda_codec.c1465 uinfo->count = chs == 3 ? 2 : 1; in snd_hda_mixer_amp_volume_info()
1529 if (chs & 1) in snd_hda_mixer_amp_volume_get()
1531 if (chs & 2) in snd_hda_mixer_amp_volume_get()
1557 if (chs & 1) { in snd_hda_mixer_amp_volume_put()
1561 if (chs & 2) in snd_hda_mixer_amp_volume_put()
2103 uinfo->count = chs == 3 ? 2 : 1; in snd_hda_mixer_amp_switch_info()
2128 if (chs & 1) in snd_hda_mixer_amp_switch_get()
2131 if (chs & 2) in snd_hda_mixer_amp_switch_get()
2157 if (chs & 1) { in snd_hda_mixer_amp_switch_put()
2163 if (chs & 2) in snd_hda_mixer_amp_switch_put()
[all …]
H A 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)
/openbmc/linux/drivers/hwtracing/coresight/
H A 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 …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_main.c2564 chs->num = chs->params.num_channels; in mlx5e_open_channels()
2587 err = mlx5e_ptp_open(priv, &chs->params, chs->c[0]->lag_port, &chs->ptp); in mlx5e_open_channels()
2603 if (chs->ptp) in mlx5e_open_channels()
2611 kfree(chs->c); in mlx5e_open_channels()
2613 chs->num = 0; in mlx5e_open_channels()
2630 if (chs->ptp) in mlx5e_activate_channels()
2660 if (chs->ptp) in mlx5e_deactivate_channels()
2672 if (chs->ptp) { in mlx5e_close_channels()
2679 kfree(chs->c); in mlx5e_close_channels()
2680 chs->num = 0; in mlx5e_close_channels()
[all …]
/openbmc/linux/sound/pci/ctxfi/
H A 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()
/openbmc/qemu/.gitlab-ci.d/
H A Dbuildtest-template.yml99 du -chs ${CI_PROJECT_DIR}/avocado-cache ;
104 - du -chs ${CI_PROJECT_DIR}/avocado-cache
/openbmc/qemu/tests/qtest/
H A Dhd-geo-test.c522 CHS chs; member
550 &(r->chs.c), &(r->chs.h), &(r->chs.s)); in read_bootdevices()
567 !memcmp(&(r->chs), &(expected[i].chs), sizeof(r->chs))) { in read_bootdevices()
/openbmc/linux/drivers/net/ethernet/ti/
H A 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()
H A 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()
/openbmc/linux/include/sound/
H A Dhda_chmap.h54 hda_nid_t cvt_nid, int chs);
/openbmc/linux/sound/pci/ice1712/
H A 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()

12