/external/libldac/src/ |
D | bitalloc_sub_ldac.c | 74 int bitlen; member 94 int bitlen, vmin, vmax, val0, val1; in encode_scale_factor_0_ldac() local 114 val1 = bitlen = sa_bitlen_maxdif_0_ldac[(vmax-vmin)>>1]; in encode_scale_factor_0_ldac() 115 p_hcsf = ga_hcenc_sf0_ldac + (bitlen-LDAC_MINSFCBLEN_0); in encode_scale_factor_0_ldac() 122 p_sfcinf->bitlen = bitlen; in encode_scale_factor_0_ldac() 147 int bitlen, vmin, vmax, val; in encode_scale_factor_1_ldac() local 164 bitlen = sa_bitlen_maxdif_1_ldac[(vmax-vmin)>>1]; in encode_scale_factor_1_ldac() 165 if (bitlen > 4) { in encode_scale_factor_1_ldac() 171 val += bitlen * nqus; in encode_scale_factor_1_ldac() 174 p_sfcinf->bitlen = bitlen; in encode_scale_factor_1_ldac() [all …]
|
/external/u-boot/drivers/spi/ |
D | mpc8xxx_spi.c | 74 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer() argument 79 int numBlks = DIV_ROUND_UP(bitlen, 32); in spi_xfer() 84 slave->bus, slave->cs, *(uint *) dout, *(uint *) din, bitlen); in spi_xfer() 94 charSize = (bitlen >= 32 ? 32 : bitlen); in spi_xfer() 109 if (bitlen <= 16) { in spi_xfer() 110 if (bitlen <= 4) in spi_xfer() 115 ((bitlen - 1) << 20); in spi_xfer() 119 bitlen -= 32; in 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() 235 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer() argument 238 return _spi_xfer(spireg, bitlen, dout, din, flags); in spi_xfer() 333 static int mvebu_spi_xfer(struct udevice *dev, unsigned int bitlen, in mvebu_spi_xfer() argument [all …]
|
D | mxc_spi.c | 218 int spi_xchg_single(struct mxc_spi_slave *mxcs, unsigned int bitlen, in spi_xchg_single() argument 221 int nbytes = DIV_ROUND_UP(bitlen, 8); in spi_xchg_single() 228 __func__, bitlen, (u32)dout, (u32)din); in spi_xchg_single() 232 MXC_CSPICTRL_BITCOUNT(bitlen - 1); in spi_xchg_single() 247 if (bitlen % 32) { in spi_xchg_single() 249 cnt = (bitlen % 32) / 8; in spi_xchg_single() 300 nbytes = DIV_ROUND_UP(bitlen, 8); in spi_xchg_single() 304 if (bitlen % 32) { in spi_xchg_single() 306 cnt = (bitlen % 32) / 8; in spi_xchg_single() 334 unsigned int bitlen, const void *dout, in mxc_spi_xfer_internal() argument [all …]
|
D | sandbox_spi.c | 50 static int sandbox_spi_xfer(struct udevice *slave, unsigned int bitlen, in sandbox_spi_xfer() argument 57 uint bytes = bitlen / 8, i; in sandbox_spi_xfer() 62 if (bitlen == 0) in sandbox_spi_xfer() 66 if (bitlen % 8) { in sandbox_spi_xfer() 68 bitlen); in sandbox_spi_xfer() 109 ret = ops->xfer(emul, bitlen, dout, din, flags); in sandbox_spi_xfer()
|
D | soft_spi_legacy.c | 108 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer() argument 124 slave->bus, slave->cs, *(uint *)txd, *(uint *)rxd, bitlen); in spi_xfer() 129 for(j = 0; j < bitlen; j++) { in spi_xfer() 166 if ((bitlen % 8) != 0) in spi_xfer() 167 tmpdin <<= 8 - (bitlen % 8); in spi_xfer()
|
D | atmel_spi.c | 137 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer() argument 149 if (bitlen == 0) in spi_xfer() 161 if (bitlen % 8) { in spi_xfer() 167 len = bitlen / 8; in spi_xfer() 321 static int atmel_spi_xfer(struct udevice *dev, unsigned int bitlen, in atmel_spi_xfer() argument 334 if (bitlen == 0) in atmel_spi_xfer() 345 if (bitlen % 8) { in atmel_spi_xfer() 351 len = bitlen / 8; in atmel_spi_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 | davinci_spi.c | 304 unsigned int bitlen, const void *dout, void *din, in __davinci_spi_xfer() argument 309 if (bitlen == 0) in __davinci_spi_xfer() 319 if (bitlen % 8) { in __davinci_spi_xfer() 325 len = bitlen / 8; in __davinci_spi_xfer() 438 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer() argument 445 return __davinci_spi_xfer(ds, bitlen, dout, din, flags); in spi_xfer() 514 static int davinci_spi_xfer(struct udevice *dev, unsigned int bitlen, in davinci_spi_xfer() argument 529 return __davinci_spi_xfer(ds, bitlen, dout, din, flags); in davinci_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 | xilinx_spi.c | 165 static int xilinx_spi_xfer(struct udevice *dev, unsigned int bitlen, in xilinx_spi_xfer() argument 173 unsigned int bytes = bitlen / XILSPI_MAX_XFER_BITS; in xilinx_spi_xfer() 180 bus->seq, slave_plat->cs, bitlen, bytes, flags); in xilinx_spi_xfer() 182 if (bitlen == 0) in xilinx_spi_xfer() 185 if (bitlen % XILSPI_MAX_XFER_BITS) { in xilinx_spi_xfer()
|
D | ti_qspi.c | 189 static int __ti_qspi_xfer(struct ti_qspi_priv *priv, unsigned int bitlen, in __ti_qspi_xfer() argument 193 uint words = bitlen >> 3; /* fixed 8-bit word length */ in __ti_qspi_xfer() 212 if (bitlen == 0) in __ti_qspi_xfer() 215 if (bitlen % 8) { in __ti_qspi_xfer() 427 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer() argument 433 priv->slave.bus, priv->slave.cs, bitlen, flags); in spi_xfer() 434 return __ti_qspi_xfer(priv, bitlen, dout, din, flags, priv->slave.cs); in spi_xfer() 526 static int ti_qspi_xfer(struct udevice *dev, unsigned int bitlen, in ti_qspi_xfer() argument 541 return __ti_qspi_xfer(priv, bitlen, dout, din, flags, slave->cs); in ti_qspi_xfer()
|
D | cf_spi.c | 102 static int cfspi_xfer(struct spi_slave *slave, uint bitlen, const void *dout, in cfspi_xfer() argument 109 uint len = bitlen >> 3; in cfspi_xfer() 112 bitlen >>= 1; in cfspi_xfer() 330 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer() argument 333 return cfspi_xfer(slave, bitlen, dout, din, flags); in spi_xfer()
|
D | sh_qspi.c | 201 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer() argument 217 if (bitlen % 8) { in spi_xfer() 218 printf("%s: bitlen is not 8bit alined %d", __func__, bitlen); in spi_xfer() 222 nbyte = bitlen / 8; in 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() 574 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer() argument 579 return _spi_xfer(priv, bitlen, dout, din, flags); in spi_xfer() 642 static int omap3_spi_xfer(struct udevice *dev, unsigned int bitlen, in omap3_spi_xfer() argument 648 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()
|
/external/u-boot/cmd/ |
D | spi.c | 38 static int bitlen; variable 70 ret = spi_xfer(slave, bitlen, dout, din, in do_spi_xfer() 82 for (j = 0; j < ((bitlen + 7) / 8); j++) in do_spi_xfer() 132 bitlen = simple_strtoul(argv[2], NULL, 10); in do_spi() 153 if ((bitlen < 0) || (bitlen > (MAX_SPI_BYTES * 8))) { in do_spi() 154 printf("Invalid bitlen %d\n", bitlen); in do_spi()
|
/external/zopfli/src/zopflipng/lodepng/ |
D | lodepng_util.cpp | 310 int makeFromLengths(const std::vector<unsigned long>& bitlen, unsigned long maxbitlen) in makeFromLengths() 312 unsigned long numcodes = (unsigned long)(bitlen.size()), treepos = 0, nodefilled = 0; in makeFromLengths() 315 for(unsigned long bits = 0; bits < numcodes; bits++) blcount[bitlen[bits]]++; in makeFromLengths() 321 … for(unsigned long n = 0; n < numcodes; n++) if(bitlen[n] != 0) tree1d[n] = nextcode[bitlen[n]]++; in makeFromLengths() 324 for(unsigned long i = 0; i < bitlen[n]; i++) //the bits for this code in makeFromLengths() 326 unsigned long bit = (tree1d[n] >> (bitlen[n] - i - 1)) & 1; in makeFromLengths() 330 if(i + 1 == bitlen[n]) in makeFromLengths() 385 std::vector<unsigned long> bitlen(288, 8), bitlenD(32, 5);; in generateFixedTrees() local 386 for(size_t i = 144; i <= 255; i++) bitlen[i] = 9; in generateFixedTrees() 387 for(size_t i = 256; i <= 279; i++) bitlen[i] = 7; in generateFixedTrees() [all …]
|
/external/tcpdump/ |
D | print-domain.c | 66 int bitlen, bytelen; in ns_nskip() local 72 if ((bitlen = *cp++) == 0) in ns_nskip() 73 bitlen = 256; in ns_nskip() 74 bytelen = (bitlen + 7) / 8; in ns_nskip() 90 int bitlen, slen, b; in blabel_print() local 96 if ((bitlen = *cp) == 0) in blabel_print() 97 bitlen = 256; in blabel_print() 98 slen = (bitlen + 3) / 4; in blabel_print() 103 for (bitp = cp + 1, b = bitlen; bitp < lim && b > 7; b -= 8, bitp++) { in blabel_print() 116 ND_PRINT((ndo, "/%d]", bitlen)); in blabel_print() [all …]
|
/external/iproute2/ip/ |
D | tcp_metrics.c | 155 if (f.daddr.family && f.daddr.bitlen >= 0 && in process_msg() 156 inet_addr_match(&daddr, &f.daddr, f.daddr.bitlen)) in process_msg() 161 if (slen && f.saddr.family && f.saddr.bitlen >= 0 && in process_msg() 162 inet_addr_match(&saddr, &f.saddr, f.saddr.bitlen)) in process_msg() 313 f.daddr.bitlen = -1; in tcpm_do_cmd() 315 f.saddr.bitlen = -1; in tcpm_do_cmd() 336 if (f.saddr.bitlen >= 0) in tcpm_do_cmd() 340 if (f.saddr.bytelen && f.saddr.bytelen * 8 == f.saddr.bitlen) { in tcpm_do_cmd() 362 if (f.daddr.bitlen >= 0) in tcpm_do_cmd() 366 if (f.daddr.bytelen && f.daddr.bytelen * 8 == f.daddr.bitlen) { in tcpm_do_cmd() [all …]
|
D | ipmroute.c | 99 if (tb[RTA_DST] && filter.mdst.bitlen > 0) { in print_mroute() 103 if (inet_addr_match(&dst, &filter.mdst, filter.mdst.bitlen)) in print_mroute() 107 if (tb[RTA_SRC] && filter.msrc.bitlen > 0) { in print_mroute() 111 if (inet_addr_match(&src, &filter.msrc, filter.msrc.bitlen)) in print_mroute() 194 filter.mdst.bitlen = -1; in ipmroute_reset_filter() 195 filter.msrc.bitlen = -1; in ipmroute_reset_filter()
|
/external/u-boot/include/ |
D | spi.h | 253 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, 402 int (*xfer)(struct udevice *dev, unsigned int bitlen, const void *dout, 468 int (*xfer)(struct udevice *slave, unsigned int bitlen, 625 int dm_spi_xfer(struct udevice *dev, unsigned int bitlen,
|
/external/sl4a/Common/src/org/apache/commons/codec/binary/ |
D | Base64Codec.java | 1019 int bitlen = bigInt.bitLength(); in toIntegerBytes() local 1021 bitlen = ((bitlen + 7) >> 3) << 3; in toIntegerBytes() 1024 if (((bigInt.bitLength() % 8) != 0) && (((bigInt.bitLength() / 8) + 1) == (bitlen / 8))) { in toIntegerBytes() 1036 int startDst = bitlen / 8 - len; // to pad w/ nulls as per spec in toIntegerBytes() 1037 byte[] resizedBytes = new byte[bitlen / 8]; in toIntegerBytes()
|
/external/iproute2/lib/ |
D | utils.c | 481 addr->bitlen = -1; in get_addr_1() 495 addr->bitlen = len * 8; in get_addr_1() 506 addr->bitlen = -1; in get_addr_1() 519 addr->bitlen = -1; in get_addr_1() 533 addr->bitlen = 20; in get_addr_1() 553 addr->bitlen = -1; in get_addr_1() 595 dst->bitlen = 0; in get_prefix_1() 605 dst->bitlen = af_bit_len(dst->family); in get_prefix_1() 609 || plen > dst->bitlen) { in get_prefix_1() 614 dst->bitlen = plen; in get_prefix_1()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/ |
D | X0017_StrongEncryptionHeader.java | 253 private int bitlen; // TODO written but not read field in X0017_StrongEncryptionHeader 305 this.bitlen = ZipShort.getValue(data, offset + 4); in parseCentralDirectoryFormat() 337 this.bitlen = ZipShort.getValue(data, offset + ivSize + 10); in parseFileFormat()
|