| /OK3568_Linux_fs/kernel/net/sunrpc/ |
| H A D | xdr.c | 635 return (unsigned int)(XDR_QUADLEN(xdr->buf->len) - xdr->nwords) << 2; in xdr_stream_pos() 1025 xdr_set_iov(xdr, xdr->buf->tail, xdr->nwords << 2); in xdr_set_page() 1061 xdr->nwords = XDR_QUADLEN(buf->len); in xdr_init_decode() 1069 xdr->nwords -= p - xdr->p; in xdr_init_decode() 1097 unsigned int nwords = XDR_QUADLEN(nbytes); in __xdr_inline_decode() local 1099 __be32 *q = p + nwords; in __xdr_inline_decode() 1101 if (unlikely(nwords > xdr->nwords || q > xdr->end || q < p)) in __xdr_inline_decode() 1104 xdr->nwords -= nwords; in __xdr_inline_decode() 1192 xdr->nwords = XDR_QUADLEN(buf->len - cur); in xdr_realign_pages() 1199 unsigned int nwords = XDR_QUADLEN(len); in xdr_align_pages() local [all …]
|
| /OK3568_Linux_fs/kernel/net/ethtool/ |
| H A D | bitset.c | 183 unsigned int nwords = DIV_ROUND_UP(nbits, 32); in ethnl_bitset32_size() local 186 len += (mask ? 2 : 1) * nla_total_size(nwords * sizeof(u32)); in ethnl_bitset32_size() 248 unsigned int nwords = DIV_ROUND_UP(nbits, 32); in ethnl_put_bitset32() local 249 unsigned int nbytes = nwords * sizeof(u32); in ethnl_put_bitset32() 258 dst[nwords - 1] &= ethnl_lower_bits(nbits); in ethnl_put_bitset32() 267 dst[nwords - 1] &= ethnl_lower_bits(nbits); in ethnl_put_bitset32() 710 unsigned int nwords = DIV_ROUND_UP(nbits, 32); in ethnl_bitset_size() local 712 val32 = kmalloc_array(2 * nwords, sizeof(u32), GFP_KERNEL); in ethnl_bitset_size() 715 mask32 = val32 + nwords; in ethnl_bitset_size() 746 unsigned int nwords = DIV_ROUND_UP(nbits, 32); in ethnl_put_bitset() local [all …]
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A D | dynamic_debug.c | 239 int nwords = 0; in ddebug_tokenize() local 267 if (nwords == maxwords) { in ddebug_tokenize() 273 words[nwords++] = buf; in ddebug_tokenize() 280 for (i = 0; i < nwords; i++) in ddebug_tokenize() 285 return nwords; in ddebug_tokenize() 370 static int ddebug_parse_query(char *words[], int nwords, in ddebug_parse_query() argument 378 if (nwords % 2 != 0) { in ddebug_parse_query() 383 for (i = 0; i < nwords; i += 2) { in ddebug_parse_query() 494 int nwords, nfound; in ddebug_exec_query() local 497 nwords = ddebug_tokenize(query_string, words, MAXWORDS); in ddebug_exec_query() [all …]
|
| H A D | bch.c | 190 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1; in load_ecc8() local 192 for (i = 0; i < nwords; i++, src += 4) in load_ecc8() 198 memcpy(pad, src, BCH_ECC_BYTES(bch)-4*nwords); in load_ecc8() 199 dst[nwords] = ((u32)swap_bits(bch, pad[0]) << 24) | in load_ecc8() 212 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1; in store_ecc8() local 214 for (i = 0; i < nwords; i++) { in store_ecc8() 220 pad[0] = swap_bits(bch, src[nwords] >> 24); in store_ecc8() 221 pad[1] = swap_bits(bch, src[nwords] >> 16); in store_ecc8() 222 pad[2] = swap_bits(bch, src[nwords] >> 8); in store_ecc8() 223 pad[3] = swap_bits(bch, src[nwords]); in store_ecc8() [all …]
|
| /OK3568_Linux_fs/buildroot/package/vboot-utils/ |
| H A D | 0006-Update-for-openssl-1.1.patch | 162 - nwords = BN_num_bits(rsa_private_key->n) / 32; 163 + nwords = RSA_size(rsa_private_key) / 4; 165 bufsize = (2 + nwords + nwords) * sizeof(uint32_t); 233 int i, nwords; 246 - nwords = BN_num_bits(N) / 32; 247 + nwords = RSA_size(key) / 4; 248 if (-1 == write(1, &nwords, sizeof(nwords)))
|
| /OK3568_Linux_fs/kernel/lib/reed_solomon/ |
| H A D | test_rslib.c | 66 int nwords; member 73 int nwords; member 310 stat->nwords += trials; in test_uc() 335 stat.dwrong, stat.nwords); in ex_rs_helper() 337 stat.irv, stat.nwords); in ex_rs_helper() 404 stat->nwords += trials; in test_bc() 429 stat.rfail, stat.nwords); in exercise_rs_bc() 431 stat.rsuccess, stat.nwords); in exercise_rs_bc()
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/qib/ |
| H A D | qib_ruc.c | 184 const struct ib_global_route *grh, u32 hwords, u32 nwords) in qib_make_grh() argument 190 hdr->paylen = cpu_to_be16((hwords - 2 + nwords + SIZE_OF_CRC) << 2); in qib_make_grh() 212 u32 nwords; in qib_make_ruc_header() local 217 nwords = (qp->s_cur_size + extra_bytes) >> 2; in qib_make_ruc_header() 223 qp->s_hdrwords, nwords); in qib_make_ruc_header() 232 cpu_to_be16(qp->s_hdrwords + nwords + SIZE_OF_CRC); in qib_make_ruc_header()
|
| H A D | qib_ud.c | 238 u32 nwords; in qib_make_ud_req() local 309 nwords = (wqe->length + extra_bytes) >> 2; in qib_make_ud_req() 326 qp->s_hdrwords, nwords); in qib_make_ud_req() 353 cpu_to_be16(qp->s_hdrwords + nwords + SIZE_OF_CRC); in qib_make_ud_req()
|
| /OK3568_Linux_fs/kernel/fs/jfs/ |
| H A D | jfs_dmap.c | 423 int word, nbits, nwords; in dbUpdatePMap() local 511 nwords = rbits >> L2DBWORD; in dbUpdatePMap() 512 nbits = nwords << L2DBWORD; in dbUpdatePMap() 519 nwords * 4); in dbUpdatePMap() 522 nwords * 4); in dbUpdatePMap() 524 word += nwords; in dbUpdatePMap() 1123 int dbitno, word, rembits, nb, nwords, wbitno, nw; in dbAllocNext() local 1190 nwords = rembits >> L2DBWORD; in dbAllocNext() 1191 nb = nwords << L2DBWORD; in dbAllocNext() 1196 while (nwords > 0) { in dbAllocNext() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/hfi1/ |
| H A D | ruc.c | 169 const struct ib_global_route *grh, u32 hwords, u32 nwords) in hfi1_make_grh() argument 175 hdr->paylen = cpu_to_be16((hwords + nwords) << 2); in hfi1_make_grh() 287 u32 nwords = SIZE_OF_CRC + ((ps->s_txreq->s_cur_size + in hfi1_make_ruc_header_16B() local 307 nwords); in hfi1_make_ruc_header_16B() 342 (ps->s_txreq->hdr_dwords + nwords) >> 1, in hfi1_make_ruc_header_16B() 371 u32 nwords = SIZE_OF_CRC + ((ps->s_txreq->s_cur_size + in hfi1_make_ruc_header_9B() local 382 nwords); in hfi1_make_ruc_header_9B() 409 ps->s_txreq->hdr_dwords + nwords, in hfi1_make_ruc_header_9B()
|
| H A D | ud.c | 306 u32 nwords, extra_bytes; in hfi1_make_ud_req_9B() local 322 nwords = ((wqe->length + extra_bytes) >> 2) + SIZE_OF_CRC; in hfi1_make_ud_req_9B() 333 nwords); in hfi1_make_ud_req_9B() 366 len = ps->s_txreq->hdr_dwords + nwords; in hfi1_make_ud_req_9B() 382 u32 dlid, slid, nwords, extra_bytes; in hfi1_make_ud_req_16B() local 411 nwords = ((wqe->length + extra_bytes + SIZE_OF_LT) >> 2) + SIZE_OF_CRC; in hfi1_make_ud_req_16B() 430 nwords); in hfi1_make_ud_req_16B() 460 len = (ps->s_txreq->hdr_dwords + nwords) >> 1; in hfi1_make_ud_req_16B() 645 u32 nwords; in return_cnp_16B() local 649 nwords = ((hfi1_get_16b_padding(hwords << 2, 0) + in return_cnp_16B() [all …]
|
| H A D | rc.c | 1264 u32 *nwords) in hfi1_make_rc_ack_9B() argument 1317 u32 *nwords) in hfi1_make_rc_ack_16B() argument 1335 *nwords = SIZE_OF_CRC + ((extra_bytes + SIZE_OF_LT) >> 2); in hfi1_make_rc_ack_16B() 1341 *hwords - 4, *nwords); in hfi1_make_rc_ack_16B() 1351 len = (*hwords + *nwords) >> 1; in hfi1_make_rc_ack_16B() 1370 u32 *nwords); 1396 u32 nwords = 0; in hfi1_send_rc_ack() local 1422 &pbc_flags, &hwords, &nwords); in hfi1_send_rc_ack() 1424 plen = 2 /* PBC */ + hwords + nwords; in hfi1_send_rc_ack()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/ |
| H A D | bbt.c | 27 unsigned int nwords = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_bbt_init() local 30 nand->bbt.cache = kcalloc(nwords, sizeof(*nand->bbt.cache), in nanddev_bbt_init()
|
| /OK3568_Linux_fs/u-boot/lib/ |
| H A D | bch.c | 180 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1; in load_ecc8() local 182 for (i = 0; i < nwords; i++, src += 4) in load_ecc8() 185 memcpy(pad, src, BCH_ECC_BYTES(bch)-4*nwords); in load_ecc8() 186 dst[nwords] = (pad[0] << 24)|(pad[1] << 16)|(pad[2] << 8)|pad[3]; in load_ecc8() 196 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1; in store_ecc8() local 198 for (i = 0; i < nwords; i++) { in store_ecc8() 204 pad[0] = (src[nwords] >> 24); in store_ecc8() 205 pad[1] = (src[nwords] >> 16) & 0xff; in store_ecc8() 206 pad[2] = (src[nwords] >> 8) & 0xff; in store_ecc8() 207 pad[3] = (src[nwords] >> 0) & 0xff; in store_ecc8() [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/codecs/ |
| H A D | wm_adsp.c | 3730 static void wm_adsp_remove_padding(u32 *buf, int nwords, int data_word_size) in wm_adsp_remove_padding() argument 3737 for (i = 0; i < nwords; i++) { in wm_adsp_remove_padding() 4241 int mem_type, nwords, max_read; in wm_adsp_buffer_capture_block() local 4257 nwords = buf->regions[i].cumulative_size - buf->read_index; in wm_adsp_buffer_capture_block() 4259 if (nwords > target) in wm_adsp_buffer_capture_block() 4260 nwords = target; in wm_adsp_buffer_capture_block() 4261 if (nwords > buf->avail) in wm_adsp_buffer_capture_block() 4262 nwords = buf->avail; in wm_adsp_buffer_capture_block() 4263 if (nwords > max_read) in wm_adsp_buffer_capture_block() 4264 nwords = max_read; in wm_adsp_buffer_capture_block() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/ti-vpe/ |
| H A D | vpdma.h | 194 u32 nwords; member 209 h->nwords = sizeof(adb->regs) >> 2; \
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/intersil/orinoco/ |
| H A D | hermes.c | 487 unsigned nwords; in hermes_read_ltv() local 520 nwords = min((unsigned)rlength - 1, bufsize / 2); in hermes_read_ltv() 521 hermes_read_words(hw, dreg, buf, nwords); in hermes_read_ltv()
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/ |
| H A D | bbt.c | 242 unsigned int nwords = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_bbt_init() local 245 nand->bbt.cache = kcalloc(nwords, sizeof(*nand->bbt.cache), in nanddev_bbt_init()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/ux500/hash/ |
| H A D | hash_core.c | 430 int nwords = 1; in hash_hw_write_key() local 437 HASH_SET_DIN(key_word, nwords); in hash_hw_write_key() 450 HASH_SET_DIN(&word, nwords); in hash_hw_write_key() 617 int nwords = 1; in hash_messagepad() local 627 HASH_SET_DIN(message, nwords); in hash_messagepad() 633 HASH_SET_DIN(message, nwords); in hash_messagepad()
|
| /OK3568_Linux_fs/kernel/drivers/rkflash/ |
| H A D | sfc_nand_mtd_bbt.c | 271 unsigned int nwords = DIV_ROUND_UP(nblocks * bits_per_block, in snanddev_bbt_init() local 274 nand->bbt.cache = kcalloc(nwords, sizeof(*nand->bbt.cache), in snanddev_bbt_init()
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/s3c-camif/ |
| H A D | camif-regs.c | 231 unsigned int nwords = width * ybpp / 4; in camif_get_dma_burst() local 238 if (nwords < div) in camif_get_dma_burst() 241 rem = nwords & (div - 1); in camif_get_dma_burst()
|
| /OK3568_Linux_fs/u-boot/lib/rsa/ |
| H A D | rsa-sign.c | 798 int nwords = num_bits / 32; in fdt_add_bignum() local 822 size = nwords * sizeof(uint32_t); in fdt_add_bignum() 830 for (ptr = buf + nwords - 1; ptr >= buf; ptr--) { in fdt_add_bignum()
|
| /OK3568_Linux_fs/kernel/include/linux/sunrpc/ |
| H A D | xdr.h | 220 unsigned int nwords; /* Remaining decode buffer length */ member 267 return xdr->nwords << 2; in xdr_stream_remaining()
|
| /OK3568_Linux_fs/kernel/drivers/mmc/host/ |
| H A D | omap.c | 666 int n, nwords; in mmc_omap_xfer_data() local 678 nwords = DIV_ROUND_UP(n, 2); in mmc_omap_xfer_data() 686 host->buffer, nwords); in mmc_omap_xfer_data() 689 host->buffer, nwords); in mmc_omap_xfer_data() 692 host->buffer += nwords; in mmc_omap_xfer_data()
|
| /OK3568_Linux_fs/kernel/drivers/scsi/snic/ |
| H A D | vnic_dev.c | 638 unsigned int nwords = sizeof(struct vnic_devcmd_notify) / 4; in vnic_dev_notify_ready() local 650 for (i = 1; i < nwords; i++) in vnic_dev_notify_ready()
|