Home
last modified time | relevance | path

Searched refs:byte_count (Results 1 – 121 of 121) sorted by relevance

/linux-4.4.14/drivers/gpu/drm/radeon/
Dkv_smc.c120 const u8 *src, u32 byte_count, u32 limit) in kv_copy_bytes_to_smc() argument
125 if ((smc_start_address + byte_count) > limit) in kv_copy_bytes_to_smc()
148 } else if (byte_count > 0) { in kv_copy_bytes_to_smc()
150 byte_count--; in kv_copy_bytes_to_smc()
170 while (byte_count >= 4) { in kv_copy_bytes_to_smc()
181 byte_count -= 4; in kv_copy_bytes_to_smc()
186 if (byte_count > 0) { in kv_copy_bytes_to_smc()
195 extra_shift = 8 * (4 - byte_count); in kv_copy_bytes_to_smc()
197 while (byte_count > 0) { in kv_copy_bytes_to_smc()
200 byte_count--; in kv_copy_bytes_to_smc()
Drv770_smc.c297 u16 byte_count, u16 limit) in rv770_copy_bytes_to_smc() argument
306 if ((smc_start_address + byte_count) > limit) in rv770_copy_bytes_to_smc()
312 while (byte_count >= 4) { in rv770_copy_bytes_to_smc()
323 byte_count -= 4; in rv770_copy_bytes_to_smc()
328 if (byte_count > 0) { in rv770_copy_bytes_to_smc()
337 extra_shift = 8 * (4 - byte_count); in rv770_copy_bytes_to_smc()
339 while (byte_count > 0) { in rv770_copy_bytes_to_smc()
342 byte_count--; in rv770_copy_bytes_to_smc()
364 u32 byte_count) in rv770_program_interrupt_vectors() argument
368 if (byte_count % 4) in rv770_program_interrupt_vectors()
[all …]
Dci_smc.c49 const u8 *src, u32 byte_count, u32 limit) in ci_copy_bytes_to_smc() argument
59 if ((smc_start_address + byte_count) > limit) in ci_copy_bytes_to_smc()
65 while (byte_count >= 4) { in ci_copy_bytes_to_smc()
76 byte_count -= 4; in ci_copy_bytes_to_smc()
81 if (byte_count > 0) { in ci_copy_bytes_to_smc()
90 extra_shift = 8 * (4 - byte_count); in ci_copy_bytes_to_smc()
92 while (byte_count > 0) { in ci_copy_bytes_to_smc()
94 byte_count--; in ci_copy_bytes_to_smc()
Dsi_smc.c49 const u8 *src, u32 byte_count, u32 limit) in si_copy_bytes_to_smc() argument
57 if ((smc_start_address + byte_count) > limit) in si_copy_bytes_to_smc()
63 while (byte_count >= 4) { in si_copy_bytes_to_smc()
74 byte_count -= 4; in si_copy_bytes_to_smc()
79 if (byte_count > 0) { in si_copy_bytes_to_smc()
88 extra_shift = 8 * (4 - byte_count); in si_copy_bytes_to_smc()
90 while (byte_count > 0) { in si_copy_bytes_to_smc()
93 byte_count--; in si_copy_bytes_to_smc()
Drv770_smc.h192 u16 byte_count, u16 limit);
Dkv_dpm.h198 const u8 *src, u32 byte_count, u32 limit);
Dci_dpm.h326 const u8 *src, u32 byte_count, u32 limit);
Dsislands_smc.h407 const u8 *src, u32 byte_count, u32 limit);
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Dkv_smc.c124 const u8 *src, u32 byte_count, u32 limit) in amdgpu_kv_copy_bytes_to_smc() argument
129 if ((smc_start_address + byte_count) > limit) in amdgpu_kv_copy_bytes_to_smc()
152 } else if (byte_count > 0) { in amdgpu_kv_copy_bytes_to_smc()
154 byte_count--; in amdgpu_kv_copy_bytes_to_smc()
174 while (byte_count >= 4) { in amdgpu_kv_copy_bytes_to_smc()
185 byte_count -= 4; in amdgpu_kv_copy_bytes_to_smc()
190 if (byte_count > 0) { in amdgpu_kv_copy_bytes_to_smc()
199 extra_shift = 8 * (4 - byte_count); in amdgpu_kv_copy_bytes_to_smc()
201 while (byte_count > 0) { in amdgpu_kv_copy_bytes_to_smc()
204 byte_count--; in amdgpu_kv_copy_bytes_to_smc()
Dci_smc.c52 const u8 *src, u32 byte_count, u32 limit) in amdgpu_ci_copy_bytes_to_smc() argument
62 if ((smc_start_address + byte_count) > limit) in amdgpu_ci_copy_bytes_to_smc()
68 while (byte_count >= 4) { in amdgpu_ci_copy_bytes_to_smc()
79 byte_count -= 4; in amdgpu_ci_copy_bytes_to_smc()
84 if (byte_count > 0) { in amdgpu_ci_copy_bytes_to_smc()
93 extra_shift = 8 * (4 - byte_count); in amdgpu_ci_copy_bytes_to_smc()
95 while (byte_count > 0) { in amdgpu_ci_copy_bytes_to_smc()
97 byte_count--; in amdgpu_ci_copy_bytes_to_smc()
Diceland_smc.c60 uint32_t byte_count, uint32_t limit) in iceland_copy_bytes_to_smc() argument
71 if ((smc_start_address + byte_count) > limit) in iceland_copy_bytes_to_smc()
77 while (byte_count >= 4) { in iceland_copy_bytes_to_smc()
89 byte_count -= 4; in iceland_copy_bytes_to_smc()
93 if (0 != byte_count) { in iceland_copy_bytes_to_smc()
102 extra_shift = 8 * (4 - byte_count); in iceland_copy_bytes_to_smc()
104 while (byte_count > 0) { in iceland_copy_bytes_to_smc()
106 byte_count--; in iceland_copy_bytes_to_smc()
274 uint32_t byte_count; in iceland_smu_upload_firmware_image() local
320 byte_count = ucode_size; in iceland_smu_upload_firmware_image()
[all …]
Dfiji_smc.c56 …_device *adev, uint32_t smc_start_address, const uint8_t *src, uint32_t byte_count, uint32_t limit) in fiji_copy_bytes_to_smc() argument
67 if ((smc_start_address + byte_count) > limit) in fiji_copy_bytes_to_smc()
73 while (byte_count >= 4) { in fiji_copy_bytes_to_smc()
85 byte_count -= 4; in fiji_copy_bytes_to_smc()
89 if (0 != byte_count) { in fiji_copy_bytes_to_smc()
98 extra_shift = 8 * (4 - byte_count); in fiji_copy_bytes_to_smc()
100 while (byte_count > 0) { in fiji_copy_bytes_to_smc()
102 byte_count--; in fiji_copy_bytes_to_smc()
268 uint32_t byte_count; in fiji_smu_upload_firmware_image() local
301 byte_count = ucode_size; in fiji_smu_upload_firmware_image()
[all …]
Dtonga_smc.c56 …_device *adev, uint32_t smc_start_address, const uint8_t *src, uint32_t byte_count, uint32_t limit) in tonga_copy_bytes_to_smc() argument
67 if ((smc_start_address + byte_count) > limit) in tonga_copy_bytes_to_smc()
73 while (byte_count >= 4) { in tonga_copy_bytes_to_smc()
85 byte_count -= 4; in tonga_copy_bytes_to_smc()
89 if (0 != byte_count) { in tonga_copy_bytes_to_smc()
98 extra_shift = 8 * (4 - byte_count); in tonga_copy_bytes_to_smc()
100 while (byte_count > 0) { in tonga_copy_bytes_to_smc()
102 byte_count--; in tonga_copy_bytes_to_smc()
268 uint32_t byte_count; in tonga_smu_upload_firmware_image() local
301 byte_count = ucode_size; in tonga_smu_upload_firmware_image()
[all …]
Dkv_dpm.h227 const u8 *src, u32 byte_count, u32 limit);
Damdgpu_ttm.c1013 uint32_t byte_count, in amdgpu_copy_buffer() argument
1025 num_loops = DIV_ROUND_UP(byte_count, max_bytes); in amdgpu_copy_buffer()
1054 uint32_t cur_size_in_bytes = min(byte_count, max_bytes); in amdgpu_copy_buffer()
1061 byte_count -= cur_size_in_bytes; in amdgpu_copy_buffer()
Dcik_sdma.c1347 uint32_t byte_count) in cik_sdma_emit_copy_buffer() argument
1350 ib->ptr[ib->length_dw++] = byte_count; in cik_sdma_emit_copy_buffer()
1371 uint32_t byte_count) in cik_sdma_emit_fill_buffer() argument
1377 ib->ptr[ib->length_dw++] = byte_count; in cik_sdma_emit_fill_buffer()
Dsdma_v2_4.c1352 uint32_t byte_count) in sdma_v2_4_emit_copy_buffer() argument
1356 ib->ptr[ib->length_dw++] = byte_count; in sdma_v2_4_emit_copy_buffer()
1377 uint32_t byte_count) in sdma_v2_4_emit_fill_buffer() argument
1383 ib->ptr[ib->length_dw++] = byte_count; in sdma_v2_4_emit_fill_buffer()
Dsdma_v3_0.c1513 uint32_t byte_count) in sdma_v3_0_emit_copy_buffer() argument
1517 ib->ptr[ib->length_dw++] = byte_count; in sdma_v3_0_emit_copy_buffer()
1538 uint32_t byte_count) in sdma_v3_0_emit_fill_buffer() argument
1544 ib->ptr[ib->length_dw++] = byte_count; in sdma_v3_0_emit_fill_buffer()
Dci_dpm.h333 const u8 *src, u32 byte_count, u32 limit);
Damdgpu.h262 uint32_t byte_count);
277 uint32_t byte_count);
476 uint32_t byte_count,
/linux-4.4.14/drivers/crypto/sunxi-ss/
Dsun4i-ss-hash.c53 octx->byte_count = op->byte_count + op->len; in sun4i_hash_export_md5()
57 if (op->byte_count > 0) { in sun4i_hash_export_md5()
78 op->byte_count = ictx->byte_count & ~0x3F; in sun4i_hash_import_md5()
79 op->len = ictx->byte_count & 0x3F; in sun4i_hash_import_md5()
95 octx->count = op->byte_count + op->len; in sun4i_hash_export_sha1()
99 if (op->byte_count > 0) { in sun4i_hash_export_sha1()
121 op->byte_count = ictx->count & ~0x3F; in sun4i_hash_import_sha1()
186 op->byte_count, areq->nbytes, op->mode, in sun4i_hash_update()
220 if (op->byte_count > 0) { in sun4i_hash_update()
263 op->byte_count += op->len; in sun4i_hash_update()
[all …]
Dsun4i-ss.h162 u64 byte_count; /* number of bytes "uploaded" to the device */ member
/linux-4.4.14/arch/sparc/crypto/
Dmd5_glue.c40 mctx->byte_count = 0; in md5_sparc64_init()
50 sctx->byte_count += len; in __md5_sparc64_update()
70 unsigned int partial = sctx->byte_count % MD5_HMAC_BLOCK_SIZE; in md5_sparc64_update()
74 sctx->byte_count += len; in md5_sparc64_update()
91 bits = cpu_to_le64(sctx->byte_count << 3); in md5_sparc64_final()
94 index = sctx->byte_count % MD5_HMAC_BLOCK_SIZE; in md5_sparc64_final()
99 sctx->byte_count += padlen; in md5_sparc64_final()
/linux-4.4.14/net/sunrpc/xprtrdma/
Dsvc_rdma_recvfrom.c60 u32 byte_count) in rdma_build_arg_xdr() argument
75 min_t(size_t, byte_count, ctxt->sge[0].length); in rdma_build_arg_xdr()
76 rqstp->rq_arg.len = byte_count; in rdma_build_arg_xdr()
77 rqstp->rq_arg.buflen = byte_count; in rdma_build_arg_xdr()
80 bc = byte_count - rqstp->rq_arg.head[0].iov_len; in rdma_build_arg_xdr()
372 u32 position, u32 byte_count, u32 page_offset, int page_no) in rdma_copy_tail() argument
379 byte_count = head->arg.head[0].iov_len - position; in rdma_copy_tail()
380 if (byte_count > PAGE_SIZE) { in rdma_copy_tail()
389 while (byte_count--) { in rdma_copy_tail()
392 if (page_offset == PAGE_SIZE && byte_count) in rdma_copy_tail()
[all …]
Dsvc_rdma_sendto.c457 int byte_count) in send_reply() argument
496 for (sge_no = 1; byte_count && sge_no < vec->count; sge_no++) { in send_reply()
497 sge_bytes = min_t(size_t, vec->sge[sge_no].iov_len, byte_count); in send_reply()
498 byte_count -= sge_bytes; in send_reply()
510 if (byte_count != 0) { in send_reply()
511 pr_err("svcrdma: Could not map %d bytes\n", byte_count); in send_reply()
/linux-4.4.14/init/
Dinitramfs.c200 static unsigned long byte_count __initdata;
207 byte_count -= n; in eat()
217 if (byte_count >= size) { in read_into()
240 if (byte_count < n) in do_collect()
241 n = byte_count; in do_collect()
283 if (this_header + byte_count < next_header) { in do_skip()
284 eat(byte_count); in do_skip()
295 while (byte_count && *victim == '\0') in do_reset()
297 if (byte_count && (this_header & 3)) in do_reset()
371 if (byte_count >= body_len) { in do_copy()
[all …]
/linux-4.4.14/crypto/
Dmd5.c58 mctx->byte_count = 0; in md5_init()
66 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md5_update()
68 mctx->byte_count += len; in md5_update()
98 const unsigned int offset = mctx->byte_count & 0x3f; in md5_final()
111 mctx->block[14] = mctx->byte_count << 3; in md5_final()
112 mctx->block[15] = mctx->byte_count >> 29; in md5_final()
Dansi_cprng.c190 unsigned int byte_count = (unsigned int)nbytes; in get_prng_bytes() local
208 byte_count = DEFAULT_BLK_SZ; in get_prng_bytes()
218 byte_count, ctx); in get_prng_bytes()
233 if (byte_count < DEFAULT_BLK_SZ) { in get_prng_bytes()
238 byte_count--; in get_prng_bytes()
240 if (byte_count == 0) in get_prng_bytes()
248 for (; byte_count >= DEFAULT_BLK_SZ; byte_count -= DEFAULT_BLK_SZ) { in get_prng_bytes()
266 if (byte_count) in get_prng_bytes()
Dmd4.c39 u64 byte_count; member
164 mctx->byte_count = 0; in md4_init()
172 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md4_update()
174 mctx->byte_count += len; in md4_update()
204 const unsigned int offset = mctx->byte_count & 0x3f; in md4_final()
217 mctx->block[14] = mctx->byte_count << 3; in md4_final()
218 mctx->block[15] = mctx->byte_count >> 29; in md4_final()
Drmd128.c26 u64 byte_count; member
224 rctx->byte_count = 0; in rmd128_init()
240 const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); in rmd128_update()
242 rctx->byte_count += len; in rmd128_update()
280 bits = cpu_to_le64(rctx->byte_count << 3); in rmd128_final()
283 index = rctx->byte_count & 0x3f; in rmd128_final()
Drmd256.c26 u64 byte_count; member
239 rctx->byte_count = 0; in rmd256_init()
259 const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); in rmd256_update()
261 rctx->byte_count += len; in rmd256_update()
299 bits = cpu_to_le64(rctx->byte_count << 3); in rmd256_final()
302 index = rctx->byte_count & 0x3f; in rmd256_final()
Drmd160.c26 u64 byte_count; member
267 rctx->byte_count = 0; in rmd160_init()
284 const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); in rmd160_update()
286 rctx->byte_count += len; in rmd160_update()
324 bits = cpu_to_le64(rctx->byte_count << 3); in rmd160_final()
327 index = rctx->byte_count & 0x3f; in rmd160_final()
Drmd320.c26 u64 byte_count; member
286 rctx->byte_count = 0; in rmd320_init()
308 const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); in rmd320_update()
310 rctx->byte_count += len; in rmd320_update()
348 bits = cpu_to_le64(rctx->byte_count << 3); in rmd320_final()
351 index = rctx->byte_count & 0x3f; in rmd320_final()
/linux-4.4.14/arch/arm/mach-iop13xx/include/mach/
Dadma.h73 unsigned int byte_count:24; member
93 u32 byte_count; member
111 u32 byte_count; member
130 u32 byte_count; member
225 return hw_desc->byte_count_field.byte_count; in iop_desc_get_byte_count()
362 u32 byte_count) in iop_desc_set_byte_count() argument
365 hw_desc->byte_count = byte_count; in iop_desc_set_byte_count()
376 hw_desc->byte_count = len; in iop_desc_set_zero_sum_byte_count()
380 iter->byte_count = IOP_ADMA_ZERO_SUM_MAX_BYTE_COUNT; in iop_desc_set_zero_sum_byte_count()
387 iter->byte_count = len; in iop_desc_set_zero_sum_byte_count()
[all …]
/linux-4.4.14/fs/cifs/
Dcifssmb.c797 __u16 params, param_offset, offset, byte_count; in CIFSPOSIXDelFile() local
838 byte_count = 3 /* pad */ + params + sizeof(struct unlink_psx_rq); in CIFSPOSIXDelFile()
846 inc_rfc1001_len(pSMB, byte_count); in CIFSPOSIXDelFile()
847 pSMB->ByteCount = cpu_to_le16(byte_count); in CIFSPOSIXDelFile()
1010 __u16 params, param_offset, offset, byte_count, count; in CIFSPOSIXCreate() local
1055 byte_count = 3 /* pad */ + params + count; in CIFSPOSIXCreate()
1063 inc_rfc1001_len(pSMB, byte_count); in CIFSPOSIXCreate()
1064 pSMB->ByteCount = cpu_to_le16(byte_count); in CIFSPOSIXCreate()
1782 __u16 byte_count; in CIFSSMBWrite() local
1855 byte_count = bytes_sent + 1; /* pad */ in CIFSSMBWrite()
[all …]
Dsmb1ops.c293 unsigned int byte_count, total_in_tgt; in coalesce_t2() local
343 byte_count = get_bcc(target_hdr); in coalesce_t2()
344 byte_count += total_in_src; in coalesce_t2()
346 if (byte_count > USHRT_MAX) { in coalesce_t2()
347 cifs_dbg(FYI, "coalesced BCC too large (%u)\n", byte_count); in coalesce_t2()
350 put_bcc(byte_count, target_hdr); in coalesce_t2()
352 byte_count = be32_to_cpu(target_hdr->smb_buf_length); in coalesce_t2()
353 byte_count += total_in_src; in coalesce_t2()
355 if (byte_count > CIFSMaxBufSize + MAX_CIFS_HDR_SIZE - 4) { in coalesce_t2()
357 byte_count); in coalesce_t2()
[all …]
/linux-4.4.14/arch/mips/cavium-octeon/crypto/
Docteon-md5.c76 mctx->byte_count = 0; in octeon_md5_init()
85 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in octeon_md5_update()
89 mctx->byte_count += len; in octeon_md5_update()
124 const unsigned int offset = mctx->byte_count & 0x3f; in octeon_md5_final()
143 mctx->block[14] = cpu_to_le32(mctx->byte_count << 3); in octeon_md5_final()
144 mctx->block[15] = cpu_to_le32(mctx->byte_count >> 29); in octeon_md5_final()
/linux-4.4.14/arch/arm/include/asm/hardware/
Diop3xx-adma.h113 u32 byte_count; member
125 u32 byte_count; member
152 u32 byte_count; member
174 u32 byte_count; member
404 return hw_desc.dma->byte_count; in iop_desc_get_byte_count()
406 return hw_desc.aau->byte_count; in iop_desc_get_byte_count()
648 u32 byte_count) in iop_desc_set_byte_count() argument
655 hw_desc.dma->byte_count = byte_count; in iop_desc_set_byte_count()
658 hw_desc.aau->byte_count = byte_count; in iop_desc_set_byte_count()
675 hw_desc.dma->byte_count = 0; in iop_desc_init_interrupt()
[all …]
/linux-4.4.14/arch/powerpc/crypto/
Dmd5-glue.c44 sctx->byte_count = 0; in ppc_md5_init()
53 const unsigned int offset = sctx->byte_count & 0x3f; in ppc_md5_update()
57 sctx->byte_count += len; in ppc_md5_update()
84 const unsigned int offset = sctx->byte_count & 0x3f; in ppc_md5_final()
101 *pbits = cpu_to_le64(sctx->byte_count << 3); in ppc_md5_final()
/linux-4.4.14/drivers/infiniband/hw/mthca/
Dmthca_wqe.h102 __be32 byte_count; member
119 dseg->byte_count = cpu_to_be32(sg->length); in mthca_set_data_seg()
126 dseg->byte_count = 0; in mthca_set_data_seg_inval()
Dmthca_qp.c1537 data->byte_count = cpu_to_be32(header_size); in build_mlx_header()
1744 ((struct mthca_data_seg *) wqe)->byte_count = in mthca_tavor_post_send()
2085 ((struct mthca_data_seg *) wqe)->byte_count = in mthca_arbel_post_send()
/linux-4.4.14/drivers/gpu/drm/
Ddrm_bufs.c612 int byte_count; in drm_legacy_addbufs_agp() local
628 byte_count = 0; in drm_legacy_addbufs_agp()
696 buf->offset = (dma->byte_count + offset); in drm_legacy_addbufs_agp()
719 byte_count += PAGE_SIZE << page_order; in drm_legacy_addbufs_agp()
722 DRM_DEBUG("byte_count: %d\n", byte_count); in drm_legacy_addbufs_agp()
742 dma->page_count += byte_count >> PAGE_SHIFT; in drm_legacy_addbufs_agp()
743 dma->byte_count += byte_count; in drm_legacy_addbufs_agp()
776 int byte_count; in drm_legacy_addbufs_pci() local
861 byte_count = 0; in drm_legacy_addbufs_pci()
894 buf->offset = (dma->byte_count + byte_count + offset); in drm_legacy_addbufs_pci()
[all …]
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c316 be32_to_cpu(data->byte_count), in mlx4_en_free_tx_desc()
343 be32_to_cpu(data->byte_count), in mlx4_en_free_tx_desc()
647 inl->byte_count = cpu_to_be32(1 << 31 | skb->len); in build_inline_wqe()
649 inl->byte_count = cpu_to_be32(1 << 31 | MIN_PKT_LEN); in build_inline_wqe()
659 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_inline_wqe()
681 inl->byte_count = cpu_to_be32(1 << 31 | (skb->len - spc)); in build_inline_wqe()
803 u32 byte_count = 0; in mlx4_en_xmit() local
810 byte_count = skb_frag_size(frag); in mlx4_en_xmit()
812 0, byte_count, in mlx4_en_xmit()
820 data->byte_count = cpu_to_be32(byte_count); in mlx4_en_xmit()
[all …]
Den_rx.c220 rx_desc->data[i].byte_count = in mlx4_en_init_rx_desc()
230 rx_desc->data[i].byte_count = 0; in mlx4_en_init_rx_desc()
/linux-4.4.14/arch/ia64/sn/pci/
Dtioce_provider.c523 tioce_do_dma_map(struct pci_dev *pdev, u64 paddr, size_t byte_count, in tioce_do_dma_map() argument
569 ct_addr + byte_count - 1 <= last && in tioce_do_dma_map()
592 if (byte_count > MB(64)) { in tioce_do_dma_map()
594 port, ct_addr, byte_count, in tioce_do_dma_map()
599 ct_addr, byte_count, in tioce_do_dma_map()
603 ct_addr, byte_count, in tioce_do_dma_map()
608 port, ct_addr, byte_count, in tioce_do_dma_map()
625 byte_count, dma_flags); in tioce_do_dma_map()
646 tioce_dma(struct pci_dev *pdev, unsigned long paddr, size_t byte_count, int dma_flags) in tioce_dma() argument
648 return tioce_do_dma_map(pdev, paddr, byte_count, 0, dma_flags); in tioce_dma()
[all …]
Dtioca_provider.c513 tioca_dma_map(struct pci_dev *pdev, unsigned long paddr, size_t byte_count, int dma_flags) in tioca_dma_map() argument
539 mapaddr = tioca_dma_mapped(pdev, paddr, byte_count); in tioca_dma_map()
/linux-4.4.14/drivers/acpi/acpica/
Dpsargs.c80 u32 byte_count; in acpi_ps_get_next_package_length() local
89 byte_count = (aml[0] >> 6); in acpi_ps_get_next_package_length()
90 parser_state->aml += ((acpi_size) byte_count + 1); in acpi_ps_get_next_package_length()
94 while (byte_count) { in acpi_ps_get_next_package_length()
102 package_length |= (aml[byte_count] << ((byte_count << 3) - 4)); in acpi_ps_get_next_package_length()
105 byte_count--; in acpi_ps_get_next_package_length()
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dfw-api-rx.h114 __le32 byte_count; member
143 __le16 byte_count; member
Drx.c275 len = le16_to_cpu(rx_res->byte_count); in iwl_mvm_rx_rx_mpdu()
/linux-4.4.14/drivers/scsi/aacraid/
Dcommctrl.c482 u32 byte_count = 0; in aac_send_raw_srb() local
587 byte_count = 0; in aac_send_raw_srb()
633 byte_count += upsg->sg[i].count; in aac_send_raw_srb()
686 byte_count += usg->sg[i].count; in aac_send_raw_srb()
691 srbcmd->count = cpu_to_le32(byte_count); in aac_send_raw_srb()
738 byte_count += usg->sg[i].count; in aac_send_raw_srb()
776 byte_count += upsg->sg[i].count; in aac_send_raw_srb()
780 srbcmd->count = cpu_to_le32(byte_count); in aac_send_raw_srb()
800 byte_count = le32_to_cpu( in aac_send_raw_srb()
804 if(copy_to_user(sg_user[i], sg_list[i], byte_count)){ in aac_send_raw_srb()
Daachba.c3213 unsigned long byte_count = 0; in aac_build_sg() local
3234 byte_count += sg_dma_len(sg); in aac_build_sg()
3237 if (byte_count > scsi_bufflen(scsicmd)) { in aac_build_sg()
3239 (byte_count - scsi_bufflen(scsicmd)); in aac_build_sg()
3241 byte_count = scsi_bufflen(scsicmd); in aac_build_sg()
3244 if(scsicmd->underflow && (byte_count < scsicmd->underflow)){ in aac_build_sg()
3246 byte_count, scsicmd->underflow); in aac_build_sg()
3249 return byte_count; in aac_build_sg()
3256 unsigned long byte_count = 0; in aac_build_sg64() local
3280 byte_count += count; in aac_build_sg64()
[all …]
/linux-4.4.14/scripts/mod/
Dsumversion.c43 uint64_t byte_count; member
166 mctx->byte_count = 0; in md4_init()
172 const uint32_t avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md4_update()
174 mctx->byte_count += len; in md4_update()
201 const unsigned int offset = mctx->byte_count & 0x3f; in md4_final_ascii()
214 mctx->block[14] = mctx->byte_count << 3; in md4_final_ascii()
215 mctx->block[15] = mctx->byte_count >> 29; in md4_final_ascii()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/
Dpci.h119 MLXSW_ITEM16_INDEXED(pci, wqe, byte_count, 0x02, 0, 14, 0x02, 0x00, false);
150 MLXSW_ITEM32(pci, cqe, byte_count, 0x04, 0, 14);
Dpci.c676 u16 byte_count; in mlxsw_pci_cqe_rdq_handle() local
696 byte_count = mlxsw_pci_cqe_byte_count_get(cqe); in mlxsw_pci_cqe_rdq_handle()
698 byte_count -= ETH_FCS_LEN; in mlxsw_pci_cqe_rdq_handle()
699 skb_put(skb, byte_count); in mlxsw_pci_cqe_rdq_handle()
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
Dbmi.c77 (u8 *)&targ_info->byte_count, in ath6kl_bmi_get_target_info()
78 sizeof(targ_info->byte_count)); in ath6kl_bmi_get_target_info()
89 if (le32_to_cpu(targ_info->byte_count) != sizeof(*targ_info)) { in ath6kl_bmi_get_target_info()
97 sizeof(targ_info->byte_count), in ath6kl_bmi_get_target_info()
99 sizeof(targ_info->byte_count)); in ath6kl_bmi_get_target_info()
103 targ_info->byte_count, ret); in ath6kl_bmi_get_target_info()
Dbmi.h221 __le32 byte_count; /* size of this structure */ member
/linux-4.4.14/drivers/tty/
Disicom.c522 short byte_count; in isicom_interrupt() local
546 byte_count = header & 0xff; in isicom_interrupt()
564 word_count = byte_count >> 1; in isicom_interrupt()
565 while (byte_count > 1) { in isicom_interrupt()
567 byte_count -= 2; in isicom_interrupt()
569 if (byte_count & 0x01) in isicom_interrupt()
654 byte_count & ~1); in isicom_interrupt()
656 __func__, count, byte_count); in isicom_interrupt()
659 byte_count -= (word_count << 1); in isicom_interrupt()
663 byte_count -= 2; in isicom_interrupt()
[all …]
/linux-4.4.14/sound/pci/asihpi/
Dhpicmn.c200 unsigned int byte_count = 0; in control_cache_alloc_check() local
208 &p_master_cache[byte_count]; in control_cache_alloc_check()
242 byte_count += info->size_in32bit_words * 4; in control_cache_alloc_check()
254 if (byte_count >= pC->cache_size_in_bytes) in control_cache_alloc_check()
261 if (byte_count != pC->cache_size_in_bytes) in control_cache_alloc_check()
264 pC->adap_idx, byte_count, in control_cache_alloc_check()
269 pC->adap_idx, byte_count); in control_cache_alloc_check()
Dhpifunc.c1663 u16 hpi_cobranet_hmi_write(u32 h_control, u32 hmi_address, u32 byte_count, in hpi_cobranet_hmi_write() argument
1676 if (byte_count > sizeof(hm.bytes)) in hpi_cobranet_hmi_write()
1680 hm.p.byte_count = byte_count; in hpi_cobranet_hmi_write()
1682 memcpy(hm.bytes, pb_data, byte_count); in hpi_cobranet_hmi_write()
1683 hm.h.size = (u16)(sizeof(hm.h) + sizeof(hm.p) + byte_count); in hpi_cobranet_hmi_write()
1706 hm.p.byte_count = max_byte_count; in hpi_cobranet_hmi_read()
1712 if (hr.byte_count > sizeof(hr.bytes)) in hpi_cobranet_hmi_read()
1716 *pbyte_count = hr.byte_count; in hpi_cobranet_hmi_read()
1718 if (hr.byte_count < max_byte_count) in hpi_cobranet_hmi_read()
1755 u32 byte_count; in hpi_cobranet_get_ip_address() local
[all …]
Dhpi_internal.h1146 u32 byte_count; member
1162 u32 byte_count; member
Dhpi.h1669 u16 hpi_cobranet_hmi_write(u32 h_control, u32 hmi_address, u32 byte_count,
/linux-4.4.14/include/crypto/
Dmd5.h19 u64 byte_count; member
/linux-4.4.14/drivers/dma/
Dmv_xor.h164 u32 byte_count; /* size of src/dst blocks in bytes */ member
178 u32 byte_count; /* size of src/dst blocks in bytes */ member
Dmv_xor.c51 dma_addr_t addr, u32 byte_count, in mv_desc_init() argument
62 hw_desc->byte_count = byte_count; in mv_desc_init()
/linux-4.4.14/drivers/infiniband/hw/mlx5/
Dodp.c318 u32 byte_count; in pagefault_data_segments() local
336 byte_count = be32_to_cpu(dseg->byte_count); in pagefault_data_segments()
337 inline_segment = !!(byte_count & MLX5_INLINE_SEG); in pagefault_data_segments()
338 bcnt = byte_count & ~MLX5_INLINE_SEG; in pagefault_data_segments()
Dsrq.c458 scat[i].byte_count = cpu_to_be32(wr->sg_list[i].length); in mlx5_ib_post_srq_recv()
464 scat[i].byte_count = 0; in mlx5_ib_post_srq_recv()
Dcq.c335 int byte_count; in handle_atomic() local
341 byte_count = be32_to_cpu(cqe64->byte_cnt); in handle_atomic()
344 if (byte_count == 4) { in handle_atomic()
347 for (i = 0; i < byte_count; i += 8) { in handle_atomic()
Dqp.c1848 dseg->byte_count = cpu_to_be32(sg->length); in set_data_ptr_seg()
2042 dseg->byte_count = cpu_to_be32(ALIGN(bcount, 64)); in set_reg_data_seg()
2110 seg->byte_count = cpu_to_be32(inl | MLX5_INLINE_SEG); in set_data_inl_seg()
2112 *sz = ALIGN(inl + sizeof(seg->byte_count), 16) / 16; in set_data_inl_seg()
2923 scat[i].byte_count = 0; in mlx5_ib_post_recv()
/linux-4.4.14/drivers/net/wireless/mwifiex/
Dsta_cmdresp.c821 pr_debug("info: EEPROM read len=%x\n", r.eeprom->byte_count); in mwifiex_ret_reg_access()
822 if (le16_to_cpu(eeprom->byte_count) < in mwifiex_ret_reg_access()
823 le16_to_cpu(r.eeprom->byte_count)) { in mwifiex_ret_reg_access()
824 eeprom->byte_count = cpu_to_le16(0); in mwifiex_ret_reg_access()
829 eeprom->byte_count = r.eeprom->byte_count; in mwifiex_ret_reg_access()
830 if (le16_to_cpu(eeprom->byte_count) > 0) in mwifiex_ret_reg_access()
832 le16_to_cpu(r.eeprom->byte_count)); in mwifiex_ret_reg_access()
Dioctl.h343 __le16 byte_count; member
Dsta_cmd.c1194 cmd_eeprom->byte_count = rd_eeprom->byte_count; in mwifiex_cmd_reg_access()
Dsta_ioctl.c1274 rd_eeprom.byte_count = cpu_to_le16((u16) bytes); in mwifiex_eeprom_read()
Dfw.h1734 __le16 byte_count; member
/linux-4.4.14/drivers/crypto/qce/
Dsha.h58 __be32 byte_count[2]; member
Dsha.c61 rctx->byte_count[0] = cpu_to_be32(result->auth_byte_count[0]); in qce_ahash_done()
62 rctx->byte_count[1] = cpu_to_be32(result->auth_byte_count[1]); in qce_ahash_done()
198 rctx->byte_count[0] = (__force __be32)(count & ~SHA_PADDING_MASK); in qce_import_common()
199 rctx->byte_count[1] = (__force __be32)(count >> 32); in qce_import_common()
Dcommon.c285 (u32 *)rctx->byte_count, 2); in qce_setup_regs_ahash()
/linux-4.4.14/drivers/net/ethernet/xilinx/
Dxilinx_emaclite.c313 unsigned int byte_count) in xemaclite_send_data() argument
322 if (byte_count > ETH_FRAME_LEN) in xemaclite_send_data()
323 byte_count = ETH_FRAME_LEN; in xemaclite_send_data()
348 xemaclite_aligned_write(data, (u32 __force *) addr, byte_count); in xemaclite_send_data()
350 __raw_writel((byte_count & XEL_TPLR_LENGTH_MASK), in xemaclite_send_data()
/linux-4.4.14/include/linux/mlx4/
Dqp.h432 __be32 byte_count; member
443 __be32 byte_count; member
/linux-4.4.14/net/openvswitch/
Dflow.c113 new_stats->byte_count = len; in ovs_flow_stats_update()
128 stats->byte_count += len; in ovs_flow_stats_update()
157 ovs_stats->n_bytes += stats->byte_count; in ovs_flow_stats_get()
175 stats->byte_count = 0; in ovs_flow_stats_clear()
Dflow.h163 u64 byte_count; /* Number of bytes matched. */ member
/linux-4.4.14/include/drm/
Ddrm_legacy.h107 unsigned long byte_count; member
/linux-4.4.14/drivers/scsi/sym53c8xx_2/
Dsym_nvram.h54 u_short byte_count; /* excluding header/trailer */ member
Dsym_nvram.c525 nvram->byte_count != len - 12) in sym_read_Symbios_nvram()
/linux-4.4.14/drivers/infiniband/hw/mlx4/
Dqp.c259 inl->byte_count = cpu_to_be32(1 << 31 | (size - s - sizeof *inl)); in post_nop_wqe()
2223 inl->byte_count = cpu_to_be32(1 << 31 | header_size); in build_sriov_qp0_header()
2227 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_sriov_qp0_header()
2246 inl->byte_count = cpu_to_be32(1 << 31 | (header_size - spc)); in build_sriov_qp0_header()
2454 inl->byte_count = cpu_to_be32(1 << 31 | header_size); in build_mlx_header()
2458 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_mlx_header()
2477 inl->byte_count = cpu_to_be32(1 << 31 | (header_size - spc)); in build_mlx_header()
2643 inl->byte_count = cpu_to_be32(1 << 31 | sizeof (hdr)); in build_tunnel_header()
2648 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_tunnel_header()
2653 inl->byte_count = cpu_to_be32(1 << 31 | (sizeof (hdr) - spc)); in build_tunnel_header()
[all …]
Dsrq.c354 scat[i].byte_count = cpu_to_be32(wr->sg_list[i].length); in mlx4_ib_post_srq_recv()
360 scat[i].byte_count = 0; in mlx4_ib_post_srq_recv()
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_iocb.c210 cmd_pkt->byte_count = cpu_to_le32(0); in qla2x00_build_scsi_iocbs_32()
267 cmd_pkt->byte_count = cpu_to_le32(0); in qla2x00_build_scsi_iocbs_64()
407 cmd_pkt->byte_count = cpu_to_le32((uint32_t)scsi_bufflen(cmd)); in qla2x00_start_scsi()
601 cmd_pkt->byte_count = cpu_to_le32(0); in qla24xx_build_scsi_type_6_iocbs()
715 cmd_pkt->byte_count = cpu_to_le32(0); in qla24xx_build_scsi_iocbs()
1241 cmd_pkt->byte_count = cpu_to_le32(0); in qla24xx_build_scsi_crc_2_iocbs()
1374 crc_ctx_pkt->byte_count = cpu_to_le32(data_bytes); in qla24xx_build_scsi_crc_2_iocbs()
1377 cmd_pkt->byte_count = cpu_to_le32(total_bytes); in qla24xx_build_scsi_crc_2_iocbs()
1383 cmd_pkt->byte_count = cpu_to_le32(0); in qla24xx_build_scsi_crc_2_iocbs()
1523 cmd_pkt->byte_count = cpu_to_le32((uint32_t)scsi_bufflen(cmd)); in qla24xx_start_scsi()
[all …]
Dqla_fw.h455 uint32_t byte_count; /* Total byte count. */ member
502 uint32_t byte_count; /* Total byte count. */ member
537 uint32_t byte_count; /* Total byte count. */ member
Dqla_mr.h47 __le32 byte_count; /* Total byte count. */ member
Dqla_def.h1556 uint32_t byte_count; /* Total byte count. */ member
1582 uint32_t byte_count; /* Total byte count. */ member
1669 __le32 byte_count; /* Total byte count/ total data member
Dqla_mr.c3010 lcmd_pkt->byte_count = cpu_to_le32(0); in qlafx00_build_scsi_iocbs()
3157 lcmd_pkt.byte_count = cpu_to_le32((uint32_t)scsi_bufflen(cmd)); in qlafx00_start_scsi()
Dqla_target.c2435 crc_ctx_pkt->byte_count = cpu_to_le32(data_bytes); in qlt_build_ctio_crc2_pkt()
/linux-4.4.14/drivers/crypto/nx/
Dnx-842-powernv.c66 unsigned int dde_count, unsigned int byte_count) in setup_indirect_dde() argument
71 dde->length = cpu_to_be32(byte_count); in setup_indirect_dde()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Den_tx.c234 dseg->byte_count = cpu_to_be32(headlen); in mlx5e_sq_xmit()
253 dseg->byte_count = cpu_to_be32(fsz); in mlx5e_sq_xmit()
Den_main.c344 u32 byte_count = rq->wqe_sz - MLX5E_NET_IP_ALIGN; in mlx5e_create_rq() local
347 wqe->data.byte_count = in mlx5e_create_rq()
348 cpu_to_be32(byte_count | MLX5_HW_START_PADDING); in mlx5e_create_rq()
/linux-4.4.14/include/linux/mlx5/
Dqp.h275 __be32 byte_count; member
334 __be32 byte_count; member
/linux-4.4.14/drivers/block/
Dskd_main.c916 sgd->byte_count = cnt; in skd_preop_sg_list()
934 i, sgd->byte_count, sgd->control, in skd_preop_sg_list()
1584 sksg->byte_count = nbytes; in skd_skreq_prep_buffering()
1616 i, sgd->byte_count, sgd->control, in skd_skreq_prep_buffering()
1873 sgd->byte_count = 0; in skd_format_internal_skspcl()
1911 sgd->byte_count = 0; in skd_send_internal_skspcl()
1917 sgd->byte_count = SKD_N_READ_CAP_BYTES; in skd_send_internal_skspcl()
1918 scsi->hdr.sg_list_len_bytes = cpu_to_be32(sgd->byte_count); in skd_send_internal_skspcl()
1926 sgd->byte_count = 16; in skd_send_internal_skspcl()
1927 scsi->hdr.sg_list_len_bytes = cpu_to_be32(sgd->byte_count); in skd_send_internal_skspcl()
[all …]
Dskd_s1120.h201 uint32_t byte_count; member
/linux-4.4.14/drivers/block/mtip32xx/
Dmtip32xx.h283 unsigned int byte_count; member
Dmtip32xx.c1171 int_cmd->command_header->byte_count = 0; in mtip_exec_internal_command()
2435 command->command_header->byte_count = 0; in mtip_hw_submit_io()
/linux-4.4.14/drivers/spi/
Dspi-mpc52xx.c74 int byte_count; member
244 ms->byte_count++; in mpc52xx_spi_fsmstate_transfer()
/linux-4.4.14/drivers/staging/rdma/ehca/
Dhcp_if.h262 unsigned long *byte_count);
Dhcp_if.c925 unsigned long *byte_count) in hipz_h_error_data() argument
/linux-4.4.14/drivers/soc/ti/
Dknav_qmss.h181 u32 byte_count; member
/linux-4.4.14/include/linux/
Dhyperv.h255 u32 byte_count; member
286 u32 byte_count; member
/linux-4.4.14/sound/ppc/
Dsnd_ps3.c213 enum snd_ps3_ch ch, size_t byte_count, in snd_ps3_bump_buffer() argument
219 card->dma_next_transfer_vaddr[ch] += byte_count; in snd_ps3_bump_buffer()
/linux-4.4.14/drivers/hv/
Dchannel.c265 gpadl_header->range[0].byte_count = size; in create_gpadl_header()
347 gpadl_header->range[0].byte_count = size; in create_gpadl_header()
/linux-4.4.14/drivers/scsi/bnx2fc/
Dbnx2fc_io.c1588 int byte_count = 0; in bnx2fc_map_sg() local
1617 byte_count += sg_len; in bnx2fc_map_sg()
1619 if (byte_count != scsi_bufflen(sc)) in bnx2fc_map_sg()
1621 "task_id = 0x%x\n", byte_count, scsi_bufflen(sc), in bnx2fc_map_sg()
/linux-4.4.14/drivers/usb/dwc2/
Dcore.c1634 u32 byte_count; in dwc2_hc_write_packet() local
1646 byte_count = chan->max_packet; in dwc2_hc_write_packet()
1648 byte_count = remaining_count; in dwc2_hc_write_packet()
1650 dword_count = (byte_count + 3) / 4; in dwc2_hc_write_packet()
1665 chan->xfer_count += byte_count; in dwc2_hc_write_packet()
1666 chan->xfer_buf += byte_count; in dwc2_hc_write_packet()
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_hbadisc.c3596 uint32_t byte_count = 0; in lpfc_create_static_vport() local
3642 byte_count = pmb->u.mqe.un.mb_words[5]; in lpfc_create_static_vport()
3644 if (byte_count > sizeof(struct static_vport_info) - in lpfc_create_static_vport()
3646 byte_count = sizeof(struct static_vport_info) in lpfc_create_static_vport()
3648 memcpy(vport_buff + offset, mp->virt, byte_count); in lpfc_create_static_vport()
3649 offset += byte_count; in lpfc_create_static_vport()
3656 byte_count = mb->un.varDmp.word_cnt; in lpfc_create_static_vport()
3659 byte_count); in lpfc_create_static_vport()
3661 offset += byte_count; in lpfc_create_static_vport()
3664 } while (byte_count && in lpfc_create_static_vport()
/linux-4.4.14/drivers/net/wireless/iwlegacy/
Dcommands.h1232 __le16 byte_count; /* frame's byte-count */ member
1237 __le16 byte_count; member
D4965-mac.c653 len = le16_to_cpu(phy_res->byte_count); in il4965_hdl_rx()
666 len = le16_to_cpu(amsdu->byte_count); in il4965_hdl_rx()
/linux-4.4.14/drivers/scsi/bnx2i/
Dbnx2i_iscsi.c148 int byte_count = 0; in bnx2i_map_scsi_sg() local
169 byte_count += sg_len; in bnx2i_map_scsi_sg()
176 BUG_ON(byte_count != scsi_bufflen(sc)); in bnx2i_map_scsi_sg()
/linux-4.4.14/drivers/crypto/marvell/
Dhash.c873 &out_state->byte_count, out_state->block); in mv_cesa_md5_export()
880 return mv_cesa_ahash_import(req, in_state->hash, in_state->byte_count, in mv_cesa_md5_import()
/linux-4.4.14/drivers/dma/ppc4xx/
Dadma.c658 u32 byte_count) in ppc440spe_desc_set_byte_count() argument
667 dma_hw_desc->cnt = cpu_to_le32(byte_count); in ppc440spe_desc_set_byte_count()
671 xor_hw_desc->cbbc = byte_count; in ppc440spe_desc_set_byte_count()
679 static inline void ppc440spe_desc_set_rxor_block_size(u32 byte_count) in ppc440spe_desc_set_rxor_block_size() argument
685 dcr_write(ppc440spe_mq_dcr_host, DCRN_MQ0_CF2H, byte_count); in ppc440spe_desc_set_rxor_block_size()
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/
Dcommands.h1120 __le16 byte_count; /* frame's byte-count */ member
1125 __le16 byte_count; member
Drx.c890 len = le16_to_cpu(amsdu->byte_count); in iwlagn_rx_reply_rx()
/linux-4.4.14/drivers/net/ethernet/intel/
De100.c456 /*0*/ u8 X(byte_count:6, pad0:2);
1107 config->byte_count = 0x16; /* bytes in this struct */ in e100_configure()
1164 config->byte_count = 0x20; /* extended bytes */ in e100_configure()
/linux-4.4.14/drivers/net/hyperv/
Dnetvsc.c1055 vmxferpage_packet->ranges[i].byte_count; in netvsc_receive()
/linux-4.4.14/drivers/net/ethernet/emulex/benet/
Dbe_cmds.h1538 u32 byte_count; member
Dbe_cmds.c2713 req->byte_count = cpu_to_le32(byte_cnt); in be_cmd_ddr_dma_test()
/linux-4.4.14/drivers/net/ethernet/marvell/
Dmvpp2.c938 u16 byte_count; member