Searched refs:buffer (Results 201 - 225 of 270) sorted by relevance

1234567891011

/fuchsia/zircon/system/dev/lib/hi3660/
H A Dhi3660-gpios.c187 status = io_buffer_init_physical(&gpios->buffer, bti, block->base, block->length,
213 io_buffer_release(&gpios->buffer);
/fuchsia/zircon/system/ulib/fuzz-utils/
H A Dfuzzer.cpp603 char buffer[PATH_MAX]; local
604 while (fgets(buffer, sizeof(buffer), f)) {
605 if ((rc = SetOption(buffer)) != ZX_OK) {
656 char buffer[PATH_MAX]; local
657 while (fgets(buffer, sizeof(buffer), f)) {
658 fprintf(out_, "%s\n", buffer);
/fuchsia/zircon/system/ulib/fdio/
H A Dnamespace.c670 char* buffer; member in struct:__anon1043
693 memcpy(es->buffer, path, len + 1);
694 es->path[es->count] = es->buffer;
697 es->buffer += (len + 1);
725 es.buffer = (char*) (es.path + es.count);
/fuchsia/zircon/system/utest/core/vmar/
H A Dvmar.cpp1870 char buffer[PAGE_SIZE * 2];
1874 EXPECT_EQ(zx_process_read_memory(zx_process_self(), mapping_addr, buffer, PAGE_SIZE, &actual_read),
1879 EXPECT_EQ(zx_process_read_memory(zx_process_self(), mapping_addr + PAGE_SIZE, buffer, PAGE_SIZE, &actual_read),
1883 EXPECT_EQ(zx_process_read_memory(zx_process_self(), mapping_addr, buffer, PAGE_SIZE * 2, &actual_read),
1888 EXPECT_EQ(zx_process_read_memory(zx_process_self(), mapping_addr + PAGE_SIZE - 1, buffer, 2, &actual_read), ZX_OK);
1916 char buffer[PAGE_SIZE * 2];
1918 memset(buffer, 0, PAGE_SIZE * 2);
1921 EXPECT_EQ(zx_process_write_memory(zx_process_self(), mapping_addr, buffer, PAGE_SIZE, &actual_written),
1926 EXPECT_EQ(zx_process_write_memory(zx_process_self(), mapping_addr + PAGE_SIZE, buffer, PAGE_SIZE, &actual_written),
1930 EXPECT_EQ(zx_process_write_memory(zx_process_self(), mapping_addr, buffer, PAGE_SIZ
[all...]
/fuchsia/zircon/system/ulib/tftp/
H A Dtftp.c136 static size_t next_option(char* buffer, size_t len, char** option, char** value) { argument
138 size_t option_len = strnlen(buffer, left);
143 *option = buffer;
145 buffer += option_len + 1;
147 size_t value_len = strnlen(buffer, left);
151 *value = buffer;
174 // *resp_len is unchanged - the whole buffer was used
226 int tftp_init(tftp_session** session, void* buffer, size_t size) { argument
227 if (buffer == NULL) {
233 *session = buffer;
[all...]
/fuchsia/zircon/system/dev/block/block/
H A Dblock.c417 uint8_t buffer[METADATA_PARTITION_MAP_MAX]; local
419 status = device_get_metadata(dev, DEVICE_METADATA_PARTITION_MAP, buffer, sizeof(buffer),
/fuchsia/zircon/system/dev/block/mbr/
H A Dmbr.c275 uint8_t buffer[MBR_SIZE]; local
276 mbr_t* mbr = (mbr_t*)buffer;
277 if (vmo_read(vmo, buffer, 0, MBR_SIZE) != ZX_OK) {
/fuchsia/zircon/system/ulib/trace-engine/
H A Dengine.cpp26 // to the trace buffer during shutdown. See point of use for details.
82 // count: buffer acquisitions and prolonged acquisitions. Buffer acquisitions
83 // are for the purpose of writing to the trace buffer. Prolonged acquisitions
94 // |31 ... 8| = buffer acquisition count
97 // assert-fail if there are more. This allows for 2^24 buffer acquisitions
170 void* buffer,
174 ZX_DEBUG_ASSERT(buffer);
185 // The buffer size must be a multiple of 4096 (simplifies buffer size
223 g_context = new trace_context(buffer, buffer_num_byte
167 trace_start_engine(async_dispatcher_t* dispatcher, trace_handler_t* handler, trace_buffering_mode_t buffering_mode, void* buffer, size_t buffer_num_bytes) argument
[all...]
H A Dcontext.cpp8 // Threads and strings are cached to improve performance and reduce buffer
13 // Oneshot: The trace buffer is just one large buffer, and records are written
14 // until the buffer is full after which all further records are dropped.
17 // The trace buffer is effectively divided into two pieces, and tracing begins
18 // by writing to the first piece. Once one buffer fills we start writing to the
19 // other one. This results in half the buffer being dropped at every switch,
24 // The trace buffer is effectively divided into two pieces, and tracing begins
25 // by writing to the first piece. Once one buffer fills we start writing to the
26 // other buffer, i
93 trace_context(void* buffer, size_t buffer_num_bytes, trace_buffering_mode_t buffering_mode, trace_handler_t* handler) argument
[all...]
H A Dcontext_impl.h18 // Return true if there are no buffer acquisitions of the trace context.
21 // Called from trace_context to notify the engine a buffer needs saving.
30 trace_context(void* buffer, size_t buffer_num_bytes, trace_buffering_mode_t buffering_mode,
62 // Return the number of bytes currently allocated in the rolling buffer(s).
75 // This is called by the handler when it has been notified that a buffer
77 // |wrapped_count| is the wrapped count at the time the buffer save request
81 // This is only called from the engine to initiate a buffer save.
86 // The maximum rolling buffer size in bits.
89 // Maximum size, in bytes, of a rolling buffer.
92 // The number of usable bits in the buffer pointe
[all...]
/fuchsia/zircon/kernel/arch/x86/include/arch/x86/
H A Dregisters.h153 // Maximum buffer size needed for xsave and variants. To allocate, see ...BUFFER_SIZE below.
177 /* Initialize a state vector. The passed in buffer must be X86_EXTENDED_REGISTER_SIZE big and it
179 void x86_extended_register_init_state(void* buffer);
/fuchsia/zircon/system/dev/lib/amlogic/include/soc/aml-s905d2/
H A Ds905d2-hiu.h7 #include <ddk/io-buffer.h>
/fuchsia/zircon/system/dev/usb/xhci/
H A Dxhci-transfer-common.c13 uint64_t paddr = io_buffer_phys(&ring->buffer) + index * sizeof(xhci_trb_t);
/fuchsia/zircon/system/host/minfs/
H A Dmain.cpp94 char buffer[256 * 1024]; local
97 if ((r = src.Read(buffer, sizeof(buffer))) < 0) {
103 void* ptr = buffer;
/fuchsia/zircon/system/ulib/tftp/include/tftp/
H A Dtftp.h33 * generated in the outgoing buffer parameters to each method call.
99 char* inbuf; // required - buffer for assembling incoming msgs
101 char* outbuf; // required - buffer for assembling outgoing msgs
112 char* inbuf; // required - buffer for assembling incoming msgs
114 char* outbuf; // required - buffer for assembling outgoing msgs
210 // Initialize the tftp_session pointer using the memory in |buffer| of size
212 tftp_status tftp_init(tftp_session** session, void* buffer, size_t size);
/fuchsia/zircon/system/dev/bus/acpi/
H A Ddev-tbmc.cpp107 ACPI_BUFFER buffer = { local
112 nullptr, &buffer, ACPI_TYPE_INTEGER);
H A Ddev-battery.c52 ACPI_BUFFER buffer = { local
56 ACPI_STATUS acpi_status = AcpiEvaluateObject(dev->acpi_handle, (char*)"_STA", NULL, &buffer);
/fuchsia/zircon/system/dev/display/astro-display/
H A Dlcd.cpp558 // This function write DSI commands based on the input buffer.
559 zx_status_t Lcd::LoadInitTable(const uint8_t* buffer, size_t size) { argument
565 switch (buffer[i]) {
567 zx_nanosleep(zx_deadline_after(ZX_MSEC(buffer[i + 1])));
575 if ((status = dsi_->Cmd(&buffer[i+2], buffer[i+1], NULL, 0,
581 i += buffer[i + 1] + 2; // the 2 includes current plus size field
/fuchsia/zircon/system/utest/core/socket/
H A Dsocket.c670 // TODO(qsr): Request socket buffer and use (socket_buffer + 1).
672 char* buffer = malloc(buffer_size); local
674 status = zx_socket_write(h0, 0u, buffer, buffer_size, &written);
678 free(buffer);
772 void* buffer = calloc(buffer_size, 1u); local
773 EXPECT_NONNULL(buffer, "");
776 status = zx_socket_write(h0, 0u, buffer, buffer_size, &written);
782 free(buffer);
/fuchsia/zircon/system/dev/block/ahci/
H A Dahci.c9 #include <ddk/io-buffer.h>
63 io_buffer_t buffer; member in struct:ahci_port
386 zx_status_t status = io_buffer_init(&port->buffer, dev->bti_handle,
392 zx_paddr_t mem_phys = io_buffer_phys(&port->buffer);
393 void* mem = io_buffer_virt(&port->buffer);
/fuchsia/zircon/system/dev/ethernet/usb-cdc-function/
H A Dcdc-eth-function.c160 char buffer[sizeof(cdc->mac_addr) * 3]; local
161 snprintf(buffer, sizeof(buffer), "%02X%02X%02X%02X%02X%02X",
165 return usb_function_alloc_string_desc(&cdc->function, buffer, &descriptors.cdc_eth.iMACAddress);
402 static zx_status_t cdc_control(void* ctx, const usb_setup_t* setup, void* buffer, argument
/fuchsia/zircon/system/dev/misc/cpu-trace/
H A Dintel-pm.c11 #include <ddk/io-buffer.h>
141 // Each buffer is the same size (at least for now, KISS).
142 // There is one buffer per cpu.
144 // that large of a buffer.
815 zx_x86_ipm_buffer_t buffer;
817 buffer.vmo = io_buffer->vmo_handle;
820 &buffer, sizeof(buffer));
813 zx_x86_ipm_buffer_t buffer; local
/fuchsia/zircon/system/utest/digest/
H A Dmerkle-tree.cpp632 uint8_t buffer[Digest::kLength]; local
647 ASSERT_OK(digest.CopyTo(buffer, sizeof(buffer)));
651 buffer[rand() % Digest::kLength] ^=
654 digest = buffer;
/fuchsia/zircon/system/dev/audio/lib/simple-audio-stream/
H A Dsimple-audio-stream.cpp193 "Request buffer is getting to be too large to hold on the stack!");
232 "Request buffer is getting to be too large to hold on the stack!");
251 zxlogf(ERROR, "Unrecognized ring buffer command 0x%04x\n", req.hdr.cmd);
356 // exiting ring buffer interface before proceeding.
372 // Create a new ring buffer channel which can be used to move bulk data and
522 zx::vmo buffer; local
523 resp.result = GetBuffer(req, &resp.num_ring_buffer_frames, &buffer);
525 zx_status_t res = channel->Write(&resp, sizeof(resp), fbl::move(buffer));
/fuchsia/zircon/system/uapp/disk-pave/test/
H A Ddevice-partitioner-test.cpp182 void CreateBadBlockMap(void* buffer) { argument
185 memset(buffer, kBlockGood, kPageSize);
194 auto* oob = reinterpret_cast<OobMetadata*>(reinterpret_cast<uintptr_t>(buffer) + oob_offset);

Completed in 361 milliseconds

1234567891011