Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 1466) sorted by relevance

12345678910>>...59

/openbmc/u-boot/include/fsl-mc/
H A Dfsl_dprc.h38 #define DPRC_RSP_GET_CONTAINER_ID(cmd, container_id) \ argument
39 MC_RSP_OP(cmd, 0, 0, 32, int, container_id)
42 #define DPRC_CMD_OPEN(cmd, container_id) \ argument
43 MC_CMD_OP(cmd, 0, 0, 32, int, container_id)
46 #define DPRC_CMD_CREATE_CONTAINER(cmd, cfg) \ argument
48 MC_CMD_OP(cmd, 0, 32, 16, uint16_t, cfg->icid); \
49 MC_CMD_OP(cmd, 0, 0, 32, uint32_t, cfg->options); \
50 MC_CMD_OP(cmd, 1, 32, 32, int, cfg->portal_id); \
51 MC_CMD_OP(cmd, 2, 0, 8, char, cfg->label[0]);\
52 MC_CMD_OP(cmd, 2, 8, 8, char, cfg->label[1]);\
[all …]
H A Dfsl_dpni.h47 #define DPNI_CMD_OPEN(cmd, dpni_id) \ argument
48 MC_CMD_OP(cmd, 0, 0, 32, int, dpni_id)
75 #define DPNI_CMD_CREATE(cmd, cfg) \ argument
77 MC_CMD_OP(cmd, 0, 0, 32, uint32_t, cfg->adv.options); \
78 MC_CMD_OP(cmd, 0, 32, 8, uint8_t, cfg->adv.num_queues); \
79 MC_CMD_OP(cmd, 0, 40, 8, uint8_t, cfg->adv.num_tcs); \
80 MC_CMD_OP(cmd, 0, 48, 8, uint8_t, cfg->adv.mac_entries); \
81 MC_CMD_OP(cmd, 1, 0, 8, uint8_t, cfg->adv.vlan_entries); \
82 MC_CMD_OP(cmd, 1, 16, 8, uint8_t, cfg->adv.qos_entries); \
83 MC_CMD_OP(cmd, 1, 32, 16, uint8_t, cfg->adv.fs_entries); \
[all …]
H A Dfsl_dpmac.h34 #define DPMAC_CMD_CREATE(cmd, cfg) \ argument
35 MC_CMD_OP(cmd, 0, 0, 16, uint16_t, cfg->mac_id)
38 #define DPMAC_CMD_OPEN(cmd, dpmac_id) \ argument
39 MC_CMD_OP(cmd, 0, 0, 32, int, dpmac_id)
42 #define DPMAC_RSP_GET_ATTRIBUTES(cmd, attr) \ argument
44 MC_RSP_OP(cmd, 0, 0, 32, int, attr->phy_id);\
45 MC_RSP_OP(cmd, 0, 32, 32, int, attr->id);\
46 MC_RSP_OP(cmd, 1, 32, 8, enum dpmac_link_type, attr->link_type);\
47 MC_RSP_OP(cmd, 1, 40, 8, enum dpmac_eth_if, attr->eth_if);\
48 MC_RSP_OP(cmd, 2, 0, 32, uint32_t, attr->max_rate);\
[all …]
/openbmc/u-boot/drivers/net/fsl-mc/
H A Ddpni.c36 struct mc_command cmd = { 0 }; in dpni_open() local
40 cmd.header = mc_encode_cmd_header(DPNI_CMDID_OPEN, in dpni_open()
43 DPNI_CMD_OPEN(cmd, dpni_id); in dpni_open()
46 err = mc_send_command(mc_io, &cmd); in dpni_open()
51 *token = MC_CMD_HDR_READ_TOKEN(cmd.header); in dpni_open()
60 struct mc_command cmd = { 0 }; in dpni_close() local
63 cmd.header = mc_encode_cmd_header(DPNI_CMDID_CLOSE, in dpni_close()
68 return mc_send_command(mc_io, &cmd); in dpni_close()
77 struct mc_command cmd = { 0 }; in dpni_create() local
81 cmd.header = mc_encode_cmd_header(DPNI_CMDID_CREATE, in dpni_create()
[all …]
H A Ddprc.c17 struct mc_command cmd = { 0 }; in dprc_get_container_id() local
21 cmd.header = mc_encode_cmd_header(DPRC_CMDID_GET_CONT_ID, in dprc_get_container_id()
26 err = mc_send_command(mc_io, &cmd); in dprc_get_container_id()
31 DPRC_RSP_GET_CONTAINER_ID(cmd, *container_id); in dprc_get_container_id()
41 struct mc_command cmd = { 0 }; in dprc_open() local
45 cmd.header = mc_encode_cmd_header(DPRC_CMDID_OPEN, cmd_flags, in dprc_open()
47 DPRC_CMD_OPEN(cmd, container_id); in dprc_open()
50 err = mc_send_command(mc_io, &cmd); in dprc_open()
55 *token = MC_CMD_HDR_READ_TOKEN(cmd.header); in dprc_open()
64 struct mc_command cmd = { 0 }; in dprc_close() local
[all …]
H A Ddpmac.c19 struct mc_command cmd = { 0 }; in dpmac_open() local
23 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_OPEN, in dpmac_open()
26 DPMAC_CMD_OPEN(cmd, dpmac_id); in dpmac_open()
29 err = mc_send_command(mc_io, &cmd); in dpmac_open()
34 *token = MC_CMD_HDR_READ_TOKEN(cmd.header); in dpmac_open()
43 struct mc_command cmd = { 0 }; in dpmac_close() local
46 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_CLOSE, cmd_flags, in dpmac_close()
50 return mc_send_command(mc_io, &cmd); in dpmac_close()
59 struct mc_command cmd = { 0 }; in dpmac_create() local
63 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_CREATE, in dpmac_create()
[all …]
H A Ddpbp.c17 struct mc_command cmd = { 0 }; in dpbp_open() local
21 cmd.header = mc_encode_cmd_header(DPBP_CMDID_OPEN, in dpbp_open()
24 DPBP_CMD_OPEN(cmd, dpbp_id); in dpbp_open()
27 err = mc_send_command(mc_io, &cmd); in dpbp_open()
32 *token = MC_CMD_HDR_READ_TOKEN(cmd.header); in dpbp_open()
41 struct mc_command cmd = { 0 }; in dpbp_close() local
44 cmd.header = mc_encode_cmd_header(DPBP_CMDID_CLOSE, cmd_flags, in dpbp_close()
48 return mc_send_command(mc_io, &cmd); in dpbp_close()
57 struct mc_command cmd = { 0 }; in dpbp_create() local
63 cmd.header = mc_encode_cmd_header(DPBP_CMDID_CREATE, in dpbp_create()
[all …]
/openbmc/qemu/tests/qtest/libqos/
H A Dahci.c37 uint8_t cmd; /* Command Code */ member
52 { .cmd = CMD_READ_PIO, .data = true, .pio = true,
54 { .cmd = CMD_WRITE_PIO, .data = true, .pio = true,
56 { .cmd = CMD_READ_PIO_EXT, .data = true, .pio = true,
58 { .cmd = CMD_WRITE_PIO_EXT, .data = true, .pio = true,
60 { .cmd = CMD_READ_DMA, .data = true, .dma = true,
62 { .cmd = CMD_WRITE_DMA, .data = true, .dma = true,
64 { .cmd = CMD_READ_DMA_EXT, .data = true, .dma = true,
66 { .cmd = CMD_WRITE_DMA_EXT, .data = true, .dma = true,
68 { .cmd = CMD_IDENTIFY, .data = true, .pio = true,
[all …]
/openbmc/u-boot/drivers/net/fsl-mc/dpio/
H A Ddpio.c16 struct mc_command cmd = { 0 }; in dpio_open() local
20 cmd.header = mc_encode_cmd_header(DPIO_CMDID_OPEN, in dpio_open()
23 DPIO_CMD_OPEN(cmd, dpio_id); in dpio_open()
26 err = mc_send_command(mc_io, &cmd); in dpio_open()
31 *token = MC_CMD_HDR_READ_TOKEN(cmd.header); in dpio_open()
40 struct mc_command cmd = { 0 }; in dpio_close() local
43 cmd.header = mc_encode_cmd_header(DPIO_CMDID_CLOSE, in dpio_close()
48 return mc_send_command(mc_io, &cmd); in dpio_close()
57 struct mc_command cmd = { 0 }; in dpio_create() local
61 cmd.header = mc_encode_cmd_header(DPIO_CMDID_CREATE, in dpio_create()
[all …]
/openbmc/qemu/qapi/
H A Dqmp-registry.c22 QmpCommand *cmd = g_malloc0(sizeof(*cmd)); in qmp_register_command() local
27 cmd->name = name; in qmp_register_command()
28 cmd->fn = fn; in qmp_register_command()
29 cmd->enabled = true; in qmp_register_command()
30 cmd->options = options; in qmp_register_command()
31 cmd->features = features; in qmp_register_command()
32 QTAILQ_INSERT_TAIL(cmds, cmd, node); in qmp_register_command()
37 QmpCommand *cmd; in qmp_find_command() local
39 QTAILQ_FOREACH(cmd, cmds, node) { in qmp_find_command()
40 if (strcmp(cmd->name, name) == 0) { in qmp_find_command()
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Duki.py23 cmd = "runqemu %s nographic serial wic ovmf" % (runqemu_params)
25 cmd += " kvm"
59 with runqemu(image, ssh=False, launch_cmd=cmd) as qemu:
60 self.assertTrue(qemu.runner.logged, "Failed: %s" % cmd)
64cmd = "echo $( cat /sys/firmware/efi/efivars/LoaderFirmwareInfo-4a67b082-0a4c-41cf-b6c7-440b29bb8c…
65 status, output = qemu.run_serial(cmd)
66 self.assertEqual(1, status, 'Failed to run command "%s": %s' % (cmd, output))
69cmd = "echo $( cat /sys/firmware/efi/efivars/LoaderInfo-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f ) | g…
70 status, output = qemu.run_serial(cmd)
71 self.assertEqual(1, status, 'Failed to run command "%s": %s' % (cmd, output))
[all …]
H A Drunqemu.py55 cmd = "%s %s" % (self.cmd_common, self.machine)
56 with runqemu(self.recipe, ssh=False, launch_cmd=cmd) as qemu:
58 self.assertTrue(qemu.runner.logged, "Failed: %s, %s" % (cmd, f.read()))
62 cmd = "%s %s ext4" % (self.cmd_common, self.machine)
63 with runqemu(self.recipe, ssh=False, launch_cmd=cmd) as qemu:
66 …ad(), regexp, "Failed to find '%s' in '%s' after running '%s'" % (regexp, qemu.qemurunnerlog, cmd))
71 cmd = "%s %s iso" % (self.cmd_common, self.machine)
72 with runqemu(self.recipe, ssh=False, launch_cmd=cmd) as qemu:
75 …n, f.read(), "Failed to find '%s' in '%s' after running '%s'" % (text_in, qemu.qemurunnerlog, cmd))
79 cmd = "%s %s" % (self.cmd_common, self.recipe)
[all …]
/openbmc/qemu/hw/scsi/
H A Dmegasas.c185 static inline const char *mfi_frame_desc(unsigned int cmd) in mfi_frame_desc() argument
192 if (cmd < ARRAY_SIZE(mfi_frame_descs)) { in mfi_frame_desc()
193 return mfi_frame_descs[cmd]; in mfi_frame_desc()
215 static bool megasas_frame_is_ieee_sgl(MegasasCmd *cmd) in megasas_frame_is_ieee_sgl() argument
217 return cmd->flags & MFI_FRAME_IEEE_SGL; in megasas_frame_is_ieee_sgl()
220 static bool megasas_frame_is_sgl64(MegasasCmd *cmd) in megasas_frame_is_sgl64() argument
222 return cmd->flags & MFI_FRAME_SGL64; in megasas_frame_is_sgl64()
225 static bool megasas_frame_is_sense64(MegasasCmd *cmd) in megasas_frame_is_sense64() argument
227 return cmd->flags & MFI_FRAME_SENSE64; in megasas_frame_is_sense64()
230 static uint64_t megasas_sgl_get_addr(MegasasCmd *cmd, in megasas_sgl_get_addr() argument
[all …]
/openbmc/u-boot/drivers/scsi/
H A Dscsi.c59 pccb->cmd[0] = SCSI_READ16; in scsi_setup_read16()
60 pccb->cmd[1] = pccb->lun << 5; in scsi_setup_read16()
61 pccb->cmd[2] = (unsigned char)(start >> 56) & 0xff; in scsi_setup_read16()
62 pccb->cmd[3] = (unsigned char)(start >> 48) & 0xff; in scsi_setup_read16()
63 pccb->cmd[4] = (unsigned char)(start >> 40) & 0xff; in scsi_setup_read16()
64 pccb->cmd[5] = (unsigned char)(start >> 32) & 0xff; in scsi_setup_read16()
65 pccb->cmd[6] = (unsigned char)(start >> 24) & 0xff; in scsi_setup_read16()
66 pccb->cmd[7] = (unsigned char)(start >> 16) & 0xff; in scsi_setup_read16()
67 pccb->cmd[8] = (unsigned char)(start >> 8) & 0xff; in scsi_setup_read16()
68 pccb->cmd[9] = (unsigned char)start & 0xff; in scsi_setup_read16()
[all …]
/openbmc/openbmc/meta-arm/meta-arm/lib/oeqa/runtime/cases/
H A Dftpm.py18 cmd = "ls -l /dev/tpm0 /dev/tpmrm0 || ( runlevel; sleep 60; ls -l /dev/tpm0 /dev/tpmrm0 )"
19 status, output = self.target.run(cmd, timeout=90)
20 self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
23 cmd = "cat /sys/class/tpm/tpm0/tpm_version_major"
24 status, output = self.target.run(cmd, timeout=60)
25 self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
26 self.assertEqual(output, "2", msg='\n'.join([cmd, output]))
29 cmd = 'for c in $(seq 0 23); do cat /sys/class/tpm/tpm0/pcr-sha384/"${c}"; done'
30 status, output = self.target.run(cmd, timeout=60)
31 self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
[all …]
/openbmc/google-misc/subprojects/ncsid/src/platforms/nemora/portable/
H A Dncsi_client.c132 ncsi_set_mac_command_t* cmd = (ncsi_set_mac_command_t*)buf; in ncsi_cmd_set_mac() local
135 cmd->hdr.payload_length = in ncsi_cmd_set_mac()
137 memcpy(cmd->mac_addr.octet, mac->octet, sizeof(cmd->mac_addr.octet)); in ncsi_cmd_set_mac()
138 cmd->mac_addr_num = 1; in ncsi_cmd_set_mac()
140 cmd->misc = 0x01; in ncsi_cmd_set_mac()
147 ncsi_enable_broadcast_filter_command_t* cmd = in ncsi_cmd_enable_broadcast_filter() local
151 cmd->hdr.payload_length = htons( in ncsi_cmd_enable_broadcast_filter()
153 cmd->filter_settings = htonl(filter_settings); in ncsi_cmd_enable_broadcast_filter()
219 ncsi_oem_simple_cmd_t* cmd = (ncsi_oem_simple_cmd_t*)buf; in ncsi_oem_cmd_get_host_mac() local
221 cmd->hdr.payload_length = in ncsi_oem_cmd_get_host_mac()
[all …]
/openbmc/u-boot/common/
H A Dcli.c28 int run_command(const char *cmd, int flag) in run_command() argument
35 if (cli_simple_run_command(cmd, flag) == -1) in run_command()
44 return parse_string_outer(cmd, hush_flags); in run_command()
55 int run_command_repeatable(const char *cmd, int flag) in run_command_repeatable() argument
58 return cli_simple_run_command(cmd, flag); in run_command_repeatable()
64 if (parse_string_outer(cmd, in run_command_repeatable()
73 int run_command_list(const char *cmd, int len, int flag) in run_command_list() argument
76 char *buff = (char *)cmd; /* cast away const */ in run_command_list()
80 len = strlen(cmd); in run_command_list()
86 need_buff = strchr(cmd, '\n') != NULL; in run_command_list()
[all …]
/openbmc/qemu/contrib/vhost-user-gpu/
H A Dvirgl.c39 struct virtio_gpu_ctrl_command *cmd) in virgl_cmd_context_create() argument
51 struct virtio_gpu_ctrl_command *cmd) in virgl_cmd_context_destroy() argument
62 struct virtio_gpu_ctrl_command *cmd) in virgl_cmd_create_resource_2d() argument
85 struct virtio_gpu_ctrl_command *cmd) in virgl_cmd_create_resource_3d() argument
108 struct virtio_gpu_ctrl_command *cmd) in virgl_cmd_resource_unref() argument
132 struct virtio_gpu_ctrl_command *cmd) in virgl_cmd_get_capset_info() argument
155 vg_ctrl_response(g, cmd, &resp.hdr, sizeof(resp)); in virgl_cmd_get_capset_info()
171 struct virtio_gpu_ctrl_command *cmd) in virgl_cmd_get_capset() argument
182 cmd->error = VIRTIO_GPU_RESP_ERR_INVALID_PARAMETER; in virgl_cmd_get_capset()
191 vg_ctrl_response(g, cmd, &resp->hdr, sizeof(*resp) + max_size); in virgl_cmd_get_capset()
[all …]
/openbmc/u-boot/drivers/mmc/
H A Dmmc_boot.c27 struct mmc_cmd cmd; in mmc_boot_partition_size_change() local
30 cmd.cmdidx = MMC_CMD_RES_MAN; in mmc_boot_partition_size_change()
31 cmd.resp_type = MMC_RSP_R1b; in mmc_boot_partition_size_change()
32 cmd.cmdarg = MMC_CMD62_ARG1; in mmc_boot_partition_size_change()
34 err = mmc_send_cmd(mmc, &cmd, NULL); in mmc_boot_partition_size_change()
41 cmd.cmdidx = MMC_CMD_RES_MAN; in mmc_boot_partition_size_change()
42 cmd.resp_type = MMC_RSP_R1b; in mmc_boot_partition_size_change()
43 cmd.cmdarg = MMC_CMD62_ARG2; in mmc_boot_partition_size_change()
45 err = mmc_send_cmd(mmc, &cmd, NULL); in mmc_boot_partition_size_change()
54 cmd.cmdidx = MMC_CMD_RES_MAN; in mmc_boot_partition_size_change()
[all …]
/openbmc/openbmc/poky/meta/lib/oe/
H A Dgpg_sign.py34cmd = self.gpg_cmd + ["--no-permission-warning", "--batch", "--yes", "--export", "-o", output_file]
36 cmd += ["--homedir", self.gpg_path]
38 cmd += ["--armor"]
39 cmd += [keyid]
40 subprocess.check_output(cmd, stderr=subprocess.STDOUT)
45 cmd = self.rpm_bin + " --addsign --define '_gpg_name %s' " % keyid
49 cmd += "--define '_gpg_sign_cmd_extra_args %s' " % gpg_args
50 cmd += "--define '_binary_filedigest_algorithm %s' " % digest
52 cmd += "--define '__gpg %s' " % self.gpg_bin
54 cmd += "--define '_gpg_path %s' " % self.gpg_path
[all …]
/openbmc/qemu/hw/display/
H A Dvirtio-gpu-rutabaga.c16 #define CHECK(condition, cmd) \ argument
21 (cmd)->error = VIRTIO_GPU_RESP_ERR_UNSPEC; \
75 struct virtio_gpu_ctrl_command *cmd) in rutabaga_cmd_create_resource_2d() argument
100 CHECK(!result, cmd); in rutabaga_cmd_create_resource_2d()
113 struct virtio_gpu_ctrl_command *cmd) in rutabaga_cmd_create_resource_3d() argument
139 CHECK(!result, cmd); in rutabaga_cmd_create_resource_3d()
177 struct virtio_gpu_ctrl_command *cmd) in rutabaga_cmd_resource_unref() argument
189 CHECK(res, cmd); in rutabaga_cmd_resource_unref()
198 CHECK(!result, cmd); in rutabaga_cmd_resource_unref()
203 struct virtio_gpu_ctrl_command *cmd) in rutabaga_cmd_context_create() argument
[all …]
/openbmc/qemu/hw/ipmi/
H A Dipmi_bmc_sim.c610 unsigned int cmd) in ipmi_get_handler() argument
618 if (cmd >= ibs->netfns[netfn / 2]->cmd_nums) { in ipmi_get_handler()
622 hdl = &ibs->netfns[netfn / 2]->cmd_handlers[cmd]; in ipmi_get_handler()
643 uint8_t *cmd, unsigned int cmd_len, in ipmi_sim_handle_command() argument
660 rsp_buffer_push(&rsp, cmd[0] | 0x04); in ipmi_sim_handle_command()
661 rsp_buffer_push(&rsp, cmd[1]); in ipmi_sim_handle_command()
674 if ((cmd[0] & 0x03) != 0) { in ipmi_sim_handle_command()
680 hdl = ipmi_get_handler(ibs, cmd[0] >> 2, cmd[1]); in ipmi_sim_handle_command()
691 hdl->cmd_handler(ibs, cmd, cmd_len, &rsp); in ipmi_sim_handle_command()
775 uint8_t *cmd, unsigned int cmd_len, in chassis_capabilities() argument
[all …]
/openbmc/openbmc/meta-fii/meta-mori/recipes-mori/mori-sys-utility/mori-cmd/
H A Dmori.sh100 cmd=$(cat ${BMC_CPLD_VER_FILE})
101 echo " BMC_CPLD: " "${cmd}"
102 cmd=$(cat ${MB_CPLD_VER_FILE})
103 echo " MB_CPLD: " "${cmd}"
115cmd=$(i2cget -y -f -a "${I2C_BMC_PWRSEQ[0]}" 0x"${I2C_BMC_PWRSEQ[1]}" 0xfe i 2 | awk '{print subst…
116 echo " BMC PowerSequencer : ${cmd}"
119 cmd=$(busctl get-property xyz.openbmc_project.Smbios.MDR_V2 \
122 echo " Bios: $cmd"
185 cmd=$(get_gpio_ctrl SYS_BOOT_STATUS_LED)
197 if [[ $cmd -eq 1 ]]; then
[all …]
/openbmc/qemu/tests/rocker/
H A Dbridge-vlan-stp5 while ! simp ssh tut sw1 --cmd "ping -c 1 localhost >/dev/null"; do sleep 1; done
6 while ! simp ssh tut h1 --cmd "ping -c 1 localhost >/dev/null"; do sleep 1; done
7 while ! simp ssh tut h2 --cmd "ping -c 1 localhost >/dev/null"; do sleep 1; done
11 simp ssh tut sw1 --cmd "sudo /sbin/ip link add name br0 type bridge"
12 simp ssh tut sw1 --cmd "sudo brctl stp br0 on"
13 simp ssh tut sw1 --cmd "sudo /sbin/ip link set dev sw1p1 master br0"
14 simp ssh tut sw1 --cmd "sudo /sbin/ip link set dev sw1p2 master br0"
19 simp ssh tut sw1 --cmd "echo 0 | sudo dd of=/sys/class/net/br0/bridge/default_pvid 2> /dev/null"
20 simp ssh tut sw1 --cmd "echo 1 | sudo dd of=/sys/class/net/br0/bridge/vlan_filtering 2> /dev/null"
24 simp ssh tut sw1 --cmd "sudo /sbin/bridge vlan add vid 57 dev sw1p1"
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/tests/
H A Drunqueue.py29 …def run_bitbakecmd(self, cmd, builddir, sstatevalid="", slowtasks="", extraenv=None, cleanup=False… argument
41 …output = subprocess.check_output(cmd, env=env, stderr=subprocess.STDOUT,universal_newlines=True, c…
46 self.fail("Command %s failed with %s" % (cmd, e.output))
58 cmd = ["bitbake", "a1"]
60 tasks = self.run_bitbakecmd(cmd, tempdir, sstatevalid)
68 cmd = ["bitbake", "a1"]
70 tasks = self.run_bitbakecmd(cmd, tempdir, sstatevalid)
80 cmd = ["bitbake", "a1"]
82 tasks = self.run_bitbakecmd(cmd, tempdir, sstatevalid)
91 cmd = ["bitbake", "a1"]
[all …]

12345678910>>...59