/Linux-v4.19/drivers/gpu/drm/ |
D | drm_bufs.c | 656 if (entry->buf_count) { in drm_cleanup_buf_error() 657 for (i = 0; i < entry->buf_count; i++) { in drm_cleanup_buf_error() 662 entry->buf_count = 0; in drm_cleanup_buf_error() 746 if (entry->buf_count) { in drm_legacy_addbufs_agp() 770 while (entry->buf_count < count) { in drm_legacy_addbufs_agp() 771 buf = &entry->buflist[entry->buf_count]; in drm_legacy_addbufs_agp() 772 buf->idx = dma->buf_count + entry->buf_count; in drm_legacy_addbufs_agp() 789 entry->buf_count = count; in drm_legacy_addbufs_agp() 796 DRM_DEBUG("buffer %d @ %p\n", entry->buf_count, buf->address); in drm_legacy_addbufs_agp() 799 entry->buf_count++; in drm_legacy_addbufs_agp() [all …]
|
D | drm_dma.c | 95 dma->bufs[i].buf_count, in drm_legacy_dma_takedown() 104 if (dma->bufs[i].buf_count) { in drm_legacy_dma_takedown() 105 for (j = 0; j < dma->bufs[i].buf_count; j++) { in drm_legacy_dma_takedown() 152 for (i = 0; i < dma->buf_count; i++) { in drm_legacy_reclaim_buffers()
|
/Linux-v4.19/drivers/crypto/ccp/ |
D | ccp-crypto-sha.c | 44 rctx->buf_count = rctx->hash_rem; in ccp_sha_complete() 46 rctx->buf_count = 0; in ccp_sha_complete() 73 len = (u64)rctx->buf_count + (u64)nbytes; in ccp_do_sha_update() 76 scatterwalk_map_and_copy(rctx->buf + rctx->buf_count, req->src, in ccp_do_sha_update() 78 rctx->buf_count += nbytes; in ccp_do_sha_update() 99 if (rctx->buf_count && nbytes) { in ccp_do_sha_update() 110 sg_init_one(&rctx->buf_sg, rctx->buf, rctx->buf_count); in ccp_do_sha_update() 124 } else if (rctx->buf_count) { in ccp_do_sha_update() 125 sg_init_one(&rctx->buf_sg, rctx->buf, rctx->buf_count); in ccp_do_sha_update() 201 rctx->buf_count = block_size; in ccp_sha_init() [all …]
|
D | ccp-crypto-aes-cmac.c | 43 rctx->buf_count = rctx->hash_rem; in ccp_aes_cmac_complete() 45 rctx->buf_count = 0; in ccp_aes_cmac_complete() 78 len = (u64)rctx->buf_count + (u64)nbytes; in ccp_do_cmac_update() 81 scatterwalk_map_and_copy(rctx->buf + rctx->buf_count, req->src, in ccp_do_cmac_update() 83 rctx->buf_count += nbytes; in ccp_do_cmac_update() 118 if (rctx->buf_count) { in ccp_do_cmac_update() 119 sg_init_one(&rctx->buf_sg, rctx->buf, rctx->buf_count); in ccp_do_cmac_update() 233 state.buf_count = rctx->buf_count; in ccp_aes_cmac_export() 253 rctx->buf_count = state.buf_count; in ccp_aes_cmac_import()
|
D | ccp-crypto.h | 144 unsigned int buf_count; member 159 unsigned int buf_count; member 218 unsigned int buf_count; member 234 unsigned int buf_count; member
|
/Linux-v4.19/arch/arm64/crypto/ |
D | ghash-ce-glue.c | 288 int *buf_count, struct gcm_aes_ctx *ctx) in gcm_update_mac() argument 290 if (*buf_count > 0) { in gcm_update_mac() 291 int buf_added = min(count, GHASH_BLOCK_SIZE - *buf_count); in gcm_update_mac() 293 memcpy(&buf[*buf_count], src, buf_added); in gcm_update_mac() 295 *buf_count += buf_added; in gcm_update_mac() 300 if (count >= GHASH_BLOCK_SIZE || *buf_count == GHASH_BLOCK_SIZE) { in gcm_update_mac() 304 *buf_count ? buf : NULL); in gcm_update_mac() 308 *buf_count = 0; in gcm_update_mac() 313 *buf_count = count; in gcm_update_mac() 324 int buf_count = 0; in gcm_calculate_auth_mac() local [all …]
|
/Linux-v4.19/drivers/net/ethernet/sfc/ |
D | vfdi.h | 173 u32 buf_count; member 178 u32 buf_count; member 188 u32 buf_count; member
|
D | siena_sriov.c | 501 static bool bad_buf_count(unsigned buf_count, unsigned max_entry_count) in bad_buf_count() argument 506 return ((buf_count & (buf_count - 1)) || buf_count > max_buf_count); in bad_buf_count() 536 unsigned buf_count = req->u.init_evq.buf_count; in efx_vfdi_init_evq() local 542 bad_buf_count(buf_count, EFX_MAX_VF_EVQ_SIZE)) { in efx_vfdi_init_evq() 546 vf->pci_name, vf_evq, buf_count); in efx_vfdi_init_evq() 550 efx_siena_sriov_bufs(efx, buftbl, req->u.init_evq.addr, buf_count); in efx_vfdi_init_evq() 559 FRF_AZ_EVQ_SIZE, __ffs(buf_count), in efx_vfdi_init_evq() 565 buf_count * sizeof(u64)); in efx_vfdi_init_evq() 566 vf->evq0_count = buf_count; in efx_vfdi_init_evq() 578 unsigned buf_count = req->u.init_rxq.buf_count; in efx_vfdi_init_rxq() local [all …]
|
/Linux-v4.19/drivers/media/platform/s5p-mfc/ |
D | s5p_mfc_dec.c | 897 unsigned int *buf_count, in s5p_mfc_queue_setup() argument 910 if (*buf_count < 1) in s5p_mfc_queue_setup() 911 *buf_count = 1; in s5p_mfc_queue_setup() 912 if (*buf_count > MFC_MAX_BUFFERS) in s5p_mfc_queue_setup() 913 *buf_count = MFC_MAX_BUFFERS; in s5p_mfc_queue_setup() 921 if (*buf_count < ctx->pb_count) in s5p_mfc_queue_setup() 922 *buf_count = ctx->pb_count; in s5p_mfc_queue_setup() 923 if (*buf_count > ctx->pb_count + MFC_MAX_EXTRA_DPB) in s5p_mfc_queue_setup() 924 *buf_count = ctx->pb_count + MFC_MAX_EXTRA_DPB; in s5p_mfc_queue_setup() 925 if (*buf_count > MFC_MAX_BUFFERS) in s5p_mfc_queue_setup() [all …]
|
D | s5p_mfc_enc.c | 2391 unsigned int *buf_count, unsigned int *plane_count, in s5p_mfc_queue_setup() argument 2407 if (*buf_count < 1) in s5p_mfc_queue_setup() 2408 *buf_count = 1; in s5p_mfc_queue_setup() 2409 if (*buf_count > MFC_MAX_BUFFERS) in s5p_mfc_queue_setup() 2410 *buf_count = MFC_MAX_BUFFERS; in s5p_mfc_queue_setup() 2419 if (*buf_count < 1) in s5p_mfc_queue_setup() 2420 *buf_count = 1; in s5p_mfc_queue_setup() 2421 if (*buf_count > MFC_MAX_BUFFERS) in s5p_mfc_queue_setup() 2422 *buf_count = MFC_MAX_BUFFERS; in s5p_mfc_queue_setup()
|
/Linux-v4.19/drivers/media/platform/exynos4-is/ |
D | fimc-isp-video.c | 102 video->buf_count, video->format->memplanes, in isp_video_capture_start_streaming() 151 isp->video_capture.buf_count = 0; in isp_video_capture_stop_streaming() 180 for (i = 0; i < video->buf_count; i++) in isp_video_capture_buffer_prepare() 206 ivb->index = video->buf_count; in isp_video_capture_buffer_queue() 222 if (++video->buf_count < video->reqbufs_count) in isp_video_capture_buffer_queue() 225 video->buf_mask = (1UL << video->buf_count) - 1; in isp_video_capture_buffer_queue() 247 buf_index = (is->i2h_cmd.args[1] - 1) % video->buf_count; in fimc_isp_video_irq_handler()
|
D | fimc-isp.h | 135 unsigned int buf_count; member
|
/Linux-v4.19/include/drm/ |
D | drm_legacy.h | 88 int buf_count; /**< number of buffers */ member 104 int buf_count; /**< total number of buffers */ member
|
/Linux-v4.19/drivers/media/platform/qcom/venus/ |
D | helpers.c | 726 struct hfi_buffer_count_actual buf_count; in venus_helper_set_num_bufs() local 729 buf_count.type = HFI_BUFFER_INPUT; in venus_helper_set_num_bufs() 730 buf_count.count_actual = input_bufs; in venus_helper_set_num_bufs() 732 ret = hfi_session_set_property(inst, ptype, &buf_count); in venus_helper_set_num_bufs() 736 buf_count.type = HFI_BUFFER_OUTPUT; in venus_helper_set_num_bufs() 737 buf_count.count_actual = output_bufs; in venus_helper_set_num_bufs() 739 ret = hfi_session_set_property(inst, ptype, &buf_count); in venus_helper_set_num_bufs() 744 buf_count.type = HFI_BUFFER_OUTPUT2; in venus_helper_set_num_bufs() 745 buf_count.count_actual = output2_bufs; in venus_helper_set_num_bufs() 747 ret = hfi_session_set_property(inst, ptype, &buf_count); in venus_helper_set_num_bufs()
|
/Linux-v4.19/drivers/gpu/drm/r128/ |
D | r128_cce.c | 779 for (i = 0; i < dma->buf_count; i++) { 819 for (i = 0; i < dma->buf_count; i++) { in r128_freelist_get() 829 for (i = 0; i < dma->buf_count; i++) { in r128_freelist_get() 852 for (i = 0; i < dma->buf_count; i++) { in r128_freelist_reset() 924 if (d->request_count < 0 || d->request_count > dma->buf_count) { in r128_cce_buffers() 926 DRM_CURRENTPID, d->request_count, dma->buf_count); in r128_cce_buffers()
|
D | r128_state.c | 1322 if (vertex->idx < 0 || vertex->idx >= dma->buf_count) { in r128_cce_vertex() 1324 vertex->idx, dma->buf_count - 1); in r128_cce_vertex() 1375 if (elts->idx < 0 || elts->idx >= dma->buf_count) { in r128_cce_indices() 1377 elts->idx, dma->buf_count - 1); in r128_cce_indices() 1437 if (blit->idx < 0 || blit->idx >= dma->buf_count) { in r128_cce_blit() 1439 blit->idx, dma->buf_count - 1); in r128_cce_blit() 1524 if (indirect->idx < 0 || indirect->idx >= dma->buf_count) { in r128_cce_indirect() 1526 indirect->idx, dma->buf_count - 1); in r128_cce_indirect()
|
/Linux-v4.19/drivers/gpu/drm/i810/ |
D | i810_dma.c | 56 for (i = 0; i < dma->buf_count; i++) { in i810_freelist_get() 223 for (i = 0; i < dma->buf_count; i++) { in i810_dma_cleanup() 286 if (dma->buf_count > 1019) { in i810_freelist_init() 291 for (i = 0; i < dma->buf_count; i++) { in i810_freelist_init() 865 for (i = 0; i < dma->buf_count; i++) { in i810_flush_queue() 897 for (i = 0; i < dma->buf_count; i++) { in i810_driver_reclaim_buffers() 937 if (vertex->idx < 0 || vertex->idx >= dma->buf_count) in i810_dma_vertex() 1097 if (mc->idx >= dma->buf_count || mc->idx < 0) in i810_dma_mc()
|
/Linux-v4.19/drivers/crypto/cavium/cpt/ |
D | cptvf_reqmanager.c | 47 int buf_count, u8 *buffer) in setup_sgio_components() argument 59 for (i = 0; i < buf_count; i++) { in setup_sgio_components() 75 components = buf_count / 4; in setup_sgio_components() 89 components = buf_count % 4; in setup_sgio_components()
|
/Linux-v4.19/drivers/media/rc/ |
D | fintek-cir.h | 68 unsigned int buf_count; member
|
/Linux-v4.19/drivers/gpu/drm/mga/ |
D | mga_dma.c | 251 DRM_DEBUG("count=%d\n", dma->buf_count); in mga_freelist_init() 259 for (i = 0; i < dma->buf_count; i++) { in mga_freelist_init() 314 for (i = 0; i < dma->buf_count; i++) { 1129 if (d->request_count < 0 || d->request_count > dma->buf_count) { in mga_dma_buffers() 1131 DRM_CURRENTPID, d->request_count, dma->buf_count); in mga_dma_buffers()
|
/Linux-v4.19/drivers/usb/host/ |
D | isp1362-hcd.c | 203 found = bitmap_find_next_zero_area(&epq->buf_map, epq->buf_count, 0, in claim_ptd_buffers() 205 if (found >= epq->buf_count) in claim_ptd_buffers() 215 BUG_ON(epq->buf_avail > epq->buf_count); in claim_ptd_buffers() 220 epq->buf_avail, epq->buf_count, num_ptds, epq->buf_map, epq->skip_map); in claim_ptd_buffers() 229 if (last > epq->buf_count) in release_ptd_buffers() 232 ep->ptd_offset, ep->num_ptds, epq->buf_count, epq->buf_avail, in release_ptd_buffers() 234 BUG_ON(last > epq->buf_count); in release_ptd_buffers() 241 BUG_ON(epq->buf_avail > epq->buf_count); in release_ptd_buffers() 242 BUG_ON(epq->ptd_count > epq->buf_count); in release_ptd_buffers() 246 ep->ptd_offset, ep->num_ptds, epq->buf_avail, epq->buf_count); in release_ptd_buffers() [all …]
|
/Linux-v4.19/drivers/gpu/drm/savage/ |
D | savage_bci.c | 213 DRM_DEBUG("count=%d\n", dma->buf_count); in savage_freelist_init() 223 for (i = 0; i < dma->buf_count; i++) { in savage_freelist_init() 1023 if (d->request_count < 0 || d->request_count > dma->buf_count) { in savage_bci_buffers() 1025 DRM_CURRENTPID, d->request_count, dma->buf_count); in savage_bci_buffers() 1057 for (i = 0; i < dma->buf_count; i++) { in savage_reclaim_buffers()
|
/Linux-v4.19/drivers/mtd/nand/raw/ |
D | qcom_nandc.c | 401 int buf_count; member 1205 nandc->buf_count = 512; in nandc_param() 1206 memset(nandc->data_buffer, 0xff, nandc->buf_count); in nandc_param() 1211 nandc->buf_count, 0); in nandc_param() 1377 nandc->buf_count = 0; in pre_command() 1427 nandc->buf_count); in post_command() 1463 nandc->buf_count = 4; in qcom_nandc_command() 2302 if (nandc->buf_start < nandc->buf_count) in qcom_nandc_read_byte() 2312 int real_len = min_t(size_t, len, nandc->buf_count - nandc->buf_start); in qcom_nandc_read_buf() 2323 int real_len = min_t(size_t, len, nandc->buf_count - nandc->buf_start); in qcom_nandc_write_buf()
|
/Linux-v4.19/drivers/net/ethernet/pasemi/ |
D | pasemi_mac.c | 830 unsigned int start, descr_count, buf_count, batch_limit; in pasemi_mac_clean_tx() local 853 buf_count = 0; in pasemi_mac_clean_tx() 858 i += buf_count) { in pasemi_mac_clean_tx() 870 buf_count = 2; in pasemi_mac_clean_tx() 881 buf_count = 2 + nr_frags; in pasemi_mac_clean_tx() 885 if (buf_count & 1) in pasemi_mac_clean_tx() 886 buf_count++; in pasemi_mac_clean_tx()
|
/Linux-v4.19/drivers/staging/fsl-dpaa2/ethernet/ |
D | dpaa2-eth.c | 110 ch->buf_count--; in build_linear_skb() 198 ch->buf_count -= i + 2; in build_frag_skb() 824 priv->channel[j]->buf_count += new_count; in seed_pool() 865 priv->channel[i]->buf_count = 0; in drain_pool() 877 if (likely(ch->buf_count >= DPAA2_ETH_REFILL_THRESH)) in refill_pool() 886 ch->buf_count += new_count; in refill_pool() 887 } while (ch->buf_count < DPAA2_ETH_NUM_BUFS); in refill_pool() 889 if (unlikely(ch->buf_count < DPAA2_ETH_NUM_BUFS)) in refill_pool()
|