/system/bt/hci/src/ |
H A D | hci_layer_linux.cc | 105 static int rfkill(int block); 366 static int rfkill(int block) { argument 381 event.hard = block; 382 event.soft = block;
|
/system/bt/vendor_libs/linux/interface/ |
H A D | bluetooth_hci.cc | 224 int BluetoothHci::rfKill(int block) { argument 226 char on = (block)?'1':'0';
|
/system/core/adb/ |
H A D | adb_utils.cpp | 193 bool set_file_block_mode(int fd, bool block) { argument 199 flags = block ? (flags & ~O_NONBLOCK) : (flags | O_NONBLOCK);
|
H A D | commandline.cpp | 650 // Now block SIGWINCH in this thread (the main thread) and all threads spawned 827 * file and a block size chosen by us. 829 * - The other side sends the desired block number as eight decimal 830 * digits (eg "00000023" for block 23). Blocks are numbered from 833 * - We send back the data of the requested block. The last block is 834 * likely to be partial; when the last block is requested we only 835 * send the part of the block that exists, it's not padded up to the 836 * block size. 838 * - When the other side sends "DONEDONE" instead of a block numbe 887 int block = strtol(buf, NULL, 10); local [all...] |
H A D | sysdeps_win32.cpp | 1087 bool set_file_block_mode(int fd, bool block) { argument 1097 u_long x = !block; 1614 // Read of zero bytes should not block waiting for something from the console. 1628 // Read from the actual console. This may block until input.
|
/system/core/init/ |
H A D | devices.cpp | 80 /* Given a path that may start with a virtual block device, populate 81 * the supplied buffer with the virtual block device ID and return 0. 82 * If it doesn't start with a virtual block device, or there is some 93 virtual block device ID. Example: 768 */ 222 void DeviceHandler::MakeDevice(const std::string& path, bool block, int major, int minor, argument 225 mode |= (block ? S_IFBLK : S_IFCHR); 327 auto link_path = "/dev/block/" + type + "/" + device; 349 void DeviceHandler::HandleDevice(const std::string& action, const std::string& devpath, bool block, argument 352 MakeDevice(devpath, block, major, minor, links); 385 bool block local [all...] |
/system/core/libsparse/ |
H A D | backed_block.c | 27 unsigned int block; member in struct:backed_block 72 return bb->block; 181 if (!bb->next || bb->next->block > start->block) { 196 /* Block doesn't exist (possible if one block is the last block) */ 201 assert(a->block < b->block); 210 if (a->block + block_len != b->block) { 292 backed_block_add_fill(struct backed_block_list *bbl, unsigned int fill_val, unsigned int len, unsigned int block) argument 310 backed_block_add_data(struct backed_block_list *bbl, void *data, unsigned int len, unsigned int block) argument 328 backed_block_add_file(struct backed_block_list *bbl, const char *filename, int64_t offset, unsigned int len, unsigned int block) argument 347 backed_block_add_fd(struct backed_block_list *bbl, int fd, int64_t offset, unsigned int len, unsigned int block) argument [all...] |
H A D | sparse.c | 56 void *data, unsigned int len, unsigned int block) 58 return backed_block_add_data(s->backed_block_list, data, len, block); 62 uint32_t fill_val, unsigned int len, unsigned int block) 64 return backed_block_add_fill(s->backed_block_list, fill_val, len, block); 69 unsigned int block) 72 len, block); 76 int fd, int64_t file_offset, unsigned int len, unsigned int block) 79 len, block); 204 unsigned int block; member in struct:chunk_data 206 int (*write)(void *priv, const void *data, int len, unsigned int block, 55 sparse_file_add_data(struct sparse_file *s, void *data, unsigned int len, unsigned int block) argument 61 sparse_file_add_fill(struct sparse_file *s, uint32_t fill_val, unsigned int len, unsigned int block) argument 67 sparse_file_add_file(struct sparse_file *s, const char *filename, int64_t file_offset, unsigned int len, unsigned int block) argument 75 sparse_file_add_fd(struct sparse_file *s, int fd, int64_t file_offset, unsigned int len, unsigned int block) argument 217 sparse_file_foreach_chunk(struct sparse_file *s, bool sparse, bool crc, int (*write)(void *priv, const void *data, int len, unsigned int block, unsigned int nr_blocks), void *priv) argument [all...] |
H A D | sparse_read.cpp | 77 int fd, int64_t offset, unsigned int blocks, unsigned int block, 92 ret = sparse_file_add_fd(s, fd, offset, len, block); 115 int fd, unsigned int blocks, unsigned int block, uint32_t *crc32) 133 ret = sparse_file_add_fill(s, fill_val, len, block); 157 unsigned int block __unused, uint32_t *crc32) 212 verbose_error(s->verbose, ret, "data block at %" PRId64, offset); 220 verbose_error(s->verbose, ret, "fill block at %" PRId64, offset); 229 verbose_error(s->verbose, ret, "skip block at %" PRId64, offset); 237 verbose_error(s->verbose, -EINVAL, "crc block at %" PRId64, 243 verbose_error(s->verbose, -EINVAL, "unknown block 76 process_raw_chunk(struct sparse_file *s, unsigned int chunk_size, int fd, int64_t offset, unsigned int blocks, unsigned int block, uint32_t *crc32) argument 114 process_fill_chunk(struct sparse_file *s, unsigned int chunk_size, int fd, unsigned int blocks, unsigned int block, uint32_t *crc32) argument 336 unsigned int block = 0; local [all...] |
/system/core/logd/ |
H A D | libaudit.c | 210 int audit_get_reply(int fd, struct audit_message* rep, reply_t block, int peek) { argument 223 flags = (block == GET_REPLY_NONBLOCKING) ? MSG_DONTWAIT : 0; 239 if (block == GET_REPLY_NONBLOCKING && rc == -EAGAIN) {
|
/system/core/toolbox/upstream-netbsd/bin/dd/ |
H A D | conv.c | 103 void block(void) { errx(EXIT_FAILURE, "%s", no_block + 2); } function 117 block(void) function 126 * Record truncation can cross block boundaries. If currently in a 161 * input block. 179 * block, it's a truncation.
|
/system/extras/ext4_utils/ |
H A D | allocate.c | 120 reg->block, reg->block + reg->len - 1, reg->len) 140 fprintf(f, "%d", reg->block); 142 fprintf(f, "%d-%d", reg->block, reg->block + reg->len - 1); 150 u32 block, u32 len, int bg_num) 154 reg->block = block; 167 u32 block = bg->first_block + 2; 170 block 149 append_region(struct block_allocation *alloc, u32 block, u32 len, int bg_num) argument 204 u32 block = start; local 231 free_blocks(struct block_group_info *bg, u32 block, u32 num_blocks) argument 301 u32 block = bg->first_block; local 359 u32 block; local 507 get_block(struct block_allocation *alloc, u32 block) argument 520 get_oob_block(struct block_allocation *alloc, u32 block) argument 535 get_region(struct block_allocation *alloc, u32 *block, u32 *len) argument 693 struct ext4_xattr_header *block = xattr_list_find(inode); local [all...] |
H A D | allocate.h | 25 u32 block; member in struct:region 74 u32 get_block(struct block_allocation *alloc, u32 block); 75 u32 get_oob_block(struct block_allocation *alloc, u32 block); 77 void get_region(struct block_allocation *alloc, u32 *block, u32 *len); 93 u32 block, u32 len, int bg);
|
H A D | ext4fixup.c | 44 /* The inode block count for a file/directory is in units of 512 byte blocks, 45 * _NOT_ the filesystem block size! 195 static int read_block(int fd, unsigned long long block_num, void *block) argument 203 critical_error_errno("failed to seek to block %lld\n", block_num); 206 len=read(fd, block, info.block_size); 208 critical_error_errno("failed to read block %lld\n", block_num); 214 static int write_block(int fd, unsigned long long block_num, void *block) argument 226 critical_error_errno("failed to seek to block %lld\n", block_num); 229 len=write(fd, block, info.block_size); 231 critical_error_errno("failed to write block 240 unsigned char block[MAX_EXT4_BLOCK_SIZE]; local 449 unsigned char block[MAX_EXT4_BLOCK_SIZE]; local [all...] |
H A D | make_ext4fs.c | 95 Allocating blocks in the same block group as the file inode 564 return c1->block - c2->block; 567 static int get_block_group(u32 block) { argument 571 if (block >= aux_info.bgs[i].first_block) 662 // Assummption is that allocations are within the same block group 665 critical_error("base file allocation's end block is in a different " 666 "block group than start block. did you change fs params?"); 670 int min_bg_bound = bgs[block_group].chunks[0].block [all...] |
H A D | sha1.c | 39 # define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \ 40 |(rol(block->l[i],8)&0x00FF00FF)) 42 # define blk0(i) block->l[i] 44 #define blk(i) (block->l[(i)&15] = rol(block->l[((i)+13)&15]^block->l[((i)+8)&15] \ 45 ^block->l[((i)+2)&15]^block->l[(i)&15],1)) 80 do_R01(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *block) argument 90 do_R2(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *block) argument 100 do_R3(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *block) argument 110 do_R4(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *block) argument 128 CHAR64LONG16 *block; local [all...] |
/system/extras/f2fs_utils/ |
H A D | f2fs_sparseblock.c | 39 SLOGD("| Super block |\n"); 194 SLOGE("Not a valid F2FS super block. Magic:%#08x != %#08x", 225 /* Read the 1st cp block in this CP pack */ 238 /* Read the 2nd cp block in this CP pack */ 332 SLOGD("Reading cache block starting at block %"PRIu64, address); 334 SLOGE("Could not read sit block at block %"PRIu64, address); 492 u64 block; local 495 block [all...] |
/system/extras/libfec/ |
H A D | fec_verity.cpp | 93 /* we assume a known metadata size, 4 KiB block size, and SHA-256 to avoid 119 buffer `block', and copies the hash to `hash' */ 120 static inline int verity_hash(fec_handle *f, const uint8_t *block, argument 130 check(block); 131 SHA256_Update(&ctx, block, FEC_BLOCKSIZE); 138 /* computes a verity hash for FEC_BLOCKSIZE bytes from buffer `block' and 141 const uint8_t *block) 144 check(block); 148 if (unlikely(verity_hash(f, block, hash) == -1)) { 157 /* reads a verity hash and the corresponding data block usin 140 verity_check_block(fec_handle *f, const uint8_t *expected, const uint8_t *block) argument [all...] |
/system/extras/verity/ |
H A D | build_verity_tree.cpp | 54 const unsigned char *block, size_t len, 66 ret &= EVP_DigestUpdate(mdctx, block, len); 53 hash_block(const EVP_MD *md, const unsigned char *block, size_t len, const unsigned char *salt, size_t salt_len, unsigned char *out, size_t *out_size) argument
|
/system/keymaster/ |
H A D | ocb.c | 150 typedef __m128i block; typedef 159 static inline block swap_if_le(block b) { 160 block a = _mm_shuffle_epi32(b, _MM_SHUFFLE(0, 1, 2, 3)); 166 static inline block gen_offset(uint64_t KtopStr[3], unsigned bot) { 167 block hi = _mm_load_si128((__m128i*)(KtopStr + 0)); /* hi = B A */ 168 block lo = _mm_loadu_si128((__m128i*)(KtopStr + 1)); /* lo = C B */ 178 static inline block double_block(block bl) { 188 typedef vector unsigned block; typedef 242 typedef int8x16_t block; /* Yay! Endian-neutral reads! */ typedef 276 typedef struct { uint64_t l, r; } block; typedef in typeref:struct:__anon1796 [all...] |
/system/libufdt/ |
H A D | ufdt_node_pool.c | 32 /* A block is a header appended UFDT_NODE_POOL_ENTRIES_PER_BLOCK entries */ 40 * pool block block 73 struct ufdt_node_pool_block_header *block = pool->first_block; local 74 while (block != NULL) { 75 if (block->alloc_entry_cnt != 0) is_leak = 1; 77 struct ufdt_node_pool_block_header *next_block = block->next_block; 78 dto_free(block); 79 block = next_block; 95 struct ufdt_node_pool_block_header *block local 117 _ufdt_node_pool_destory_block( struct ufdt_node_pool_block_header *block) argument 122 _ufdt_node_pool_block_alloc( struct ufdt_node_pool_block_header *block) argument 133 _ufdt_node_pool_block_free(struct ufdt_node_pool_block_header *block, void *node) argument 143 _ufdt_node_pool_preppend_block( struct ufdt_node_pool *pool, struct ufdt_node_pool_block_header *block) argument 154 _ufdt_node_pool_append_block( struct ufdt_node_pool *pool, struct ufdt_node_pool_block_header *block) argument 165 struct ufdt_node_pool_block_header *block = *block_ptr; local 183 struct ufdt_node_pool_block_header *block = pool->first_block; local 204 struct ufdt_node_pool_block_header *block = *block_ptr; local 230 struct ufdt_node_pool_block_header *block = *block_ptr; local [all...] |
/system/nfc/halimpl/bcm2079x/adaptation/ |
H A D | NonVolatileStore.cpp | 66 void nfc_hal_nv_co_read(uint8_t* p_buf, uint16_t nbytes, uint8_t block) { argument 75 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), block); 86 nfc_hal_nv_ci_read(actualReadData, NFC_HAL_NV_CO_OK, block); 89 nfc_hal_nv_ci_read(0, NFC_HAL_NV_CO_FAIL, block); 93 nfc_hal_nv_ci_read(0, NFC_HAL_NV_CO_FAIL, block); 118 void nfc_hal_nv_co_write(const uint8_t* p_buf, uint16_t nbytes, uint8_t block) { argument 128 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), block);
|
/system/nfc/halimpl/bcm2079x/hal/hal/ |
H A D | nfc_hal_hci.c | 70 static void nfc_hal_hci_set_next_hci_netwk_config(uint8_t block); 72 static void nfc_hal_hci_handle_nv_read(uint8_t block, tHAL_NFC_STATUS status, 93 (p_evt_data->nv_read.block == HC_F3_NV_BLOCK || 94 p_evt_data->nv_read.block == HC_F4_NV_BLOCK || 95 p_evt_data->nv_read.block == HC_F5_NV_BLOCK)) || 97 p_evt_data->nv_read.block == HC_F2_NV_BLOCK)) { 98 nfc_hal_hci_handle_nv_read(p_evt_data->nv_read.block, 102 /* Invalid block or no buffer, Ignore */ 104 "nfc_hal_hci_evt_hdlr: No buffer for handling read NV block: " 106 p_evt_data->nv_read.block); 244 uint8_t block = 0; local 435 uint8_t block = 0; local 506 nfc_hal_hci_handle_nv_read(uint8_t block, tHAL_NFC_STATUS status, uint16_t size) argument 703 nfc_hal_hci_set_next_hci_netwk_config(uint8_t block) argument [all...] |
H A D | nfc_hal_hci_ci.c | 43 uint8_t block) { 60 p_msg->nv_read.block = block; 42 nfc_hal_nv_ci_read(uint16_t num_bytes_read, tNFC_HAL_NV_CO_STATUS status, uint8_t block) argument
|
/system/nfc/src/adaptation/ |
H A D | libmain.c | 80 extern void nfa_nv_co_read(uint8_t* pBuffer, uint16_t nbytes, uint8_t block) { argument 91 sprintf(filename, "%s%u", filename2, block); 102 nfa_nv_ci_read(actualReadData, NFA_NV_CO_OK, block); 105 nfa_nv_ci_read(0, NFA_NV_CO_FAIL, block); 109 nfa_nv_ci_read(0, NFA_NV_CO_FAIL, block); 133 uint8_t block) { 144 sprintf(filename, "%s%u", filename2, block); 132 nfa_nv_co_write(const uint8_t* pBuffer, uint16_t nbytes, uint8_t block) argument
|