Home
last modified time | relevance | path

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

12

/system/core/trusty/storage/proxy/
Drpmb.c82 const struct storage_rpmb_send_req *req = r; in rpmb_send() local
84 if (req_len < sizeof(*req)) { in rpmb_send()
86 req_len, sizeof(*req)); in rpmb_send()
92 sizeof(*req) + req->reliable_write_size + req->write_size; in rpmb_send()
100 const uint8_t *write_buf = req->payload; in rpmb_send()
101 if (req->reliable_write_size) { in rpmb_send()
102 if ((req->reliable_write_size % MMC_BLOCK_SIZE) != 0) { in rpmb_send()
103 ALOGW("invalid reliable write size %u\n", req->reliable_write_size); in rpmb_send()
112 cmd->blocks = req->reliable_write_size / MMC_BLOCK_SIZE; in rpmb_send()
116 print_buf("request: ", write_buf, req->reliable_write_size); in rpmb_send()
[all …]
Dstorage.c166 const struct storage_file_delete_req *req = r; in storage_file_delete() local
168 if (req_len < sizeof(*req)) { in storage_file_delete()
170 __func__, req_len, sizeof(*req)); in storage_file_delete()
175 size_t fname_len = strlen(req->name); in storage_file_delete()
176 if (fname_len != req_len - sizeof(*req)) { in storage_file_delete()
178 __func__, fname_len, req_len - sizeof(*req)); in storage_file_delete()
183 int rc = asprintf(&path, "%s/%s", ssdir_name, req->name); in storage_file_delete()
219 const struct storage_file_open_req *req = r; in storage_file_open() local
222 if (req_len < sizeof(*req)) { in storage_file_open()
224 __func__, req_len, sizeof(*req)); in storage_file_open()
[all …]
Dstorage.h22 const void *req, size_t req_len);
25 const void *req, size_t req_len);
28 const void *req, size_t req_len);
31 const void *req, size_t req_len);
34 const void *req, size_t req_len);
37 const void *req, size_t req_len);
40 const void *req, size_t req_len);
Dproxy.c98 static int handle_req(struct storage_msg *msg, const void *req, size_t req_len) in handle_req() argument
123 rc = storage_file_delete(msg, req, req_len); in handle_req()
127 rc = storage_file_open(msg, req, req_len); in handle_req()
131 rc = storage_file_close(msg, req, req_len); in handle_req()
135 rc = storage_file_write(msg, req, req_len); in handle_req()
139 rc = storage_file_read(msg, req, req_len); in handle_req()
143 rc = storage_file_get_size(msg, req, req_len); in handle_req()
147 rc = storage_file_set_size(msg, req, req_len); in handle_req()
151 rc = rpmb_send(msg, req, req_len); in handle_req()
/system/core/sdcard/
Dfuse.cpp614 const struct fuse_in_header *hdr, const struct fuse_forget_in *req) in handle_forget() argument
620 DLOG(INFO) << "[" << handler->token << "] FORGET #" << req->nlookup in handle_forget()
624 __u64 n = req->nlookup; in handle_forget()
635 const struct fuse_in_header *hdr, const struct fuse_getattr_in *req) in handle_getattr() argument
642 DLOG(INFO) << "[" << handler->token << "] GETATTR flags=" << req->getattr_flags in handle_getattr()
643 << " fh=" << std::hex << req->fh << " @ " << hdr->nodeid << std::dec in handle_getattr()
658 const struct fuse_in_header *hdr, const struct fuse_setattr_in *req) in handle_setattr() argument
666 DLOG(INFO) << "[" << handler->token << "] SETATTR fh=" << std::hex << req->fh in handle_setattr()
667 << " valid=" << std::hex << req->valid << " @ " << hdr->nodeid << std::dec in handle_setattr()
675 if (!(req->valid & FATTR_FH) && in handle_setattr()
[all …]
/system/core/trusty/storage/lib/
Dstorage.c147 struct storage_file_open_req req = { .flags = flags }; in storage_open_file() local
148 struct iovec tx[3] = {{&msg, sizeof(msg)}, {&req, sizeof(req)}, {(void *)name, strlen(name)}}; in storage_open_file()
169 struct storage_file_close_req req = { .handle = _to_handle(fh)}; in storage_close_file() local
170 struct iovec tx[2] = {{&msg, sizeof(msg)}, {&req, sizeof(req)}}; in storage_close_file()
183 struct storage_file_delete_req req = { .flags = 0, }; in storage_delete_file() local
184 struct iovec tx[3] = {{&msg, sizeof(msg)}, {&req, sizeof(req)}, {(void *)name, strlen(name)}}; in storage_delete_file()
194 struct storage_file_read_req req = { .handle = _to_handle(fh), .size = size, .offset = off }; in _read_chunk() local
195 struct iovec tx[2] = {{&msg, sizeof(msg)}, {&req, sizeof(req)}}; in _read_chunk()
229 struct storage_file_write_req req = { .handle = _to_handle(fh), .offset = off, }; in _write_req() local
230 struct iovec tx[3] = {{&msg, sizeof(msg)}, {&req, sizeof(req)}, {(void *)buf, size}}; in _write_req()
[all …]
/system/core/logd/
Dlibaudit.c75 struct audit_message req; in audit_send() local
78 memset(&req, 0, sizeof(req)); in audit_send()
85 req.nlh.nlmsg_type = type; in audit_send()
86 req.nlh.nlmsg_len = NLMSG_SPACE(size); in audit_send()
87 req.nlh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in audit_send()
104 memcpy(NLMSG_DATA(&req.nlh), data, size); in audit_send()
119 req.nlh.nlmsg_seq = ++sequence; in audit_send()
123 rc = TEMP_FAILURE_RETRY(sendto(fd, &req, req.nlh.nlmsg_len, 0, in audit_send()
130 } else if ((uint32_t)rc != req.nlh.nlmsg_len) { in audit_send()
/system/core/adb/client/
Dusb_osx.cpp237 IOUSBDevRequest req; in AndroidInterfaceAdded() local
243 req.bmRequestType = in AndroidInterfaceAdded()
245 req.bRequest = kUSBRqGetDescriptor; in AndroidInterfaceAdded()
246 req.wValue = (kUSBStringDesc << 8) | 0; in AndroidInterfaceAdded()
247 req.wIndex = 0; in AndroidInterfaceAdded()
248 req.pData = languages; in AndroidInterfaceAdded()
249 req.wLength = sizeof(languages); in AndroidInterfaceAdded()
250 kr = (*dev)->DeviceRequest(dev, &req); in AndroidInterfaceAdded()
252 if (kr == kIOReturnSuccess && req.wLenDone > 0) { in AndroidInterfaceAdded()
254 int langCount = (req.wLenDone - 2) / 2, lang; in AndroidInterfaceAdded()
[all …]
/system/core/libnetutils/
Difc_utils.c272 } req; in ifc_act_on_address() local
306 memset(&req, 0, sizeof(req)); in ifc_act_on_address()
309 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.r)); in ifc_act_on_address()
310 req.n.nlmsg_type = action; in ifc_act_on_address()
311 req.n.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in ifc_act_on_address()
312 req.n.nlmsg_pid = getpid(); in ifc_act_on_address()
315 req.r.ifa_family = ss.ss_family; in ifc_act_on_address()
316 req.r.ifa_prefixlen = prefixlen; in ifc_act_on_address()
317 req.r.ifa_index = ifindex; in ifc_act_on_address()
320 rta = (struct rtattr *) (((char *) &req) + NLMSG_ALIGN(req.n.nlmsg_len)); in ifc_act_on_address()
[all …]
/system/bt/btif/src/
Dbtif_gatt_server.cc189 const auto& req = p_data->req_data.p_data->write_req; in btapp_gatts_handle_cback() local
190 vector<uint8_t> value(req.value, req.value + req.len); in btapp_gatts_handle_cback()
193 p_data->req_data.remote_bda, req.handle, req.offset, in btapp_gatts_handle_cback()
194 req.need_rsp, req.is_prep, value); in btapp_gatts_handle_cback()
199 const auto& req = p_data->req_data.p_data->write_req; in btapp_gatts_handle_cback() local
200 vector<uint8_t> value(req.value, req.value + req.len); in btapp_gatts_handle_cback()
203 p_data->req_data.remote_bda, req.handle, req.offset, in btapp_gatts_handle_cback()
204 req.need_rsp, req.is_prep, value); in btapp_gatts_handle_cback()
Dbtif_core.cc897 btif_storage_req_t req; in btif_get_adapter_property() local
906 req.read_req.bd_addr = RawAddress::kEmpty; in btif_get_adapter_property()
907 req.read_req.type = type; in btif_get_adapter_property()
910 BTIF_CORE_STORAGE_ADAPTER_READ, (char*)&req, in btif_get_adapter_property()
926 btif_storage_req_t req; in btif_set_adapter_property() local
1008 req.write_req.bd_addr = RawAddress::kEmpty; in btif_set_adapter_property()
1009 memcpy(&(req.write_req.prop), property, sizeof(bt_property_t)); in btif_set_adapter_property()
1012 (char*)&req, in btif_set_adapter_property()
1031 btif_storage_req_t req; in btif_get_remote_device_property() local
1035 req.read_req.bd_addr = *remote_addr; in btif_get_remote_device_property()
[all …]
Dbtif_av.cc291 btav_a2dp_codec_config_t req; in btif_update_source_codec() local
292 memcpy(&req, p_data, sizeof(req)); in btif_update_source_codec()
294 btif_a2dp_source_encoder_user_config_update_req(req); in btif_update_source_codec()
419 btif_av_sink_config_req_t req; in btif_av_state_idle_handler() local
421 memcpy(&req, p_data, sizeof(req)); in btif_av_state_idle_handler()
426 __func__, req.sample_rate, req.channel_count); in btif_av_state_idle_handler()
428 HAL_CBACK(bt_av_sink_callbacks, audio_config_cb, &(req.peer_bd), in btif_av_state_idle_handler()
429 req.sample_rate, req.channel_count); in btif_av_state_idle_handler()
598 btif_av_sink_config_req_t req; in btif_av_state_opening_handler() local
600 memcpy(&req, p_data, sizeof(req)); in btif_av_state_opening_handler()
[all …]
/system/core/libusbhost/
Dusbhost.c650 struct usb_request *req = calloc(1, sizeof(struct usb_request)); in usb_request_new() local
651 if (!req) { in usb_request_new()
656 req->dev = dev; in usb_request_new()
657 req->max_packet_size = __le16_to_cpu(ep_desc->wMaxPacketSize); in usb_request_new()
658 req->private_data = urb; in usb_request_new()
659 req->endpoint = urb->endpoint; in usb_request_new()
660 urb->usercontext = req; in usb_request_new()
662 return req; in usb_request_new()
665 void usb_request_free(struct usb_request *req) in usb_request_free() argument
667 free(req->private_data); in usb_request_free()
[all …]
/system/extras/simpleperf/runtest/
Druntest.py189 for req in self.symbol_overhead_requirements:
190 strs.append('\t\t%s' % req)
192 for req in self.symbol_children_overhead_requirements:
193 strs.append('\t\t%s' % req)
195 for req in self.symbol_relation_requirements:
196 strs.append('\t\t%s' % req)
252 req = load_symbol_relation_requirement(symbol_item)
253 symbol_relation_requirements.append(req)
271 req = SymbolRelationRequirement(symbol_name, comm)
274 req.add_child(child_req)
[all …]
/system/keymaster/
Dandroid_keymaster_messages_test.cpp86 SupportedByAlgorithmRequest req(ver); in TEST() local
87 req.algorithm = KM_ALGORITHM_EC; in TEST()
89 UniquePtr<SupportedByAlgorithmRequest> deserialized(round_trip(ver, req, 4)); in TEST()
96 SupportedByAlgorithmAndPurposeRequest req(ver); in TEST() local
97 req.algorithm = KM_ALGORITHM_EC; in TEST()
98 req.purpose = KM_PURPOSE_DECRYPT; in TEST()
100 UniquePtr<SupportedByAlgorithmAndPurposeRequest> deserialized(round_trip(ver, req, 8)); in TEST()
132 GenerateKeyRequest req(ver); in TEST() local
133 req.key_description.Reinitialize(params, array_length(params)); in TEST()
134 UniquePtr<GenerateKeyRequest> deserialized(round_trip(ver, req, 78)); in TEST()
[all …]
/system/extras/tests/storage/
Dwipe_blkdev.c55 int req; in wipe_block_device() local
60 req = BLKSECDISCARD; in wipe_block_device()
62 req = BLKDISCARD; in wipe_block_device()
65 ret = ioctl(fd, req, &range); in wipe_block_device()
/system/core/fastboot/
Dusb_osx.cpp346 IOUSBDevRequest req; in try_device() local
349 req.bmRequestType = USBmakebmRequestType(kUSBIn, kUSBStandard, kUSBDevice); in try_device()
350 req.bRequest = kUSBRqGetDescriptor; in try_device()
351 req.wValue = (kUSBStringDesc << 8) | serialIndex; in try_device()
353 req.wIndex = 0x0409; in try_device()
354 req.pData = buffer; in try_device()
355 req.wLength = sizeof(buffer); in try_device()
356 kr = (*dev)->DeviceRequest(dev, &req); in try_device()
358 if (kr == kIOReturnSuccess && req.wLenDone > 0) { in try_device()
362 count = (req.wLenDone - 1) / 2; in try_device()
/system/chre/platform/slpi/include/chre/platform/slpi/
Dsmr_helper.h81 UniquePtr<ReqStruct> *req, UniquePtr<RespStruct> *resp,
90 clientHandle, msgId, req->get(), sizeof(ReqStruct),
99 req->release();
/system/connectivity/wifilogd/
Draw_os.cpp42 int RawOs::Nanosleep(const struct timespec* req, struct timespec* rem) { in Nanosleep() argument
43 return nanosleep(req, rem); in Nanosleep()
Draw_os.h45 virtual int Nanosleep(NONNULL const struct timespec* req,
/system/libvintf/
Dparse_string.cpp342 bool parse(const std::string &s, MatrixHal *req) { in parse() argument
347 if (!parse(v[0], &req->format)) { in parse()
350 req->name = v[1]; in parse()
351 if (!parse(v[2], &req->versionRanges)) { in parse()
357 req->optional = (v[3] == kOptional); in parse()
361 std::ostream &operator<<(std::ostream &os, const MatrixHal &req) { in operator <<() argument
362 return os << req.format << "/" in operator <<()
363 << req.name << "/" in operator <<()
364 << req.versionRanges << "/" in operator <<()
365 << (req.optional ? kOptional : kRequired); in operator <<()
/system/core/libusbhost/include/usbhost/
Dusbhost.h230 void usb_request_free(struct usb_request *req);
233 int usb_request_queue(struct usb_request *req);
242 int usb_request_cancel(struct usb_request *req);
/system/core/libion/
Dion.c51 static int ion_ioctl(int fd, int req, void *arg) in ion_ioctl() argument
53 int ret = ioctl(fd, req, arg); in ion_ioctl()
55 ALOGE("ioctl %x failed with code %d: %s\n", req, in ion_ioctl()
/system/core/debuggerd/client/
Ddebuggerd_client.cpp109 InterceptRequest req = {.pid = pid, .dump_type = dump_type}; in debuggerd_trigger_dump() local
136 if (send_fd(set_timeout(sockfd), &req, sizeof(req), std::move(pipe_write)) != sizeof(req)) { in debuggerd_trigger_dump()
/system/connectivity/wifilogd/tests/
Dmock_raw_os.h37 int(const struct timespec* req, struct timespec* rem));

12