Searched defs:req (Results 1 - 11 of 11) sorted by relevance

/system/extras/tests/storage/
H A Dwipe_blkdev.c54 int req; local
59 req = BLKSECDISCARD;
61 req = BLKDISCARD;
64 ret = ioctl(fd, req, &range);
/system/core/libion/
H A Dion.c49 static int ion_ioctl(int fd, int req, void *arg) argument
51 int ret = ioctl(fd, req, arg);
53 ALOGE("ioctl %x failed with code %d: %s\n", req,
/system/core/logd/
H A Dlibaudit.c87 struct audit_message req; local
90 memset(&req, 0, sizeof(req));
97 req.nlh.nlmsg_type = type;
98 req.nlh.nlmsg_len = NLMSG_SPACE(size);
99 req.nlh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK;
117 memcpy(NLMSG_DATA(&req.nlh), data, size);
132 req.nlh.nlmsg_seq = ++sequence;
136 rc = TEMP_FAILURE_RETRY(sendto(fd, &req, req
[all...]
/system/core/adb/
H A Dfile_sync_service.h54 } req; member in union:__anon6
H A Dusb_osx.c206 IOUSBDevRequest req; local
212 req.bmRequestType =
214 req.bRequest = kUSBRqGetDescriptor;
215 req.wValue = (kUSBStringDesc << 8) | 0;
216 req.wIndex = 0;
217 req.pData = languages;
218 req.wLength = sizeof(languages);
219 kr = (*dev)->DeviceRequest(dev, &req);
221 if (kr == kIOReturnSuccess && req.wLenDone > 0) {
223 int langCount = (req
[all...]
/system/keymaster/
H A Dgoogle_keymaster_messages_test.cpp116 GenerateKeyRequest req; local
117 req.key_description.Reinitialize(params, array_length(params));
118 UniquePtr<GenerateKeyRequest> deserialized(round_trip(req, 78));
119 EXPECT_EQ(deserialized->key_description, req.key_description);
150 GetKeyCharacteristicsRequest req; local
151 req.additional_params.Reinitialize(params, array_length(params));
152 req.SetKeyMaterial("foo", 3);
154 UniquePtr<GetKeyCharacteristicsRequest> deserialized(round_trip(req, 85));
H A Dgoogle_keymaster_test.cpp198 GenerateKeyRequest req; local
199 req.key_description.Reinitialize(params, array_length(params));
202 device.GenerateKey(req, &rsp);
249 GenerateKeyRequest req; local
250 req.key_description.Reinitialize(params, array_length(params));
253 device.GenerateKey(req, &rsp);
308 GenerateKeyRequest req; local
309 req.key_description.Reinitialize(params, array_length(params));
312 device.GenerateKey(req, &rsp);
366 GetKeyCharacteristicsRequest req; local
[all...]
/system/core/fastboot/
H A Dusb_osx.c336 IOUSBDevRequest req; local
339 req.bmRequestType = USBmakebmRequestType(kUSBIn, kUSBStandard, kUSBDevice);
340 req.bRequest = kUSBRqGetDescriptor;
341 req.wValue = (kUSBStringDesc << 8) | serialIndex;
343 req.wIndex = 0x0409;
344 req.pData = buffer;
345 req.wLength = sizeof(buffer);
346 kr = (*dev)->DeviceRequest(dev, &req);
348 if (kr == kIOReturnSuccess && req.wLenDone > 0) {
352 count = (req
[all...]
/system/core/libnetutils/
H A Difc_utils.c265 } req; local
299 memset(&req, 0, sizeof(req));
302 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.r));
303 req.n.nlmsg_type = action;
304 req.n.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK;
305 req.n.nlmsg_pid = getpid();
308 req.r.ifa_family = ss.ss_family;
309 req
[all...]
/system/core/libusbhost/
H A Dusbhost.c629 struct usb_request *req = calloc(1, sizeof(struct usb_request)); local
630 if (!req) {
635 req->dev = dev;
636 req->max_packet_size = __le16_to_cpu(ep_desc->wMaxPacketSize);
637 req->private_data = urb;
638 req->endpoint = urb->endpoint;
639 urb->usercontext = req;
641 return req;
644 void usb_request_free(struct usb_request *req) argument
646 free(req
650 usb_request_queue(struct usb_request *req) argument
673 struct usb_request *req = NULL; local
695 usb_request_cancel(struct usb_request *req) argument
[all...]
/system/core/sdcard/
H A Dsdcard.c64 * - don't forget that FORGET can forget multiple references (req->nlookup)
881 const struct fuse_in_header *hdr, const struct fuse_forget_in *req)
887 TRACE("[%d] FORGET #%"PRIu64" @ %"PRIx64" (%s)\n", handler->token, req->nlookup,
890 __u64 n = req->nlookup;
900 const struct fuse_in_header *hdr, const struct fuse_getattr_in *req)
908 req->getattr_flags, req->fh, hdr->nodeid, node ? node->name : "?");
922 const struct fuse_in_header *hdr, const struct fuse_setattr_in *req)
933 req->fh, req
880 handle_forget(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header *hdr, const struct fuse_forget_in *req) argument
899 handle_getattr(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header *hdr, const struct fuse_getattr_in *req) argument
921 handle_setattr(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header *hdr, const struct fuse_setattr_in *req) argument
984 handle_mknod(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_mknod_in* req, const char* name) argument
1015 handle_mkdir(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_mkdir_in* req, const char* name) argument
1123 handle_rename(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_rename_in* req, const char* old_name, const char* new_name) argument
1216 handle_open(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_open_in* req) argument
1256 handle_read(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_read_in* req) argument
1283 handle_write(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_write_in* req, const void* buffer) argument
1339 handle_release(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_release_in* req) argument
1350 handle_fsync(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_fsync_in* req) argument
1382 handle_opendir(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_open_in* req) argument
1419 handle_readdir(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_read_in* req) argument
1448 handle_releasedir(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_release_in* req) argument
1459 handle_init(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_init_in* req) argument
1487 const struct fuse_forget_in *req = data; local
1492 const struct fuse_getattr_in *req = data; local
1497 const struct fuse_setattr_in *req = data; local
1504 const struct fuse_mknod_in *req = data; local
1510 const struct fuse_mkdir_in *req = data; local
1526 const struct fuse_rename_in *req = data; local
1534 const struct fuse_open_in *req = data; local
1539 const struct fuse_read_in *req = data; local
1544 const struct fuse_write_in *req = data; local
1554 const struct fuse_release_in *req = data; local
1560 const struct fuse_fsync_in *req = data; local
1573 const struct fuse_open_in *req = data; local
1578 const struct fuse_read_in *req = data; local
1583 const struct fuse_release_in *req = data; local
1588 const struct fuse_init_in *req = data; local
[all...]

Completed in 519 milliseconds