Lines Matching defs:rpc
581 device_printf(sc->sc_dev, "resetting rpc\n");
754 /* Search for rpc command and call handler */
876 vm_rpc_open(struct vm_rpc *rpc, uint32_t proto)
897 rpc->channel = __SHIFTOUT(frame.edx, VM_REG_HIGH_MASK);
898 rpc->cookie1 = __SHIFTOUT(frame.esi, VM_REG_WORD_MASK);
899 rpc->cookie2 = __SHIFTOUT(frame.edi, VM_REG_WORD_MASK);
905 vm_rpc_close(struct vm_rpc *rpc)
913 frame.edx = VM_REG_PORT_CMD(rpc->channel);
914 frame.edi = rpc->cookie2;
915 frame.esi = rpc->cookie1;
927 rpc->channel = 0;
928 rpc->cookie1 = 0;
929 rpc->cookie2 = 0;
935 vm_rpc_send(const struct vm_rpc *rpc, const uint8_t *buf, uint32_t length)
944 frame.edx = VM_REG_PORT_CMD(rpc->channel);
945 frame.esi = rpc->cookie1;
946 frame.edi = rpc->cookie2;
966 frame.edx = VM_REG_PORT_RPC(rpc->channel);
967 frame.ebp = rpc->cookie1;
968 frame.edi = rpc->cookie2;
984 vm_rpc_send_str(const struct vm_rpc *rpc, const uint8_t *str)
986 return vm_rpc_send(rpc, str, strlen(str));
990 vm_rpc_get_data(const struct vm_rpc *rpc, char *data, uint32_t length,
1000 frame.edx = VM_REG_PORT_RPC(rpc->channel);
1001 frame.esi = rpc->cookie1;
1003 frame.ebp = rpc->cookie2;
1021 frame.edx = VM_REG_PORT_CMD(rpc->channel);
1022 frame.esi = rpc->cookie1;
1023 frame.edi = rpc->cookie2;
1038 vm_rpc_get_length(const struct vm_rpc *rpc, uint32_t *length, uint16_t *dataid)
1046 frame.edx = VM_REG_PORT_CMD(rpc->channel);
1047 frame.esi = rpc->cookie1;
1048 frame.edi = rpc->cookie2;