Lines Matching refs:op_common
134 struct op_common op_common; in usbip_net_send_op_common() local
137 memset(&op_common, 0, sizeof(op_common)); in usbip_net_send_op_common()
139 op_common.version = USBIP_VERSION; in usbip_net_send_op_common()
140 op_common.code = code; in usbip_net_send_op_common()
141 op_common.status = status; in usbip_net_send_op_common()
143 PACK_OP_COMMON(1, &op_common); in usbip_net_send_op_common()
145 rc = usbip_net_send(sockfd, &op_common, sizeof(op_common)); in usbip_net_send_op_common()
156 struct op_common op_common; in usbip_net_recv_op_common() local
159 memset(&op_common, 0, sizeof(op_common)); in usbip_net_recv_op_common()
161 rc = usbip_net_recv(sockfd, &op_common, sizeof(op_common)); in usbip_net_recv_op_common()
167 PACK_OP_COMMON(0, &op_common); in usbip_net_recv_op_common()
169 if (op_common.version != USBIP_VERSION) { in usbip_net_recv_op_common()
171 op_common.version, USBIP_VERSION); in usbip_net_recv_op_common()
179 if (op_common.code != *code) { in usbip_net_recv_op_common()
180 dbg("unexpected pdu %#0x for %#0x", op_common.code, in usbip_net_recv_op_common()
188 *status = op_common.status; in usbip_net_recv_op_common()
190 if (op_common.status != ST_OK) { in usbip_net_recv_op_common()
191 dbg("request failed at peer: %d", op_common.status); in usbip_net_recv_op_common()
195 *code = op_common.code; in usbip_net_recv_op_common()