Home
last modified time | relevance | path

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

12

/u-boot/drivers/crypto/
A Dace_sha.c29 int ace_sha_hash_digest(const unsigned char *pbuf, unsigned int buf_len, in ace_sha_hash_digest() argument
37 if (buf_len == 0) { in ace_sha_hash_digest()
69 writel(buf_len, &ace_sha_reg->hash_msgsize_low); in ace_sha_hash_digest()
74 writel(buf_len, &ace_sha_reg->fc_hrdmal); in ace_sha_hash_digest()
104 void hw_sha256(const unsigned char *pbuf, unsigned int buf_len, in hw_sha256() argument
107 if (ace_sha_hash_digest(pbuf, buf_len, pout, ACE_SHA_TYPE_SHA256)) in hw_sha256()
111 void hw_sha1(const unsigned char *pbuf, unsigned int buf_len, in hw_sha1() argument
114 if (ace_sha_hash_digest(pbuf, buf_len, pout, ACE_SHA_TYPE_SHA1)) in hw_sha1()
/u-boot/arch/arm/mach-uniphier/
A Dboard_late_init.c23 int buf_len = sizeof(dtb_name); in uniphier_set_env_fdt_file() local
39 strncpy(dtb_name, compat, buf_len); in uniphier_set_env_fdt_file()
40 buf_len -= strlen(compat); in uniphier_set_env_fdt_file()
42 strncat(dtb_name, ".dtb", buf_len); in uniphier_set_env_fdt_file()
/u-boot/drivers/crypto/fsl/
A Dfsl_hash.c164 int caam_hash(const unsigned char *pbuf, unsigned int buf_len, in caam_hash() argument
183 size = ALIGN(buf_len, ARCH_DMA_MINALIGN); in caam_hash()
186 inline_cnstr_jobdesc_hash(desc, pbuf, buf_len, pout, in caam_hash()
204 void hw_sha256(const unsigned char *pbuf, unsigned int buf_len, in hw_sha256() argument
207 if (caam_hash(pbuf, buf_len, pout, SHA256)) in hw_sha256()
211 void hw_sha1(const unsigned char *pbuf, unsigned int buf_len, in hw_sha1() argument
214 if (caam_hash(pbuf, buf_len, pout, SHA1)) in hw_sha1()
/u-boot/lib/aes/
A Daes-encrypt.c29 int buf_len, len, ret = 0; in image_aes_encrypt() local
59 buf_len = len; in image_aes_encrypt()
67 buf_len += len; in image_aes_encrypt()
70 *cipher_len = buf_len; in image_aes_encrypt()
/u-boot/fs/jffs2/
A Djffs2_1pass.c1492 uint32_t buf_len; in jffs2_1pass_build_lists() local
1510 buf_len = sizeof(*sm); in jffs2_1pass_build_lists()
1516 buf_len, buf_len, buf + buf_size - buf_len); in jffs2_1pass_build_lists()
1535 buf_size - buf_len, buf_len); in jffs2_1pass_build_lists()
1537 if (buf_len < sumlen) { in jffs2_1pass_build_lists()
1599 if (buf_ofs + buf_len < in jffs2_1pass_build_lists()
1617 buf_len); in jffs2_1pass_build_lists()
1644 if (!buf_len) { in jffs2_1pass_build_lists()
1652 scan_end = buf_len; in jffs2_1pass_build_lists()
1704 buf_len, buf); in jffs2_1pass_build_lists()
[all …]
/u-boot/include/
A Dslre.h94 int slre_match(const struct slre *, const char *buf, int buf_len,
/u-boot/drivers/power/pmic/
A Dstpmic1.c127 static int stpmic1_nvm_rw(struct udevice *dev, u8 addr, u8 *buf, int buf_len, in stpmic1_nvm_rw() argument
132 int ret, len = buf_len; in stpmic1_nvm_rw()
136 if (addr + buf_len > STPMIC1_NVM_START_ADDRESS + STPMIC1_NVM_SIZE) in stpmic1_nvm_rw()
/u-boot/arch/arm/mach-socfpga/
A Dmailbox_s10.c208 u32 buf_len; in mbox_send_cmd_common() local
272 buf_len = *resp_buf_len; in mbox_send_cmd_common()
275 buf_len = 0; in mbox_send_cmd_common()
291 if (buf_len) { in mbox_send_cmd_common()
295 buf_len--; in mbox_send_cmd_common()
/u-boot/drivers/ata/
A Ddwc_ahsata.c329 unsigned char *buf, int buf_len) in ahci_fill_sg() argument
337 sg_count = ((buf_len - 1) / max_bytes) + 1; in ahci_fill_sg()
348 (buf_len < max_bytes in ahci_fill_sg()
349 ? (buf_len - 1) in ahci_fill_sg()
352 buf_len -= max_bytes; in ahci_fill_sg()
376 struct sata_fis_h2d *cfis, u8 *buf, u32 buf_len, in ahci_exec_ata_cmd() argument
391 if (buf_len > MAX_BYTES_PER_TRANS) { in ahci_exec_ata_cmd()
398 if (buf && buf_len) in ahci_exec_ata_cmd()
399 sg_count = ahci_fill_sg(uc_priv, port, buf, buf_len); in ahci_exec_ata_cmd()
403 flush_cache((ulong)buf, buf_len); in ahci_exec_ata_cmd()
[all …]
A Dahci.c499 unsigned char *buf, int buf_len) in ahci_fill_sg() argument
506 sg_count = ((buf_len - 1) / MAX_DATA_BYTE_COUNT) + 1; in ahci_fill_sg()
523 (buf_len < MAX_DATA_BYTE_COUNT in ahci_fill_sg()
524 ? (buf_len - 1) in ahci_fill_sg()
527 buf_len -= MAX_DATA_BYTE_COUNT; in ahci_fill_sg()
636 int fis_len, u8 *buf, int buf_len, u8 is_write) in ahci_device_data_io() argument
660 sg_count = ahci_fill_sg(uc_priv, port, buf, buf_len); in ahci_device_data_io()
665 ahci_dcache_flush_range((unsigned long)buf, (unsigned long)buf_len); in ahci_device_data_io()
676 (unsigned long)buf_len); in ahci_device_data_io()
/u-boot/drivers/usb/gadget/
A Drndis.c145 unsigned buf_len, rndis_resp_t *r) in gen_ndis_query_resp() argument
162 if (buf_len) { in gen_ndis_query_resp()
163 debug("query OID %08x value, len %d:\n", OID, buf_len); in gen_ndis_query_resp()
164 for (i = 0; i < buf_len; i += 16) { in gen_ndis_query_resp()
646 static int gen_ndis_set_resp(u8 configNr, u32 OID, u8 *buf, u32 buf_len, in gen_ndis_set_resp() argument
663 if (buf_len) { in gen_ndis_set_resp()
664 debug("set OID %08x value, len %d:\n", OID, buf_len); in gen_ndis_set_resp()
665 for (i = 0; i < buf_len; i += 16) { in gen_ndis_set_resp()
759 __func__, OID, buf_len); in gen_ndis_set_resp()
/u-boot/drivers/net/
A Dfsl_enetc.h95 __le16 buf_len; member
117 __le16 buf_len; member
A Dhigmacv300.c100 unsigned int buf_len:11; member
395 desc->buf_len = MAC_MAX_FRAME_SIZE - 1; in higmac_init_rx_descs()
/u-boot/board/beckhoff/mx53cx9020/
A Dmx53cx9020.c202 static int ccat_write_fn(const void *buf, size_t buf_len, int flush, int cookie) in ccat_write_fn() argument
208 for (i = 0; i < buf_len; ++i) in ccat_write_fn()
/u-boot/board/gdsys/a38x/
A Dhre.c149 size_t buf_len; in find_key() local
164 buf_len = sizeof(buf); in find_key()
166 &buf_len); in find_key()
171 sha1_csum(buf, buf_len, digest); in find_key()
/u-boot/board/st/stm32mp1/
A Dstm32mp1.c681 int buf_len; in board_late_init() local
692 buf_len = sizeof(dtb_name); in board_late_init()
693 strncpy(dtb_name, fdt_compat + 3, buf_len); in board_late_init()
694 buf_len -= strlen(fdt_compat + 3); in board_late_init()
695 strncat(dtb_name, ".dtb", buf_len); in board_late_init()
/u-boot/drivers/tpm/
A Dcr50_i2c.c302 static int cr50_i2c_recv(struct udevice *dev, u8 *buf, size_t buf_len) in cr50_i2c_recv() argument
312 log_debug("%s: len=%x\n", __func__, buf_len); in cr50_i2c_recv()
313 if (buf_len < TPM_HEADER_SIZE) in cr50_i2c_recv()
331 if (expected > buf_len) { in cr50_i2c_recv()
332 log_warning("Too much data: %zu > %zu\n", expected, buf_len); in cr50_i2c_recv()
/u-boot/drivers/mtd/nand/raw/
A Dcortina_nand.h197 unsigned int buf_len : 16 ; /* bits 23:8 */ member
206 unsigned int buf_len : 16 ; /* bits 23:8 */ member
/u-boot/drivers/ufs/
A Dufs.c894 u16 buf_len; in ufshcd_copy_query_response() local
899 buf_len = in ufshcd_copy_query_response()
901 if (likely(buf_len >= resp_len)) { in ufshcd_copy_query_response()
1062 u8 *desc_buf, int *buf_len) in __ufshcd_query_descriptor() argument
1075 if (*buf_len < QUERY_DESC_MIN_SIZE || *buf_len > QUERY_DESC_MAX_SIZE) { in __ufshcd_query_descriptor()
1077 __func__, *buf_len); in __ufshcd_query_descriptor()
1085 request->upiu_req.length = cpu_to_be16(*buf_len); in __ufshcd_query_descriptor()
1110 *buf_len = be16_to_cpu(response->upiu_res.length); in __ufshcd_query_descriptor()
1121 u8 *desc_buf, int *buf_len) in ufshcd_query_descriptor_retry() argument
1128 selector, desc_buf, buf_len); in ufshcd_query_descriptor_retry()
/u-boot/lib/acpi/
A Dacpi_device.c33 size_t buf_len, int cur) in acpi_device_path_fill() argument
47 if (cur + strlen(name) + 2 > buf_len) in acpi_device_path_fill()
52 next = acpi_device_path_fill(dev_get_parent(dev), buf, buf_len, in acpi_device_path_fill()
59 next += snprintf(buf + next, buf_len - next, "%s%s", in acpi_device_path_fill()
/u-boot/drivers/usb/host/
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()
/u-boot/drivers/spi/
A Dfsl_espi.c185 size_t buf_len; in espi_xfer() local
205 buf_len = 2 * cmd_len + min(data_len, (size_t)max_tran_len); in espi_xfer()
208 buffer = (unsigned char *)malloc(buf_len); in espi_xfer()
/u-boot/drivers/usb/mtu3/
A Dmtu3_qmu.c192 gpd->buf_len = cpu_to_le16(req->length); in mtu3_prepare_tx_gpd()
374 req->actual = le16_to_cpu(gpd->buf_len); in qmu_done_tx()
412 req->actual = le16_to_cpu(gpd->buf_len); in qmu_done_rx()
/u-boot/lib/
A Dtpm-v1.c846 size_t buf_len; in tpm_find_key_sha1() local
861 buf_len = sizeof(buf); in tpm_find_key_sha1()
862 err = tpm_get_pub_key_oiap(key_handles[i], auth, buf, &buf_len); in tpm_find_key_sha1()
867 sha1_csum(buf, buf_len, digest); in tpm_find_key_sha1()
/u-boot/board/gdsys/p1022/
A Dcontrolcenterd-id.c314 size_t buf_len; in find_key() local
329 buf_len = sizeof(buf); in find_key()
331 &buf_len); in find_key()
336 sha1_csum(buf, buf_len, digest); in find_key()

Completed in 42 milliseconds

12