/drivers/gpu/drm/radeon/ |
D | kv_smc.c | 119 const u8 *src, u32 byte_count, u32 limit) in kv_copy_bytes_to_smc() argument 124 if ((smc_start_address + byte_count) > limit) in kv_copy_bytes_to_smc() 147 } else if (byte_count > 0) { in kv_copy_bytes_to_smc() 149 byte_count--; in kv_copy_bytes_to_smc() 169 while (byte_count >= 4) { in kv_copy_bytes_to_smc() 180 byte_count -= 4; in kv_copy_bytes_to_smc() 185 if (byte_count > 0) { in kv_copy_bytes_to_smc() 194 extra_shift = 8 * (4 - byte_count); in kv_copy_bytes_to_smc() 196 while (byte_count > 0) { in kv_copy_bytes_to_smc() 199 byte_count--; in kv_copy_bytes_to_smc()
|
D | rv770_smc.c | 285 u16 byte_count, u16 limit) in rv770_copy_bytes_to_smc() argument 294 if ((smc_start_address + byte_count) > limit) in rv770_copy_bytes_to_smc() 300 while (byte_count >= 4) { in rv770_copy_bytes_to_smc() 311 byte_count -= 4; in rv770_copy_bytes_to_smc() 316 if (byte_count > 0) { in rv770_copy_bytes_to_smc() 325 extra_shift = 8 * (4 - byte_count); in rv770_copy_bytes_to_smc() 327 while (byte_count > 0) { in rv770_copy_bytes_to_smc() 330 byte_count--; in rv770_copy_bytes_to_smc() 352 u32 byte_count) in rv770_program_interrupt_vectors() argument 356 if (byte_count % 4) in rv770_program_interrupt_vectors() [all …]
|
D | ci_smc.c | 49 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()
|
D | si_smc.c | 49 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()
|
/drivers/gpu/drm/amd/pm/legacy-dpm/ |
D | kv_smc.c | 123 const u8 *src, u32 byte_count, u32 limit) in amdgpu_kv_copy_bytes_to_smc() argument 128 if ((smc_start_address + byte_count) > limit) in amdgpu_kv_copy_bytes_to_smc() 151 } else if (byte_count > 0) { in amdgpu_kv_copy_bytes_to_smc() 153 byte_count--; in amdgpu_kv_copy_bytes_to_smc() 173 while (byte_count >= 4) { in amdgpu_kv_copy_bytes_to_smc() 184 byte_count -= 4; in amdgpu_kv_copy_bytes_to_smc() 189 if (byte_count > 0) { in amdgpu_kv_copy_bytes_to_smc() 198 extra_shift = 8 * (4 - byte_count); in amdgpu_kv_copy_bytes_to_smc() 200 while (byte_count > 0) { in amdgpu_kv_copy_bytes_to_smc() 203 byte_count--; in amdgpu_kv_copy_bytes_to_smc()
|
D | si_smc.c | 49 const u8 *src, u32 byte_count, u32 limit) in amdgpu_si_copy_bytes_to_smc() argument 57 if ((smc_start_address + byte_count) > limit) in amdgpu_si_copy_bytes_to_smc() 63 while (byte_count >= 4) { in amdgpu_si_copy_bytes_to_smc() 74 byte_count -= 4; in amdgpu_si_copy_bytes_to_smc() 79 if (byte_count > 0) { in amdgpu_si_copy_bytes_to_smc() 87 extra_shift = 8 * (4 - byte_count); in amdgpu_si_copy_bytes_to_smc() 89 while (byte_count > 0) { in amdgpu_si_copy_bytes_to_smc() 92 byte_count--; in amdgpu_si_copy_bytes_to_smc()
|
/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
D | smu7_smumgr.c | 49 …t pp_hwmgr *hwmgr, uint32_t smc_start_address, uint32_t *dest, uint32_t byte_count, uint32_t limit) in smu7_copy_bytes_from_smc() argument 58 …PP_ASSERT_WITH_CODE((limit > (smc_start_address + byte_count)), "SMC address is beyond the SMC RAM… in smu7_copy_bytes_from_smc() 62 while (byte_count >= 4) { in smu7_copy_bytes_from_smc() 68 byte_count -= 4; in smu7_copy_bytes_from_smc() 72 if (byte_count) { in smu7_copy_bytes_from_smc() 77 for (i = 0; i < byte_count; i++) in smu7_copy_bytes_from_smc() 86 const uint8_t *src, uint32_t byte_count, uint32_t limit) in smu7_copy_bytes_to_smc() argument 95 …PP_ASSERT_WITH_CODE((limit > (smc_start_address + byte_count)), "SMC address is beyond the SMC RAM… in smu7_copy_bytes_to_smc() 99 while (byte_count >= 4) { in smu7_copy_bytes_to_smc() 111 byte_count -= 4; in smu7_copy_bytes_to_smc() [all …]
|
D | smu7_smumgr.h | 57 uint32_t *dest, uint32_t byte_count, uint32_t limit); 59 const uint8_t *src, uint32_t byte_count, uint32_t limit);
|
/drivers/crypto/allwinner/sun4i-ss/ |
D | sun4i-ss-hash.c | 68 octx->byte_count = op->byte_count + op->len; in sun4i_hash_export_md5() 72 if (op->byte_count) { in sun4i_hash_export_md5() 93 op->byte_count = ictx->byte_count & ~0x3F; in sun4i_hash_import_md5() 94 op->len = ictx->byte_count & 0x3F; in sun4i_hash_import_md5() 110 octx->count = op->byte_count + op->len; in sun4i_hash_export_sha1() 114 if (op->byte_count) { in sun4i_hash_export_sha1() 136 op->byte_count = ictx->count & ~0x3F; in sun4i_hash_import_sha1() 206 op->byte_count, areq->nbytes, op->mode, in sun4i_hash() 232 if (op->byte_count) { in sun4i_hash() 306 op->byte_count += op->len; in sun4i_hash() [all …]
|
/drivers/net/ipa/ |
D | ipa_gsi.c | 30 u32 byte_count) in ipa_gsi_channel_tx_queued() argument 37 netdev_sent_queue(endpoint->netdev, byte_count); in ipa_gsi_channel_tx_queued() 41 u32 byte_count) in ipa_gsi_channel_tx_completed() argument 48 netdev_completed_queue(endpoint->netdev, count, byte_count); in ipa_gsi_channel_tx_completed()
|
D | ipa_gsi.h | 45 u32 byte_count); 58 u32 byte_count);
|
/drivers/crypto/allwinner/sun8i-ce/ |
D | sun8i-ce-hash.c | 272 static u64 hash_pad(__le32 *buf, unsigned int bufsize, u64 padi, u64 byte_count, bool le, int bs) in hash_pad() argument 282 fill = 64 - (byte_count % 64); in hash_pad() 285 fill = 128 - (byte_count % 128); in hash_pad() 304 *lebits = cpu_to_le64(byte_count << 3); in hash_pad() 310 *bebits = cpu_to_be64(byte_count << 3); in hash_pad() 315 *bebits = cpu_to_be64(byte_count >> 61); in hash_pad() 318 *bebits = cpu_to_be64(byte_count << 3); in hash_pad() 344 u64 byte_count; in sun8i_ce_hash_run() local 425 byte_count = areq->nbytes; in sun8i_ce_hash_run() 430 j = hash_pad(bf, 2 * bs, j, byte_count, true, bs); in sun8i_ce_hash_run() [all …]
|
/drivers/crypto/qce/ |
D | sha.c | 18 __be32 byte_count[2]; member 60 rctx->byte_count[0] = cpu_to_be32(result->auth_byte_count[0]); in qce_ahash_done() 61 rctx->byte_count[1] = cpu_to_be32(result->auth_byte_count[1]); in qce_ahash_done() 155 export_state->byte_count[0] = rctx->byte_count[0]; in qce_ahash_export() 156 export_state->byte_count[1] = rctx->byte_count[1]; in qce_ahash_export() 175 rctx->byte_count[0] = import_state->byte_count[0]; in qce_ahash_import() 176 rctx->byte_count[1] = import_state->byte_count[1]; in qce_ahash_import()
|
/drivers/gpu/drm/ |
D | drm_bufs.c | 729 int byte_count; in drm_legacy_addbufs_agp() local 745 byte_count = 0; in drm_legacy_addbufs_agp() 813 buf->offset = (dma->byte_count + offset); in drm_legacy_addbufs_agp() 836 byte_count += PAGE_SIZE << page_order; in drm_legacy_addbufs_agp() 839 DRM_DEBUG("byte_count: %d\n", byte_count); in drm_legacy_addbufs_agp() 859 dma->page_count += byte_count >> PAGE_SHIFT; in drm_legacy_addbufs_agp() 860 dma->byte_count += byte_count; in drm_legacy_addbufs_agp() 893 int byte_count; in drm_legacy_addbufs_pci() local 979 byte_count = 0; in drm_legacy_addbufs_pci() 1028 buf->offset = (dma->byte_count + byte_count + offset); in drm_legacy_addbufs_pci() [all …]
|
/drivers/net/ethernet/sfc/ |
D | tc_counters.c | 387 u64 packet_count, byte_count; in efx_tc_rx_version_1() local 393 byte_count = le16_to_cpu(*(const __le16 *)(entry + 10)) | in efx_tc_rx_version_1() 396 packet_count, byte_count, mark); in efx_tc_rx_version_1() 467 u64 packet_count, byte_count; in efx_tc_rx_version_2() local 484 byte_count = efx_tc_read48((const __le16 *)byte_count_p); in efx_tc_rx_version_2() 492 if (packet_count || byte_count != 1) in efx_tc_rx_version_2() 495 packet_count, byte_count); in efx_tc_rx_version_2() 497 byte_count = 0; in efx_tc_rx_version_2() 501 byte_count, mark); in efx_tc_rx_version_2()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | en_tx.c | 318 be32_to_cpu(data->byte_count), in mlx4_en_free_tx_desc() 332 be32_to_cpu(data->byte_count), in mlx4_en_free_tx_desc() 701 inl->byte_count = cpu_to_be32(1 << 31 | skb->len); in build_inline_wqe() 703 inl->byte_count = cpu_to_be32(1 << 31 | MIN_PKT_LEN); in build_inline_wqe() 713 inl->byte_count = cpu_to_be32(1 << 31 | spc); in build_inline_wqe() 735 inl->byte_count = cpu_to_be32(1 << 31 | (skb->len - spc)); in build_inline_wqe() 821 u32 byte_count = 0; in mlx4_en_build_dma_wqe() local 827 byte_count = skb_frag_size(frag); in mlx4_en_build_dma_wqe() 829 0, byte_count, in mlx4_en_build_dma_wqe() 837 data->byte_count = cpu_to_be32(byte_count); in mlx4_en_build_dma_wqe() [all …]
|
/drivers/crypto/allwinner/sun8i-ss/ |
D | sun8i-ss-hash.c | 429 static u64 hash_pad(__le32 *buf, unsigned int bufsize, u64 padi, u64 byte_count, bool le, int bs) in hash_pad() argument 439 fill = 64 - (byte_count % 64); in hash_pad() 442 fill = 128 - (byte_count % 128); in hash_pad() 461 *lebits = cpu_to_le64(byte_count << 3); in hash_pad() 467 *bebits = cpu_to_be64(byte_count << 3); in hash_pad() 472 *bebits = cpu_to_be64(byte_count >> 61); in hash_pad() 475 *bebits = cpu_to_be64(byte_count << 3); in hash_pad() 503 u64 byte_count; in sun8i_ss_hash_run() local 586 byte_count = areq->nbytes; in sun8i_ss_hash_run() 607 byte_count = areq->nbytes + bs; in sun8i_ss_hash_run() [all …]
|
/drivers/infiniband/hw/mthca/ |
D | mthca_wqe.h | 102 __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()
|
/drivers/acpi/acpica/ |
D | psargs.c | 47 u32 byte_count; in acpi_ps_get_next_package_length() local 56 byte_count = (aml[0] >> 6); in acpi_ps_get_next_package_length() 57 parser_state->aml += ((acpi_size)byte_count + 1); in acpi_ps_get_next_package_length() 61 while (byte_count) { in acpi_ps_get_next_package_length() 69 package_length |= (aml[byte_count] << ((byte_count << 3) - 4)); in acpi_ps_get_next_package_length() 72 byte_count--; in acpi_ps_get_next_package_length()
|
/drivers/scsi/aacraid/ |
D | aachba.c | 3796 unsigned long byte_count = 0; in aac_build_sg() local 3815 byte_count += sg_dma_len(sg); in aac_build_sg() 3818 if (byte_count > scsi_bufflen(scsicmd)) { in aac_build_sg() 3820 (byte_count - scsi_bufflen(scsicmd)); in aac_build_sg() 3822 byte_count = scsi_bufflen(scsicmd); in aac_build_sg() 3825 if (scsicmd->underflow && (byte_count < scsicmd->underflow)) { in aac_build_sg() 3827 byte_count, scsicmd->underflow); in aac_build_sg() 3830 return byte_count; in aac_build_sg() 3836 unsigned long byte_count = 0; in aac_build_sg64() local 3858 byte_count += count; in aac_build_sg64() [all …]
|
D | commctrl.c | 497 u32 byte_count = 0; in aac_send_raw_srb() local 646 byte_count = 0; in aac_send_raw_srb() 698 byte_count += sg_count[i]; in aac_send_raw_srb() 704 hbacmd->data_length = cpu_to_le32(byte_count); in aac_send_raw_srb() 758 byte_count += sg_count[i]; in aac_send_raw_srb() 814 byte_count += sg_count[i]; in aac_send_raw_srb() 819 srbcmd->count = cpu_to_le32(byte_count); in aac_send_raw_srb() 870 byte_count += usg->sg[i].count; in aac_send_raw_srb() 910 byte_count += sg_count[i]; in aac_send_raw_srb() 914 srbcmd->count = cpu_to_le32(byte_count); in aac_send_raw_srb() [all …]
|
/drivers/net/wireless/ath/ath6kl/ |
D | bmi.c | 77 (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()
|
/drivers/gpu/drm/i915/gvt/ |
D | edid.c | 296 int byte_count = byte_left; in gmbus3_mmio_read() local 306 if (byte_count > 4) in gmbus3_mmio_read() 307 byte_count = 4; in gmbus3_mmio_read() 308 for (i = 0; i < byte_count; i++) { in gmbus3_mmio_read() 313 memcpy(&vgpu_vreg(vgpu, offset), ®_data, byte_count); in gmbus3_mmio_read()
|
/drivers/net/mctp/ |
D | mctp-i2c.c | 105 u8 byte_count; member 297 if (hdr->byte_count + offsetof(struct mctp_i2c_hdr, source_slave) != recvlen) { in mctp_i2c_recv() 460 if (skb->len != hdr->byte_count + 3) { in mctp_i2c_xmit() 463 hdr->byte_count + 3, skb->len); in mctp_i2c_xmit() 476 pecp = (void *)&hdr->source_slave + hdr->byte_count; in mctp_i2c_xmit() 477 *pecp = i2c_smbus_pec(0, (u8 *)hdr, hdr->byte_count + 3); in mctp_i2c_xmit() 480 msg.len = 2 + hdr->byte_count + 1; in mctp_i2c_xmit() 559 hdr->byte_count = len + 1; in mctp_i2c_header_create()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_sdma.h | 134 uint32_t byte_count, 150 uint32_t byte_count);
|