Home
last modified time | relevance | path

Searched refs:cmd_len (Results 1 – 17 of 17) sorted by relevance

/qemu/hw/ipmi/
H A Dipmi_bmc_sim.c643 uint8_t *cmd, unsigned int cmd_len, in ipmi_sim_handle_command() argument
665 if (cmd_len < 2) { in ipmi_sim_handle_command()
669 if (cmd_len > max_cmd_len) { in ipmi_sim_handle_command()
686 if (cmd_len < hdl->cmd_len_min) { 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
786 uint8_t *cmd, unsigned int cmd_len, in chassis_status() argument
796 uint8_t *cmd, unsigned int cmd_len, in chassis_control() argument
829 uint8_t *cmd, unsigned int cmd_len, in chassis_get_sys_restart_cause() argument
838 uint8_t *cmd, unsigned int cmd_len, in get_device_id() argument
[all …]
H A Dipmi_bmc_extern.c184 uint8_t *cmd, unsigned int cmd_len, in ipmi_bmc_extern_handle_command() argument
201 if (cmd_len < 2) { in ipmi_bmc_extern_handle_command()
203 } else if ((cmd_len > max_cmd_len) || (cmd_len > MAX_IPMI_MSG_SIZE)) { in ipmi_bmc_extern_handle_command()
220 for (i = 0; i < cmd_len; i++) { in ipmi_bmc_extern_handle_command()
224 addchar(ibe, -ipmb_checksum(cmd, cmd_len, csum)); in ipmi_bmc_extern_handle_command()
/qemu/hw/display/
H A Dssd0323.c55 uint32_t cmd_len; member
105 if (s->cmd_len == 0) { in OBJECT_DECLARE_SIMPLE_TYPE()
108 s->cmd_data[s->cmd_len - 1] = data; in OBJECT_DECLARE_SIMPLE_TYPE()
110 s->cmd_len++; in OBJECT_DECLARE_SIMPLE_TYPE()
112 #define DATA(x) if (s->cmd_len <= (x)) return 0 in OBJECT_DECLARE_SIMPLE_TYPE()
178 s->cmd_len = 0; in OBJECT_DECLARE_SIMPLE_TYPE()
294 if (s->cmd_len > ARRAY_SIZE(s->cmd_data)) { in ssd0323_post_load()
328 VMSTATE_UINT32(cmd_len, ssd0323_state),
/qemu/tests/qtest/
H A Dipmi-kcs-test.c108 static void kcs_cmd(uint8_t *cmd, unsigned int cmd_len, in kcs_cmd() argument
120 for (i = 0; i < cmd_len; i++) { in kcs_cmd()
153 static void kcs_abort(uint8_t *cmd, unsigned int cmd_len, in kcs_abort() argument
166 for (i = 0; i < cmd_len; i++) { in kcs_abort()
H A Dipmi-bt-test.c258 static void bt_cmd(uint8_t *cmd, unsigned int cmd_len, in bt_cmd() argument
269 bt_write_buf(cmd_len + 1); in bt_cmd()
272 for (i = 1; i < cmd_len; i++) { in bt_cmd()
/qemu/scsi/
H A Dpr-manager-helper.c163 if (!io_hdr->cmd_len || io_hdr->cmd_len > PR_HELPER_CDB_SIZE) { in pr_manager_helper_run()
167 memcpy(cdb, io_hdr->cmdp, io_hdr->cmd_len); in pr_manager_helper_run()
H A Dqemu-pr-helper.c145 io_hdr.cmd_len = PR_HELPER_CDB_SIZE; in do_sgio_worker()
/qemu/semihosting/
H A Dsyscalls.c236 target_ulong cmd, target_ulong cmd_len) in gdb_system() argument
238 int len = validate_strlen(cs, cmd, cmd_len); in gdb_system()
487 target_ulong cmd, target_ulong cmd_len) in host_system() argument
493 ret = validate_lock_user_string(&p, cs, cmd, cmd_len); in host_system()
941 target_ulong cmd, target_ulong cmd_len) in semihost_sys_system() argument
944 gdb_system(cs, complete, cmd, cmd_len); in semihost_sys_system()
946 host_system(cs, complete, cmd, cmd_len); in semihost_sys_system()
/qemu/include/hw/ipmi/
H A Dipmi.h215 uint8_t *cmd, unsigned int cmd_len,
307 uint8_t *cmd, unsigned int cmd_len,
/qemu/tests/qtest/fuzz/
H A Dgeneric_fuzz.c647 size_t cmd_len; in generic_fuzz() local
661 cmd_len = nextcmd ? nextcmd - cmd : Size; in generic_fuzz()
663 if (cmd_len > 0) { in generic_fuzz()
666 ops[op](s, cmd + 1, cmd_len - 1); in generic_fuzz()
673 Size = Size - (cmd_len + sizeof(SEPARATOR) - 1); in generic_fuzz()
/qemu/hw/ide/
H A Dahci.c684 static char *ahci_pretty_buffer_fis(const uint8_t *fis, int cmd_len) in ahci_pretty_buffer_fis() argument
689 for (i = 0; i < cmd_len; i++) { in ahci_pretty_buffer_fis()
1315 dma_addr_t cmd_len; in handle_cmd() local
1339 cmd_len = 0x80; in handle_cmd()
1340 cmd_fis = dma_memory_map(s->as, tbl_addr, &cmd_len, in handle_cmd()
1345 } else if (cmd_len != 0x80) { in handle_cmd()
1347 trace_handle_cmd_badmap(s, port, cmd_len); in handle_cmd()
1366 dma_memory_unmap(s->as, cmd_fis, cmd_len, DMA_DIRECTION_TO_DEVICE, in handle_cmd()
1367 cmd_len); in handle_cmd()
/qemu/include/semihosting/
H A Dsyscalls.h70 target_ulong cmd, target_ulong cmd_len);
/qemu/hw/usb/
H A Ddev-storage.c36 uint8_t cmd_len; member
444 cbw.cmd_len, s->data_len); in usb_msd_handle_data()
447 s->req = scsi_req_new(scsi_dev, tag, cbw.lun, cbw.cmd, cbw.cmd_len, NULL); in usb_msd_handle_data()
/qemu/hw/ppc/
H A Dpnv_bmc.c172 static void hiomap_cmd(IPMIBmcSim *ibs, uint8_t *cmd, unsigned int cmd_len, in hiomap_cmd() argument
/qemu/hw/scsi/
H A Dscsi-generic.c130 r->io_header.cmd_len = r->req.cmd.len; in execute_command()
540 io_header.cmd_len = cmd_size; in scsi_SG_IO_FROM_DEV()
H A Dscsi-disk.c2895 io_header->cmd_len = 6; in scsi_block_do_sgio()
2904 io_header->cmd_len = 10; in scsi_block_do_sgio()
2913 io_header->cmd_len = 12; in scsi_block_do_sgio()
2922 io_header->cmd_len = 16; in scsi_block_do_sgio()
/qemu/block/
H A Discsi.c1054 if (acb->ioh->cmd_len > SCSI_CDB_MAX_SIZE) { in iscsi_aio_ioctl()
1056 acb->ioh->cmd_len, SCSI_CDB_MAX_SIZE); in iscsi_aio_ioctl()
1083 acb->task->cdb_size = acb->ioh->cmd_len; in iscsi_aio_ioctl()
1084 memcpy(&acb->task->cdb[0], acb->ioh->cmdp, acb->ioh->cmd_len); in iscsi_aio_ioctl()