Home
last modified time | relevance | path

Searched full:chs (Results 1 – 25 of 89) sorted by relevance

1234

/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()
13 static struct mlx5e_channel *mlx5e_channels_get(struct mlx5e_channels *chs, unsigned int ix) in mlx5e_channels_get() argument
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()
26 void mlx5e_channels_get_regular_rqn(struct mlx5e_channels *chs, unsigned int ix, u32 *rqn) in mlx5e_channels_get_regular_rqn() argument
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
[all …]
H A Dqos.c13 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
81 params = &chs->params; in mlx5e_open_qos_sq()
83 txq_ix = mlx5e_qid_from_qos(chs, node_qid); in mlx5e_open_qos_sq()
113 c = chs->c[ix]; in mlx5e_open_qos_sq()
151 return mlx5e_open_qos_sq(cb_params->priv, cb_params->chs, node_qid, hw_id); in mlx5e_open_qos_sq_cb_wrapper()
253 void mlx5e_qos_close_all_queues(struct mlx5e_channels *chs) in mlx5e_qos_close_all_queues() argument
[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
512 void mlx5e_rx_res_channels_activate(struct mlx5e_rx_res *res, struct mlx5e_channels *chs) in mlx5e_rx_res_channels_activate() 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()
523 mlx5e_channels_get_regular_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()
[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.c172 struct mlx5e_channels *chs; in mlx5e_tx_reporter_ptpsq_unhealthy_recover() local
184 chs = &priv->channels; in mlx5e_tx_reporter_ptpsq_unhealthy_recover()
192 mlx5e_ptp_close(chs->ptp); in mlx5e_tx_reporter_ptpsq_unhealthy_recover()
193 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.c66 static void omapimage_print_section(struct ch_settings *chs) in omapimage_print_section() argument
70 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()
130 struct ch_settings *chs = (struct ch_settings *) in omapimage_set_header() local
134 toc->section_offset = toc_offset(ptr, chs); in omapimage_set_header()
138 chs->section_key = KEY_CHSETTINGS; in omapimage_set_header()
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D14668 echo === Testing VPC with chs force ===
72 "driver=vpc,force_size_calc=chs,file.filename=$TEST_IMG" \
95 echo === Testing Hyper-V with chs force ===
99 "driver=vpc,force_size_calc=chs,file.filename=$TEST_IMG" \
122 echo === Testing d2v with chs force ===
126 "driver=vpc,force_size_calc=chs,file.filename=$TEST_IMG" \
148 echo === Read created image, force_size_calc=chs ====
152 "driver=vpc,force_size_calc=chs,file.filename=$TEST_IMG" \
178 echo === Read created image, force_size_calc=chs ====
182 "driver=vpc,force_size_calc=chs,file.filename=$TEST_IMG" \
H A D26661 # Not representable in CHS (fine with force-size=True)
71 # Size not representable in CHS with force-size=False
73 iotests.log("=== Size not representable in CHS ===")
76 # Not representable in CHS (will not work with force-size=False)
95 # Maximum CHS size
97 iotests.log("=== Maximum CHS size===")
H A D266.out75 === Size not representable in CHS ===
79 Job failed: The requested image size cannot be represented in CHS geometry
117 === Maximum CHS size===
/openbmc/linux/block/partitions/
H A Defi.h95 u8 start_head; /* unused by EFI, pt start in CHS */
96 u8 start_sector; /* unused by EFI, pt start in CHS */
99 u8 end_head; /* unused by EFI, pt end in CHS */
100 u8 end_sector; /* unused by EFI, pt end in CHS */
101 u8 end_track; /* unused by EFI, pt end in CHS */
/openbmc/linux/sound/hda/
H A Dhdmi_chmap.c205 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 …]
/openbmc/qemu/tests/qtest/
H A Dhd-geo-test.c194 /* chs 0,1,1 (lba 63) to chs 0,127,63 (8001 sectors) */ in setup_mbr()
198 /* chs 0,1,1 (lba 63) to chs 7,15,63 (8001 sectors) */ in setup_mbr()
309 * Test case: IDE devices (if=ide) with MBRs indicating CHS is in use
333 * Test case: IDE devices (if=none) with MBRs indicating CHS is in use
351 dev, trans ? "bios-chs-trans=lba," : "", in test_ide_drive_user()
366 * Test case: IDE device (if=none) with explicit CHS
374 * Test case: IDE device (if=none) with explicit CHS and translation
518 } CHS; typedef
522 CHS chs; member
550 &(r->chs.c), &(r->chs.h), &(r->chs.s)); in read_bootdevices()
[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.c462 u8 chs = get_amp_channels(kctrl); in cs42l42_volume_info() local
466 uinfo->count = chs == 3 ? 2 : 1; in cs42l42_volume_info()
489 int chs = get_amp_channels(kctrl); in cs42l42_volume_get() local
495 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()
512 unsigned int chs, bool mute) in cs42l42_mute() argument
516 if (chs & BIT(0)) in cs42l42_mute()
518 if (chs & BIT(1)) in cs42l42_mute()
521 if (chs & BIT(0)) in cs42l42_mute()
[all …]
/openbmc/qemu/pc-bios/s390-ccw/
H A Dbootmap.c101 *c = ptr->ldptr.chs.cylinder; in eckd_format_chs()
102 *h = ptr->ldptr.chs.head; in eckd_format_chs()
103 *s = ptr->ldptr.chs.sector; in eckd_format_chs()
105 *c = ptr->bptr.chs.cylinder; in eckd_format_chs()
106 *h = ptr->bptr.chs.head; in eckd_format_chs()
107 *s = ptr->bptr.chs.sector; in eckd_format_chs()
123 static block_number_t eckd_block_num(EckdCHS *chs) in eckd_block_num() argument
125 return eckd_chs_to_block(chs->cylinder, chs->head, chs->sector); in eckd_block_num()
277 cur_block_nr = eckd_block_num(&s1b->seek[i].chs); in eckd_get_boot_menu_index()
301 next_block_nr = eckd_block_num(&s1b->seek[i + 1].chs); in eckd_get_boot_menu_index()
[all …]
/openbmc/linux/drivers/hwtracing/coresight/
H A Dcoresight-stm.c86 #define stm_channel_addr(drvdata, ch) (drvdata->chs.base + \
120 * @chs: the channels accociated to this STM.
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()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_main.c2558 struct mlx5e_channels *chs) in mlx5e_open_channels() argument
2564 chs->num = chs->params.num_channels; in mlx5e_open_channels()
2566 chs->c = kcalloc(chs->num, sizeof(struct mlx5e_channel *), GFP_KERNEL); in mlx5e_open_channels()
2568 if (!chs->c || !cparam) in mlx5e_open_channels()
2571 err = mlx5e_build_channel_param(priv->mdev, &chs->params, priv->q_counter, cparam); in mlx5e_open_channels()
2575 for (i = 0; i < chs->num; i++) { in mlx5e_open_channels()
2578 if (chs->params.xdp_prog) in mlx5e_open_channels()
2579 xsk_pool = mlx5e_xsk_get_pool(&chs->params, chs->params.xsk, i); in mlx5e_open_channels()
2581 err = mlx5e_open_channel(priv, i, &chs->params, cparam, xsk_pool, &chs->c[i]); in mlx5e_open_channels()
2586 if (MLX5E_GET_PFLAG(&chs->params, MLX5E_PFLAG_TX_PORT_TS) || chs->params.ptp_rx) { in mlx5e_open_channels()
[all …]
/openbmc/qemu/block/
H A Dvpc.c170 .help = "Force disk size calculation to use either CHS geometry, "
172 "{chs, current_size}"
212 } else if (!strcmp(size_calc, "chs")) { in vpc_parse_options()
308 * VHD image sizes differently. VPC will rely on CHS geometry, in vpc_open()
312 * look at the Creator App field, and look for images that have CHS in vpc_open()
315 * If the CHS geometry is the maximum CHS geometry, then we assume that in vpc_open()
320 * 'vpc ' : CHS Virtual PC (uses disk geometry) in vpc_open()
321 * 'qemu' : CHS QEMU (uses disk geometry) in vpc_open()
330 * that have CHS geometry of the maximum size. in vpc_open()
935 * If the image size can't be represented by a spec conformant CHS geometry, in calculate_rounded_image_size()
[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.yml119 du -chs ${CI_PROJECT_DIR}/*-cache ;
126 - du -chs ${CI_PROJECT_DIR}/*-cache
/openbmc/linux/scripts/
H A Dtags.sh91 find_arch_include_sources ${SRCARCH} '*.[chS]'
93 find_arch_include_sources $archinclude '*.[chS]'
95 find_include_sources '*.[chS]'
98 find_sources $arch '*.[chS]'
100 find_other_sources '*.[chS]'
/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()
/openbmc/linux/include/linux/
H A Dslimbus.h129 * @chs: pointer to list of channel numbers
139 unsigned int *chs; member

1234