Home
last modified time | relevance | path

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

12

/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/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()
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 …]
/openbmc/qemu/target/hexagon/
H A Dtranslate.c216 int nwords, max_words; in read_packet_words() local
219 for (nwords = 0; !found_end && nwords < PACKET_WORDS_MAX; nwords++) { in read_packet_words()
220 words[nwords] = in read_packet_words()
223 found_end = is_packet_end(words[nwords]); in read_packet_words()
232 if (nwords > max_words) { in read_packet_words()
239 for (int i = 0; i < nwords; i++) { in read_packet_words()
244 return nwords; in read_packet_words()
1026 int nwords; in decode_and_translate_packet() local
1031 if (!nwords) { in decode_and_translate_packet()
1083 int nwords; in pkt_crosses_page() local
[all …]
H A Dcpu_bits.h56 int disassemble_hexagon(uint32_t *words, int nwords, bfd_vma pc, GString *buf);
/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/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/fs/jfs/
H A Djfs_dmap.c453 int word, nbits, nwords; in dbUpdatePMap() local
549 nwords * 4); in dbUpdatePMap()
552 nwords * 4); in dbUpdatePMap()
554 word += nwords; in dbUpdatePMap()
1153 nb = nwords << L2DBWORD; in dbAllocNext()
1158 while (nwords > 0) { in dbAllocNext()
1174 nwords -= nw; in dbAllocNext()
2211 for (; nwords > 0; nwords -= nw) { in dbAllocBits()
2359 for (; nwords > 0; nwords -= nw) { in dbFreeBits()
2368 NLSTOL2BSZ(nwords)); in dbFreeBits()
[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()
424 if (nwords % 2 != 0) { in ddebug_parse_query()
429 for (i = 0; i < nwords; i += 2) { in ddebug_parse_query()
542 int nwords, nfound; in ddebug_exec_query() local
[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
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 …]
/openbmc/linux/sound/soc/codecs/
H A Dwm_adsp.c1948 if (nwords > target) in wm_adsp_buffer_capture_block()
1949 nwords = target; in wm_adsp_buffer_capture_block()
1951 nwords = buf->avail; 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()
1978 return nwords; in wm_adsp_buffer_capture_block()
1986 int nwords, nbytes; in wm_adsp_compr_read() local
1999 if (nwords < 0) { in wm_adsp_compr_read()
2001 nwords); in wm_adsp_compr_read()
2002 return nwords; in wm_adsp_compr_read()
[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/linux/net/sunrpc/
H A Dxdr.c1246 xdr->nwords -= XDR_QUADLEN(nbytes); in xdr_truncate_decode()
1438 xdr->nwords -= p - xdr->p; in xdr_init_decode()
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()
1562 if (xdr->nwords == 0) in xdr_align_pages()
1566 if (nwords > xdr->nwords) { in xdr_align_pages()
1567 nwords = xdr->nwords; in xdr_align_pages()
1568 len = nwords << 2; in xdr_align_pages()
1572 else if (nwords < xdr->nwords) { in xdr_align_pages()
[all …]
/openbmc/qemu/include/hw/nvram/
H A Deeprom93xx.h26 eeprom_t *eeprom93xx_new(DeviceState *dev, uint16_t nwords);
/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/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/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()
/openbmc/linux/drivers/scsi/snic/
H 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()

12