Searched refs:buffer (Results 176 - 200 of 326) sorted by relevance

1234567891011>>

/u-boot/drivers/i2c/
H A Ddesignware_i2c.c458 * @buffer: buffer for read data
464 int alen, u8 *buffer, int len)
509 *buffer++ = (uchar)readl(&i2c_base->ic_cmd_data);
526 * @buffer: buffer for read data
532 int alen, u8 *buffer, int len)
563 writel(*buffer | IC_STOP,
566 writel(*buffer, &i2c_base->ic_cmd_data);
568 buffer
463 __dw_i2c_read(struct i2c_regs *i2c_base, u8 dev, uint addr, int alen, u8 *buffer, int len) argument
531 __dw_i2c_write(struct i2c_regs *i2c_base, u8 dev, uint addr, int alen, u8 *buffer, int len) argument
655 dw_i2c_read(struct i2c_adapter *adap, u8 dev, uint addr, int alen, u8 *buffer, int len) argument
661 dw_i2c_write(struct i2c_adapter *adap, u8 dev, uint addr, int alen, u8 *buffer, int len) argument
[all...]
H A Di2c-cortina.c194 int alen, uint8_t *buffer, int len)
218 *buffer++ =
232 int alen, uint8_t *buffer, int len)
243 writel(*buffer, &regs->i2c_txr);
254 buffer++;
193 ca_i2c_read(struct i2c_regs *regs, uint8_t chip, uint addr, int alen, uint8_t *buffer, int len) argument
231 ca_i2c_write(struct i2c_regs *regs, uint8_t chip, uint addr, int alen, uint8_t *buffer, int len) argument
H A Dtegra_i2c.c282 * for the last word, we read into our local buffer,
283 * in case that caller did not provide enough buffer.
419 static int i2c_write_data(struct i2c_bus *i2c_bus, uchar chip, uchar *buffer, argument
428 debug(" 0x%02x", buffer[rc]);
432 rc = tegra_i2c_write_data(i2c_bus, chip << 1, buffer, len,
441 static int i2c_read_data(struct i2c_bus *i2c_bus, uchar chip, uchar *buffer, argument
448 rc = tegra_i2c_read_data(i2c_bus, chip << 1, buffer, len);
457 debug(" 0x%02x", buffer[rc]);
/u-boot/board/xilinx/common/
H A Dboard.c178 static bool xilinx_detect_legacy(u8 *buffer) argument
184 c = buffer[i];
267 static bool xilinx_detect_fru(u8 *buffer) argument
272 checksum = fru_checksum((u8 *)buffer, sizeof(struct fru_common_hdr));
281 if (buffer[i] != 0)
298 u8 buffer[XILINX_I2C_DETECTION_BITS]; local
308 ret = dm_i2c_read(dev, 0, buffer, sizeof(buffer));
316 if (IS_ENABLED(CONFIG_CMD_FRU) && xilinx_detect_fru(buffer))
319 if (xilinx_detect_legacy(buffer))
[all...]
/u-boot/drivers/ram/octeon/
H A Ddimm_spd_eeprom.c304 char *printable_rank_spec(char *buffer, int num_ranks, int dram_width, argument
311 sprintf(buffer, "%dS%dRx%d", num_ranks, die_count,
316 sprintf(buffer, "%d%cRx%d", num_ranks, hchar,
320 sprintf(buffer, "%dRx%d", num_ranks, dram_width);
323 return buffer;
/u-boot/lib/blake2/
H A Dblake2b.c238 memcpy( S->buf + left, in, fill ); /* Fill buffer */
257 uint8_t buffer[BLAKE2B_OUTBYTES] = {0}; local
271 for( i = 0; i < 8; ++i ) /* Output full hash to temp buffer */
272 store64( buffer + sizeof( S->h[i] ) * i, S->h[i] );
274 memcpy( out, buffer, S->outlen );
275 secure_zero_memory(buffer, sizeof(buffer));
/u-boot/arch/x86/lib/
H A Dbios.c197 char *buffer; local
201 buffer = PTR_TO_REAL_MODE(asm_realmode_buffer);
202 buffer_seg = (((unsigned long)buffer) >> 4) & 0xff00;
203 buffer_adr = ((unsigned long)buffer) & 0xffff;
207 memcpy(mi->mode_info_block, buffer, sizeof(struct vesa_mode_info));
/u-boot/drivers/usb/host/
H A Dxhci.c516 * descriptor. The average TRB buffer lengt for bulk endpoints
914 * @param buffer buffer to be read/written based on the request
918 void *buffer, struct devrequest *req)
1121 memcpy(buffer, srcptr, len);
1142 * @param buffer buffer to be read/written based on the request
1143 * @param length length of the buffer
1148 void *buffer, int length, int interval,
1162 return xhci_bulk_tx(udev, pipe, length, buffer);
917 xhci_submit_root(struct usb_device *udev, unsigned long pipe, void *buffer, struct devrequest *req) argument
1147 _xhci_submit_int_msg(struct usb_device *udev, unsigned long pipe, void *buffer, int length, int interval, bool nonblock) argument
1174 _xhci_submit_bulk_msg(struct usb_device *udev, unsigned long pipe, void *buffer, int length) argument
1196 _xhci_submit_control_msg(struct usb_device *udev, unsigned long pipe, void *buffer, int length, struct devrequest *setup, int root_portnr) argument
1297 xhci_submit_control_msg(struct udevice *dev, struct usb_device *udev, unsigned long pipe, void *buffer, int length, struct devrequest *setup) argument
1330 xhci_submit_bulk_msg(struct udevice *dev, struct usb_device *udev, unsigned long pipe, void *buffer, int length) argument
1337 xhci_submit_int_msg(struct udevice *dev, struct usb_device *udev, unsigned long pipe, void *buffer, int length, int interval, bool nonblock) argument
[all...]
H A Dusb-uclass.c47 int submit_int_msg(struct usb_device *udev, unsigned long pipe, void *buffer, argument
56 return ops->interrupt(bus, udev, pipe, buffer, length, interval,
61 void *buffer, int length, struct devrequest *setup)
71 err = ops->control(bus, udev, pipe, buffer, length, setup);
83 int submit_bulk_msg(struct usb_device *udev, unsigned long pipe, void *buffer, argument
92 return ops->bulk(bus, udev, pipe, buffer, length);
97 void *buffer, int interval)
106 buffer, interval);
60 submit_control_msg(struct usb_device *udev, unsigned long pipe, void *buffer, int length, struct devrequest *setup) argument
95 create_int_queue(struct usb_device *udev, unsigned long pipe, int queuesize, int elementsize, void *buffer, int interval) argument
/u-boot/lib/efi_loader/
H A Defi_boottime.c463 * @memory_map_size: on entry the size, in bytes, of the memory map buffer,
465 * @memory_map: buffer to which the memory map is written
497 * @buffer: allocated memory
508 void **buffer)
512 EFI_ENTRY("%d, %zu, %p", pool_type, size, buffer);
513 r = efi_allocate_pool(pool_type, size, buffer);
519 * @buffer: start of memory to be freed
528 static efi_status_t EFIAPI efi_free_pool_ext(void *buffer) argument
532 EFI_ENTRY("%p", buffer);
533 r = efi_free_pool(buffer);
506 efi_allocate_pool_ext(int pool_type, efi_uintn_t size, void **buffer) argument
1572 efi_locate_handle( enum efi_locate_search_type search_type, const efi_guid_t *protocol, void *search_key, efi_uintn_t *buffer_size, efi_handle_t *buffer) argument
1663 efi_locate_handle_ext( enum efi_locate_search_type search_type, const efi_guid_t *protocol, void *search_key, efi_uintn_t *buffer_size, efi_handle_t *buffer) argument
1945 efi_load_image_from_file(struct efi_device_path *file_path, void **buffer, efi_uintn_t *size) argument
2000 efi_load_image_from_path(bool boot_policy, struct efi_device_path *file_path, void **buffer, efi_uintn_t *size) argument
2546 efi_locate_handle_buffer_int(enum efi_locate_search_type search_type, const efi_guid_t *protocol, void *search_key, efi_uintn_t *no_handles, efi_handle_t **buffer) argument
2590 efi_locate_handle_buffer( enum efi_locate_search_type search_type, const efi_guid_t *protocol, void *search_key, efi_uintn_t *no_handles, efi_handle_t **buffer) argument
2988 efi_set_mem(void *buffer, size_t size, uint8_t value) argument
3596 efi_handle_t *buffer; local
[all...]
H A Defi_memory.c641 * @buffer: allocated memory
644 efi_status_t efi_allocate_pool(enum efi_memory_type pool_type, efi_uintn_t size, void **buffer) argument
652 if (!buffer)
656 *buffer = NULL;
666 *buffer = alloc->data;
697 * @buffer: start of memory to be freed
700 efi_status_t efi_free_pool(void *buffer) argument
705 if (!buffer)
708 ret = efi_check_allocated((uintptr_t)buffer, true);
712 alloc = container_of(buffer, struc
[all...]
/u-boot/drivers/ata/
H A Dsata_sil.c303 u8 *buffer, int is_write)
330 pcmd->sge.addr = cpu_to_le64(virt_to_bus(sata->devno, buffer));
347 ulong blkcnt, u8 *buffer, int is_write)
377 pcmd->sge.addr = cpu_to_le64(virt_to_bus(sata->devno, buffer));
394 lbaint_t blkcnt, const void *buffer,
402 addr = (u8 *)buffer;
423 lbaint_t blkcnt, const void *buffer,
431 addr = (u8 *)buffer;
481 void *buffer)
489 rc = sil_sata_rw_lba48(sata, blknr, blkcnt, buffer, READ_CM
302 sil_sata_rw_cmd(struct sil_sata *sata, ulong start, ulong blkcnt, u8 *buffer, int is_write) argument
346 sil_sata_rw_cmd_ext(struct sil_sata *sata, ulong start, ulong blkcnt, u8 *buffer, int is_write) argument
393 sil_sata_rw_lba28(struct sil_sata *sata, ulong blknr, lbaint_t blkcnt, const void *buffer, int is_write) argument
422 sil_sata_rw_lba48(struct sil_sata *sata, ulong blknr, lbaint_t blkcnt, const void *buffer, int is_write) argument
480 sata_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, void *buffer) argument
499 sata_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, const void *buffer) argument
[all...]
/u-boot/scripts/kconfig/
H A Dgconf.c369 GtkTextBuffer *buffer; local
376 buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text_w));
377 gtk_text_buffer_get_bounds(buffer, &start, &end);
378 gtk_text_buffer_delete(buffer, &start, &end);
381 gtk_text_buffer_get_end_iter(buffer, &end);
382 gtk_text_buffer_insert_with_tags(buffer, &end, prompt, -1, tag1,
384 gtk_text_buffer_insert_at_cursor(buffer, "\n\n", 2);
385 gtk_text_buffer_get_end_iter(buffer, &end);
386 gtk_text_buffer_insert_with_tags(buffer, &end, str_get(&help), -1, tag2,
394 GtkTextBuffer *buffer; local
[all...]
/u-boot/arch/mips/mach-octeon/
H A Dcvmx-helper-fdt.c373 u8 buffer[2]; local
377 buffer[0] = value >> 8;
378 buffer[1] = value & 0xff;
379 ret = dm_i2c_write(dev, reg, buffer, 2);
386 buffer[0], buffer[1]);
H A Dcvmx-cmd-queue.c121 * Initialize a command queue for use. The initial FPA buffer is
128 * @param pool_size Size of each buffer in the FPA pool (bytes)
142 void *buffer; local
221 buffer = cvmx_fpa_alloc(fpa_pool);
222 if (!buffer) {
223 debug("ERROR: %s: allocating first buffer.\n", __func__);
232 qstate->base_paddr = cvmx_ptr_to_phys(buffer);
240 * Return the command buffer to be written to. The purpose of this
241 * function is to allow CVMX routine access to the low level buffer
247 * @return Command buffer o
[all...]
/u-boot/board/gdsys/common/
H A Dosd.c415 u16 buffer[base_width]; local
417 u16 *wp = buffer;
438 if (wp - buffer > base_width)
444 y * base_width + x + k * (wp - buffer);
445 osd_write_videomem(screen, offset, buffer,
446 wp - buffer);
489 "write 16-bit hex encoded buffer to osd memory",
490 "pos_x pos_y buffer count\n"
495 "write ASCII buffer to osd memory",
/u-boot/lib/
H A Dcrc7.c49 * crc7 - update the CRC7 for the data buffer
51 * @buffer: data pointer
52 * @len: number of bytes in the buffer
57 u8 crc7(u8 crc, const u8 *buffer, size_t len) argument
60 crc = crc7_byte(crc, *buffer++);
H A Dcrc16.c48 * crc16 - compute the CRC-16 for the data buffer
50 * @buffer: data pointer
51 * @len: number of bytes in the buffer
55 u16 crc16(u16 crc, u8 const *buffer, size_t len) argument
58 crc = crc16_byte(crc, *buffer++);
/u-boot/drivers/misc/
H A Dgdsys_ioep.c86 * @buffer: The buffer to read the data into
94 u16 *buffer, enum last_spec last_spec)
103 gdsys_ioep_get(priv->map, receive_data, buffer++);
93 receive_byte_buffer(struct udevice *dev, uint len, u16 *buffer, enum last_spec last_spec) argument
/u-boot/arch/arm/include/asm/mach-imx/
H A Ddma.h123 void *buffer; member in struct:mxs_dma_desc
/u-boot/include/xen/interface/
H A Dmemory.h128 * Pointer to buffer to fill with list of extent starts. If there are
227 * On call the number of entries which can be stored in buffer. On
229 * buffer.
234 * Entries in the buffer are in the same format as returned by the
237 GUEST_HANDLE(void)buffer; member in struct:xen_memory_map
/u-boot/arch/mips/mach-octeon/include/mach/
H A Dcvmx-fpa.h193 * @param buffer Pointer to the block of memory to use. This must be
201 int cvmx_fpa_setup_pool(int pool, const char *name, void *buffer, u64 block_size, u64 num_blocks);
206 * Gets the block size of buffer in specified pool
208 * Return: Size of buffer in specified pool
/u-boot/lib/zstd/common/
H A Dentropy_common.c76 char buffer[8] = {0}; local
77 ZSTD_memcpy(buffer, headerBuffer, hbSize);
79 buffer, sizeof(buffer));
134 * because we already memset the whole buffer to 0.
246 `huffWeight` is destination buffer.
/u-boot/lib/efi_selftest/
H A Defi_selftest_load_file.c206 * @buffer_size: (required) buffer size
207 * @buffer: buffer to which the file is to be loaded
213 void *buffer)
231 memcpy(buffer, image, img.length);
243 * @buffer_size: (required) buffer size
244 * @buffer: buffer to which the file is to be loaded
250 void *buffer)
272 memcpy(buffer, imag
209 load_file(struct efi_load_file_protocol *this, struct efi_device_path *file_path, bool boot_policy, efi_uintn_t *buffer_size, void *buffer) argument
246 load_file2(struct efi_load_file_protocol *this, struct efi_device_path *file_path, bool boot_policy, efi_uintn_t *buffer_size, void *buffer) argument
[all...]
/u-boot/tools/u_boot_pylib/
H A Dtools.py577 buffer = response.read(block_size)
578 if not buffer:
582 done += len(buffer)
583 fd.write(buffer)

Completed in 333 milliseconds

1234567891011>>