| /lib/uefi/ |
| A D | text_protocol.cpp | 23 char buffer[512]; in output_string() local 27 for (j = 0; j < sizeof(buffer) - 1 && string[i + j]; j++) { in output_string() 28 buffer[j] = string[i + j]; in output_string() 31 buffer[j] = 0; in output_string() 33 printf("%s", reinterpret_cast<const char *>(buffer)); in output_string()
|
| A D | runtime_service_provider.cpp | 38 char buffer[512]; in GetVariable() local 40 while (VariableName[i] && i < sizeof(buffer)) { in GetVariable() 42 for (j = 0; j < sizeof(buffer) - 1 && VariableName[i + j]; j++) { in GetVariable() 43 buffer[j] = VariableName[i + j]; in GetVariable() 47 buffer[i] = 0; in GetVariable() 48 if (strncmp(buffer, kSecureBoot, sizeof(kSecureBoot)) == 0 || strcmp(buffer, "SetupMode") == 0) { in GetVariable() 73 printf("%s(%s) is unsupported\n", __FUNCTION__, buffer); in GetVariable()
|
| A D | blockio2_protocols.cpp | 70 size_t buffer_size, void* buffer) { in read_blocks_async() argument 80 bio_read_async(dev, buffer, lba * dev->block_size, buffer_size, in read_blocks_async() 89 [dev, lba, buffer_size, buffer, token]() { in read_blocks_async() 93 bio_read_block(dev, buffer, lba, buffer_size / dev->block_size); in read_blocks_async() 113 size_t buffer_size, void* buffer) { in read_blocks_trampoline() argument 118 buffer_size, buffer); in read_blocks_trampoline() 124 size_t buffer_size, const void* buffer) { in write_blocks_ex() argument
|
| A D | blockio_protocols.cpp | 33 size_t buffer_size, void *buffer) { in read_blocks() argument 46 call_with_stack(interface->io_stack, bio_read_block, dev, buffer, lba, in read_blocks() 56 uint64_t lba, size_t buffer_size, const void *buffer) { in write_blocks() argument
|
| A D | uefi.cpp | 181 char16_t buffer[128]; in cmd_uefi_set_variable() local 182 utf8_to_utf16(buffer, argv[1].str, sizeof(buffer) / sizeof(buffer[0])); in cmd_uefi_set_variable() 183 efi_set_variable(buffer, in cmd_uefi_set_variable()
|
| /lib/fs/fat/ |
| A D | fat_fs.h | 82 auto *buffer = (const uint8_t *)_buffer; in fat_read32() local 84 return buffer[offset] + in fat_read32() 85 (buffer[offset + 1] << 8) + in fat_read32() 86 (buffer[offset + 2] << 16) + in fat_read32() 87 (buffer[offset + 3] << 24); in fat_read32() 91 auto *buffer = (const uint8_t *)_buffer; in fat_read16() local 93 return buffer[offset] + in fat_read16() 94 (buffer[offset + 1] << 8); in fat_read16()
|
| /lib/console/ |
| A D | console.c | 364 buffer[pos] = 0; in read_debug_line() 368 add_history(con, buffer); in read_debug_line() 372 *outbuffer = buffer; in read_debug_line() 545 buffer[outpos] = 0; in tokenize_command() 593 const char *buffer; in command_loop() local 753 char *buffer; member 776 lineread->buffer[bufpos] = 0; in fetch_next_line() 778 *buffer = lineread->buffer; in fetch_next_line() 793 free(lineread.buffer); in console_run_script_etc() 909 buffer[pos++] = c; in read_line_panic() [all …]
|
| /lib/klog/include/lib/ |
| A D | klog.h | 28 status_t klog_set_current_buffer(uint buffer); 31 void klog_dump(int buffer); 38 int klog_get_buffer(int buffer, iovec_t *vec);
|
| /lib/uefi/include/uefi/protocols/ |
| A D | android_boot_protocol.h | 32 size_t* buffer_size, void* buffer); 34 size_t* buffer_size, const void* buffer);
|
| A D | gbl_efi_fastboot_transport.h | 43 size_t* buffer_size, void* buffer, 46 size_t* buffer_size, const void* buffer);
|
| A D | block_io2_protocol.h | 38 size_t buffer_size, void* buffer); 41 size_t buffer_size, const void* buffer);
|
| A D | block_io_protocol.h | 31 uint64_t lba, size_t buffer_size, void *buffer); 34 const void *buffer);
|
| /lib/minip/include/lib/ |
| A D | pktbuf.h | 40 u8 *buffer; member 58 return p->phys_base + (p->data - p->buffer); in pktbuf_data_phys() 63 return p->data - p->buffer; in pktbuf_avail_head() 68 return p->blen - (p->data - p->buffer) - p->dlen; in pktbuf_avail_tail()
|
| /lib/klog/ |
| A D | klog.c | 244 if (buffer >= klog_buf->log_count) in klog_set_current_buffer() 248 klog = find_nth_log(buffer); in klog_set_current_buffer() 398 if (buffer >= 0 && (uint)buffer >= klog_buf->log_count) in klog_get_buffer() 402 if (buffer < 0) in klog_get_buffer() 405 k = find_nth_log(buffer); in klog_get_buffer() 429 void klog_dump(int buffer) { in klog_dump() argument 543 int buffer = -1; in cmd_klog() local 546 buffer = argv[2].u; in cmd_klog() 548 klog_dump(buffer); in cmd_klog() 550 int buffer = -1; in cmd_klog() local [all …]
|
| /lib/minip/ |
| A D | pktbuf.c | 81 p->buffer = buf; in pktbuf_add_buffer() 83 p->data = p->buffer + header_sz; in pktbuf_add_buffer() 122 DEBUG_ASSERT(p->buffer); in pktbuf_reset() 125 p->data = p->buffer + header_sz; in pktbuf_reset() 140 p->cb(p->buffer, p->cb_args); in pktbuf_free() 202 p->data, p->buffer, p->dlen, (uintptr_t) p->data - (uintptr_t) p->buffer, in pktbuf_dump()
|
| /lib/norfs/test/ |
| A D | norfs_test.c | 460 unsigned char buffer[16]; in test_garbage_collection_interruption() local 476 EXPECT_EQ(NO_ERROR, norfs_read_obj(0, buffer, sizeof(buffer), &obj_len, 0), in test_garbage_collection_interruption() 478 EXPECT_EQ(ERR_NOT_FOUND, norfs_read_obj(2, buffer, sizeof(buffer), &obj_len, 0), in test_garbage_collection_interruption() 632 unsigned char buffer[4]; in test_wrapping() local 647 EXPECT_EQ(NO_ERROR, norfs_read_obj(2, buffer, sizeof(buffer), &bytes_read, 0), in test_wrapping() 650 EXPECT_EQ(*(buffer + i), *(good_object_v127 + NORFS_OBJ_OFFSET + i), in test_wrapping() 669 EXPECT_EQ(NO_ERROR, norfs_read_obj(2, buffer, sizeof(buffer), &bytes_read, in test_wrapping() 673 EXPECT_EQ(*(buffer + i), *(good_object + NORFS_OBJ_OFFSET + i), in test_wrapping()
|
| /lib/norfs/include/lib/ |
| A D | norfs.h | 56 status_t norfs_read_obj(uint32_t key, unsigned char *buffer, uint16_t buffer_len,
|
| /lib/norfs/ |
| A D | norfs.c | 402 status_t norfs_read_obj(uint32_t key, unsigned char *buffer, in norfs_read_obj() argument 409 vec->iov_base = buffer; in norfs_read_obj()
|