Home
last modified time | relevance | path

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

1234

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dchannels.c1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
8 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()
23 return test_bit(MLX5E_CHANNEL_STATE_XSK, c->state); 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
[all …]
H A Dqos.c1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
13 struct mlx5e_channels *chs; member
21 return -EINVAL; in mlx5e_qos_bytes_rate_check()
38 u16 mlx5e_qid_from_qos(struct mlx5e_channels *chs, u16 qid) in mlx5e_qid_from_qos() argument
41 * 1. This function is called only after checking selq->htb_maj_id != 0, in mlx5e_qid_from_qos()
43 * 2. When selq->htb_maj_id becomes 0, synchronize_rcu waits for in mlx5e_qid_from_qos()
44 * mlx5e_select_queue to finish while holding priv->state_lock, in mlx5e_qid_from_qos()
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()
56 struct mlx5e_params *params = &priv->channels.params; in mlx5e_get_qos_sq()
[all …]
H A Dchannels.h1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
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);
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.h1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
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 Drx_res.c1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
40 bool inner_ft_support = res->features & MLX5E_RX_RES_FEATURE_INNER_FT; in mlx5e_rx_res_rss_init_def()
44 if (WARN_ON(res->rss[0])) in mlx5e_rx_res_rss_init_def()
45 return -EINVAL; in mlx5e_rx_res_rss_init_def()
49 return -ENOMEM; in mlx5e_rx_res_rss_init_def()
51 err = mlx5e_rss_init(rss, res->mdev, inner_ft_support, res->drop_rqn, in mlx5e_rx_res_rss_init_def()
52 &res->pkt_merge_param); in mlx5e_rx_res_rss_init_def()
58 res->rss[0] = rss; in mlx5e_rx_res_rss_init_def()
69 bool inner_ft_support = res->features & MLX5E_RX_RES_FEATURE_INNER_FT; in mlx5e_rx_res_rss_init()
74 if (!res->rss[i]) in mlx5e_rx_res_rss_init()
[all …]
H A Drx_res.h1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
39 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.c1 /* SPDX-License-Identifier: GPL-2.0 */
24 struct mlx5_core_dev *dev = sq->mdev; in mlx5e_wait_for_sq_flush()
30 if (sq->cc == sq->pc) in mlx5e_wait_for_sq_flush()
36 netdev_err(sq->netdev, in mlx5e_wait_for_sq_flush()
38 sq->sqn, sq->cc, sq->pc); in mlx5e_wait_for_sq_flush()
40 return -ETIMEDOUT; in mlx5e_wait_for_sq_flush()
45 WARN_ONCE(sq->cc != sq->pc, in mlx5e_reset_txqsq_cc_pc()
47 sq->sqn, sq->cc, sq->pc); in mlx5e_reset_txqsq_cc_pc()
48 sq->cc = 0; in mlx5e_reset_txqsq_cc_pc()
49 sq->dma_fifo_cc = 0; in mlx5e_reset_txqsq_cc_pc()
[all …]
/openbmc/u-boot/tools/
H A Domapimage.c1 // SPDX-License-Identifier: GPL-2.0+
13 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
22 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
46 while (toc->section_offset != 0xffffffff in omapimage_verify_header()
47 && toc->section_size != 0xffffffff) { in omapimage_verify_header()
49 offset = cpu_to_be32(toc->section_offset); in omapimage_verify_header()
50 size = cpu_to_be32(toc->section_size); in omapimage_verify_header()
52 offset = toc->section_offset; in omapimage_verify_header()
53 size = toc->section_size; in omapimage_verify_header()
56 return -1; in omapimage_verify_header()
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D14653 _use_sample_img virtualpc-dynamic.vhd.bz2
55 $QEMU_IMG map --output=json --image-opts \
63 $QEMU_IMG map --output=json --image-opts \
68 echo === Testing VPC with chs force ===
71 $QEMU_IMG map --output=json --image-opts \
72 "driver=vpc,force_size_calc=chs,file.filename=$TEST_IMG" \
78 echo === Testing Hyper-V Autodetect ===
80 _use_sample_img hyperv2012r2-dynamic.vhd.bz2
82 $QEMU_IMG map --output=json --image-opts \
87 echo === Testing Hyper-V with current_size force ===
[all …]
H A D26636 'file': 'protocol-node',
50 'file': 'protocol-node',
53 'force-size': False })
56 # Successful image creation (non-default options)
58 iotests.log("=== Successful image creation (non-default options) ===")
61 # Not representable in CHS (fine with force-size=True)
65 'file': 'protocol-node',
68 'force-size': True })
71 # Size not representable in CHS with force-size=False
73 iotests.log("=== Size not representable in CHS ===")
[all …]
H A D266.out1 --- Creating empty file ---
2 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filen…
4 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
7 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "node
12 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "vpc", "file":…
14 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
23 --- Creating empty file ---
24 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filen…
26 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
29 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.vpc", "node
[all …]
/openbmc/linux/block/partitions/
H A Defi.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
74 * uint8_t reserved2[ BlockSize - 92 ];
95 u8 start_head; /* unused by EFI, pt start in CHS */
96 u8 start_sector; /* unused by EFI, pt start in CHS */
98 u8 os_type; /* EFI and legacy non-EFI OS types */
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 */
102 __le32 starting_lba; /* used by EFI - start addr of the on disk pt */
103 __le32 size_in_lba; /* used by EFI - size of pt in LBA */
/openbmc/linux/sound/hda/
H A Dhdmi_chmap.c1 // SPDX-License-Identifier: GPL-2.0-only
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()
226 p->channels = 0; in init_channel_allocations()
227 p->spk_mask = 0; in init_channel_allocations()
228 for (j = 0; j < ARRAY_SIZE(p->speakers); j++) in init_channel_allocations()
229 if (p->speakers[j]) { in init_channel_allocations()
230 p->channels++; in init_channel_allocations()
231 p->spk_mask |= p->speakers[j]; in init_channel_allocations()
[all …]
/openbmc/qemu/tests/qtest/
H A Dhd-geo-test.c10 * See the COPYING file in the top-level directory.
24 #include "standard-headers/linux/qemu_fw_cfg.h"
64 [backend_empty] = -1,
86 return expected_chst && expected_chst->cyls; in is_hd()
120 int c = expected_chst->cyls; in test_cmos_drive_cyl()
121 int h = expected_chst->heads; in test_cmos_drive_cyl()
122 int s = expected_chst->secs; in test_cmos_drive_cyl()
156 val |= cur_ide[i]->trans << (2 * i); in test_cmos_disktransflag()
183 g_strdup("-nodefaults")); in setup_common()
185 g_strdup("-machine")); in setup_common()
[all …]
/openbmc/linux/sound/pci/hda/
H A Dhda_beep.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Digital Beep Input Interface for HD-audio codec
26 struct hda_codec *codec = beep->codec; in generate_tone()
28 if (tone && !beep->playing) { in generate_tone()
30 if (beep->power_hook) in generate_tone()
31 beep->power_hook(beep, true); in generate_tone()
32 beep->playing = 1; in generate_tone()
34 snd_hda_codec_write(codec, beep->nid, 0, in generate_tone()
36 if (!tone && beep->playing) { in generate_tone()
37 beep->playing = 0; in generate_tone()
[all …]
H A Dpatch_cs8409.c1 // SPDX-License-Identifier: GPL-2.0-or-later
24 struct cs8409_spec *spec = codec->spec; in cs8409_parse_auto_config()
28 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); in cs8409_parse_auto_config()
32 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in cs8409_parse_auto_config()
37 if (spec->gen.dyn_adc_switch) { in cs8409_parse_auto_config()
40 for (i = 0; i < spec->gen.input_mux.num_items; i++) { in cs8409_parse_auto_config()
41 int idx = spec->gen.dyn_adc_idx[i]; in cs8409_parse_auto_config()
45 snd_hda_gen_fix_pin_power(codec, spec->gen.adc_nids[idx]); in cs8409_parse_auto_config()
62 codec->spec = spec; in cs8409_alloc_spec()
63 spec->codec = codec; in cs8409_alloc_spec()
[all …]
/openbmc/qemu/pc-bios/s390-ccw/
H A Dbootmap.c7 * your option) any later version. See the COPYING file in the top-level
13 #include "s390-ccw.h"
14 #include "s390-arch.h"
49 return !memcmp(&vd->ident[0], vol_desc_magic, 5) && in is_iso_vd_valid()
50 vd->version == 0x1 && in is_iso_vd_valid()
51 vd->type <= VOL_DESC_TYPE_PARTITION; in is_iso_vd_valid()
67 if (!magic_match(bip->magic, ZIPL_MAGIC)) { in verify_boot_info()
69 return -EINVAL; in verify_boot_info()
71 if (bip->version != BOOT_INFO_VERSION) { in verify_boot_info()
73 return -EINVAL; in verify_boot_info()
[all …]
/openbmc/linux/drivers/hwtracing/coresight/
H A Dcoresight-stm.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
8 * (C) 2014-2015 Pratik Patel <pratikp@codeaurora.org>
12 * (C) 2015-2016 Mathieu Poirier <mathieu.poirier@linaro.org>
16 * (C) 2015-2016 Chunyan Zhang <zhang.chunyan@linaro.org>
24 #include <linux/coresight-stm.h>
33 #include "coresight-priv.h"
34 #include "coresight-trace-id.h"
86 #define stm_channel_addr(drvdata, ch) (drvdata->chs.base + \
101 * struct channel_space - central management entity for extended ports
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_main.c2 * Copyright (c) 2015-2016, Mellanox Technologies. All rights reserved.
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
97 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_update_carrier()
106 if (up == netif_carrier_ok(priv->netdev)) in mlx5e_update_carrier()
107 netif_carrier_event(priv->netdev); in mlx5e_update_carrier()
109 netdev_info(priv->netdev, "Link up\n"); in mlx5e_update_carrier()
110 netif_carrier_on(priv->netdev); in mlx5e_update_carrier()
112 netdev_info(priv->netdev, "Link down\n"); in mlx5e_update_carrier()
113 netif_carrier_off(priv->netdev); in mlx5e_update_carrier()
[all …]
/openbmc/qemu/block/
H A Dvpc.c30 #include "sysemu/block-backend.h"
38 #include "qapi/qobject-input-visitor.h"
39 #include "qapi/qapi-visit-block-core.h"
63 /* always big-endian */
122 /* Backing file name (in UTF-16) */
164 .name = "vpc-runtime-opts",
170 .help = "Force disk size calculation to use either CHS geometry, "
172 "{chs, current_size}"
203 BDRVVPCState *s = bs->opaque; in vpc_parse_options()
211 s->force_use_sz = true; in vpc_parse_options()
[all …]
/openbmc/linux/sound/pci/ctxfi/
H A Dctpcm.c1 // SPDX-License-Identifier: GPL-2.0-only
97 if (!apcm->substream) in ct_atc_pcm_interrupt()
100 snd_pcm_period_elapsed(apcm->substream); in ct_atc_pcm_interrupt()
105 struct ct_atc_pcm *apcm = runtime->private_data; in ct_atc_pcm_free_substream()
106 struct ct_atc *atc = snd_pcm_substream_chip(apcm->substream); in ct_atc_pcm_free_substream()
108 atc->pcm_release_resources(atc, apcm); in ct_atc_pcm_free_substream()
109 ct_timer_instance_free(apcm->timer); in ct_atc_pcm_free_substream()
111 runtime->private_data = NULL; in ct_atc_pcm_free_substream()
118 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_open()
124 return -ENOMEM; in ct_pcm_playback_open()
[all …]
/openbmc/qemu/.gitlab-ci.d/
H A Dbuildtest-template.yml7 - ccache
11 - source scripts/ci/gitlab-ci-section
12 - section_start setup "Pre-script setup"
13 - JOBS=$(expr $(nproc) + 1)
14 - cat /packages.txt
15 - section_end setup
17 - export CCACHE_BASEDIR="$(pwd)"
18 - export CCACHE_DIR="$CCACHE_BASEDIR/ccache"
19 - export CCACHE_MAXSIZE="500M"
20 - export PATH="$CCACHE_WRAPPERSDIR:$PATH"
[all …]
/openbmc/linux/scripts/
H A Dtags.sh2 # SPDX-License-Identifier: GPL-2.0-only
12 set -x
15 # RCS_FIND_IGNORE has escaped ()s -- remove them.
18 ignore="$ignore ( -name *.mod.c ) -prune -o"
21 if [ -n "${IGNORE_DIRS}" ]; then
23 ignore="${ignore} ( -path $i ) -prune -o"
28 # to force full paths for a non-O= build
29 if [ "${srctree}" = "." -o -z "${srctree}" ]; then
37 # the kernel source tree, index all files in absolute-path form.
38 if [[ "$1" == "gtags" && -n "${tree}" ]]; then
[all …]
/openbmc/linux/drivers/net/ethernet/ti/
H A Dcpsw_ethtool.c1 // SPDX-License-Identifier: GPL-2.0
111 { "Rx + Tx 65-127 Octet Frames", CPSW_STAT(octetframes65t127) },
112 { "Rx + Tx 128-255 Octet Frames", CPSW_STAT(octetframes128t255) },
113 { "Rx + Tx 256-511 Octet Frames", CPSW_STAT(octetframes256t511) },
114 { "Rx + Tx 512-1023 Octet Frames", CPSW_STAT(octetframes512t1023) },
115 { "Rx + Tx 1024-Up Octet Frames", CPSW_STAT(octetframes1024tup) },
145 return priv->msg_enable; in cpsw_get_msglevel()
152 priv->msg_enable = value; in cpsw_set_msglevel()
161 coal->rx_coalesce_usecs = cpsw->coal_intvl; in cpsw_get_coalesce()
175 struct cpsw_common *cpsw = priv->cpsw; in cpsw_set_coalesce()
[all …]
/openbmc/linux/include/linux/
H A Dslimbus.h1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2011-2017, The Linux Foundation
16 * struct slim_eaddr - Enumeration address for a SLIMbus device
30 * enum slim_device_status - slim device status
44 * struct slim_device - Slim device handle.
49 * @laddr: 1-byte Logical address of this device.
56 * Pointer to this structure is used by client-driver as a handle.
72 * struct slim_driver - SLIMbus 'generic device' (slave) device driver
78 * - The device reports present and gets a laddr assigned
79 * - The device reports absent, or the bus goes down.
[all …]

1234