Home
last modified time | relevance | path

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

/system/core/sdcard/
Dsdcard.c805 const struct fuse_in_header *hdr, const struct fuse_forget_in *req) in handle_forget() argument
811 TRACE("[%d] FORGET #%"PRIu64" @ %"PRIx64" (%s)\n", handler->token, req->nlookup, in handle_forget()
814 __u64 n = req->nlookup; in handle_forget()
824 const struct fuse_in_header *hdr, const struct fuse_getattr_in *req) in handle_getattr() argument
832 req->getattr_flags, req->fh, hdr->nodeid, node ? node->name : "?"); in handle_getattr()
846 const struct fuse_in_header *hdr, const struct fuse_setattr_in *req) in handle_setattr() argument
855 req->fh, req->valid, hdr->nodeid, node ? node->name : "?"); in handle_setattr()
862 if (!(req->valid & FATTR_FH) && in handle_setattr()
870 if ((req->valid & FATTR_SIZE) && truncate64(path, req->size) < 0) { in handle_setattr()
880 if (req->valid & (FATTR_ATIME | FATTR_MTIME)) { in handle_setattr()
[all …]
/system/core/logd/
Dlibaudit.c87 struct audit_message req; in audit_send() local
90 memset(&req, 0, sizeof(req)); in audit_send()
97 req.nlh.nlmsg_type = type; in audit_send()
98 req.nlh.nlmsg_len = NLMSG_SPACE(size); in audit_send()
99 req.nlh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in audit_send()
117 memcpy(NLMSG_DATA(&req.nlh), data, size); in audit_send()
132 req.nlh.nlmsg_seq = ++sequence; in audit_send()
136 rc = TEMP_FAILURE_RETRY(sendto(fd, &req, req.nlh.nlmsg_len, 0, in audit_send()
144 } else if ((uint32_t) rc != req.nlh.nlmsg_len) { in audit_send()
/system/core/adb/
Dusb_osx.cpp203 IOUSBDevRequest req; in AndroidInterfaceAdded() local
209 req.bmRequestType = in AndroidInterfaceAdded()
211 req.bRequest = kUSBRqGetDescriptor; in AndroidInterfaceAdded()
212 req.wValue = (kUSBStringDesc << 8) | 0; in AndroidInterfaceAdded()
213 req.wIndex = 0; in AndroidInterfaceAdded()
214 req.pData = languages; in AndroidInterfaceAdded()
215 req.wLength = sizeof(languages); in AndroidInterfaceAdded()
216 kr = (*dev)->DeviceRequest(dev, &req); in AndroidInterfaceAdded()
218 if (kr == kIOReturnSuccess && req.wLenDone > 0) { in AndroidInterfaceAdded()
220 int langCount = (req.wLenDone - 2) / 2, lang; in AndroidInterfaceAdded()
[all …]
Dfile_sync_client.cpp86 msg.req.id = ID_QUIT; in sync_quit()
87 msg.req.namelen = 0; in sync_quit()
89 WriteFdExactly(fd, &msg.req, sizeof(msg.req)); in sync_quit()
103 msg.req.id = ID_LIST; in sync_ls()
104 msg.req.namelen = htoll(len); in sync_ls()
106 if(!WriteFdExactly(fd, &msg.req, sizeof(msg.req)) || in sync_ls()
147 msg.req.id = ID_STAT; in sync_readtime()
148 msg.req.namelen = htoll(len); in sync_readtime()
150 if(!WriteFdExactly(fd, &msg.req, sizeof(msg.req)) || in sync_readtime()
173 msg.req.id = ID_STAT; in sync_start_readtime()
[all …]
Dfile_sync_service.cpp426 if(!ReadFdExactly(fd, &msg.req, sizeof(msg.req))) { in file_sync_service()
430 namelen = ltohl(msg.req.namelen); in file_sync_service()
441 msg.req.namelen = 0; in file_sync_service()
442 D("sync: '%s' '%s'\n", (char*) &msg.req, name); in file_sync_service()
444 switch(msg.req.id) { in file_sync_service()
Dfile_sync_service.h44 } req; member
/system/core/libusbhost/
Dusbhost.c638 struct usb_request *req = calloc(1, sizeof(struct usb_request)); in usb_request_new() local
639 if (!req) { in usb_request_new()
644 req->dev = dev; in usb_request_new()
645 req->max_packet_size = __le16_to_cpu(ep_desc->wMaxPacketSize); in usb_request_new()
646 req->private_data = urb; in usb_request_new()
647 req->endpoint = urb->endpoint; in usb_request_new()
648 urb->usercontext = req; in usb_request_new()
650 return req; in usb_request_new()
653 void usb_request_free(struct usb_request *req) in usb_request_free() argument
655 free(req->private_data); in usb_request_free()
[all …]
/system/core/libnetutils/
Difc_utils.c265 } req; in ifc_act_on_address() local
299 memset(&req, 0, sizeof(req)); in ifc_act_on_address()
302 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.r)); in ifc_act_on_address()
303 req.n.nlmsg_type = action; in ifc_act_on_address()
304 req.n.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in ifc_act_on_address()
305 req.n.nlmsg_pid = getpid(); in ifc_act_on_address()
308 req.r.ifa_family = ss.ss_family; in ifc_act_on_address()
309 req.r.ifa_prefixlen = prefixlen; in ifc_act_on_address()
310 req.r.ifa_index = ifindex; in ifc_act_on_address()
313 rta = (struct rtattr *) (((char *) &req) + NLMSG_ALIGN(req.n.nlmsg_len)); in ifc_act_on_address()
[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.c337 IOUSBDevRequest req; in try_device() local
340 req.bmRequestType = USBmakebmRequestType(kUSBIn, kUSBStandard, kUSBDevice); in try_device()
341 req.bRequest = kUSBRqGetDescriptor; in try_device()
342 req.wValue = (kUSBStringDesc << 8) | serialIndex; in try_device()
344 req.wIndex = 0x0409; in try_device()
345 req.pData = buffer; in try_device()
346 req.wLength = sizeof(buffer); in try_device()
347 kr = (*dev)->DeviceRequest(dev, &req); in try_device()
349 if (kr == kIOReturnSuccess && req.wLenDone > 0) { in try_device()
353 count = (req.wLenDone - 1) / 2; in try_device()
Dgenkey.sh14 openssl req -new -x509 -key $1.pem -passin pass:"$2" \
/system/bt/btif/src/
Dbtif_core.c999 btif_storage_req_t req; in btif_get_adapter_property() local
1007 memset(&(req.read_req.bd_addr), 0, sizeof(bt_bdaddr_t)); in btif_get_adapter_property()
1008 req.read_req.type = type; in btif_get_adapter_property()
1012 (char*)&req, sizeof(btif_storage_req_t), NULL); in btif_get_adapter_property()
1028 btif_storage_req_t req; in btif_set_adapter_property() local
1118 memset(&(req.write_req.bd_addr), 0, sizeof(bt_bdaddr_t)); in btif_set_adapter_property()
1119 memcpy(&(req.write_req.prop), property, sizeof(bt_property_t)); in btif_set_adapter_property()
1123 (char*)&req, in btif_set_adapter_property()
1144 btif_storage_req_t req; in btif_get_remote_device_property() local
1149 memcpy(&(req.read_req.bd_addr), remote_addr, sizeof(bt_bdaddr_t)); in btif_get_remote_device_property()
[all …]
Dbtif_av.c442 btif_av_sink_config_req_t req; in btif_av_state_opening_handler() local
444 memcpy(&req, p_data, sizeof(req)); in btif_av_state_opening_handler()
446 BTIF_TRACE_WARNING("BTIF_AV_SINK_CONFIG_REQ_EVT %d %d", req.sample_rate, in btif_av_state_opening_handler()
447 req.channel_count); in btif_av_state_opening_handler()
450 req.sample_rate, req.channel_count); in btif_av_state_opening_handler()
/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 …]
Dsoft_keymaster_device.cpp189 GenerateKeyRequest req; in generate_keypair() local
193 req.key_description.push_back(TAG_ALGORITHM, KM_ALGORITHM_RSA); in generate_keypair()
194 StoreDefaultNewKeyParams(KM_ALGORITHM_RSA, &req.key_description); in generate_keypair()
199 req.key_description.push_back(TAG_KEY_SIZE, rsa_params->modulus_size); in generate_keypair()
200 req.key_description.push_back(TAG_RSA_PUBLIC_EXPONENT, rsa_params->public_exponent); in generate_keypair()
205 req.key_description.push_back(TAG_ALGORITHM, KM_ALGORITHM_EC); in generate_keypair()
206 StoreDefaultNewKeyParams(KM_ALGORITHM_EC, &req.key_description); in generate_keypair()
210 req.key_description.push_back(TAG_KEY_SIZE, ec_params->field_size); in generate_keypair()
220 convert_device(dev)->impl_->GenerateKey(req, &rsp); in generate_keypair()
327 ExportKeyRequest req; in get_keypair_public() local
[all …]
/system/core/include/usbhost/
Dusbhost.h227 void usb_request_free(struct usb_request *req);
230 int usb_request_queue(struct usb_request *req);
238 int usb_request_cancel(struct usb_request *req);
/system/core/libion/
Dion.c50 static int ion_ioctl(int fd, int req, void *arg) in ion_ioctl() argument
52 int ret = ioctl(fd, req, arg); in ion_ioctl()
54 ALOGE("ioctl %x failed with code %d: %s\n", req, in ion_ioctl()
/system/bt/stack/gatt/
Dgatt_main.c1021 tGATTS_SRV_CHG_REQ req; in gatt_add_a_bonded_dev_for_srv_chg() local
1028 memcpy(req.srv_chg.bda, bda, BD_ADDR_LEN); in gatt_add_a_bonded_dev_for_srv_chg()
1029 req.srv_chg.srv_changed = FALSE; in gatt_add_a_bonded_dev_for_srv_chg()
1031 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_ADD_CLIENT, &req, NULL); in gatt_add_a_bonded_dev_for_srv_chg()
1105 tGATTS_SRV_CHG_REQ req; in gatt_init_srv_chg() local
1123 req.client_read_index = i; in gatt_init_srv_chg()
1124 …(status = (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_READ_CLENT, &req, &rsp)) == TRUE) in gatt_init_srv_chg()
Dgatt_utils.c129 tGATTS_SRV_CHG_REQ req; in gatt_delete_dev_from_srv_chg_clt_list() local
137 memcpy(req.srv_chg.bda, bd_addr, BD_ADDR_LEN); in gatt_delete_dev_from_srv_chg_clt_list()
138 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_REMOVE_CLIENT,&req, NULL); in gatt_delete_dev_from_srv_chg_clt_list()
157 tGATTS_SRV_CHG_REQ req; in gatt_set_srv_chg() local
167 memcpy(&req.srv_chg, p_buf, sizeof(tGATTS_SRV_CHG)); in gatt_set_srv_chg()
169 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_UPDATE_CLIENT,&req, NULL); in gatt_set_srv_chg()
Dgatt_sr.c1339 tGATTS_SRV_CHG_REQ req; in gatts_proc_srv_chg_ind_ack() local
1348 memcpy(&req.srv_chg, p_buf, sizeof(tGATTS_SRV_CHG)); in gatts_proc_srv_chg_ind_ack()
1350 (*gatt_cb.cb_info.p_srv_chg_callback)(GATTS_SRV_CHG_CMD_UPDATE_CLIENT,&req, NULL); in gatts_proc_srv_chg_ind_ack()
/system/keymaster/include/keymaster/
Dsoft_keymaster_device.h66 void GetVersion(const GetVersionRequest& req, GetVersionResponse* rsp) { in GetVersion() argument
67 impl_->GetVersion(req, rsp); in GetVersion()