Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 5 of 5) sorted by relevance

/lib/mpi/
Dmpicoder.c36 MPI mpi_read_raw_data(const void *xbuffer, size_t nbytes) in mpi_read_raw_data() argument
44 while (nbytes > 0 && buffer[0] == 0) { in mpi_read_raw_data()
46 nbytes--; in mpi_read_raw_data()
49 nbits = nbytes * 8; in mpi_read_raw_data()
54 if (nbytes > 0) in mpi_read_raw_data()
57 nlimbs = DIV_ROUND_UP(nbytes, BYTES_PER_MPI_LIMB); in mpi_read_raw_data()
65 if (nbytes > 0) { in mpi_read_raw_data()
66 i = BYTES_PER_MPI_LIMB - nbytes % BYTES_PER_MPI_LIMB; in mpi_read_raw_data()
85 unsigned int nbits, nbytes; in mpi_read_from_buffer() local
97 nbytes = DIV_ROUND_UP(nbits, 8); in mpi_read_from_buffer()
[all …]
/lib/crypto/
Dpoly1305.c31 unsigned int nbytes) in poly1305_update_generic() argument
36 bytes = min(nbytes, POLY1305_BLOCK_SIZE - desc->buflen); in poly1305_update_generic()
39 nbytes -= bytes; in poly1305_update_generic()
49 if (likely(nbytes >= POLY1305_BLOCK_SIZE)) { in poly1305_update_generic()
51 nbytes / POLY1305_BLOCK_SIZE, 1); in poly1305_update_generic()
52 src += nbytes - (nbytes % POLY1305_BLOCK_SIZE); in poly1305_update_generic()
53 nbytes %= POLY1305_BLOCK_SIZE; in poly1305_update_generic()
56 if (unlikely(nbytes)) { in poly1305_update_generic()
57 desc->buflen = nbytes; in poly1305_update_generic()
58 memcpy(desc->buf, src, nbytes); in poly1305_update_generic()
/lib/
Dcrc8.c74 u8 crc8(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc) in crc8() argument
77 while (nbytes-- > 0) in crc8()
Dgenalloc.c189 unsigned long nbytes = sizeof(struct gen_pool_chunk) + in gen_pool_add_owner() local
192 chunk = vzalloc_node(nbytes, nid); in gen_pool_add_owner()
/lib/dim/
Ddim.c63 u32 nbytes = BIT_GAP(BITS_PER_TYPE(u32), end->byte_ctr, in dim_calc_stats() local
72 curr_stats->bpms = DIV_ROUND_UP(nbytes * USEC_PER_MSEC, delta_us); in dim_calc_stats()