Home
last modified time | relevance | path

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

12

/openbmc/linux/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()
472 unsigned int nwords = DIV_ROUND_UP(nbits, 32); in ethnl_update_bitset32_verbose() local
473 unsigned int nbytes = nwords * sizeof(u32); in ethnl_update_bitset32_verbose()
479 saved_bitmap = kcalloc(nwords, sizeof(u32), GFP_KERNEL); in ethnl_update_bitset32_verbose()
750 unsigned int nwords = DIV_ROUND_UP(nbits, 32); in ethnl_bitset_size() local
[all …]
/openbmc/qemu/hw/nvram/
H A Deeprom93xx.c297 eeprom_t *eeprom93xx_new(DeviceState *dev, uint16_t nwords) in eeprom93xx_new() argument
303 switch (nwords) { in eeprom93xx_new()
314 nwords = 64; in eeprom93xx_new()
318 eeprom = g_malloc0(sizeof(*eeprom) + nwords * 2); in eeprom93xx_new()
319 eeprom->size = nwords; in eeprom93xx_new()
323 logout("eeprom = 0x%p, nwords = %u\n", eeprom, nwords); in eeprom93xx_new()
/openbmc/qemu/target/hexagon/
H A Dtranslate.c217 int nwords, max_words; in read_packet_words() local
220 for (nwords = 0; !found_end && nwords < PACKET_WORDS_MAX; nwords++) { in read_packet_words()
221 words[nwords] = in read_packet_words()
223 ctx->base.pc_next + nwords * sizeof(uint32_t)); in read_packet_words()
224 found_end = is_packet_end(words[nwords]); in read_packet_words()
233 if (nwords > max_words) { in read_packet_words()
241 for (int i = 0; i < nwords; i++) { in read_packet_words()
246 return nwords; in read_packet_words()
965 int nwords; in decode_and_translate_packet() local
969 nwords = read_packet_words(env, ctx, words); in decode_and_translate_packet()
[all …]
H A Dcpu_bits.h60 int disassemble_hexagon(uint32_t *words, int nwords, bfd_vma pc, GString *buf);
/openbmc/linux/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()
/openbmc/linux/drivers/infiniband/hw/qib/
H 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()
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()
/openbmc/linux/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 > 0) { in dbAllocNext()
[all …]
/openbmc/linux/lib/
H A Ddynamic_debug.c281 int nwords = 0; in ddebug_tokenize() local
306 pr_err("parse err after word:%d=%s\n", nwords, in ddebug_tokenize()
307 nwords ? words[nwords - 1] : "<none>"); in ddebug_tokenize()
313 if (nwords == maxwords) { in ddebug_tokenize()
319 words[nwords++] = buf; in ddebug_tokenize()
326 for (i = 0; i < nwords; i++) in ddebug_tokenize()
331 return nwords; in ddebug_tokenize()
416 static int ddebug_parse_query(char *words[], int nwords, in ddebug_parse_query() argument
424 if (nwords % 2 != 0) { in ddebug_parse_query()
429 for (i = 0; i < nwords; i += 2) { in ddebug_parse_query()
[all …]
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 …]
/openbmc/linux/drivers/infiniband/hw/hfi1/
H 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()
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 = ((hfi1_get_16b_padding(hwords << 2, 0) + in return_cnp_16B()
[all …]
/openbmc/linux/sound/soc/codecs/
H A Dwm_adsp.c1930 int mem_type, nwords, max_read; in wm_adsp_buffer_capture_block() local
1946 nwords = buf->regions[i].cumulative_size - buf->read_index; in wm_adsp_buffer_capture_block()
1948 if (nwords > target) in wm_adsp_buffer_capture_block()
1949 nwords = target; in wm_adsp_buffer_capture_block()
1950 if (nwords > buf->avail) in wm_adsp_buffer_capture_block()
1951 nwords = buf->avail; in wm_adsp_buffer_capture_block()
1952 if (nwords > max_read) in wm_adsp_buffer_capture_block()
1953 nwords = max_read; in wm_adsp_buffer_capture_block()
1954 if (!nwords) in wm_adsp_buffer_capture_block()
1959 nwords, (__be32 *)compr->raw_buf); in wm_adsp_buffer_capture_block()
[all …]
/openbmc/linux/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 -= nwords; in __xdr_inline_decode()
1559 unsigned int nwords = XDR_QUADLEN(len); in xdr_align_pages() local
[all …]
/openbmc/u-boot/drivers/mtd/nand/
H A Dbbt.c29 unsigned int nwords = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_bbt_init() local
32 nand->bbt.cache = kzalloc(nwords, GFP_KERNEL); in nanddev_bbt_init()
/openbmc/u-boot/lib/
H A Dbch.c186 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1; in load_ecc8() local
188 for (i = 0; i < nwords; i++, src += 4) in load_ecc8()
191 memcpy(pad, src, BCH_ECC_BYTES(bch)-4*nwords); in load_ecc8()
192 dst[nwords] = (pad[0] << 24)|(pad[1] << 16)|(pad[2] << 8)|pad[3]; in load_ecc8()
202 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1; in store_ecc8() local
204 for (i = 0; i < nwords; i++) { in store_ecc8()
210 pad[0] = (src[nwords] >> 24); in store_ecc8()
211 pad[1] = (src[nwords] >> 16) & 0xff; in store_ecc8()
212 pad[2] = (src[nwords] >> 8) & 0xff; in store_ecc8()
213 pad[3] = (src[nwords] >> 0) & 0xff; in store_ecc8()
[all …]
/openbmc/qemu/include/hw/nvram/
H A Deeprom93xx.h26 eeprom_t *eeprom93xx_new(DeviceState *dev, uint16_t nwords);
/openbmc/linux/drivers/media/platform/ti/vpe/
H A Dvpdma.h194 u32 nwords; member
209 h->nwords = sizeof(adb->regs) >> 2; \
/openbmc/linux/drivers/net/wireless/intersil/orinoco/
H 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()
/openbmc/u-boot/lib/rsa/
H A Drsa-sign.c657 int nwords = num_bits / 32; in fdt_add_bignum() local
690 size = nwords * sizeof(uint32_t); in fdt_add_bignum()
698 for (ptr = buf + nwords - 1; ptr >= buf; ptr--) { in fdt_add_bignum()
/openbmc/linux/drivers/media/platform/samsung/s3c-camif/
H 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()
/openbmc/linux/fs/
H A Dfile.c59 unsigned int nwords = fdt_words(nfdt); in copy_fd_bitmaps() local
62 copy_words * BITS_PER_LONG, nwords * BITS_PER_LONG); in copy_fd_bitmaps()
64 copy_words * BITS_PER_LONG, nwords * BITS_PER_LONG); in copy_fd_bitmaps()
66 copy_words, nwords); in copy_fd_bitmaps()
/openbmc/linux/include/linux/firmware/cirrus/
H A Dcs_dsp.h251 void cs_dsp_remove_padding(u32 *buf, int nwords);
/openbmc/linux/drivers/mmc/host/
H A Domap.c679 int n, nwords; in mmc_omap_xfer_data() local
691 nwords = DIV_ROUND_UP(n, 2); in mmc_omap_xfer_data()
699 host->buffer, nwords); in mmc_omap_xfer_data()
702 host->buffer, nwords); in mmc_omap_xfer_data()
705 host->buffer += nwords; in mmc_omap_xfer_data()
/openbmc/linux/include/linux/sunrpc/
H A Dxdr.h230 unsigned int nwords; /* Remaining decode buffer length */ member
341 return xdr->nwords << 2; in xdr_stream_remaining()

12