/u-boot/lib/ |
A D | lz4.c | 110 size_t length; in LZ4_decompress_generic() local 121 length += s; in LZ4_decompress_generic() 129 cpy = op+length; in LZ4_decompress_generic() 144 ip += length; in LZ4_decompress_generic() 145 op += length; in LZ4_decompress_generic() 149 ip += length; op = cpy; in LZ4_decompress_generic() 157 if (length == ML_MASK) in LZ4_decompress_generic() 164 length += s; in LZ4_decompress_generic() 168 length += MINMATCH; in LZ4_decompress_generic() 179 memmove(op, match, length); op += length; in LZ4_decompress_generic() [all …]
|
A D | tpm-common.c | 26 size_t offset = 0, length = 0; in pack_byte_string() local 36 length = 1; in pack_byte_string() 41 length = 2; in pack_byte_string() 46 length = 4; in pack_byte_string() 51 length = va_arg(args, u32); in pack_byte_string() 59 if (offset + length > size) { in pack_byte_string() 98 length = 1; in unpack_byte_string() 103 length = 2; in unpack_byte_string() 108 length = 4; in unpack_byte_string() 113 length = va_arg(args, u32); in unpack_byte_string() [all …]
|
/u-boot/drivers/net/fm/ |
A D | fdt.c | 26 unsigned int length; in fdt_fixup_fman_firmware() local 50 length = fdt32_to_cpu(hdr->length); in fdt_fixup_fman_firmware() 59 if (length > CONFIG_SYS_QE_FMAN_FW_LENGTH) { in fdt_fixup_fman_firmware() 61 fmanfw, length); in fdt_fixup_fman_firmware() 65 length -= sizeof(u32); /* Subtract the size of the CRC */ in fdt_fixup_fman_firmware() 66 crc = fdt32_to_cpu(*(u32 *)((void *)fmanfw + length)); in fdt_fixup_fman_firmware() 67 if (crc != crc32_no_comp(0, (void *)fmanfw, length)) { in fdt_fixup_fman_firmware() 72 length += sizeof(u32); in fdt_fixup_fman_firmware() 75 rc = fdt_increase_size(blob, length); in fdt_fixup_fman_firmware() 108 rc = fdt_setprop(blob, fwnode, "fsl,firmware", fmanfw, length); in fdt_fixup_fman_firmware()
|
/u-boot/drivers/mtd/nand/raw/ |
A D | fsmc_nand.c | 49 {.offset = 15, .length = 3}, 50 {.offset = 31, .length = 3}, 51 {.offset = 47, .length = 3}, 52 {.offset = 63, .length = 3}, 53 {.offset = 79, .length = 3}, 54 {.offset = 95, .length = 3}, 55 {.offset = 111, .length = 3}, 56 {.offset = 127, .length = 1} 85 {.offset = 15, .length = 3}, 130 {.offset = 0, .length = 4}, [all …]
|
A D | nand_util.c | 352 if (length == 0 || (length & (mtd->erasesize - 1)) != 0) { in nand_unlock() 363 length -= mtd->erasesize; in nand_unlock() 438 if (len_excl_bad > length) in check_skip_len() 601 *length = 0; in nand_write_skip_bad() 612 *length = 0; in nand_write_skip_bad() 618 *length = 0; in nand_write_skip_bad() 631 *length = 0; in nand_write_skip_bad() 719 *length = 0; in nand_read_skip_bad() 732 *length = 0; in nand_read_skip_bad() 738 *length = 0; in nand_read_skip_bad() [all …]
|
/u-boot/arch/x86/lib/ |
A D | acpi_table.c | 66 return lapic->length; in acpi_create_madt_lapic() 79 int length; in acpi_create_madt_lapics() local 84 current += length; in acpi_create_madt_lapics() 85 total_length += length; in acpi_create_madt_lapics() 101 return ioapic->length; in acpi_create_madt_ioapic() 114 return irqoverride->length; in acpi_create_madt_irqoverride() 126 return lapic_nmi->length; in acpi_create_madt_lapic_nmi() 133 int length = 0; in acpi_create_madt_irq_overrides() local 141 return length; in acpi_create_madt_irq_overrides() 831 acpi_inc(ctx, drhd->length); in acpi_create_dmar_drhd() [all …]
|
/u-boot/fs/jffs2/ |
A D | mini_inflate.c | 108 unsigned int length; in decompress_none() local 111 length = *(stream->data++); in decompress_none() 115 stream->decoded += length; in decompress_none() 117 stream->data += length; in decompress_none() 144 int symbol, length, dist, i; in decompress_huffman() local 172 stream->decoded += length; in decompress_huffman() 184 int code = 0, i, length; in fill_code_tables() local 242 length = pull_bits(stream, 3); in decompress_dynamic() 244 if (length) codes->count[length]++; in decompress_dynamic() 264 for (;length; length--, curr_code++) in decompress_dynamic() [all …]
|
/u-boot/board/corscience/tricorder/ |
A D | tricorder-eeprom.c | 25 uint16_t length; in handle_eeprom_v0() member 36 if (be16_to_cpu(eeprom->length) != sizeof(eepromv0)) { in handle_eeprom_v0() 38 be16_to_cpu(eeprom->length)); in handle_eeprom_v0() 67 be16_to_cpu(eeprom->length)); in handle_eeprom_v1() 134 size_t length; in tricorder_eeprom_write() local 144 eeprom.length = cpu_to_be16(TRICORDER_EEPROM_SIZE); in tricorder_eeprom_write() 147 length = min(sizeof(eeprom.board_name), strlen(name)); in tricorder_eeprom_write() 148 strncpy(eeprom.board_name, name, length); in tricorder_eeprom_write() 151 strncpy(eeprom.board_version, version, length); in tricorder_eeprom_write() 154 strncpy(eeprom.board_serial, serial, length); in tricorder_eeprom_write() [all …]
|
/u-boot/include/linux/ |
A D | xxhash.h | 65 uint32_t xxh32(const void *input, size_t length, uint32_t seed); 78 uint64_t xxh64(const void *input, size_t length, uint64_t seed); 93 static inline unsigned long xxhash(const void *input, size_t length, in xxhash() argument 97 return xxh64(input, length, seed); in xxhash() 99 return xxh32(input, length, seed); in xxhash() 161 int xxh32_update(struct xxh32_state *state, const void *input, size_t length); 194 int xxh64_update(struct xxh64_state *state, const void *input, size_t length);
|
/u-boot/fs/btrfs/crypto/ |
A D | hash.c | 21 int hash_sha256(const u8 *buf, size_t length, u8 *out) in hash_sha256() argument 26 sha256_update(&ctx, buf, length); in hash_sha256() 32 int hash_xxhash(const u8 *buf, size_t length, u8 *out) in hash_xxhash() argument 36 hash = xxh64(buf, length, 0); in hash_xxhash() 42 int hash_crc32c(const u8 *buf, size_t length, u8 *out) in hash_crc32c() argument 46 crc = crc32c_cal((u32)~0, (char *)buf, length, btrfs_crc32c_table); in hash_crc32c()
|
/u-boot/tools/ |
A D | mksunxiboot.c | 25 uint32_t length; in gen_check_sum() local 31 length = le32_to_cpu(head_p->length); in gen_check_sum() 32 if ((length & 0x3) != 0) /* must 4-byte-aligned */ in gen_check_sum() 36 loop = length >> 2; in gen_check_sum() 143 img.header.length = in main() 146 img.header.length = cpu_to_le32(img.header.length); in main() 165 count = write(fd_out, &img, le32_to_cpu(img.header.length)); in main() 166 if (count != le32_to_cpu(img.header.length)) { in main()
|
/u-boot/drivers/usb/emul/ |
A D | usb-emul-uclass.c | 18 if (length < 2) in copy_to_unicode() 31 char *buff, int length) in usb_emul_get_string() argument 46 return copy_to_unicode(buff, length, ptr->s); in usb_emul_get_string() 79 void *buffer, int length) in usb_emul_get_descriptor() argument 89 length); in usb_emul_get_descriptor() 99 todo = min(length - upto, (int)(*ptr)->bLength); in usb_emul_get_descriptor() 104 return upto ? upto : length ? -EIO : 0; in usb_emul_get_descriptor() 178 unsigned long pipe, void *buffer, int length, in usb_emul_control() argument 194 buffer, length); in usb_emul_control() 233 unsigned long pipe, void *buffer, int length) in usb_emul_bulk() argument [all …]
|
/u-boot/drivers/net/ |
A D | sandbox-raw.c | 41 static int sb_eth_raw_send(struct udevice *dev, void *packet, int length) in sb_eth_raw_send() argument 45 debug("eth_sandbox_raw: Send packet %d\n", length); in sb_eth_raw_send() 62 length -= ETHER_HDR_SIZE; in sb_eth_raw_send() 64 return sandbox_eth_raw_os_send(packet, length, priv); in sb_eth_raw_send() 72 int length; in sb_eth_raw_recv() local 98 length = ARP_HDR_SIZE; in sb_eth_raw_recv() 104 retval = sandbox_eth_raw_os_recv(pktptr, &length, priv); in sb_eth_raw_recv() 107 if (!retval && length) { in sb_eth_raw_recv() 116 length += ETHER_HDR_SIZE; in sb_eth_raw_recv() 120 length); in sb_eth_raw_recv() [all …]
|
A D | e1000_spi.c | 323 unsigned int length = 0; in do_e1000_spi_show() local 342 if (!length) { in do_e1000_spi_show() 346 if ((0x10000 < length) || (0x10000 - length < offset)) { in do_e1000_spi_show() 352 buffer = malloc(length); in do_e1000_spi_show() 374 hw->name, offset, offset + length - 1); in do_e1000_spi_show() 375 for (i = 0; i < length; i++) { in do_e1000_spi_show() 392 unsigned int length; in do_e1000_spi_dump() local 407 if (!length) { in do_e1000_spi_dump() 411 if ((0x10000 < length) || (0x10000 - length < offset)) { in do_e1000_spi_dump() 437 unsigned int length; in do_e1000_spi_program() local [all …]
|
A D | lan91c96.c | 310 int length; in smc_send_packet() local 333 numPages = ((length & 0xfffe) + 6); in smc_send_packet() 389 dev->name, length); in smc_send_packet() 393 print_packet (buf, length); in smc_send_packet() 415 if (length & 0x2) in smc_send_packet() 423 if ((length & 1) == 0) { in smc_send_packet() 464 return length; in smc_send_packet() 648 printf ("Packet of length %d \n", length); in print_packet() 650 lines = length / 16; in print_packet() 651 remainder = length % 16; in print_packet() [all …]
|
/u-boot/include/ |
A D | smbios.h | 39 u8 length; member 64 u8 length; member 83 u8 length; member 101 u8 length; member 121 u8 length; member 149 u8 length; member 182 u8 length; member 191 u8 length; member 198 u8 length; member 213 int length, int handle) in fill_smbios_header() argument [all …]
|
/u-boot/cmd/ |
A D | load.c | 697 int length = 3; in handle_send_packet() local 744 a_b[++length] = '#'; in handle_send_packet() 749 a_b[++length] = 'N'; in handle_send_packet() 754 a_b[++length] = '1'; in handle_send_packet() 759 a_b[++length] = 'N'; in handle_send_packet() 774 a_b[++length] = '\0'; in handle_send_packet() 788 int length; in k_recv() local 859 --length; in k_recv() 886 --length; in k_recv() 888 if (length == -2) { in k_recv() [all …]
|
A D | fpgad.c | 32 ulong addr, length; in do_fpga_md() local 43 length = dp_last_length; in do_fpga_md() 64 length = simple_strtoul(argv[3], NULL, 16); in do_fpga_md() 67 nbytes = length * sizeof(u16); in do_fpga_md() 92 dp_last_length = length; in do_fpga_md()
|
/u-boot/lib/efi_loader/ |
A D | efi_var_mem.c | 55 ALIGN((uintptr_t)data + var->length, 8); in efi_var_mem_compare() 126 ALIGN((uintptr_t)data + var->length, 8); in efi_var_mem_del() 132 efi_var_buf->length - in efi_var_mem_del() 159 var->length = size1 + size2; in efi_var_mem_ins() 169 ALIGN((uintptr_t)data + var->length, 8); in efi_var_mem_ins() 172 efi_var_buf->length - in efi_var_mem_ins() 180 return EFI_VAR_BUF_SIZE - efi_var_buf->length - in efi_var_mem_free() 206 ALIGN((uintptr_t)data + var->length, 8); in efi_var_mem_bs_del() 296 *data_size = var->length; in efi_get_variable_mem() 297 if (old_size < var->length) in efi_get_variable_mem() [all …]
|
/u-boot/drivers/i2c/ |
A D | lpc32xx_i2c.c | 140 if (length) { in __i2c_read() 143 wlen = length; in __i2c_read() 145 while (length | wlen) { in __i2c_read() 157 if ((length > 0) in __i2c_read() 159 length--; in __i2c_read() 188 if (alen | length) in __i2c_write() 200 if (!(alen | length)) in __i2c_write() 206 while (length) { in __i2c_write() 211 length--; in __i2c_write() 213 if (!length) in __i2c_write() [all …]
|
/u-boot/drivers/fpga/ |
A D | xilinx.c | 43 unsigned int length; in fpga_loadbitstream() local 57 length = (*dataptr << 8) + *(dataptr + 1); in fpga_loadbitstream() 59 dataptr += length; in fpga_loadbitstream() 62 length = (*dataptr << 8) + *(dataptr + 1); in fpga_loadbitstream() 70 length = (*dataptr << 8) + *(dataptr + 1); in fpga_loadbitstream() 73 dataptr += length; in fpga_loadbitstream() 99 dataptr += length; in fpga_loadbitstream() 108 length = (*dataptr << 8) + *(dataptr+1); in fpga_loadbitstream() 111 dataptr += length; in fpga_loadbitstream() 120 length = (*dataptr << 8) + *(dataptr+1); in fpga_loadbitstream() [all …]
|
/u-boot/drivers/usb/musb/ |
A D | am35x.c | 118 void read_fifo(u8 ep, u32 length, void *fifo_data) in read_fifo() argument 127 if (length > 4) { in read_fifo() 128 for (i = 0; i < (length >> 2); i++) { in read_fifo() 133 length %= 4; in read_fifo() 135 if (length > 0) { in read_fifo() 137 memcpy(data, &val, length); in read_fifo()
|
/u-boot/drivers/misc/ |
A D | atsha204a-i2c.c | 189 if (resp->length > 4) { in atsha204a_recv_resp() 190 if (resp->length > sizeof(*resp)) in atsha204a_recv_resp() 193 res = atsha204a_recv(dev, p + 4, resp->length - 4); in atsha204a_recv_resp() 198 resp_crc = (u16) p[resp->length - 2] in atsha204a_recv_resp() 199 | (((u16) p[resp->length - 1]) << 8); in atsha204a_recv_resp() 200 computed_crc = atsha204a_crc16(p, resp->length - 2); in atsha204a_recv_resp() 306 u16 *crc_ptr = (u16 *) &p[req->length - 1]; in atsha204a_req_crc32() 322 req.length = 7; in atsha204a_read() 348 if (resp.length != (read32 ? 32 : 4) + 3) { in atsha204a_read() 350 resp.length); in atsha204a_read() [all …]
|
/u-boot/net/ |
A D | dsa-uclass.c | 125 if (length + head + tail > PKTSIZE_ALIGN) in dsa_port_send() 129 memset(dsa_packet_tmp + head + length, 0, tail); in dsa_port_send() 130 memcpy(dsa_packet_tmp + head, packet, length); in dsa_port_send() 131 length += head + tail; in dsa_port_send() 133 memcpy(packet, dsa_packet_tmp, length); in dsa_port_send() 152 int length, port_index, err; in dsa_port_recv() local 155 if (length <= 0) in dsa_port_recv() 156 return length; in dsa_port_recv() 165 err = ops->rcv(dev, &port_index, *packetp, length); in dsa_port_recv() 178 return length - head - tail; in dsa_port_recv() [all …]
|
A D | eth_legacy.c | 38 int length; member 359 int eth_send(void *packet, int length) in eth_send() argument 369 pcap_post(packet, length, true); in eth_send() 383 static void eth_save_packet(void *packet, int length) in eth_save_packet() argument 391 if (PKTSIZE < length) in eth_save_packet() 394 for (i = 0; i < length; i++) in eth_save_packet() 397 eth_rcv_bufs[eth_rcv_last].length = length; in eth_save_packet() 401 int eth_receive(void *packet, int length) in eth_receive() argument 416 length = min(eth_rcv_bufs[eth_rcv_current].length, length); in eth_receive() 418 for (i = 0; i < length; i++) in eth_receive() [all …]
|