Home
last modified time | relevance | path

Searched refs:op_common (Results 1 – 2 of 2) sorted by relevance

/tools/usb/usbip/src/
Dusbip_network.c146 struct op_common op_common; in usbip_net_send_op_common() local
149 memset(&op_common, 0, sizeof(op_common)); in usbip_net_send_op_common()
151 op_common.version = USBIP_VERSION; in usbip_net_send_op_common()
152 op_common.code = code; in usbip_net_send_op_common()
153 op_common.status = status; in usbip_net_send_op_common()
155 PACK_OP_COMMON(1, &op_common); in usbip_net_send_op_common()
157 rc = usbip_net_send(sockfd, &op_common, sizeof(op_common)); in usbip_net_send_op_common()
168 struct op_common op_common; in usbip_net_recv_op_common() local
171 memset(&op_common, 0, sizeof(op_common)); in usbip_net_recv_op_common()
173 rc = usbip_net_recv(sockfd, &op_common, sizeof(op_common)); in usbip_net_recv_op_common()
[all …]
Dusbip_network.h22 struct op_common { struct
36 #define PACK_OP_COMMON(pack, op_common) do {\ argument
37 usbip_net_pack_uint16_t(pack, &(op_common)->version);\
38 usbip_net_pack_uint16_t(pack, &(op_common)->code);\
39 usbip_net_pack_uint32_t(pack, &(op_common)->status);\