Home
last modified time | relevance | path

Searched refs:nwords (Results 1 - 25 of 68) sorted by relevance

123

/kernel/linux/linux-5.10/net/ethtool/
H 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 in ethnl_put_bitset() local
[all...]
/kernel/linux/linux-6.6/net/ethtool/
H 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 in ethnl_put_bitset() local
[all...]
/kernel/linux/linux-5.10/net/sunrpc/
H A Dxdr.c635 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()
1199 unsigned int nwords = XDR_QUADLEN(len); xdr_align_pages() local
1238 unsigned int nwords; xdr_read_pages() local
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/
H A Dqib_ruc.c179 * @nwords: the number of 32 bit words of data being sent
184 const struct ib_global_route *grh, u32 hwords, u32 nwords) in qib_make_grh()
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()
183 qib_make_grh(struct qib_ibport *ibp, struct ib_grh *hdr, const struct ib_global_route *grh, u32 hwords, u32 nwords) qib_make_grh() argument
H A Dqib_ud.c238 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()
/kernel/linux/linux-6.6/drivers/infiniband/hw/qib/
H A Dqib_ruc.c179 * @nwords: the number of 32 bit words of data being sent
184 const struct ib_global_route *grh, u32 hwords, u32 nwords) in qib_make_grh()
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()
183 qib_make_grh(struct qib_ibport *ibp, struct ib_grh *hdr, const struct ib_global_route *grh, u32 hwords, u32 nwords) qib_make_grh() argument
H 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()
/kernel/linux/linux-5.10/lib/reed_solomon/
H 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()
/kernel/linux/linux-6.6/lib/reed_solomon/
H 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()
/kernel/linux/linux-5.10/fs/jfs/
H A Djfs_dmap.c453 int word, nbits, nwords; in dbUpdatePMap() local
541 nwords = rbits >> L2DBWORD; in dbUpdatePMap()
542 nbits = nwords << L2DBWORD; in dbUpdatePMap()
549 nwords * 4); in dbUpdatePMap()
552 nwords * 4); in dbUpdatePMap()
554 word += nwords; in dbUpdatePMap()
1153 int dbitno, word, rembits, nb, nwords, wbitno, nw; in dbAllocNext() local
1220 nwords = rembits >> L2DBWORD; in dbAllocNext()
1221 nb = nwords << L2DBWORD; in dbAllocNext()
1226 while (nwords > in dbAllocNext()
2208 int dbitno, word, rembits, nb, nwords, wbitno, nw, agno; dbAllocBits() local
2355 int dbitno, word, rembits, nb, nwords, wbitno, nw, agno; dbFreeBits() local
3306 int dbitno, word, rembits, nb, nwords, wbitno, agno; dbAllocDmapBU() local
[all...]
/kernel/linux/linux-6.6/fs/jfs/
H A Djfs_dmap.c453 int word, nbits, nwords; in dbUpdatePMap() local
541 nwords = rbits >> L2DBWORD; in dbUpdatePMap()
542 nbits = nwords << L2DBWORD; in dbUpdatePMap()
549 nwords * 4); in dbUpdatePMap()
552 nwords * 4); in dbUpdatePMap()
554 word += nwords; in dbUpdatePMap()
1085 int dbitno, word, rembits, nb, nwords, wbitno, nw; in dbAllocNext() local
1152 nwords = rembits >> L2DBWORD; in dbAllocNext()
1153 nb = nwords << L2DBWORD; in dbAllocNext()
1158 while (nwords > in dbAllocNext()
2140 int dbitno, word, rembits, nb, nwords, wbitno, nw, agno; dbAllocBits() local
2287 int dbitno, word, rembits, nb, nwords, wbitno, nw, agno; dbFreeBits() local
3242 int dbitno, word, rembits, nb, nwords, wbitno, agno; dbAllocDmapBU() local
[all...]
/kernel/linux/linux-6.6/sound/soc/codecs/
H A Dwm_adsp.c1929 int mem_type, nwords, max_read; in wm_adsp_buffer_capture_block() local
1945 nwords = buf->regions[i].cumulative_size - buf->read_index; in wm_adsp_buffer_capture_block()
1947 if (nwords > target) in wm_adsp_buffer_capture_block()
1948 nwords = target; in wm_adsp_buffer_capture_block()
1949 if (nwords > buf->avail) in wm_adsp_buffer_capture_block()
1950 nwords = buf->avail; in wm_adsp_buffer_capture_block()
1951 if (nwords > max_read) in wm_adsp_buffer_capture_block()
1952 nwords = max_read; in wm_adsp_buffer_capture_block()
1953 if (!nwords) in wm_adsp_buffer_capture_block()
1958 nwords, (__be3 in wm_adsp_buffer_capture_block()
1985 int nwords, nbytes; wm_adsp_compr_read() local
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
H A Druc.c164 * @nwords: the number of 32 bit words of data being sent
169 const struct ib_global_route *grh, u32 hwords, u32 nwords) in hfi1_make_grh()
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()
168 hfi1_make_grh(struct hfi1_ibport *ibp, struct ib_grh *hdr, const struct ib_global_route *grh, u32 hwords, u32 nwords) hfi1_make_grh() argument
H A Dud.c306 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 in return_cnp_16B()
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/
H A Druc.c122 * @nwords: the number of 32 bit words of data being sent
127 const struct ib_global_route *grh, u32 hwords, u32 nwords) in hfi1_make_grh()
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()
126 hfi1_make_grh(struct hfi1_ibport *ibp, struct ib_grh *hdr, const struct ib_global_route *grh, u32 hwords, u32 nwords) hfi1_make_grh() argument
H A Dud.c264 u32 nwords, extra_bytes; in hfi1_make_ud_req_9B() local
280 nwords = ((wqe->length + extra_bytes) >> 2) + SIZE_OF_CRC; in hfi1_make_ud_req_9B()
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
369 nwords = ((wqe->length + extra_bytes + SIZE_OF_LT) >> 2) + SIZE_OF_CRC; in hfi1_make_ud_req_16B()
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 in return_cnp_16B()
[all...]
/kernel/linux/linux-5.10/drivers/mtd/nand/
H A Dbbt.c27 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()
/kernel/linux/linux-6.6/net/sunrpc/
H A Dxdr.c921 return (unsigned int)(XDR_QUADLEN(xdr->buf->len) - xdr->nwords) << 2; in xdr_stream_pos()
929 xdr->nwords = blen > pos ? XDR_QUADLEN(blen) - XDR_QUADLEN(pos) : 0; in xdr_stream_set_pos()
1246 xdr->nwords -= XDR_QUADLEN(nbytes); in xdr_truncate_decode()
1433 xdr->nwords = XDR_QUADLEN(buf->len); in xdr_init_decode()
1438 xdr->nwords -= p - xdr->p; in xdr_init_decode()
1476 unsigned int nwords = XDR_QUADLEN(nbytes); in __xdr_inline_decode() local
1478 __be32 *q = p + nwords; in __xdr_inline_decode()
1480 if (unlikely(nwords > xdr->nwords || q > xdr->end || q < p)) in __xdr_inline_decode()
1483 xdr->nwords in __xdr_inline_decode()
1559 unsigned int nwords = XDR_QUADLEN(len); xdr_align_pages() local
1594 unsigned int nwords = XDR_QUADLEN(len); xdr_read_pages() local
[all...]
/kernel/linux/linux-6.6/lib/
H A Dbch.c156 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1; in load_ecc8() local
158 for (i = 0; i < nwords; i++, src += 4) in load_ecc8()
164 memcpy(pad, src, BCH_ECC_BYTES(bch)-4*nwords); in load_ecc8()
165 dst[nwords] = ((u32)swap_bits(bch, pad[0]) << 24) | in load_ecc8()
178 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1; in store_ecc8() local
180 for (i = 0; i < nwords; i++) { in store_ecc8()
186 pad[0] = swap_bits(bch, src[nwords] >> 24); in store_ecc8()
187 pad[1] = swap_bits(bch, src[nwords] >> 16); in store_ecc8()
188 pad[2] = swap_bits(bch, src[nwords] >> 8); in store_ecc8()
189 pad[3] = swap_bits(bch, src[nwords]); in store_ecc8()
[all...]
H A Ddynamic_debug.c281 int nwords = 0; in ddebug_tokenize() local
309 if (nwords == maxwords) { in ddebug_tokenize()
315 words[nwords++] = buf; in ddebug_tokenize()
322 for (i = 0; i < nwords; i++) in ddebug_tokenize()
327 return nwords; in ddebug_tokenize()
412 static int ddebug_parse_query(char *words[], int nwords, in ddebug_parse_query() argument
420 if (nwords % 2 != 0) { in ddebug_parse_query()
425 for (i = 0; i < nwords; i += 2) { in ddebug_parse_query()
538 int nwords, nfound; in ddebug_exec_query() local
541 nwords in ddebug_exec_query()
[all...]
/kernel/linux/linux-5.10/lib/
H A Ddynamic_debug.c239 int nwords = 0; in ddebug_tokenize() local
264 pr_err("parse err after word:%d=%s\n", nwords, in ddebug_tokenize()
265 nwords ? words[nwords - 1] : "<none>"); in ddebug_tokenize()
271 if (nwords == maxwords) { in ddebug_tokenize()
277 words[nwords++] = buf; in ddebug_tokenize()
284 for (i = 0; i < nwords; i++) in ddebug_tokenize()
289 return nwords; in ddebug_tokenize()
374 static int ddebug_parse_query(char *words[], int nwords, in ddebug_parse_query() argument
382 if (nwords in ddebug_parse_query()
498 int nwords, nfound; ddebug_exec_query() local
[all...]
H 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...]
/kernel/linux/linux-5.10/drivers/media/platform/ti-vpe/
H A Dvpdma.h194 u32 nwords; member
209 h->nwords = sizeof(adb->regs) >> 2; \
/kernel/linux/linux-6.6/drivers/media/platform/ti/vpe/
H A Dvpdma.h194 u32 nwords; member
209 h->nwords = sizeof(adb->regs) >> 2; \
/kernel/linux/linux-5.10/sound/soc/codecs/
H A Dwm_adsp.c3730 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()
4245 int mem_type, nwords, max_read; in wm_adsp_buffer_capture_block() local
4261 nwords = buf->regions[i].cumulative_size - buf->read_index; in wm_adsp_buffer_capture_block()
4263 if (nwords > target) in wm_adsp_buffer_capture_block()
4264 nwords = target; in wm_adsp_buffer_capture_block()
4265 if (nwords > buf->avail) in wm_adsp_buffer_capture_block()
4266 nwords = buf->avail; in wm_adsp_buffer_capture_block()
4267 if (nwords > max_read) in wm_adsp_buffer_capture_block()
4268 nwords in wm_adsp_buffer_capture_block()
4301 int nwords, nbytes; wm_adsp_compr_read() local
[all...]

Completed in 34 milliseconds

123