Home
last modified time | relevance | path

Searched refs:fh (Results 1 – 11 of 11) sorted by relevance

/system/core/trusty/storage/lib/
Dstorage.c37 static inline storage_session_t _to_session(file_handle_t fh) in _to_session() argument
39 return (storage_session_t)(fh >> 32); in _to_session()
42 static inline uint32_t _to_handle(file_handle_t fh) in _to_handle() argument
44 return (uint32_t) fh; in _to_handle()
166 void storage_close_file(file_handle_t fh) in storage_close_file() argument
169 struct storage_file_close_req req = { .handle = _to_handle(fh)}; in storage_close_file()
173 ssize_t rc = send_reqv(_to_session(fh), tx, 2, rx, 1); in storage_close_file()
191 static int _read_chunk(file_handle_t fh, storage_off_t off, void *buf, size_t size) in _read_chunk() argument
194 struct storage_file_read_req req = { .handle = _to_handle(fh), .size = size, .offset = off }; in _read_chunk()
198 ssize_t rc = send_reqv(_to_session(fh), tx, 2, rx, 2); in _read_chunk()
[all …]
/system/core/adb/
Dset_verity_enable_state_service.cpp57 fec::io fh(block_device, O_RDWR); in set_verity_enabled_state() local
59 if (!fh) { in set_verity_enabled_state()
67 if (!fh.get_verity_metadata(metadata)) { in set_verity_enabled_state()
82 if (!fh.set_verity_status(enable)) { in set_verity_enabled_state()
Dsysdeps_win32.cpp229 void operator()(struct FHRec_* fh) { in operator ()() argument
235 _fh_close(fh); in operator ()()
533 FH fh = _fh_from_int(fds[i].fd, __func__); in adb_poll() local
534 if (!fh || !fh->used || fh->clazz != &_fh_socket_class) { in adb_poll()
540 .fd = fh->u.socket, in adb_poll()
928 unique_fh fh(_fh_alloc( &_fh_socket_class )); in adb_socket_accept() local
929 if (!fh) { in adb_socket_accept()
935 fh->fh_socket = accept( serverfh->fh_socket, addr, addrlen ); in adb_socket_accept()
936 if (fh->fh_socket == INVALID_SOCKET) { in adb_socket_accept()
944 const int fd = _fh_to_int(fh.get()); in adb_socket_accept()
[all …]
/system/extras/simpleperf/
Dgenerate_event_type_table.py124 fh = open('event_type_table.h', 'w') variable
125 fh.write(generated_str)
126 fh.close()
/system/extras/libfec/include/fec/
Dio.h138 fec_handle *fh = nullptr; variable
139 int rc = fec_open(&fh, fn.c_str(), mode, flags, roots);
141 handle_.reset(fh);
/system/extras/verity/fec/
Dmain.cpp146 fec::io fh(filename, O_RDONLY, FEC_VERITY_DISABLE); in get_start() local
148 if (!fh) { in get_start()
155 if (!fh.get_ecc_metadata(data)) { in get_start()
163 if (!fh.get_verity_metadata(data)) { in get_start()
/system/core/libappfuse/
DFuseAppLoop.cc177 bool FuseAppLoop::ReplyOpen(uint64_t unique, uint64_t fh) { in ReplyOpen() argument
180 response.open_out.fh = fh; in ReplyOpen()
/system/extras/simpleperf/scripts/
Dreport.py255 fh = open(report_file, 'r')
256 lines = fh.readlines()
257 fh.close()
/system/core/libappfuse/include/libappfuse/
DFuseAppLoop.h55 bool ReplyOpen(uint64_t unique, uint64_t fh);
/system/core/sdcard/
Dfuse.cpp643 << " fh=" << std::hex << req->fh << " @ " << hdr->nodeid << std::dec in handle_getattr()
666 DLOG(INFO) << "[" << handler->token << "] SETATTR fh=" << std::hex << req->fh in handle_setattr()
1027 out.fh = ptr_to_id(h); in handle_open()
1036 struct handle *h = static_cast<struct handle*>(id_to_ptr(req->fh)); in handle_read()
1065 struct handle *h = static_cast<struct handle*>(id_to_ptr(req->fh)); in handle_write()
1120 struct handle *h = static_cast<struct handle*>(id_to_ptr(req->fh)); in handle_release()
1137 struct dirhandle *dh = static_cast<struct dirhandle*>(id_to_ptr(req->fh)); in handle_fsync()
1140 struct handle *h = static_cast<struct handle*>(id_to_ptr(req->fh)); in handle_fsync()
1145 << std::hex << req->fh << std::dec << "(" << fd << ") is_data_sync=" << is_data_sync; in handle_fsync()
1190 out.fh = ptr_to_id(h); in handle_opendir()
[all …]
/system/extras/simpleperf/runtest/
Druntest.py372 fh = open(report_file, 'r')
373 lines = fh.readlines()
374 fh.close()