Home
last modified time | relevance | path

Searched refs:buf_len (Results 1 – 24 of 24) sorted by relevance

/rk3399_rockchip-uboot/drivers/crypto/
H A Dace_sha.c28 int ace_sha_hash_digest(const unsigned char *pbuf, unsigned int buf_len, in ace_sha_hash_digest() argument
36 if (buf_len == 0) { in ace_sha_hash_digest()
68 writel(buf_len, &ace_sha_reg->hash_msgsize_low); in ace_sha_hash_digest()
73 writel(buf_len, &ace_sha_reg->fc_hrdmal); in ace_sha_hash_digest()
103 void hw_sha256(const unsigned char *pbuf, unsigned int buf_len, in hw_sha256() argument
106 if (ace_sha_hash_digest(pbuf, buf_len, pout, ACE_SHA_TYPE_SHA256)) in hw_sha256()
110 void hw_sha1(const unsigned char *pbuf, unsigned int buf_len, in hw_sha1() argument
113 if (ace_sha_hash_digest(pbuf, buf_len, pout, ACE_SHA_TYPE_SHA1)) in hw_sha1()
/rk3399_rockchip-uboot/arch/arm/mach-uniphier/
H A Dboard_late_init.c39 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()
/rk3399_rockchip-uboot/cmd/ddr_tool/
H A Dddr_tool_common.c20 void write_buf_to_ddr(u32 *buf, u32 buf_len, ulong start_adr, ulong length) in write_buf_to_ddr() argument
26 buf_len = buf_len / sizeof(ulong) - 1; in write_buf_to_ddr()
31 j &= buf_len; in write_buf_to_ddr()
35 ulong cmp_buf_data(u32 *buf, u32 buf_len, ulong start_adr, ulong length, in cmp_buf_data() argument
46 buf_len = buf_len / sizeof(ulong) - 1; in cmp_buf_data()
59 j &= buf_len; in cmp_buf_data()
H A Dddr_tool_common.h13 void write_buf_to_ddr(u32 *buf, u32 buf_len, ulong start_adr, ulong length);
14 ulong cmp_buf_data(u32 *buf, u32 buf_len, ulong start_adr,
/rk3399_rockchip-uboot/drivers/crypto/fsl/
H A Dfsl_hash.c161 int caam_hash(const unsigned char *pbuf, unsigned int buf_len, in caam_hash() argument
173 inline_cnstr_jobdesc_hash(desc, pbuf, buf_len, pout, in caam_hash()
184 void hw_sha256(const unsigned char *pbuf, unsigned int buf_len, in hw_sha256() argument
187 if (caam_hash(pbuf, buf_len, pout, SHA256)) in hw_sha256()
191 void hw_sha1(const unsigned char *pbuf, unsigned int buf_len, in hw_sha1() argument
194 if (caam_hash(pbuf, buf_len, pout, SHA1)) in hw_sha1()
/rk3399_rockchip-uboot/fs/jffs2/
H A Djffs2_1pass.c1548 uint32_t buf_len; in jffs2_1pass_build_lists() local
1564 buf_len = sizeof(*sm); in jffs2_1pass_build_lists()
1570 buf_len, buf_len, buf + buf_size - buf_len); in jffs2_1pass_build_lists()
1588 memcpy(sumptr + sumlen - buf_len, buf + in jffs2_1pass_build_lists()
1589 buf_size - buf_len, buf_len); in jffs2_1pass_build_lists()
1591 if (buf_len < sumlen) { in jffs2_1pass_build_lists()
1597 sumlen - buf_len, sumptr); in jffs2_1pass_build_lists()
1618 buf_len = EMPTY_SCAN_SIZE(part->sector_size); in jffs2_1pass_build_lists()
1620 get_fl_mem((u32)part->offset + buf_ofs, buf_len, buf); in jffs2_1pass_build_lists()
1653 if (buf_ofs + buf_len < ofs + sizeof(*node)) { in jffs2_1pass_build_lists()
[all …]
/rk3399_rockchip-uboot/drivers/ata/
H A Ddwc_ahsata.c323 unsigned char *buf, int buf_len) in ahci_fill_sg() argument
331 sg_count = ((buf_len - 1) / max_bytes) + 1; in ahci_fill_sg()
342 (buf_len < max_bytes in ahci_fill_sg()
343 ? (buf_len - 1) in ahci_fill_sg()
346 buf_len -= max_bytes; in ahci_fill_sg()
370 struct sata_fis_h2d *cfis, u8 *buf, u32 buf_len, in ahci_exec_ata_cmd() argument
385 if (buf_len > MAX_BYTES_PER_TRANS) { in ahci_exec_ata_cmd()
392 if (buf && buf_len) in ahci_exec_ata_cmd()
393 sg_count = ahci_fill_sg(uc_priv, port, buf, buf_len); in ahci_exec_ata_cmd()
397 flush_cache((ulong)buf, buf_len); in ahci_exec_ata_cmd()
[all …]
H A Dahci.c514 unsigned char *buf, int buf_len) in ahci_fill_sg() argument
521 sg_count = ((buf_len - 1) / MAX_DATA_BYTE_COUNT) + 1; in ahci_fill_sg()
538 (buf_len < MAX_DATA_BYTE_COUNT in ahci_fill_sg()
539 ? (buf_len - 1) in ahci_fill_sg()
542 buf_len -= MAX_DATA_BYTE_COUNT; in ahci_fill_sg()
651 int fis_len, u8 *buf, int buf_len, u8 is_write) in ahci_device_data_io() argument
675 sg_count = ahci_fill_sg(uc_priv, port, buf, buf_len); in ahci_device_data_io()
680 ahci_dcache_flush_range((unsigned long)buf, (unsigned long)buf_len); in ahci_device_data_io()
691 (unsigned long)buf_len); in ahci_device_data_io()
/rk3399_rockchip-uboot/include/
H A Dslre.h94 int slre_match(const struct slre *, const char *buf, int buf_len,
/rk3399_rockchip-uboot/board/gdsys/a38x/
H A Dhre.c146 size_t buf_len; in find_key() local
160 buf_len = sizeof(buf); in find_key()
161 err = tpm_get_pub_key_oiap(key_handles[i], auth, buf, &buf_len); in find_key()
166 sha1_csum(buf, buf_len, digest); in find_key()
/rk3399_rockchip-uboot/drivers/usb/gadget/
H A Drndis.c151 unsigned buf_len, rndis_resp_t *r) in gen_ndis_query_resp() argument
168 if (buf_len) { in gen_ndis_query_resp()
169 debug("query OID %08x value, len %d:\n", OID, buf_len); in gen_ndis_query_resp()
170 for (i = 0; i < buf_len; i += 16) { in gen_ndis_query_resp()
652 static int gen_ndis_set_resp(u8 configNr, u32 OID, u8 *buf, u32 buf_len, in gen_ndis_set_resp() argument
669 if (buf_len) { in gen_ndis_set_resp()
670 debug("set OID %08x value, len %d:\n", OID, buf_len); in gen_ndis_set_resp()
671 for (i = 0; i < buf_len; i += 16) { in gen_ndis_set_resp()
765 __func__, OID, buf_len); in gen_ndis_set_resp()
/rk3399_rockchip-uboot/board/beckhoff/mx53cx9020/
H A Dmx53cx9020.c304 static int ccat_write_fn(const void *buf, size_t buf_len, int flush, int cookie) in ccat_write_fn() argument
310 for (i = 0; i < buf_len; ++i) in ccat_write_fn()
/rk3399_rockchip-uboot/drivers/spi/
H A Dfsl_espi.c257 size_t buf_len; in spi_xfer() local
276 buf_len = 2 * cmd_len + min(data_len, (size_t)max_tran_len); in spi_xfer()
279 buffer = (unsigned char *)malloc(buf_len); in spi_xfer()
/rk3399_rockchip-uboot/drivers/ufs/
H A Dufs.c981 u16 buf_len; in ufshcd_copy_query_response() local
986 buf_len = in ufshcd_copy_query_response()
988 if (likely(buf_len >= resp_len)) { in ufshcd_copy_query_response()
1151 u8 *desc_buf, int *buf_len) in __ufshcd_query_descriptor() argument
1164 if (*buf_len < QUERY_DESC_MIN_SIZE || *buf_len > QUERY_DESC_MAX_SIZE) { in __ufshcd_query_descriptor()
1166 __func__, *buf_len); in __ufshcd_query_descriptor()
1173 request->upiu_req.length = cpu_to_be16(*buf_len); in __ufshcd_query_descriptor()
1198 *buf_len = be16_to_cpu(response->upiu_res.length); in __ufshcd_query_descriptor()
1209 u8 *desc_buf, int *buf_len) in ufshcd_query_descriptor_retry() argument
1216 selector, desc_buf, buf_len); in ufshcd_query_descriptor_retry()
H A Dufs.h997 u8 *desc_buf, int *buf_len);
/rk3399_rockchip-uboot/drivers/net/
H A Dxilinx_ll_temac_sdma.c123 rx_dp->buf_len = PKTSIZE_ALIGN; in ll_temac_init_sdma()
281 tx_dp->buf_len = length; in ll_temac_send_sdma()
H A Dxilinx_ll_temac_sdma.h57 u32 buf_len; /* Buffer Length */ member
/rk3399_rockchip-uboot/drivers/usb/host/
H A Dsl811-hcd.c46 void *data, int buf_len, struct devrequest *cmd);
531 void *data, int buf_len, struct devrequest *cmd) in sl811_rh_submit_urb() argument
704 len = min(len, buf_len); in sl811_rh_submit_urb()
/rk3399_rockchip-uboot/lib/
H A Dtpm.c1021 size_t buf_len; in tpm_find_key_sha1() local
1035 buf_len = sizeof(buf); in tpm_find_key_sha1()
1036 err = tpm_get_pub_key_oiap(key_handles[i], auth, buf, &buf_len); in tpm_find_key_sha1()
1041 sha1_csum(buf, buf_len, digest); in tpm_find_key_sha1()
/rk3399_rockchip-uboot/board/gdsys/p1022/
H A Dcontrolcenterd-id.c294 size_t buf_len; in find_key() local
308 buf_len = sizeof(buf); in find_key()
309 err = tpm_get_pub_key_oiap(key_handles[i], auth, buf, &buf_len); in find_key()
314 sha1_csum(buf, buf_len, digest); in find_key()
/rk3399_rockchip-uboot/fs/ubifs/
H A Dio.c868 int err, buf_len = ALIGN(len, c->min_io_size); in ubifs_write_node() local
872 buf_len); in ubifs_write_node()
882 err = ubifs_leb_write(c, lnum, buf, offs, buf_len); in ubifs_write_node()
H A Dtnc.c1540 if (len > bu->buf_len) { in ubifs_tnc_get_bu_keys()
1572 if (len > bu->buf_len) { in ubifs_tnc_get_bu_keys()
1586 if (len > bu->buf_len) in ubifs_tnc_get_bu_keys()
1759 if (len > bu->buf_len) { in ubifs_tnc_bulk_read()
1760 ubifs_err(c, "buffer too small %d vs %d", bu->buf_len, len); in ubifs_tnc_bulk_read()
H A Dubifs.h1400 int buf_len; member
/rk3399_rockchip-uboot/drivers/mtd/spi/
H A Dspi_flash.c289 size_t cmd_len, const void *buf, size_t buf_len) in spi_flash_write_common() argument
310 ret = spi_flash_cmd_write(spi, cmd, cmd_len, buf, buf_len); in spi_flash_write_common()