| /devicemodel/core/cmd_monitor/ |
| A D | command.c | 35 struct command *cmd = (struct command *)arg; in dispatch_command_handlers() local 39 if (cmd->cmd_handler.fn) { in dispatch_command_handlers() 40 ret = cmd->cmd_handler.fn(cmd->cmd_handler.arg, &cmd->para); in dispatch_command_handlers() 43 pr_info("No handler for command: %s.\r\n", cmd->name); in dispatch_command_handlers() 59 struct command *cmd; in register_command_handler() local 67 cmd = find_command(cmd_name); in register_command_handler() 68 if (cmd == NULL) { in register_command_handler() 73 if (cmd->cmd_handler.fn != NULL) { in register_command_handler() 77 cmd->cmd_handler.fn = fn; in register_command_handler() 84 cmd->cmd_handler.arg = handler_arg; in register_command_handler() [all …]
|
| A D | cmd_monitor.c | 35 struct command *cmd = NULL; in parse_command() local 52 cmd = find_command(execute->valuestring); in parse_command() 53 if (cmd != NULL) { in parse_command() 54 cmd->para.fd = fd; in parse_command() 58 strncpy(cmd->para.option, arguments->valuestring, CMD_ARG_MAX - 1U); in parse_command() 65 return cmd; in parse_command() 69 struct command *cmd; in monitor_cmd_dispatch() local 71 cmd = parse_command(cmd_msg, fd); in monitor_cmd_dispatch() 72 if (cmd != NULL) { in monitor_cmd_dispatch() 73 dispatch_command_handlers(cmd); in monitor_cmd_dispatch()
|
| /devicemodel/hw/pci/virtio/ |
| A D | virtio_gpu.c | 553 memcpy(cmd->iov[cmd->iovcnt - 1].iov_base, &resp, sizeof(resp)); in virtio_gpu_cmd_unspec() 563 gpu = cmd->gpu; in virtio_gpu_cmd_get_edid() 589 gpu = cmd->gpu; in virtio_gpu_cmd_get_display_info() 821 memcpy(pbuf, cmd->iov[i].iov_base, cmd->iov[i].iov_len); in virtio_gpu_cmd_resource_attach_backing() 876 gpu = cmd->gpu; in virtio_gpu_cmd_set_scanout() 1066 gpu = cmd->gpu; in virtio_gpu_cmd_resource_flush() 1269 memcpy(pbuf, cmd->iov[i].iov_base, cmd->iov[i].iov_len); in virtio_gpu_cmd_create_blob() 1333 gpu = cmd->gpu; in virtio_gpu_cmd_set_scanout_blob() 1420 cmd.gpu = vdev; in virtio_gpu_ctrl_bh() 1421 cmd.iolen = 0; in virtio_gpu_ctrl_bh() [all …]
|
| A D | virtio_rpmb.c | 183 struct rpmb_ioc_cmd cmd[3]; in rpmb_get_counter() member 196 iseq.cmd[0].nframes = 1; in rpmb_get_counter() 198 iseq.cmd[1].flags = 0; in rpmb_get_counter() 199 iseq.cmd[1].nframes = 1; in rpmb_get_counter() 257 struct rpmb_ioc_cmd cmd[3]; in rpmb_write_block() member 288 iseq.cmd[0].nframes = count; in rpmb_write_block() 291 iseq.cmd[1].nframes = 1; in rpmb_write_block() 293 iseq.cmd[2].flags = 0; in rpmb_write_block() 294 iseq.cmd[2].nframes = 1; in rpmb_write_block() 354 iseq.cmd[0].nframes = 1; in rpmb_read_block() [all …]
|
| A D | virtio_input.c | 385 virtio_input_get_bitmap(struct virtio_input *vi, unsigned int cmd, int count, in virtio_input_get_bitmap() argument 398 rc = ioctl(vi->fd, cmd, cfg->u.bitmap); in virtio_input_get_bitmap() 417 unsigned int cmd; in virtio_input_get_propbits() local 423 cmd = EVIOCGPROP(INPUT_PROP_CNT / 8); in virtio_input_get_propbits() 424 size = virtio_input_get_bitmap(vi, cmd, INPUT_PROP_CNT, cfg); in virtio_input_get_propbits() 439 unsigned int cmd; in virtio_input_get_evbits() local 468 cmd = EVIOCGBIT(type, count / 8); in virtio_input_get_evbits() 469 size = virtio_input_get_bitmap(vi, cmd, count, cfg); in virtio_input_get_evbits()
|
| A D | virtio_gpio.c | 179 uint8_t cmd; member 518 if (req->cmd >= GPIO_REQ_MAX || req->offset >= gpio->nvline) { in gpio_request_handler() 520 req->cmd, req->offset)); in gpio_request_handler() 526 switch (req->cmd) { in gpio_request_handler() 551 WPRINTF(("invalid gpio request command:%d\n", req->cmd)); in gpio_request_handler() 1599 if (req->cmd == GPIO_REQ_SET_VALUE || req->cmd == GPIO_REQ_GET_VALUE) in print_virtio_gpio_info() 1601 else if (req->cmd == GPIO_REQ_SET_CONFIG) in print_virtio_gpio_info() 1603 else if (req->cmd == GPIO_REQ_GET_DIRECTION) in print_virtio_gpio_info() 1610 cmd_map[req->cmd], in print_virtio_gpio_info()
|
| A D | virtio_mei.c | 1085 disconnect_req.hbm_cmd.cmd = MEI_HBM_CLIENT_DISCONNECT; in vmei_hbm_disconnect_client() 1114 flow_ctl_req.hbm_cmd.cmd = MEI_HBM_FLOW_CONTROL; in vmei_hbm_flow_ctl_req() 1137 ver_res.hbm_cmd.cmd = MEI_HBM_HOST_START; in vmei_hbm_version() 1166 DPRINTF("HBM cmd[0x%X] is handling\n", hbm_cmd->cmd); in vmei_hbm_handler() 1168 switch (hbm_cmd->cmd) { in vmei_hbm_handler() 1324 res.hbm_cmd.cmd = MEI_HBM_CLIENT_DISCONNECT; in vmei_hbm_handler() 1338 res.hbm_cmd.cmd = MEI_HBM_PG_ISOLATION_ENTRY; in vmei_hbm_handler() 1354 res.hbm_cmd.cmd = MEI_HBM_NOTIFY; in vmei_hbm_handler() 1372 DPRINTF("HBM cmd[%d] not supported\n", hbm_cmd->cmd); in vmei_hbm_handler() 1376 DPRINTF("HBM cmd[%d] not supported\n", hbm_cmd->cmd); in vmei_hbm_handler() [all …]
|
| /devicemodel/hw/platform/ |
| A D | ioc_cbc.c | 567 if (cmd == CBC_HB_INITIAL || cmd == CBC_HB_ACTIVE || in cbc_update_heartbeat() 568 cmd == CBC_HB_STANDBY || in cbc_update_heartbeat() 569 cmd == CBC_HB_SD_DLY) in cbc_update_heartbeat() 584 if (cmd == CBC_HB_INITIAL) { in cbc_update_heartbeat() 630 uint8_t cmd; in cbc_process_wakeup_reason() local 636 if (cmd != CBC_SC_WK_RSN) { in cbc_process_wakeup_reason() 716 uint8_t cmd; in cbc_process_heartbeat() local 721 if (cmd == CBC_SC_HB) { in cbc_process_heartbeat() 744 uint8_t cmd; in cbc_process_signal() local 764 switch (cmd) { in cbc_process_signal() [all …]
|
| A D | pit.c | 401 pit_readback1(struct vpit *vpit, int channel, uint8_t cmd) in pit_readback1() argument 412 pit_update_counter(vpit, c, !(cmd & TIMER_RB_LCTR), &delta_ticks); in pit_readback1() 414 if (!(cmd & TIMER_RB_LSTATUS) && !c->slatched) { in pit_readback1() 434 pit_readback(struct vpit *vpit, uint8_t cmd) in pit_readback() argument 441 if (cmd & TIMER_RB_CTR_0) { in pit_readback() 442 error = pit_readback1(vpit, 0, cmd); in pit_readback() 444 if (!error && cmd & TIMER_RB_CTR_1) { in pit_readback() 445 error = pit_readback1(vpit, 1, cmd); in pit_readback() 447 if (!error && cmd & TIMER_RB_CTR_2) { in pit_readback() 448 error = pit_readback1(vpit, 2, cmd); in pit_readback()
|
| /devicemodel/hw/platform/tpm/ |
| A D | tpm_emulator.c | 401 static int swtpm_ctrlcmd(int ctrl_chan_fd, unsigned long cmd, void *msg, in swtpm_ctrlcmd() argument 405 uint32_t cmd_no = __builtin_bswap32(cmd); in swtpm_ctrlcmd() 726 int swtpm_handle_request(TPMCommBuffer *cmd) in swtpm_handle_request() argument 728 if (!cmd) { in swtpm_handle_request() 733 if (swtpm_set_locality(cmd->locty) < 0 || in swtpm_handle_request() 734 swtpm_cmdcmd(tpm_context.cmd_chan_fd, cmd->in, cmd->in_len, in swtpm_handle_request() 735 cmd->out, cmd->out_len, in swtpm_handle_request() 736 &cmd->selftest_done) < 0) { in swtpm_handle_request() 737 swtpm_write_fatal_error_response(cmd->out, cmd->out_len); in swtpm_handle_request()
|
| A D | tpm_crb.c | 154 TPMCommBuffer cmd; member 278 ret = swtpm_handle_request(&tpm_vdev->cmd); in tpm_crb_request_deliver() 329 tpm_vdev->cmd.locty = 0; in crb_reg_write() 330 tpm_vdev->cmd.in = &tpm_vdev->data_buffer[0]; in crb_reg_write() 331 tpm_vdev->cmd.in_len = cmd_size; in crb_reg_write() 332 tpm_vdev->cmd.out = &tpm_vdev->data_buffer[0]; in crb_reg_write() 333 tpm_vdev->cmd.out_len = TPM_CRB_DATA_BUFFER_SIZE; in crb_reg_write()
|
| A D | tpm_internal.h | 39 int swtpm_handle_request(TPMCommBuffer *cmd);
|
| /devicemodel/hw/platform/rpmb/ |
| A D | rpmb_backend.c | 469 int rpmb_handler(uint32_t cmd, void *r) in rpmb_handler() argument 488 ioc_cmd = (struct rpmb_ioc_cmd *)(&iseq->cmd[i]); in rpmb_handler() 507 rc = rpmb_virt_write(cmd, r, frame_rel_write, in rpmb_handler() 510 rc = rpmb_virt_write(cmd, r, frame_rel_write, rel_write_cnt, NULL, 0); in rpmb_handler() 520 rc = rpmb_virt_read(cmd, r, frame_write, 1, frame_read, read_cnt); in rpmb_handler()
|
| A D | rpmb_sim.c | 721 ioc_cmd = (struct rpmb_ioc_cmd *)(&iseq->cmd[i]); in rpmb_sim_send()
|
| /devicemodel/hw/pci/ |
| A D | ahci.c | 142 uint32_t cmd; member 454 if (!(p->cmd & AHCI_P_CMD_ST)) { in ahci_check_stopped() 557 ahci_dev->port[i].cmd |= AHCI_P_CMD_CPS; in ahci_reset() 1868 if (!(p->cmd & AHCI_P_CMD_ST)) in ahci_handle_port() 1881 p->cmd &= ~AHCI_P_CMD_CCS_MASK; in ahci_handle_port() 2111 p->cmd |= AHCI_P_CMD_CR; in pci_ahci_port_write() 2120 p->cmd |= AHCI_P_CMD_FR; in pci_ahci_port_write() 2125 p->cmd &= ~AHCI_P_CMD_FR; in pci_ahci_port_write() 2130 p->cmd &= ~AHCI_P_CMD_CLO; in pci_ahci_port_write() 2134 p->cmd &= ~AHCI_P_CMD_ICC_MASK; in pci_ahci_port_write() [all …]
|
| A D | core.c | 677 uint16_t cmd; in porten() local 679 cmd = pci_get_cfgdata16(dev, PCIR_COMMAND); in porten() 681 return (cmd & PCIM_CMD_PORTEN) != 0; in porten() 688 uint16_t cmd; in memen() local 690 cmd = pci_get_cfgdata16(dev, PCIR_COMMAND); in memen() 692 return (cmd & PCIM_CMD_MEMEN) != 0; in memen() 2058 uint16_t cmd; in pci_lintr_permitted() local 2060 cmd = pci_get_cfgdata16(dev, PCIR_COMMAND); in pci_lintr_permitted() 2062 (cmd & PCIM_CMD_INTxDIS))); in pci_lintr_permitted() 2312 uint32_t cmd, cmd2, changed, old, readonly; in pci_emul_cmdsts_write() local [all …]
|
| A D | xhci.c | 1241 pci_xhci_usbcmd_write(struct pci_xhci_vdev *xdev, uint32_t cmd) in pci_xhci_usbcmd_write() argument 1246 if (cmd & XHCI_CMD_RS) { in pci_xhci_usbcmd_write() 1257 cmd |= xdev->opregs.usbcmd & XHCI_CMD_RS; in pci_xhci_usbcmd_write() 1259 if (cmd & XHCI_CMD_HCRST) { in pci_xhci_usbcmd_write() 1262 cmd &= ~XHCI_CMD_HCRST; in pci_xhci_usbcmd_write() 1265 if (cmd & XHCI_CMD_CSS) { in pci_xhci_usbcmd_write() 1296 cmd &= ~(XHCI_CMD_CSS | XHCI_CMD_CRS); in pci_xhci_usbcmd_write() 1297 return cmd; in pci_xhci_usbcmd_write()
|
| /devicemodel/include/ |
| A D | rpmb.h | 183 struct rpmb_ioc_cmd cmd[SEQ_CMD_MAX + 1]; member
|
| A D | mei.h | 214 uint8_t cmd:7; member
|
| /devicemodel/core/ |
| A D | monitor.c | 99 hdr->cmd = INTR_CMD_GET_DATA; in intr_storm_monitor_thread() 153 hdr->cmd = INTR_CMD_DELAY_INT; in intr_storm_monitor_thread() 161 hdr->cmd = INTR_CMD_GET_DATA; in intr_storm_monitor_thread()
|