Lines Matching refs:op_common
146 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()
179 PACK_OP_COMMON(0, &op_common); in usbip_net_recv_op_common()
181 if (op_common.version != USBIP_VERSION) { in usbip_net_recv_op_common()
182 dbg("version mismatch: %d %d", op_common.version, in usbip_net_recv_op_common()
191 if (op_common.code != *code) { in usbip_net_recv_op_common()
192 dbg("unexpected pdu %#0x for %#0x", op_common.code, in usbip_net_recv_op_common()
198 if (op_common.status != ST_OK) { in usbip_net_recv_op_common()
199 dbg("request failed at peer: %d", op_common.status); in usbip_net_recv_op_common()
203 *code = op_common.code; in usbip_net_recv_op_common()