Home
last modified time | relevance | path

Searched refs:nwords (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v4.19/net/sunrpc/
Dxdr.c443 return (unsigned int)(XDR_QUADLEN(xdr->buf->len) - xdr->nwords) << 2; in xdr_stream_pos()
770 xdr_set_iov(xdr, xdr->buf->tail, xdr->nwords << 2); in xdr_set_next_page()
779 xdr_set_iov(xdr, xdr->buf->tail, xdr->nwords << 2); in xdr_set_next_buffer()
795 xdr->nwords = XDR_QUADLEN(buf->len); in xdr_init_decode()
803 xdr->nwords -= p - xdr->p; in xdr_init_decode()
830 unsigned int nwords = XDR_QUADLEN(nbytes); in __xdr_inline_decode() local
832 __be32 *q = p + nwords; in __xdr_inline_decode()
834 if (unlikely(nwords > xdr->nwords || q > xdr->end || q < p)) in __xdr_inline_decode()
837 xdr->nwords -= nwords; in __xdr_inline_decode()
911 unsigned int nwords = XDR_QUADLEN(len); in xdr_align_pages() local
[all …]
/Linux-v4.19/lib/
Ddynamic_debug.c222 int nwords = 0; in ddebug_tokenize() local
250 if (nwords == maxwords) { in ddebug_tokenize()
256 words[nwords++] = buf; in ddebug_tokenize()
263 for (i = 0; i < nwords; i++) in ddebug_tokenize()
268 return nwords; in ddebug_tokenize()
318 static int ddebug_parse_query(char *words[], int nwords, in ddebug_parse_query() argument
325 if (nwords % 2 != 0) { in ddebug_parse_query()
335 for (i = 0; i < nwords; i += 2) { in ddebug_parse_query()
449 int nwords, nfound; in ddebug_exec_query() local
452 nwords = ddebug_tokenize(query_string, words, MAXWORDS); in ddebug_exec_query()
[all …]
Dbch.c145 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-v4.19/fs/jfs/
Djfs_dmap.c428 int word, nbits, nwords; in dbUpdatePMap() local
516 nwords = rbits >> L2DBWORD; in dbUpdatePMap()
517 nbits = nwords << L2DBWORD; in dbUpdatePMap()
524 nwords * 4); in dbUpdatePMap()
527 nwords * 4); in dbUpdatePMap()
529 word += nwords; in dbUpdatePMap()
1128 int dbitno, word, rembits, nb, nwords, wbitno, nw; in dbAllocNext() local
1195 nwords = rembits >> L2DBWORD; in dbAllocNext()
1196 nb = nwords << L2DBWORD; in dbAllocNext()
1201 while (nwords > 0) { in dbAllocNext()
[all …]
/Linux-v4.19/drivers/infiniband/hw/hfi1/
Dud.c325 u32 nwords, extra_bytes; in hfi1_make_ud_req_9B() local
341 nwords = ((wqe->length + extra_bytes) >> 2) + SIZE_OF_CRC; in hfi1_make_ud_req_9B()
352 nwords); in hfi1_make_ud_req_9B()
385 len = ps->s_txreq->hdr_dwords + nwords; in hfi1_make_ud_req_9B()
401 u32 dlid, slid, nwords, extra_bytes; in hfi1_make_ud_req_16B() local
430 nwords = ((wqe->length + extra_bytes + SIZE_OF_LT) >> 2) + SIZE_OF_CRC; in hfi1_make_ud_req_16B()
449 nwords); in hfi1_make_ud_req_16B()
479 len = (ps->s_txreq->hdr_dwords + nwords) >> 1; in hfi1_make_ud_req_16B()
664 u32 nwords; in return_cnp_16B() local
667 nwords = ((hfi1_get_16b_padding(hwords << 2, 0) + in return_cnp_16B()
[all …]
Druc.c496 const struct ib_global_route *grh, u32 hwords, u32 nwords) in hfi1_make_grh() argument
502 hdr->paylen = cpu_to_be16((hwords + nwords) << 2); in hfi1_make_grh()
615 u32 nwords = SIZE_OF_CRC + ((ps->s_txreq->s_cur_size + in hfi1_make_ruc_header_16B() local
635 nwords); in hfi1_make_ruc_header_16B()
670 (ps->s_txreq->hdr_dwords + nwords) >> 1, in hfi1_make_ruc_header_16B()
699 u32 nwords = SIZE_OF_CRC + ((ps->s_txreq->s_cur_size + in hfi1_make_ruc_header_9B() local
710 nwords); in hfi1_make_ruc_header_9B()
737 ps->s_txreq->hdr_dwords + nwords, in hfi1_make_ruc_header_9B()
Drc.c758 u32 *nwords) in hfi1_make_rc_ack_9B() argument
806 u32 *nwords) in hfi1_make_rc_ack_16B() argument
824 *nwords = SIZE_OF_CRC + ((extra_bytes + SIZE_OF_LT) >> 2); in hfi1_make_rc_ack_16B()
830 *hwords - 4, *nwords); in hfi1_make_rc_ack_16B()
840 len = (*hwords + *nwords) >> 1; in hfi1_make_rc_ack_16B()
859 u32 *nwords);
885 u32 nwords = 0; in hfi1_send_rc_ack() local
911 &pbc_flags, &hwords, &nwords); in hfi1_send_rc_ack()
913 plen = 2 /* PBC */ + hwords + nwords; in hfi1_send_rc_ack()
Dverbs.h354 const struct ib_global_route *grh, u32 hwords, u32 nwords);
/Linux-v4.19/drivers/mtd/nand/
Dbbt.c27 unsigned int nwords = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_bbt_init() local
30 nand->bbt.cache = kzalloc(nwords, GFP_KERNEL); in nanddev_bbt_init()
/Linux-v4.19/drivers/infiniband/hw/qib/
Dqib_ruc.c485 const struct ib_global_route *grh, u32 hwords, u32 nwords) in qib_make_grh() argument
491 hdr->paylen = cpu_to_be16((hwords - 2 + nwords + SIZE_OF_CRC) << 2); in qib_make_grh()
513 u32 nwords; in qib_make_ruc_header() local
518 nwords = (qp->s_cur_size + extra_bytes) >> 2; in qib_make_ruc_header()
524 qp->s_hdrwords, nwords); in qib_make_ruc_header()
533 cpu_to_be16(qp->s_hdrwords + nwords + SIZE_OF_CRC); in qib_make_ruc_header()
Dqib_ud.c243 u32 nwords; in qib_make_ud_req() local
314 nwords = (wqe->length + extra_bytes) >> 2; in qib_make_ud_req()
331 qp->s_hdrwords, nwords); in qib_make_ud_req()
358 cpu_to_be16(qp->s_hdrwords + nwords + SIZE_OF_CRC); in qib_make_ud_req()
Dqib_verbs.h327 const struct ib_global_route *grh, u32 hwords, u32 nwords);
/Linux-v4.19/sound/soc/codecs/
Dwm_adsp.c3663 int mem_type, nwords, max_read; in wm_adsp_buffer_capture_block() local
3679 nwords = buf->regions[i].cumulative_size - buf->read_index; in wm_adsp_buffer_capture_block()
3681 if (nwords > target) in wm_adsp_buffer_capture_block()
3682 nwords = target; in wm_adsp_buffer_capture_block()
3683 if (nwords > buf->avail) in wm_adsp_buffer_capture_block()
3684 nwords = buf->avail; in wm_adsp_buffer_capture_block()
3685 if (nwords > max_read) in wm_adsp_buffer_capture_block()
3686 nwords = max_read; in wm_adsp_buffer_capture_block()
3687 if (!nwords) in wm_adsp_buffer_capture_block()
3692 nwords, compr->raw_buf); in wm_adsp_buffer_capture_block()
[all …]
/Linux-v4.19/drivers/media/platform/ti-vpe/
Dvpdma.h195 u32 nwords; member
210 h->nwords = sizeof(adb->regs) >> 2; \
/Linux-v4.19/drivers/net/wireless/intersil/orinoco/
Dhermes.c487 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-v4.19/include/linux/sunrpc/
Dxdr.h215 unsigned int nwords; /* Remaining decode buffer length */ member
253 return xdr->nwords << 2; in xdr_stream_remaining()
/Linux-v4.19/drivers/media/platform/s3c-camif/
Dcamif-regs.c234 unsigned int nwords = width * ybpp / 4; in camif_get_dma_burst() local
241 if (nwords < div) in camif_get_dma_burst()
244 rem = nwords & (div - 1); in camif_get_dma_burst()
/Linux-v4.19/drivers/crypto/ux500/hash/
Dhash_core.c430 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-v4.19/drivers/mmc/host/
Domap.c668 int n, nwords; in mmc_omap_xfer_data() local
680 nwords = DIV_ROUND_UP(n, 2); in mmc_omap_xfer_data()
688 host->buffer, nwords); in mmc_omap_xfer_data()
691 host->buffer, nwords); in mmc_omap_xfer_data()
694 host->buffer += nwords; in mmc_omap_xfer_data()
/Linux-v4.19/drivers/scsi/snic/
Dvnic_dev.c639 unsigned int nwords = sizeof(struct vnic_devcmd_notify) / 4; in vnic_dev_notify_ready() local
651 for (i = 1; i < nwords; i++) in vnic_dev_notify_ready()
/Linux-v4.19/drivers/scsi/fnic/
Dvnic_dev.c555 unsigned int nwords = sizeof(struct vnic_devcmd_notify) / 4; in vnic_dev_notify_ready() local
567 for (i = 1; i < nwords; i++) in vnic_dev_notify_ready()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dt4_hw.c3044 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()
9513 const unsigned int nwords = CIM_IBQ_SIZE * 4; in t4_read_cim_ibq() local
9518 addr = qid * nwords; in t4_read_cim_ibq()
9519 if (n > nwords) in t4_read_cim_ibq()
9520 n = nwords; in t4_read_cim_ibq()
9554 unsigned int addr, v, nwords; in t4_read_cim_obq() local
[all …]
/Linux-v4.19/drivers/scsi/csiostor/
Dcsio_hw.c486 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()
/Linux-v4.19/drivers/net/ethernet/cisco/enic/
Dvnic_dev.c897 unsigned int nwords = vdev->notify_sz / 4; in vnic_dev_notify_ready() local
908 for (i = 1; i < nwords; i++) in vnic_dev_notify_ready()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb3/
Dt3_hw.c880 unsigned int nwords, u32 *data, int byte_oriented) in t3_read_flash() argument
884 if (addr + nwords * sizeof(u32) > SF_SIZE || (addr & 3)) in t3_read_flash()
893 for (; nwords; nwords--, data++) { in t3_read_flash()
894 ret = sf1_read(adapter, 4, nwords > 1, data); in t3_read_flash()

12