Lines Matching defs:sock
459 int usbip_xmit(int send, struct socket *sock, char *buf,
473 if (!sock || !buf || !size) {
474 printk(KERN_ERR "%s: invalid arg, sock %p buff %p size %d\n",
475 __func__, sock, buf, size);
487 printk(KERN_DEBUG "%s: sending... , sock %p, buf %p, "
489 sock, buf, size, msg_flags);
496 sock->sk->sk_allocation = GFP_NOIO;
507 result = kernel_sendmsg(sock, &msg, &iov, 1, size);
509 result = kernel_recvmsg(sock, &msg, &iov, 1, size,
513 usbip_udbg("usbip_xmit: %s sock %p buf %p size %u ret "
515 send ? "send" : "receive", sock, buf,