Home
last modified time | relevance | path

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

/tools/gpio/
Dgpio-event-mon.c35 struct gpioevent_request req; in monitor_device() local
53 req.lineoffset = line; in monitor_device()
54 req.handleflags = handleflags; in monitor_device()
55 req.eventflags = eventflags; in monitor_device()
56 strcpy(req.consumer_label, "gpio-event-mon"); in monitor_device()
58 ret = ioctl(fd, GPIO_GET_LINEEVENT_IOCTL, &req); in monitor_device()
68 ret = ioctl(req.fd, GPIOHANDLE_GET_LINE_VALUES_IOCTL, &data); in monitor_device()
83 ret = read(req.fd, &event, sizeof(event)); in monitor_device()
Dgpio-hammer.c30 struct gpiohandle_request req; in hammer_device() local
52 req.lineoffsets[i] = lines[i]; in hammer_device()
53 req.flags = GPIOHANDLE_REQUEST_OUTPUT; /* Request as output */ in hammer_device()
54 strcpy(req.consumer_label, "gpio-hammer"); in hammer_device()
55 req.lines = nlines; in hammer_device()
56 ret = ioctl(fd, GPIO_GET_LINEHANDLE_IOCTL, &req); in hammer_device()
66 ret = ioctl(req.fd, GPIOHANDLE_GET_LINE_VALUES_IOCTL, &data); in hammer_device()
95 ret = ioctl(req.fd, GPIOHANDLE_SET_LINE_VALUES_IOCTL, &data); in hammer_device()
104 ret = ioctl(req.fd, GPIOHANDLE_GET_LINE_VALUES_IOCTL, &data); in hammer_device()
/tools/testing/nvdimm/test/
Diomap.c209 struct nfit_test_request *req; in nfit_test_release_region() local
219 list_for_each_entry(req, &nfit_res->requests, list) in nfit_test_release_region()
220 if (req->res.start == start) { in nfit_test_release_region()
221 res = &req->res; in nfit_test_release_region()
222 list_del(&req->list); in nfit_test_release_region()
231 kfree(req); in nfit_test_release_region()
247 struct nfit_test_request *req; in nfit_test_request_region() local
259 list_for_each_entry(req, &nfit_res->requests, list) in nfit_test_request_region()
260 if (start == req->res.start) { in nfit_test_request_region()
261 res = &req->res; in nfit_test_request_region()
[all …]
/tools/usb/usbip/src/
Dusbipd.c105 struct op_import_request req; in recv_request_import() local
113 memset(&req, 0, sizeof(req)); in recv_request_import()
115 rc = usbip_net_recv(sockfd, &req, sizeof(req)); in recv_request_import()
120 PACK_OP_IMPORT_REQUEST(0, &req); in recv_request_import()
124 if (!strncmp(req.busid, edev->udev.busid, SYSFS_BUS_ID_SIZE)) { in recv_request_import()
125 info("found requested device: %s", req.busid); in recv_request_import()
140 info("requested device not found: %s", req.busid); in recv_request_import()
152 dbg("import request busid %s: failed", req.busid); in recv_request_import()
165 dbg("import request busid %s: complete", req.busid); in recv_request_import()
230 struct op_devlist_request req; in recv_request_devlist() local
[all …]
/tools/testing/selftests/net/
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 …]
Dpsock_fanout.c145 struct tpacket_req req = { in sock_fanout_open_ring() local
159 if (setsockopt(fd, SOL_PACKET, PACKET_RX_RING, (void *) &req, in sock_fanout_open_ring()
160 sizeof(req))) { in sock_fanout_open_ring()
165 ring = mmap(0, req.tp_block_size * req.tp_block_nr, in sock_fanout_open_ring()
/tools/testing/selftests/x86/
Dsigreturn.c612 greg_t req = requested_regs[i], res = resulting_regs[i]; in test_valid_sigreturn() local
616 printf("\tSP: %llx -> %llx\n", (unsigned long long)req, in test_valid_sigreturn()
626 if (res == (req & 0xFFFFFFFF)) in test_valid_sigreturn()