Lines Matching refs:op_common
145 struct op_common *op_common) in usbip_net_pack_op_common() argument
147 op_common->version = usbip_net_pack_uint16_t(pack, op_common->version); in usbip_net_pack_op_common()
148 op_common->code = usbip_net_pack_uint16_t(pack, op_common->code); in usbip_net_pack_op_common()
149 op_common->status = usbip_net_pack_uint32_t(pack, op_common->status); in usbip_net_pack_op_common()
154 struct op_common op_common; in usbip_net_send_op_common() local
157 memset(&op_common, 0, sizeof(op_common)); in usbip_net_send_op_common()
159 op_common.version = USBIP_VERSION; in usbip_net_send_op_common()
160 op_common.code = code; in usbip_net_send_op_common()
161 op_common.status = status; in usbip_net_send_op_common()
163 usbip_net_pack_op_common(1, &op_common); in usbip_net_send_op_common()
165 rc = usbip_net_send(sockfd, &op_common, sizeof(op_common)); in usbip_net_send_op_common()
176 struct op_common op_common; in usbip_net_recv_op_common() local
179 memset(&op_common, 0, sizeof(op_common)); in usbip_net_recv_op_common()
181 rc = usbip_net_recv(sockfd, &op_common, sizeof(op_common)); in usbip_net_recv_op_common()
187 usbip_net_pack_op_common(0, &op_common); in usbip_net_recv_op_common()
189 if (op_common.version != USBIP_VERSION) { in usbip_net_recv_op_common()
190 dbg("version mismatch: %d %d", op_common.version, in usbip_net_recv_op_common()
199 if (op_common.code != *code) { in usbip_net_recv_op_common()
200 dbg("unexpected pdu %#0x for %#0x", op_common.code, in usbip_net_recv_op_common()
206 if (op_common.status != ST_OK) { in usbip_net_recv_op_common()
207 dbg("request failed at peer: %d", op_common.status); in usbip_net_recv_op_common()
211 *code = op_common.code; in usbip_net_recv_op_common()