| /linux/tools/testing/selftests/bpf/libarena/src/ |
| H A D | bitmap.bpf.c | 136 size_t nwords = BITS_TO_LONG_LONGS(bits); in bmp_clear() local 139 for (i = zero; i < nwords && can_loop; i++) in bmp_clear() 153 size_t nwords = BITS_TO_LONG_LONGS(bits); in bmp_and() local 156 for (i = zero; i < nwords && can_loop; i++) in bmp_and() 159 if (nwords && bits % BITS_PER_LONG_LONG) in bmp_and() 160 dst->bits[nwords - 1] &= bmp_last_word_mask(bits); in bmp_and() 166 size_t nwords = BITS_TO_LONG_LONGS(bits); in bmp_or() local 169 for (i = zero; i < nwords && can_loop; i++) in bmp_or() 172 if (nwords && bits % BITS_PER_LONG_LONG) in bmp_or() 173 dst->bits[nwords - 1] &= bmp_last_word_mask(bits); in bmp_or() [all …]
|
| /linux/net/ethtool/ |
| H A D | bitset.c | 184 unsigned int nwords = DIV_ROUND_UP(nbits, 32); in ethnl_bitset32_size() local 187 len += (mask ? 2 : 1) * nla_total_size(nwords * sizeof(u32)); in ethnl_bitset32_size() 249 unsigned int nwords = DIV_ROUND_UP(nbits, 32); in ethnl_put_bitset32() local 250 unsigned int nbytes = nwords * sizeof(u32); in ethnl_put_bitset32() 259 dst[nwords - 1] &= ethnl_lower_bits(nbits); in ethnl_put_bitset32() 268 dst[nwords - 1] &= ethnl_lower_bits(nbits); in ethnl_put_bitset32() 473 unsigned int nwords = DIV_ROUND_UP(nbits, 32); in ethnl_update_bitset32_verbose() local 474 unsigned int nbytes = nwords * sizeof(u32); in ethnl_update_bitset32_verbose() 480 saved_bitmap = kcalloc(nwords, sizeof(u32), GFP_KERNEL); in ethnl_update_bitset32_verbose() 751 unsigned int nwords = DIV_ROUND_UP(nbits, 32); in ethnl_bitset_size() local [all …]
|
| /linux/lib/reed_solomon/ |
| H A D | test_rslib.c | 66 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/lib/ |
| H A D | dynamic_debug.c | 282 int nwords = 0; in ddebug_tokenize() local 307 pr_err("parse err after word:%d=%s\n", nwords, in ddebug_tokenize() 308 nwords ? words[nwords - 1] : "<none>"); in ddebug_tokenize() 314 if (nwords == maxwords) { in ddebug_tokenize() 320 words[nwords++] = buf; in ddebug_tokenize() 327 for (i = 0; i < nwords; i++) in ddebug_tokenize() 332 return nwords; in ddebug_tokenize() 417 static int ddebug_parse_query(char *words[], int nwords, in ddebug_parse_query() argument 425 if (nwords % 2 != 0) { in ddebug_parse_query() 430 for (i = 0; i < nwords; i += 2) { in ddebug_parse_query() [all …]
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | ruc.c | 127 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 D | ud.c | 264 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 …]
|
| H A D | rc.c | 1223 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()
|
| H A D | verbs.h | 397 const struct ib_global_route *grh, u32 hwords, u32 nwords);
|
| /linux/sound/soc/codecs/ |
| H A D | wm_adsp.c | 1938 int mem_type, nwords, max_read; in wm_adsp_buffer_capture_block() local 1954 nwords = buf->regions[i].cumulative_size - buf->read_index; in wm_adsp_buffer_capture_block() 1956 if (nwords > target) in wm_adsp_buffer_capture_block() 1957 nwords = target; in wm_adsp_buffer_capture_block() 1958 if (nwords > buf->avail) in wm_adsp_buffer_capture_block() 1959 nwords = buf->avail; in wm_adsp_buffer_capture_block() 1960 if (nwords > max_read) in wm_adsp_buffer_capture_block() 1961 nwords = max_read; in wm_adsp_buffer_capture_block() 1962 if (!nwords) in wm_adsp_buffer_capture_block() 1967 nwords, (__be32 *)compr->raw_buf); in wm_adsp_buffer_capture_block() [all …]
|
| /linux/net/sunrpc/ |
| H A D | xdr.c | 1097 return (unsigned int)(XDR_QUADLEN(xdr->buf->len) - xdr->nwords) << 2; in xdr_stream_pos() 1105 xdr->nwords = blen > pos ? XDR_QUADLEN(blen) - XDR_QUADLEN(pos) : 0; in xdr_stream_set_pos() 1425 xdr->nwords -= XDR_QUADLEN(nbytes); in xdr_truncate_decode() 1612 xdr->nwords = XDR_QUADLEN(buf->len); in xdr_init_decode() 1617 xdr->nwords -= p - xdr->p; in xdr_init_decode() 1655 unsigned int nwords = XDR_QUADLEN(nbytes); in __xdr_inline_decode() local 1657 __be32 *q = p + nwords; in __xdr_inline_decode() 1659 if (unlikely(nwords > xdr->nwords || q > xdr->end || q < p)) in __xdr_inline_decode() 1662 xdr->nwords -= nwords; in __xdr_inline_decode() 1738 unsigned int nwords = XDR_QUADLEN(len); in xdr_align_pages() local [all …]
|
| /linux/drivers/media/platform/samsung/s3c-camif/ |
| H A D | camif-regs.c | 231 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/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | t4_hw.c | 3010 unsigned int nwords, u32 *data, int byte_oriented) in t4_read_flash() argument 3014 if (addr + nwords * sizeof(u32) > adapter->params.sf_size || (addr & 3)) in t4_read_flash() 3023 for ( ; nwords; nwords--, data++) { in t4_read_flash() 3024 ret = sf1_read(adapter, 4, nwords > 1, nwords == 1, data); in t4_read_flash() 3025 if (nwords == 1) in t4_read_flash() 9776 const unsigned int nwords = CIM_IBQ_SIZE * 4; in t4_read_cim_ibq() local 9781 addr = qid * nwords; in t4_read_cim_ibq() 9782 if (n > nwords) in t4_read_cim_ibq() 9783 n = nwords; in t4_read_cim_ibq() 9817 unsigned int addr, v, nwords; in t4_read_cim_obq() local [all …]
|
| /linux/drivers/scsi/csiostor/ |
| H A D | csio_hw.c | 486 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/drivers/net/ethernet/chelsio/cxgb3/ |
| H A D | t3_hw.c | 815 unsigned int nwords, u32 *data, int byte_oriented) in t3_read_flash() argument 819 if (addr + nwords * sizeof(u32) > SF_SIZE || (addr & 3)) in t3_read_flash() 828 for (; nwords; nwords--, data++) { in t3_read_flash() 829 ret = sf1_read(adapter, 4, nwords > 1, data); in t3_read_flash()
|
| /linux/drivers/firmware/cirrus/ |
| H A D | cs_dsp.c | 3207 void cs_dsp_remove_padding(u32 *buf, int nwords) in cs_dsp_remove_padding() argument 3213 for (i = 0; i < nwords; i++) { in cs_dsp_remove_padding()
|
| /linux/drivers/ata/ |
| H A D | sata_mv.c | 2193 static unsigned int mv_send_fis(struct ata_port *ap, u32 *fis, int nwords) in mv_send_fis() argument 2197 int i, timeout = 200, final_word = nwords - 1; in mv_send_fis()
|
| /linux/fs/nfs/ |
| H A D | nfs4xdr.c | 4411 unsigned int nwords = (xdr_stream_pos(xdr) - savep) >> 2; in verify_attr_len() local 4413 if (unlikely(attrwords != nwords)) { in verify_attr_len() 4418 (attrwords < nwords) ? '<' : '>', in verify_attr_len() 4419 nwords << 2); in verify_attr_len()
|
| /linux/net/sunrpc/auth_gss/ |
| H A D | svcauth_gss.c | 960 xdr->nwords -= XDR_QUADLEN(saved_len - buf->len); in svcauth_gss_unwrap_priv()
|