/Linux-v5.4/net/sunrpc/ |
D | xdr.c | 505 return (unsigned int)(XDR_QUADLEN(xdr->buf->len) - xdr->nwords) << 2; in xdr_stream_pos() 837 xdr_set_iov(xdr, xdr->buf->tail, xdr->nwords << 2); in xdr_set_next_page() 846 xdr_set_iov(xdr, xdr->buf->tail, xdr->nwords << 2); in xdr_set_next_buffer() 864 xdr->nwords = XDR_QUADLEN(buf->len); in xdr_init_decode() 872 xdr->nwords -= p - xdr->p; in xdr_init_decode() 900 unsigned int nwords = XDR_QUADLEN(nbytes); in __xdr_inline_decode() local 902 __be32 *q = p + nwords; in __xdr_inline_decode() 904 if (unlikely(nwords > xdr->nwords || q > xdr->end || q < p)) in __xdr_inline_decode() 907 xdr->nwords -= nwords; in __xdr_inline_decode() 987 unsigned int nwords = XDR_QUADLEN(len); in xdr_align_pages() local [all …]
|
/Linux-v5.4/lib/ |
D | dynamic_debug.c | 224 int nwords = 0; in ddebug_tokenize() local 252 if (nwords == maxwords) { in ddebug_tokenize() 258 words[nwords++] = buf; in ddebug_tokenize() 265 for (i = 0; i < nwords; i++) in ddebug_tokenize() 270 return nwords; in ddebug_tokenize() 320 static int ddebug_parse_query(char *words[], int nwords, in ddebug_parse_query() argument 327 if (nwords % 2 != 0) { in ddebug_parse_query() 337 for (i = 0; i < nwords; i += 2) { in ddebug_parse_query() 451 int nwords, nfound; in ddebug_exec_query() local 454 nwords = ddebug_tokenize(query_string, words, MAXWORDS); in ddebug_exec_query() [all …]
|
D | bch.c | 145 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1; in load_ecc8() local 147 for (i = 0; i < nwords; i++, src += 4) in load_ecc8() 150 memcpy(pad, src, BCH_ECC_BYTES(bch)-4*nwords); in load_ecc8() 151 dst[nwords] = (pad[0] << 24)|(pad[1] << 16)|(pad[2] << 8)|pad[3]; in load_ecc8() 161 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1; in store_ecc8() local 163 for (i = 0; i < nwords; i++) { in store_ecc8() 169 pad[0] = (src[nwords] >> 24); in store_ecc8() 170 pad[1] = (src[nwords] >> 16) & 0xff; in store_ecc8() 171 pad[2] = (src[nwords] >> 8) & 0xff; in store_ecc8() 172 pad[3] = (src[nwords] >> 0) & 0xff; in store_ecc8() [all …]
|
/Linux-v5.4/drivers/infiniband/hw/qib/ |
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()
|
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()
|
D | qib_verbs.h | 325 const struct ib_global_route *grh, u32 hwords, u32 nwords);
|
/Linux-v5.4/lib/reed_solomon/ |
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()
|
/Linux-v5.4/fs/jfs/ |
D | jfs_dmap.c | 415 int word, nbits, nwords; in dbUpdatePMap() local 503 nwords = rbits >> L2DBWORD; in dbUpdatePMap() 504 nbits = nwords << L2DBWORD; in dbUpdatePMap() 511 nwords * 4); in dbUpdatePMap() 514 nwords * 4); in dbUpdatePMap() 516 word += nwords; in dbUpdatePMap() 1115 int dbitno, word, rembits, nb, nwords, wbitno, nw; in dbAllocNext() local 1182 nwords = rembits >> L2DBWORD; in dbAllocNext() 1183 nb = nwords << L2DBWORD; in dbAllocNext() 1188 while (nwords > 0) { in dbAllocNext() [all …]
|
/Linux-v5.4/drivers/infiniband/hw/hfi1/ |
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()
|
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 …]
|
D | rc.c | 1265 u32 *nwords) in hfi1_make_rc_ack_9B() argument 1318 u32 *nwords) in hfi1_make_rc_ack_16B() argument 1336 *nwords = SIZE_OF_CRC + ((extra_bytes + SIZE_OF_LT) >> 2); in hfi1_make_rc_ack_16B() 1342 *hwords - 4, *nwords); in hfi1_make_rc_ack_16B() 1352 len = (*hwords + *nwords) >> 1; in hfi1_make_rc_ack_16B() 1371 u32 *nwords); 1397 u32 nwords = 0; in hfi1_send_rc_ack() local 1423 &pbc_flags, &hwords, &nwords); in hfi1_send_rc_ack() 1425 plen = 2 /* PBC */ + hwords + nwords; in hfi1_send_rc_ack()
|
D | verbs.h | 443 const struct ib_global_route *grh, u32 hwords, u32 nwords);
|
/Linux-v5.4/drivers/mtd/nand/ |
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()
|
/Linux-v5.4/drivers/media/platform/ti-vpe/ |
D | vpdma.h | 192 u32 nwords; member 207 h->nwords = sizeof(adb->regs) >> 2; \
|
/Linux-v5.4/sound/soc/codecs/ |
D | wm_adsp.c | 3614 static void wm_adsp_remove_padding(u32 *buf, int nwords, int data_word_size) in wm_adsp_remove_padding() argument 3621 for (i = 0; i < nwords; i++) { in wm_adsp_remove_padding() 4123 int mem_type, nwords, max_read; in wm_adsp_buffer_capture_block() local 4139 nwords = buf->regions[i].cumulative_size - buf->read_index; in wm_adsp_buffer_capture_block() 4141 if (nwords > target) in wm_adsp_buffer_capture_block() 4142 nwords = target; in wm_adsp_buffer_capture_block() 4143 if (nwords > buf->avail) in wm_adsp_buffer_capture_block() 4144 nwords = buf->avail; in wm_adsp_buffer_capture_block() 4145 if (nwords > max_read) in wm_adsp_buffer_capture_block() 4146 nwords = max_read; in wm_adsp_buffer_capture_block() [all …]
|
/Linux-v5.4/drivers/net/wireless/intersil/orinoco/ |
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()
|
/Linux-v5.4/drivers/media/platform/s3c-camif/ |
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()
|
/Linux-v5.4/drivers/crypto/ux500/hash/ |
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()
|
/Linux-v5.4/include/linux/sunrpc/ |
D | xdr.h | 237 unsigned int nwords; /* Remaining decode buffer length */ member 279 return xdr->nwords << 2; in xdr_stream_remaining()
|
/Linux-v5.4/drivers/mmc/host/ |
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()
|
/Linux-v5.4/drivers/scsi/snic/ |
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()
|
/Linux-v5.4/drivers/net/can/ |
D | kvaser_pciefd.c | 768 int nwords; in kvaser_pciefd_start_xmit() local 774 nwords = kvaser_pciefd_prepare_tx_packet(&packet, can, skb); in kvaser_pciefd_start_xmit() 790 if (nwords) { in kvaser_pciefd_start_xmit() 791 u32 data_last = ((u32 *)packet.data)[nwords - 1]; in kvaser_pciefd_start_xmit() 796 nwords - 1); in kvaser_pciefd_start_xmit()
|
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb4/ |
D | t4_hw.c | 3044 unsigned int nwords, u32 *data, int byte_oriented) in t4_read_flash() argument 3048 if (addr + nwords * sizeof(u32) > adapter->params.sf_size || (addr & 3)) in t4_read_flash() 3057 for ( ; nwords; nwords--, data++) { in t4_read_flash() 3058 ret = sf1_read(adapter, 4, nwords > 1, nwords == 1, data); in t4_read_flash() 3059 if (nwords == 1) in t4_read_flash() 9755 const unsigned int nwords = CIM_IBQ_SIZE * 4; in t4_read_cim_ibq() local 9760 addr = qid * nwords; in t4_read_cim_ibq() 9761 if (n > nwords) in t4_read_cim_ibq() 9762 n = nwords; in t4_read_cim_ibq() 9796 unsigned int addr, v, nwords; in t4_read_cim_obq() local [all …]
|
/Linux-v5.4/drivers/scsi/fnic/ |
D | vnic_dev.c | 798 unsigned int nwords = sizeof(struct vnic_devcmd_notify) / 4; in vnic_dev_notify_ready() local 810 for (i = 1; i < nwords; i++) in vnic_dev_notify_ready()
|
/Linux-v5.4/drivers/scsi/csiostor/ |
D | csio_hw.c | 486 csio_hw_read_flash(struct csio_hw *hw, uint32_t addr, uint32_t nwords, in csio_hw_read_flash() argument 491 if (addr + nwords * sizeof(uint32_t) > hw->params.sf_size || (addr & 3)) in csio_hw_read_flash() 504 for ( ; nwords; nwords--, data++) { in csio_hw_read_flash() 505 ret = csio_hw_sf1_read(hw, 4, nwords > 1, nwords == 1, data); in csio_hw_read_flash() 506 if (nwords == 1) in csio_hw_read_flash()
|