Lines Matching refs:op_common
133 struct op_common *op_common) in usbip_net_pack_op_common() argument
135 op_common->version = usbip_net_pack_uint16_t(pack, op_common->version); in usbip_net_pack_op_common()
136 op_common->code = usbip_net_pack_uint16_t(pack, op_common->code); in usbip_net_pack_op_common()
137 op_common->status = usbip_net_pack_uint32_t(pack, op_common->status); in usbip_net_pack_op_common()
142 struct op_common op_common; in usbip_net_send_op_common() local
145 memset(&op_common, 0, sizeof(op_common)); in usbip_net_send_op_common()
147 op_common.version = USBIP_VERSION; in usbip_net_send_op_common()
148 op_common.code = code; in usbip_net_send_op_common()
149 op_common.status = status; in usbip_net_send_op_common()
151 usbip_net_pack_op_common(1, &op_common); in usbip_net_send_op_common()
153 rc = usbip_net_send(sockfd, &op_common, sizeof(op_common)); in usbip_net_send_op_common()
164 struct op_common op_common; in usbip_net_recv_op_common() local
167 memset(&op_common, 0, sizeof(op_common)); in usbip_net_recv_op_common()
169 rc = usbip_net_recv(sockfd, &op_common, sizeof(op_common)); in usbip_net_recv_op_common()
175 usbip_net_pack_op_common(0, &op_common); in usbip_net_recv_op_common()
177 if (op_common.version != USBIP_VERSION) { in usbip_net_recv_op_common()
179 op_common.version, USBIP_VERSION); in usbip_net_recv_op_common()
187 if (op_common.code != *code) { in usbip_net_recv_op_common()
188 dbg("unexpected pdu %#0x for %#0x", op_common.code, in usbip_net_recv_op_common()
196 *status = op_common.status; 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()