Home
last modified time | relevance | path

Searched refs:req (Results 1 – 3 of 3) sorted by relevance

/tools/usb/usbip/src/
Dusbipd.c93 struct op_import_request req; in recv_request_import() local
102 memset(&req, 0, sizeof(req)); in recv_request_import()
105 rc = usbip_net_recv(sockfd, &req, sizeof(req)); in recv_request_import()
110 PACK_OP_IMPORT_REQUEST(0, &req); in recv_request_import()
114 if (!strncmp(req.busid, edev->udev.busid, SYSFS_BUS_ID_SIZE)) { in recv_request_import()
115 info("found requested device: %s", req.busid); in recv_request_import()
130 info("requested device not found: %s", req.busid); in recv_request_import()
142 dbg("import request busid %s: failed", req.busid); in recv_request_import()
155 dbg("import request busid %s: complete", req.busid); in recv_request_import()
220 struct op_devlist_request req; in recv_request_devlist() local
[all …]
/tools/testing/selftests/net/
Dpsock_fanout.c96 struct tpacket_req req = { in sock_fanout_open_ring() local
110 if (setsockopt(fd, SOL_PACKET, PACKET_RX_RING, (void *) &req, in sock_fanout_open_ring()
111 sizeof(req))) { in sock_fanout_open_ring()
116 ring = mmap(0, req.tp_block_size * req.tp_block_nr, in sock_fanout_open_ring()
Dpsock_tpacket.c86 struct tpacket_req req; member
591 ring->req.tp_block_size = getpagesize() << 2; in __v1_v2_fill()
592 ring->req.tp_frame_size = TPACKET_ALIGNMENT << 7; in __v1_v2_fill()
593 ring->req.tp_block_nr = blocks; in __v1_v2_fill()
595 ring->req.tp_frame_nr = ring->req.tp_block_size / in __v1_v2_fill()
596 ring->req.tp_frame_size * in __v1_v2_fill()
597 ring->req.tp_block_nr; in __v1_v2_fill()
599 ring->mm_len = ring->req.tp_block_size * ring->req.tp_block_nr; in __v1_v2_fill()
601 ring->rd_num = ring->req.tp_frame_nr; in __v1_v2_fill()
602 ring->flen = ring->req.tp_frame_size; in __v1_v2_fill()
[all …]