Lines Matching +full:x +full:- +full:rp
1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * 2005-2007 Takahiro Hirofuchi
79 udev->busnum = usbip_net_pack_uint32_t(pack, udev->busnum); in usbip_net_pack_usb_device()
80 udev->devnum = usbip_net_pack_uint32_t(pack, udev->devnum); in usbip_net_pack_usb_device()
81 udev->speed = usbip_net_pack_uint32_t(pack, udev->speed); in usbip_net_pack_usb_device()
83 udev->idVendor = usbip_net_pack_uint16_t(pack, udev->idVendor); in usbip_net_pack_usb_device()
84 udev->idProduct = usbip_net_pack_uint16_t(pack, udev->idProduct); in usbip_net_pack_usb_device()
85 udev->bcdDevice = usbip_net_pack_uint16_t(pack, udev->bcdDevice); in usbip_net_pack_usb_device()
111 return -1; in usbip_net_xmit()
114 bufflen -= nbytes; in usbip_net_xmit()
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()
156 return -1; in usbip_net_send_op_common()
188 dbg("unexpected pdu %#0x for %#0x", op_common.code, in usbip_net_recv_op_common()
207 return -1; in usbip_net_recv_op_common()
263 struct addrinfo hints, *res, *rp; in usbip_net_tcp_connect() local
280 for (rp = res; rp; rp = rp->ai_next) { in usbip_net_tcp_connect()
281 sockfd = socket(rp->ai_family, rp->ai_socktype, in usbip_net_tcp_connect()
282 rp->ai_protocol); in usbip_net_tcp_connect()
291 if (connect(sockfd, rp->ai_addr, rp->ai_addrlen) == 0) in usbip_net_tcp_connect()
299 if (!rp) in usbip_net_tcp_connect()