| /openbmc/u-boot/drivers/crypto/ |
| H A D | ace_sha.c | 27 int ace_sha_hash_digest(const unsigned char *pbuf, unsigned int buf_len, in ace_sha_hash_digest() argument 35 if (buf_len == 0) { in ace_sha_hash_digest() 67 writel(buf_len, &ace_sha_reg->hash_msgsize_low); in ace_sha_hash_digest() 72 writel(buf_len, &ace_sha_reg->fc_hrdmal); in ace_sha_hash_digest() 102 void hw_sha256(const unsigned char *pbuf, unsigned int buf_len, in hw_sha256() argument 105 if (ace_sha_hash_digest(pbuf, buf_len, pout, ACE_SHA_TYPE_SHA256)) in hw_sha256() 109 void hw_sha1(const unsigned char *pbuf, unsigned int buf_len, in hw_sha1() argument 112 if (ace_sha_hash_digest(pbuf, buf_len, pout, ACE_SHA_TYPE_SHA1)) in hw_sha1()
|
| H A D | aspeed_hace_v1.c | 117 void hw_sha1(const unsigned char *pbuf, unsigned int buf_len, in hw_sha1() argument 122 rc = digest_object(pbuf, buf_len, pout, HACE_ALGO_SHA1); in hw_sha1() 127 void hw_sha256(const unsigned char *pbuf, unsigned int buf_len, in hw_sha256() argument 132 rc = digest_object(pbuf, buf_len, pout, HACE_ALGO_SHA256); in hw_sha256() 137 void hw_sha384(const unsigned char *pbuf, unsigned int buf_len, in hw_sha384() argument 142 rc = digest_object(pbuf, buf_len, pout, HACE_ALGO_SHA384); in hw_sha384() 147 void hw_sha512(const unsigned char *pbuf, unsigned int buf_len, in hw_sha512() argument 152 rc = digest_object(pbuf, buf_len, pout, HACE_ALGO_SHA512); in hw_sha512()
|
| H A D | aspeed_hace.c | 349 void hw_sha1(const unsigned char *pbuf, unsigned int buf_len, in hw_sha1() argument 354 rc = sha_digest(pbuf, buf_len, pout, ASPEED_SHA_TYPE_SHA1); in hw_sha1() 359 void hw_sha256(const unsigned char *pbuf, unsigned int buf_len, in hw_sha256() argument 364 rc = sha_digest(pbuf, buf_len, pout, ASPEED_SHA_TYPE_SHA256); in hw_sha256() 369 void hw_sha384(const unsigned char *pbuf, unsigned int buf_len, in hw_sha384() argument 374 rc = sha_digest(pbuf, buf_len, pout, ASPEED_SHA_TYPE_SHA384); in hw_sha384() 379 void hw_sha512(const unsigned char *pbuf, unsigned int buf_len, in hw_sha512() argument 384 rc = sha_digest(pbuf, buf_len, pout, ASPEED_SHA_TYPE_SHA512); in hw_sha512()
|
| /openbmc/u-boot/arch/arm/mach-uniphier/ |
| H A D | board_late_init.c | 39 int buf_len = sizeof(dtb_name); in uniphier_set_fdt_file() local 54 strncpy(dtb_name, compat, buf_len); in uniphier_set_fdt_file() 55 buf_len -= strlen(compat); in uniphier_set_fdt_file() 57 strncat(dtb_name, ".dtb", buf_len); in uniphier_set_fdt_file()
|
| /openbmc/u-boot/drivers/crypto/fsl/ |
| H A D | fsl_hash.c | 161 int caam_hash(const unsigned char *pbuf, unsigned int buf_len, in caam_hash() argument 180 size = ALIGN(buf_len, ARCH_DMA_MINALIGN); in caam_hash() 183 inline_cnstr_jobdesc_hash(desc, pbuf, buf_len, pout, in caam_hash() 201 void hw_sha256(const unsigned char *pbuf, unsigned int buf_len, in hw_sha256() argument 204 if (caam_hash(pbuf, buf_len, pout, SHA256)) in hw_sha256() 208 void hw_sha1(const unsigned char *pbuf, unsigned int buf_len, in hw_sha1() argument 211 if (caam_hash(pbuf, buf_len, pout, SHA1)) in hw_sha1()
|
| /openbmc/u-boot/fs/jffs2/ |
| H A D | jffs2_1pass.c | 1499 uint32_t buf_len; in jffs2_1pass_build_lists() local 1515 buf_len = sizeof(*sm); in jffs2_1pass_build_lists() 1521 buf_len, buf_len, buf + buf_size - buf_len); in jffs2_1pass_build_lists() 1539 memcpy(sumptr + sumlen - buf_len, buf + in jffs2_1pass_build_lists() 1540 buf_size - buf_len, buf_len); in jffs2_1pass_build_lists() 1542 if (buf_len < sumlen) { in jffs2_1pass_build_lists() 1548 sumlen - buf_len, sumptr); in jffs2_1pass_build_lists() 1569 buf_len = EMPTY_SCAN_SIZE(part->sector_size); in jffs2_1pass_build_lists() 1571 get_fl_mem((u32)part->offset + buf_ofs, buf_len, buf); in jffs2_1pass_build_lists() 1604 if (buf_ofs + buf_len < ofs + sizeof(*node)) { in jffs2_1pass_build_lists() [all …]
|
| /openbmc/qemu/hw/net/ |
| H A D | imx_fec.c | 951 unsigned int buf_len; in imx_fec_receive() local 992 buf_len = (size <= s->regs[ENET_MRBR]) ? size : s->regs[ENET_MRBR]; in imx_fec_receive() 993 bd.length = buf_len; in imx_fec_receive() 994 size -= buf_len; in imx_fec_receive() 1000 buf_len += size - 4; in imx_fec_receive() 1003 dma_memory_write(&address_space_memory, buf_addr, buf, buf_len, in imx_fec_receive() 1005 buf += buf_len; in imx_fec_receive() 1007 dma_memory_write(&address_space_memory, buf_addr + buf_len, in imx_fec_receive() 1046 unsigned int buf_len; in imx_enet_receive() local 1092 buf_len = MIN(size, s->regs[ENET_MRBR]); in imx_enet_receive() [all …]
|
| H A D | mcf_fec.c | 562 unsigned int buf_len; in mcf_fec_receive() local 590 buf_len = (size <= s->emrbr) ? size: s->emrbr; in mcf_fec_receive() 591 bd.length = buf_len; in mcf_fec_receive() 592 size -= buf_len; in mcf_fec_receive() 596 buf_len += size - 4; in mcf_fec_receive() 598 cpu_physical_memory_write(buf_addr, buf, buf_len); in mcf_fec_receive() 599 buf += buf_len; in mcf_fec_receive() 601 cpu_physical_memory_write(buf_addr + buf_len, crc_ptr, 4 - size); in mcf_fec_receive()
|
| H A D | ftgmac100.c | 1036 uint32_t buf_len; in ftgmac100_receive() local 1091 buf_len = (size <= s->rbsr) ? size : s->rbsr; in ftgmac100_receive() 1092 bd.des0 |= buf_len & 0x3fff; in ftgmac100_receive() 1093 size -= buf_len; in ftgmac100_receive() 1097 buf_len += size - 4; in ftgmac100_receive() 1105 if (first && proto == ETH_P_VLAN && buf_len >= 18) { in ftgmac100_receive() 1112 buf + 16, buf_len - 16, in ftgmac100_receive() 1116 buf_len, MEMTXATTRS_UNSPECIFIED); in ftgmac100_receive() 1120 dma_memory_write(&address_space_memory, buf_addr, buf, buf_len, in ftgmac100_receive() 1123 buf += buf_len; in ftgmac100_receive() [all …]
|
| /openbmc/qemu/include/hw/scsi/ |
| H A D | scsi.h | 65 size_t buf_len, void *hba_private); 131 size_t buf_len, void *hba_private); 210 uint8_t *buf, size_t buf_len, void *hba_private); 216 size_t buf_len, void *hba_private); 218 size_t buf_len);
|
| /openbmc/u-boot/arch/arm/mach-socfpga/ |
| H A D | mailbox_s10.c | 160 u32 buf_len; in mbox_send_cmd_common() local 223 buf_len = *resp_buf_len; in mbox_send_cmd_common() 226 buf_len = 0; in mbox_send_cmd_common() 242 if (buf_len) { in mbox_send_cmd_common() 246 buf_len--; in mbox_send_cmd_common()
|
| /openbmc/u-boot/drivers/ata/ |
| H A D | dwc_ahsata.c | 322 unsigned char *buf, int buf_len) in ahci_fill_sg() argument 330 sg_count = ((buf_len - 1) / max_bytes) + 1; in ahci_fill_sg() 341 (buf_len < max_bytes in ahci_fill_sg() 342 ? (buf_len - 1) in ahci_fill_sg() 345 buf_len -= max_bytes; in ahci_fill_sg() 369 struct sata_fis_h2d *cfis, u8 *buf, u32 buf_len, in ahci_exec_ata_cmd() argument 384 if (buf_len > MAX_BYTES_PER_TRANS) { in ahci_exec_ata_cmd() 391 if (buf && buf_len) in ahci_exec_ata_cmd() 392 sg_count = ahci_fill_sg(uc_priv, port, buf, buf_len); in ahci_exec_ata_cmd() 396 flush_cache((ulong)buf, buf_len); in ahci_exec_ata_cmd() [all …]
|
| H A D | ahci.c | 504 unsigned char *buf, int buf_len) in ahci_fill_sg() argument 511 sg_count = ((buf_len - 1) / MAX_DATA_BYTE_COUNT) + 1; in ahci_fill_sg() 522 (buf_len < MAX_DATA_BYTE_COUNT in ahci_fill_sg() 523 ? (buf_len - 1) in ahci_fill_sg() 526 buf_len -= MAX_DATA_BYTE_COUNT; in ahci_fill_sg() 635 int fis_len, u8 *buf, int buf_len, u8 is_write) in ahci_device_data_io() argument 659 sg_count = ahci_fill_sg(uc_priv, port, buf, buf_len); in ahci_device_data_io() 664 ahci_dcache_flush_range((unsigned long)buf, (unsigned long)buf_len); in ahci_device_data_io() 675 (unsigned long)buf_len); in ahci_device_data_io()
|
| /openbmc/u-boot/include/ |
| H A D | slre.h | 94 int slre_match(const struct slre *, const char *buf, int buf_len,
|
| /openbmc/qemu/hw/vfio/ |
| H A D | migration-multifd.c | 307 size_t buf_len; in vfio_load_state_buffer_write() local 319 buf_len = lb->len; in vfio_load_state_buffer_write() 320 while (buf_len > 0) { in vfio_load_state_buffer_write() 329 wr_ret = write(migration->data_fd, buf_cur, buf_len); in vfio_load_state_buffer_write() 340 assert(wr_ret <= buf_len); in vfio_load_state_buffer_write() 341 buf_len -= wr_ret; in vfio_load_state_buffer_write()
|
| /openbmc/u-boot/drivers/usb/gadget/ |
| H A D | rndis.c | 144 unsigned buf_len, rndis_resp_t *r) in gen_ndis_query_resp() argument 161 if (buf_len) { in gen_ndis_query_resp() 162 debug("query OID %08x value, len %d:\n", OID, buf_len); in gen_ndis_query_resp() 163 for (i = 0; i < buf_len; i += 16) { in gen_ndis_query_resp() 645 static int gen_ndis_set_resp(u8 configNr, u32 OID, u8 *buf, u32 buf_len, in gen_ndis_set_resp() argument 662 if (buf_len) { in gen_ndis_set_resp() 663 debug("set OID %08x value, len %d:\n", OID, buf_len); in gen_ndis_set_resp() 664 for (i = 0; i < buf_len; i += 16) { in gen_ndis_set_resp() 758 __func__, OID, buf_len); in gen_ndis_set_resp()
|
| /openbmc/u-boot/board/gdsys/a38x/ |
| H A D | hre.c | 147 size_t buf_len; in find_key() local 162 buf_len = sizeof(buf); in find_key() 164 &buf_len); in find_key() 169 sha1_csum(buf, buf_len, digest); in find_key()
|
| /openbmc/qemu/migration/ |
| H A D | multifd-device-state.c | 89 p->next_packet_size = device_state->buf_len; in multifd_device_state_send_prepare() 116 device_state->buf_len = len; in multifd_queue_device_state()
|
| /openbmc/u-boot/board/beckhoff/mx53cx9020/ |
| H A D | mx53cx9020.c | 265 static int ccat_write_fn(const void *buf, size_t buf_len, int flush, int cookie) in ccat_write_fn() argument 271 for (i = 0; i < buf_len; ++i) in ccat_write_fn()
|
| /openbmc/qemu/block/ |
| H A D | curl.c | 100 size_t buf_len; member 247 if (s->buf_off >= s->buf_len) { in curl_read_cb() 251 realsize = MIN(realsize, s->buf_len - s->buf_off); in curl_read_cb() 272 uint64_t buf_fend = (state->buf_start + state->buf_len); in curl_find_buf() 938 state->buf_len = MIN(acb->end + s->readahead_size, s->len - start); in curl_do_preadv() 939 end = start + state->buf_len - 1; in curl_do_preadv() 940 state->orig_buf = g_try_malloc(state->buf_len); in curl_do_preadv() 941 if (state->buf_len && state->orig_buf == NULL) { in curl_do_preadv()
|
| /openbmc/qemu/hw/scsi/ |
| H A D | scsi-bus.c | 234 size_t buf_len, void *hba_private) in scsi_bus_parse_cdb() argument 240 rc = scsi_req_parse_cdb(dev, cmd, buf, buf_len); in scsi_bus_parse_cdb() 242 rc = bus->info->parse_cdb(dev, cmd, buf, buf_len, hba_private); in scsi_bus_parse_cdb() 574 int buf_len; member 633 r->buf_len = len; in scsi_target_emulate_report_luns() 680 assert(r->len < r->buf_len); in scsi_target_emulate_inquiry() 747 MIN(req->cmd.xfer, r->buf_len), in scsi_target_send_command() 800 r->buf_len = len; in scsi_target_alloc_buf() 854 uint8_t *buf, size_t buf_len, void *hba_private) in scsi_req_new() argument 863 if (buf_len == 0) { in scsi_req_new() [all …]
|
| /openbmc/qemu/hw/virtio/ |
| H A D | virtio-nsm.c | 1050 size_t buf_len = 4096; in add_protected_header_to_cose() local 1051 g_autofree uint8_t *buf = g_malloc(buf_len); in add_protected_header_to_cose() 1073 len = cbor_serialize(map, buf, buf_len); in add_protected_header_to_cose() 1175 size_t buf_len = 16384; in add_payload_to_cose() local 1176 g_autofree uint8_t *buf = g_malloc(buf_len); in add_payload_to_cose() 1248 len = cbor_serialize(root, buf, buf_len); in add_payload_to_cose() 1362 size_t buf_len = 16384; in handle_attestation() local 1363 g_autofree uint8_t *buf = g_malloc(buf_len); in handle_attestation() 1396 len = cbor_serialize(cose, buf, buf_len); in handle_attestation()
|
| /openbmc/u-boot/drivers/spi/ |
| H A D | fsl_espi.c | 251 size_t buf_len; in spi_xfer() local 270 buf_len = 2 * cmd_len + min(data_len, (size_t)max_tran_len); in spi_xfer() 273 buffer = (unsigned char *)malloc(buf_len); in spi_xfer()
|
| /openbmc/qemu/hw/net/rocker/ |
| H A D | rocker_tlv.h | 123 const char *buf, int buf_len) in rocker_tlv_parse() argument 131 rocker_tlv_for_each(tlv, head, buf_len, rem) { in rocker_tlv_parse()
|
| /openbmc/openbmc/meta-yadro/meta-nicole/recipes-bsp/u-boot/files/ |
| H A D | 0001-Add-system-reset-status-support.patch | 75 + int buf_len; 89 + buf_len = (cmdline ? strlen(cmdline) : 0) 95 + buf = calloc(buf_len, sizeof(char));
|