Lines Matching defs:rpc
581 device_printf(sc->sc_dev, "resetting rpc\n");
759 /* Search for rpc command and call handler */
881 vm_rpc_open(struct vm_rpc *rpc, uint32_t proto)
902 rpc->channel = __SHIFTOUT(frame.edx, VM_REG_HIGH_MASK);
903 rpc->cookie1 = __SHIFTOUT(frame.esi, VM_REG_WORD_MASK);
904 rpc->cookie2 = __SHIFTOUT(frame.edi, VM_REG_WORD_MASK);
910 vm_rpc_close(struct vm_rpc *rpc)
918 frame.edx = VM_REG_PORT_CMD(rpc->channel);
919 frame.edi = rpc->cookie2;
920 frame.esi = rpc->cookie1;
932 rpc->channel = 0;
933 rpc->cookie1 = 0;
934 rpc->cookie2 = 0;
940 vm_rpc_send(const struct vm_rpc *rpc, const uint8_t *buf, uint32_t length)
949 frame.edx = VM_REG_PORT_CMD(rpc->channel);
950 frame.esi = rpc->cookie1;
951 frame.edi = rpc->cookie2;
971 frame.edx = VM_REG_PORT_RPC(rpc->channel);
972 frame.ebp = rpc->cookie1;
973 frame.edi = rpc->cookie2;
989 vm_rpc_send_str(const struct vm_rpc *rpc, const uint8_t *str)
991 return vm_rpc_send(rpc, str, strlen(str));
995 vm_rpc_get_data(const struct vm_rpc *rpc, char *data, uint32_t length,
1005 frame.edx = VM_REG_PORT_RPC(rpc->channel);
1006 frame.esi = rpc->cookie1;
1008 frame.ebp = rpc->cookie2;
1026 frame.edx = VM_REG_PORT_CMD(rpc->channel);
1027 frame.esi = rpc->cookie1;
1028 frame.edi = rpc->cookie2;
1043 vm_rpc_get_length(const struct vm_rpc *rpc, uint32_t *length, uint16_t *dataid)
1051 frame.edx = VM_REG_PORT_CMD(rpc->channel);
1052 frame.esi = rpc->cookie1;
1053 frame.edi = rpc->cookie2;