Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/net/ethtool/
A Dbitset.c183 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 …]
/linux-6.3-rc2/drivers/infiniband/hw/qib/
A Dqib_ruc.c184 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()
A Dqib_ud.c239 u32 nwords; in qib_make_ud_req() local
310 nwords = (wqe->length + extra_bytes) >> 2; in qib_make_ud_req()
327 qp->s_hdrwords, nwords); in qib_make_ud_req()
354 cpu_to_be16(qp->s_hdrwords + nwords + SIZE_OF_CRC); in qib_make_ud_req()
A Dqib_verbs.h323 const struct ib_global_route *grh, u32 hwords, u32 nwords);
/linux-6.3-rc2/lib/reed_solomon/
A Dtest_rslib.c66 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-6.3-rc2/fs/jfs/
A Djfs_dmap.c439 int word, nbits, nwords; in dbUpdatePMap() local
535 nwords * 4); in dbUpdatePMap()
538 nwords * 4); in dbUpdatePMap()
540 word += nwords; in dbUpdatePMap()
1139 nb = nwords << L2DBWORD; in dbAllocNext()
1144 while (nwords > 0) { in dbAllocNext()
1160 nwords -= nw; in dbAllocNext()
2194 for (; nwords > 0; nwords -= nw) { in dbAllocBits()
2342 for (; nwords > 0; nwords -= nw) { in dbFreeBits()
2351 NLSTOL2BSZ(nwords)); in dbFreeBits()
[all …]
/linux-6.3-rc2/drivers/infiniband/hw/hfi1/
A Druc.c127 const struct ib_global_route *grh, u32 hwords, u32 nwords) in hfi1_make_grh() argument
133 hdr->paylen = cpu_to_be16((hwords + nwords) << 2); in hfi1_make_grh()
246 u32 nwords = SIZE_OF_CRC + ((ps->s_txreq->s_cur_size + in hfi1_make_ruc_header_16B() local
266 nwords); in hfi1_make_ruc_header_16B()
301 (ps->s_txreq->hdr_dwords + nwords) >> 1, in hfi1_make_ruc_header_16B()
331 u32 nwords = SIZE_OF_CRC + ((ps->s_txreq->s_cur_size + in hfi1_make_ruc_header_9B() local
342 nwords); in hfi1_make_ruc_header_9B()
369 ps->s_txreq->hdr_dwords + nwords, in hfi1_make_ruc_header_9B()
A Dud.c264 u32 nwords, extra_bytes; in hfi1_make_ud_req_9B() local
291 nwords); in hfi1_make_ud_req_9B()
324 len = ps->s_txreq->hdr_dwords + nwords; in hfi1_make_ud_req_9B()
340 u32 dlid, slid, nwords, extra_bytes; in hfi1_make_ud_req_16B() local
388 nwords); in hfi1_make_ud_req_16B()
418 len = (ps->s_txreq->hdr_dwords + nwords) >> 1; in hfi1_make_ud_req_16B()
604 u32 nwords; in return_cnp_16B() local
608 nwords = ((hfi1_get_16b_padding(hwords << 2, 0) + in return_cnp_16B()
615 (hwords - LRH_16B_DWORDS + nwords) << 2); in return_cnp_16B()
636 len = (hwords + nwords) >> 1; in return_cnp_16B()
[all …]
A Drc.c1223 u32 *nwords) in hfi1_make_rc_ack_9B() argument
1276 u32 *nwords) in hfi1_make_rc_ack_16B() argument
1294 *nwords = SIZE_OF_CRC + ((extra_bytes + SIZE_OF_LT) >> 2); in hfi1_make_rc_ack_16B()
1300 *hwords - 4, *nwords); in hfi1_make_rc_ack_16B()
1310 len = (*hwords + *nwords) >> 1; in hfi1_make_rc_ack_16B()
1329 u32 *nwords);
1354 u32 nwords = 0; in hfi1_send_rc_ack() local
1380 &pbc_flags, &hwords, &nwords); in hfi1_send_rc_ack()
1382 plen = 2 /* PBC */ + hwords + nwords; in hfi1_send_rc_ack()
A Dverbs.h397 const struct ib_global_route *grh, u32 hwords, u32 nwords);
/linux-6.3-rc2/sound/soc/codecs/
A Dwm_adsp.c1917 if (nwords > target) in wm_adsp_buffer_capture_block()
1918 nwords = target; in wm_adsp_buffer_capture_block()
1920 nwords = buf->avail; in wm_adsp_buffer_capture_block()
1922 nwords = max_read; in wm_adsp_buffer_capture_block()
1923 if (!nwords) in wm_adsp_buffer_capture_block()
1947 return nwords; in wm_adsp_buffer_capture_block()
1955 int nwords, nbytes; in wm_adsp_compr_read() local
1968 if (nwords < 0) { in wm_adsp_compr_read()
1970 nwords); in wm_adsp_compr_read()
1971 return nwords; in wm_adsp_compr_read()
[all …]
/linux-6.3-rc2/lib/
A Ddynamic_debug.c280 int nwords = 0; in ddebug_tokenize() local
308 if (nwords == maxwords) { in ddebug_tokenize()
314 words[nwords++] = buf; in ddebug_tokenize()
321 for (i = 0; i < nwords; i++) in ddebug_tokenize()
326 return nwords; in ddebug_tokenize()
411 static int ddebug_parse_query(char *words[], int nwords, in ddebug_parse_query() argument
419 if (nwords % 2 != 0) { in ddebug_parse_query()
424 for (i = 0; i < nwords; i += 2) { in ddebug_parse_query()
537 int nwords, nfound; in ddebug_exec_query() local
541 if (nwords <= 0) { in ddebug_exec_query()
[all …]
A Dbch.c190 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 …]
/linux-6.3-rc2/net/sunrpc/
A Dxdr.c1198 xdr->nwords -= XDR_QUADLEN(nbytes); in xdr_truncate_decode()
1375 xdr->nwords -= p - xdr->p; in xdr_init_decode()
1405 __be32 *q = p + nwords; in __xdr_inline_decode()
1407 if (unlikely(nwords > xdr->nwords || q > xdr->end || q < p)) in __xdr_inline_decode()
1410 xdr->nwords -= nwords; in __xdr_inline_decode()
1489 if (xdr->nwords == 0) in xdr_align_pages()
1493 if (nwords > xdr->nwords) { in xdr_align_pages()
1494 nwords = xdr->nwords; in xdr_align_pages()
1495 len = nwords << 2; in xdr_align_pages()
1499 else if (nwords < xdr->nwords) { in xdr_align_pages()
[all …]
/linux-6.3-rc2/drivers/media/platform/ti/vpe/
A Dvpdma.h194 u32 nwords; member
209 h->nwords = sizeof(adb->regs) >> 2; \
/linux-6.3-rc2/drivers/net/wireless/intersil/orinoco/
A 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-6.3-rc2/drivers/media/platform/samsung/s3c-camif/
A Dcamif-regs.c231 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-6.3-rc2/include/linux/firmware/cirrus/
A Dcs_dsp.h250 void cs_dsp_remove_padding(u32 *buf, int nwords);
/linux-6.3-rc2/drivers/mmc/host/
A Domap.c666 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-6.3-rc2/include/linux/sunrpc/
A Dxdr.h227 unsigned int nwords; /* Remaining decode buffer length */ member
338 return xdr->nwords << 2; in xdr_stream_remaining()
/linux-6.3-rc2/drivers/scsi/snic/
A Dvnic_dev.c624 unsigned int nwords = sizeof(struct vnic_devcmd_notify) / 4; in vnic_dev_notify_ready() local
636 for (i = 1; i < nwords; i++) in vnic_dev_notify_ready()
/linux-6.3-rc2/drivers/net/can/
A Dkvaser_pciefd.c772 int nwords; in kvaser_pciefd_start_xmit() local
778 nwords = kvaser_pciefd_prepare_tx_packet(&packet, can, skb); in kvaser_pciefd_start_xmit()
794 if (nwords) { in kvaser_pciefd_start_xmit()
795 u32 data_last = ((u32 *)packet.data)[nwords - 1]; in kvaser_pciefd_start_xmit()
800 nwords - 1); in kvaser_pciefd_start_xmit()
/linux-6.3-rc2/drivers/scsi/fnic/
A Dvnic_dev.c788 unsigned int nwords = sizeof(struct vnic_devcmd_notify) / 4; in vnic_dev_notify_ready() local
800 for (i = 1; i < nwords; i++) in vnic_dev_notify_ready()
/linux-6.3-rc2/drivers/net/ethernet/chelsio/cxgb4/
A Dt4_hw.c3022 for ( ; nwords; nwords--, data++) { in t4_read_flash()
3023 ret = sf1_read(adapter, 4, nwords > 1, nwords == 1, data); in t4_read_flash()
3024 if (nwords == 1) in t4_read_flash()
9781 const unsigned int nwords = CIM_IBQ_SIZE * 4; in t4_read_cim_ibq() local
9786 addr = qid * nwords; in t4_read_cim_ibq()
9787 if (n > nwords) in t4_read_cim_ibq()
9788 n = nwords; in t4_read_cim_ibq()
9822 unsigned int addr, v, nwords; in t4_read_cim_obq() local
9834 nwords = CIMQSIZE_G(v) * 64; /* same */ in t4_read_cim_obq()
9835 if (n > nwords) in t4_read_cim_obq()
[all …]
/linux-6.3-rc2/drivers/scsi/csiostor/
A 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()

Completed in 92 milliseconds

12