/third_party/openssl/crypto/evp/ |
D | m_sha3.c | 291 # define EVP_MD_SHA3(bitlen) \ argument 292 const EVP_MD *EVP_sha3_##bitlen(void) \ 294 static const EVP_MD s390x_sha3_##bitlen##_md = { \ 295 NID_sha3_##bitlen, \ 296 NID_RSA_SHA3_##bitlen, \ 297 bitlen / 8, \ 304 (KECCAK1600_WIDTH - bitlen * 2) / 8, \ 307 static const EVP_MD sha3_##bitlen##_md = { \ 308 NID_sha3_##bitlen, \ 309 NID_RSA_SHA3_##bitlen, \ [all …]
|
/third_party/openssl/crypto/pem/ |
D | pvkfmt.c | 82 unsigned int bitlen, int ispub); 84 unsigned int bitlen, int ispub); 149 static unsigned int blob_length(unsigned bitlen, int isdss, int ispub) in blob_length() argument 152 nbyte = (bitlen + 7) >> 3; in blob_length() 153 hnbyte = (bitlen + 15) >> 4; in blob_length() 186 unsigned int bitlen, magic; in do_b2i() local 188 if (do_blob_header(&p, length, &magic, &bitlen, &isdss, &ispub) <= 0) { in do_b2i() 193 if (length < blob_length(bitlen, isdss, ispub)) { in do_b2i() 198 return b2i_dss(&p, bitlen, ispub); in do_b2i() 200 return b2i_rsa(&p, bitlen, ispub); in do_b2i() [all …]
|
/third_party/uboot/u-boot-2020.01/cmd/ |
D | spi.c | 31 static int bitlen; variable 63 ret = spi_xfer(slave, bitlen, dout, din, in do_spi_xfer() 75 for (j = 0; j < ((bitlen + 7) / 8); j++) in do_spi_xfer() 125 bitlen = simple_strtoul(argv[2], NULL, 10); in do_spi() 146 if ((bitlen < 0) || (bitlen > (MAX_SPI_BYTES * 8))) { in do_spi() 147 printf("Invalid bitlen %d\n", bitlen); in do_spi()
|
/third_party/uboot/u-boot-2020.01/drivers/spi/ |
D | mpc8xxx_spi.c | 122 static int mpc8xxx_spi_xfer(struct udevice *dev, uint bitlen, in mpc8xxx_spi_xfer() argument 130 int num_blks = DIV_ROUND_UP(bitlen, 32); in mpc8xxx_spi_xfer() 133 bus->name, platdata->cs, *(uint *)dout, *(uint *)din, bitlen); in mpc8xxx_spi_xfer() 144 uchar xfer_bitlen = (bitlen >= 32 ? 32 : bitlen); in mpc8xxx_spi_xfer() 151 if (bitlen <= 4) /* 4 bits or less */ in mpc8xxx_spi_xfer() 153 else if (bitlen <= 16) /* at most 16 bits */ in mpc8xxx_spi_xfer() 154 set_char_len(spi, bitlen - 1); in mpc8xxx_spi_xfer() 163 if (bitlen > 32) { in mpc8xxx_spi_xfer() 165 bitlen -= 32; in mpc8xxx_spi_xfer()
|
D | sandbox_spi.c | 52 static int sandbox_spi_xfer(struct udevice *slave, unsigned int bitlen, in sandbox_spi_xfer() argument 59 uint bytes = bitlen / 8, i; in sandbox_spi_xfer() 63 if (bitlen == 0) in sandbox_spi_xfer() 67 if (bitlen % 8) { in sandbox_spi_xfer() 69 bitlen); in sandbox_spi_xfer() 92 ret = ops->xfer(emul, bitlen, dout, din, flags); in sandbox_spi_xfer()
|
D | kirkwood_spi.c | 31 static int _spi_xfer(struct kwspi_registers *reg, unsigned int bitlen, in _spi_xfer() argument 37 debug("spi_xfer: dout %p din %p bitlen %u\n", dout, din, bitlen); in _spi_xfer() 48 while (bitlen > 4) { in _spi_xfer() 49 debug("loopstart bitlen %d\n", bitlen); in _spi_xfer() 59 tmpdout, bitlen); in _spi_xfer() 79 bitlen -= 8; in _spi_xfer() 87 debug("loopend bitlen %d\n", bitlen); in _spi_xfer() 199 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer() argument 202 return _spi_xfer(spireg, bitlen, dout, din, flags); in spi_xfer() 296 static int mvebu_spi_xfer(struct udevice *dev, unsigned int bitlen, in mvebu_spi_xfer() argument [all …]
|
D | mxc_spi.c | 238 int spi_xchg_single(struct mxc_spi_slave *mxcs, unsigned int bitlen, in spi_xchg_single() argument 241 int nbytes = DIV_ROUND_UP(bitlen, 8); in spi_xchg_single() 248 __func__, bitlen, (ulong)dout, (ulong)din); in spi_xchg_single() 252 MXC_CSPICTRL_BITCOUNT(bitlen - 1); in spi_xchg_single() 267 if (bitlen % 32) { in spi_xchg_single() 269 cnt = (bitlen % 32) / 8; in spi_xchg_single() 320 nbytes = DIV_ROUND_UP(bitlen, 8); in spi_xchg_single() 324 if (bitlen % 32) { in spi_xchg_single() 326 cnt = (bitlen % 32) / 8; in spi_xchg_single() 354 unsigned int bitlen, const void *dout, in mxc_spi_xfer_internal() argument [all …]
|
D | soft_spi_legacy.c | 101 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer() argument 117 slave->bus, slave->cs, *(uint *)txd, *(uint *)rxd, bitlen); in spi_xfer() 122 for(j = 0; j < bitlen; j++) { in spi_xfer() 159 if ((bitlen % 8) != 0) in spi_xfer() 160 tmpdin <<= 8 - (bitlen % 8); in spi_xfer()
|
D | sh_qspi.c | 146 static int sh_qspi_xfer_common(struct sh_qspi_slave *ss, unsigned int bitlen, in sh_qspi_xfer_common() argument 161 if (bitlen % 8) { in sh_qspi_xfer_common() 162 printf("%s: bitlen is not 8bit alined %d", __func__, bitlen); in sh_qspi_xfer_common() 166 nbyte = bitlen / 8; in sh_qspi_xfer_common() 288 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer() argument 293 return sh_qspi_xfer_common(ss, bitlen, dout, din, flags); in spi_xfer() 300 static int sh_qspi_xfer(struct udevice *dev, unsigned int bitlen, in sh_qspi_xfer() argument 306 return sh_qspi_xfer_common(ss, bitlen, dout, din, flags); in sh_qspi_xfer()
|
D | altera_spi.c | 84 static int altera_spi_xfer(struct udevice *dev, unsigned int bitlen, in altera_spi_xfer() argument 93 unsigned int bytes = bitlen / 8; in altera_spi_xfer() 99 bus->seq, slave_plat->cs, bitlen, bytes, flags); in altera_spi_xfer() 101 if (bitlen == 0) in altera_spi_xfer() 104 if (bitlen % 8) { in altera_spi_xfer()
|
D | atmel_spi.c | 132 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer() argument 144 if (bitlen == 0) in spi_xfer() 156 if (bitlen % 8) { in spi_xfer() 162 len = bitlen / 8; in spi_xfer() 316 static int atmel_spi_xfer(struct udevice *dev, unsigned int bitlen, in atmel_spi_xfer() argument 329 if (bitlen == 0) in atmel_spi_xfer() 340 if (bitlen % 8) { in atmel_spi_xfer() 346 len = bitlen / 8; in atmel_spi_xfer()
|
D | soft_spi.c | 107 static int soft_spi_xfer(struct udevice *dev, unsigned int bitlen, in soft_spi_xfer() argument 122 bitlen); in soft_spi_xfer() 127 for (j = 0; j < bitlen; j++) { in soft_spi_xfer() 166 if ((bitlen % 8) != 0) in soft_spi_xfer() 167 tmpdin <<= 8 - (bitlen % 8); in soft_spi_xfer()
|
D | davinci_spi.c | 305 unsigned int bitlen, const void *dout, void *din, in __davinci_spi_xfer() argument 310 if (bitlen == 0) in __davinci_spi_xfer() 320 if (bitlen % 8) { in __davinci_spi_xfer() 326 len = bitlen / 8; in __davinci_spi_xfer() 434 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer() argument 441 return __davinci_spi_xfer(ds, bitlen, dout, din, flags); in spi_xfer() 510 static int davinci_spi_xfer(struct udevice *dev, unsigned int bitlen, in davinci_spi_xfer() argument 525 return __davinci_spi_xfer(ds, bitlen, dout, din, flags); in davinci_spi_xfer()
|
D | xilinx_spi.c | 241 static int xilinx_spi_xfer(struct udevice *dev, unsigned int bitlen, in xilinx_spi_xfer() argument 249 unsigned int bytes = bitlen / XILSPI_MAX_XFER_BITS; in xilinx_spi_xfer() 258 bus->seq, slave_plat->cs, bitlen, bytes, flags); in xilinx_spi_xfer() 260 if (bitlen == 0) in xilinx_spi_xfer() 263 if (bitlen % XILSPI_MAX_XFER_BITS) { in xilinx_spi_xfer()
|
D | meson_spifc.c | 188 static int meson_spifc_xfer(struct udevice *slave, unsigned int bitlen, in meson_spifc_xfer() argument 192 int blen = bitlen / 8; in meson_spifc_xfer() 195 if (bitlen % 8) in meson_spifc_xfer() 198 debug("xfer len %d (%d) dout %p din %p\n", bitlen, blen, dout, din); in meson_spifc_xfer()
|
D | mscc_bb_spi.c | 115 int mscc_bb_spi_xfer(struct udevice *dev, unsigned int bitlen, in mscc_bb_spi_xfer() argument 127 din, bitlen); in mscc_bb_spi_xfer() 132 count = bitlen / 8; in mscc_bb_spi_xfer()
|
D | omap3_spi.c | 314 static int _spi_xfer(struct omap3_spi_priv *priv, unsigned int bitlen, in _spi_xfer() argument 325 if (bitlen % priv->wordlen) in _spi_xfer() 328 len = bitlen / priv->wordlen; in _spi_xfer() 330 if (bitlen == 0) { /* only change CS */ in _spi_xfer() 569 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer() argument 574 return _spi_xfer(priv, bitlen, dout, din, flags); in spi_xfer() 637 static int omap3_spi_xfer(struct udevice *dev, unsigned int bitlen, in omap3_spi_xfer() argument 643 return _spi_xfer(priv, bitlen, dout, din, flags); in omap3_spi_xfer()
|
D | atcspi200_spi.c | 190 unsigned int bitlen, const void *data_out, void *data_in, in __atcspi200_spi_xfer() argument 200 unsigned long data_len = bitlen / 8; in __atcspi200_spi_xfer() 213 if (bitlen == 0) { in __atcspi200_spi_xfer() 331 static int atcspi200_spi_xfer(struct udevice *dev, unsigned int bitlen, in atcspi200_spi_xfer() argument 338 return __atcspi200_spi_xfer(ns, bitlen, dout, din, flags); in atcspi200_spi_xfer()
|
D | pl022_spi.c | 149 static int pl022_spi_xfer(struct udevice *dev, unsigned int bitlen, in pl022_spi_xfer() argument 159 if (bitlen == 0) in pl022_spi_xfer() 171 if (bitlen % 8) { in pl022_spi_xfer() 177 len = bitlen / 8; in pl022_spi_xfer()
|
D | ath79_spi.c | 56 static int ath79_spi_xfer(struct udevice *dev, unsigned int bitlen, in ath79_spi_xfer() argument 65 u32 bytes = bitlen / 8; in ath79_spi_xfer() 72 restbits = (bitlen % 8); in ath79_spi_xfer()
|
D | fsl_dspi.c | 250 static int dspi_xfer(struct fsl_dspi_priv *priv, uint cs, unsigned int bitlen, in dspi_xfer() argument 256 uint len = bitlen >> 3; in dspi_xfer() 259 bitlen >>= 1; in dspi_xfer() 532 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer() argument 536 return dspi_xfer(&dspi->priv, slave->cs, bitlen, dout, din, flags); in spi_xfer() 683 static int fsl_dspi_xfer(struct udevice *dev, unsigned int bitlen, in fsl_dspi_xfer() argument 693 return dspi_xfer(priv, slave_plat->cs, bitlen, dout, din, flags); in fsl_dspi_xfer()
|
D | tegra20_slink.c | 197 static int tegra30_spi_xfer(struct udevice *dev, unsigned int bitlen, in tegra30_spi_xfer() argument 211 __func__, bus->seq, spi_chip_select(dev), dout, din, bitlen); in tegra30_spi_xfer() 212 if (bitlen % 8) in tegra30_spi_xfer() 214 num_bytes = bitlen / 8; in tegra30_spi_xfer()
|
/third_party/openssl/crypto/whrlpool/ |
D | wp_dgst.c | 98 c->bitlen[0] += bits; in WHIRLPOOL_BitUpdate() 99 if (c->bitlen[0] < bits) { /* overflow */ in WHIRLPOOL_BitUpdate() 102 c->bitlen[n]++; in WHIRLPOOL_BitUpdate() 103 } while (c->bitlen[n] == 0 in WHIRLPOOL_BitUpdate() 234 for (v = c->bitlen[i], j = 0; j < sizeof(size_t); j++, v >>= 8) in WHIRLPOOL_Final()
|
/third_party/uboot/u-boot-2020.01/include/ |
D | spi.h | 248 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, 417 int (*xfer)(struct udevice *dev, unsigned int bitlen, const void *dout, 505 int (*xfer)(struct udevice *slave, unsigned int bitlen, 663 int dm_spi_xfer(struct udevice *dev, unsigned int bitlen,
|
/third_party/mbedtls/library/ |
D | debug.c | 264 size_t bitlen; in mbedtls_debug_print_mpi() local 276 bitlen = mbedtls_mpi_bitlen( X ); in mbedtls_debug_print_mpi() 279 text, (unsigned) bitlen ); in mbedtls_debug_print_mpi() 282 if( bitlen == 0 ) in mbedtls_debug_print_mpi() 290 for( n = (int) ( ( bitlen - 1 ) / 8 ); n >= 0; n-- ) in mbedtls_debug_print_mpi()
|