/linux/drivers/gpu/drm/ |
A D | drm_bufs.c | 812 buf->idx = dma->buf_count + entry->buf_count; in drm_legacy_addbufs_agp() 839 entry->buf_count++; in drm_legacy_addbufs_agp() 846 (dma->buf_count + entry->buf_count) * in drm_legacy_addbufs_agp() 861 dma->buf_count += entry->buf_count; in drm_legacy_addbufs_agp() 1028 buf->idx = dma->buf_count + entry->buf_count; in drm_legacy_addbufs_pci() 1061 (dma->buf_count + entry->buf_count) * in drm_legacy_addbufs_pci() 1085 dma->buf_count += entry->buf_count; in drm_legacy_addbufs_pci() 1190 buf->idx = dma->buf_count + entry->buf_count; in drm_legacy_addbufs_sg() 1218 entry->buf_count++; in drm_legacy_addbufs_sg() 1225 (dma->buf_count + entry->buf_count) * in drm_legacy_addbufs_sg() [all …]
|
A D | drm_dma.c | 100 dma->bufs[i].buf_count, in drm_legacy_dma_takedown() 114 if (dma->bufs[i].buf_count) { in drm_legacy_dma_takedown() 115 for (j = 0; j < dma->bufs[i].buf_count; j++) { in drm_legacy_dma_takedown() 163 for (i = 0; i < dma->buf_count; i++) { in drm_legacy_reclaim_buffers()
|
/linux/arch/arm64/crypto/ |
A D | ghash-ce-glue.c | 275 int *buf_count, struct gcm_aes_ctx *ctx) in gcm_update_mac() argument 277 if (*buf_count > 0) { in gcm_update_mac() 280 memcpy(&buf[*buf_count], src, buf_added); in gcm_update_mac() 282 *buf_count += buf_added; in gcm_update_mac() 291 *buf_count ? buf : NULL, in gcm_update_mac() 296 *buf_count = 0; in gcm_update_mac() 301 *buf_count = count; in gcm_update_mac() 312 int buf_count = 0; in gcm_calculate_auth_mac() local 326 gcm_update_mac(dg, p, n, buf, &buf_count, ctx); in gcm_calculate_auth_mac() 334 if (buf_count) { in gcm_calculate_auth_mac() [all …]
|
/linux/drivers/crypto/ccp/ |
A D | ccp-crypto-sha.c | 43 rctx->buf_count = rctx->hash_rem; in ccp_sha_complete() 45 rctx->buf_count = 0; in ccp_sha_complete() 72 len = (u64)rctx->buf_count + (u64)nbytes; in ccp_do_sha_update() 77 rctx->buf_count += nbytes; in ccp_do_sha_update() 98 if (rctx->buf_count && nbytes) { in ccp_do_sha_update() 109 sg_init_one(&rctx->buf_sg, rctx->buf, rctx->buf_count); in ccp_do_sha_update() 123 } else if (rctx->buf_count) { in ccp_do_sha_update() 124 sg_init_one(&rctx->buf_sg, rctx->buf, rctx->buf_count); in ccp_do_sha_update() 200 rctx->buf_count = block_size; in ccp_sha_init() 244 state.buf_count = rctx->buf_count; in ccp_sha_export() [all …]
|
A D | ccp-crypto-aes-cmac.c | 40 rctx->buf_count = rctx->hash_rem; in ccp_aes_cmac_complete() 42 rctx->buf_count = 0; in ccp_aes_cmac_complete() 75 len = (u64)rctx->buf_count + (u64)nbytes; in ccp_do_cmac_update() 78 scatterwalk_map_and_copy(rctx->buf + rctx->buf_count, req->src, in ccp_do_cmac_update() 80 rctx->buf_count += nbytes; in ccp_do_cmac_update() 115 if (rctx->buf_count) { in ccp_do_cmac_update() 116 sg_init_one(&rctx->buf_sg, rctx->buf, rctx->buf_count); in ccp_do_cmac_update() 230 state.buf_count = rctx->buf_count; in ccp_aes_cmac_export() 250 rctx->buf_count = state.buf_count; in ccp_aes_cmac_import()
|
A D | ccp-crypto.h | 145 unsigned int buf_count; member 160 unsigned int buf_count; member 219 unsigned int buf_count; member 235 unsigned int buf_count; member
|
/linux/drivers/net/ethernet/sfc/ |
A D | siena_sriov.c | 504 return ((buf_count & (buf_count - 1)) || buf_count > max_buf_count); in bad_buf_count() 534 unsigned buf_count = req->u.init_evq.buf_count; in efx_vfdi_init_evq() local 544 vf->pci_name, vf_evq, buf_count); in efx_vfdi_init_evq() 557 FRF_AZ_EVQ_SIZE, __ffs(buf_count), in efx_vfdi_init_evq() 563 buf_count * sizeof(u64)); in efx_vfdi_init_evq() 564 vf->evq0_count = buf_count; in efx_vfdi_init_evq() 576 unsigned buf_count = req->u.init_rxq.buf_count; in efx_vfdi_init_rxq() local 588 vf_evq, buf_count); in efx_vfdi_init_rxq() 600 FRF_AZ_RX_DESCQ_SIZE, __ffs(buf_count), in efx_vfdi_init_rxq() 617 unsigned buf_count = req->u.init_txq.buf_count; in efx_vfdi_init_txq() local [all …]
|
A D | vfdi.h | 170 u32 buf_count; member 175 u32 buf_count; member 185 u32 buf_count; member
|
/linux/drivers/media/platform/s5p-mfc/ |
A D | s5p_mfc_dec.c | 901 unsigned int *buf_count, in s5p_mfc_queue_setup() argument 914 if (*buf_count < 1) in s5p_mfc_queue_setup() 915 *buf_count = 1; in s5p_mfc_queue_setup() 916 if (*buf_count > MFC_MAX_BUFFERS) in s5p_mfc_queue_setup() 917 *buf_count = MFC_MAX_BUFFERS; in s5p_mfc_queue_setup() 925 if (*buf_count < ctx->pb_count) in s5p_mfc_queue_setup() 926 *buf_count = ctx->pb_count; in s5p_mfc_queue_setup() 928 *buf_count = ctx->pb_count + MFC_MAX_EXTRA_DPB; in s5p_mfc_queue_setup() 929 if (*buf_count > MFC_MAX_BUFFERS) in s5p_mfc_queue_setup() 930 *buf_count = MFC_MAX_BUFFERS; in s5p_mfc_queue_setup() [all …]
|
A D | s5p_mfc_enc.c | 2375 unsigned int *buf_count, unsigned int *plane_count, in s5p_mfc_queue_setup() argument 2391 if (*buf_count < 1) in s5p_mfc_queue_setup() 2392 *buf_count = 1; in s5p_mfc_queue_setup() 2393 if (*buf_count > MFC_MAX_BUFFERS) in s5p_mfc_queue_setup() 2394 *buf_count = MFC_MAX_BUFFERS; in s5p_mfc_queue_setup() 2403 if (*buf_count < 1) in s5p_mfc_queue_setup() 2404 *buf_count = 1; in s5p_mfc_queue_setup() 2405 if (*buf_count > MFC_MAX_BUFFERS) in s5p_mfc_queue_setup() 2406 *buf_count = MFC_MAX_BUFFERS; in s5p_mfc_queue_setup()
|
/linux/drivers/media/platform/exynos4-is/ |
A D | fimc-isp-video.c | 99 video->buf_count, video->format->memplanes, in isp_video_capture_start_streaming() 148 isp->video_capture.buf_count = 0; in isp_video_capture_stop_streaming() 177 for (i = 0; i < video->buf_count; i++) in isp_video_capture_buffer_prepare() 203 ivb->index = video->buf_count; in isp_video_capture_buffer_queue() 219 if (++video->buf_count < video->reqbufs_count) in isp_video_capture_buffer_queue() 222 video->buf_mask = (1UL << video->buf_count) - 1; in isp_video_capture_buffer_queue() 244 buf_index = (is->i2h_cmd.args[1] - 1) % video->buf_count; in fimc_isp_video_irq_handler()
|
A D | fimc-isp.h | 136 unsigned int buf_count; member
|
/linux/drivers/gpu/drm/r128/ |
A D | r128_cce.c | 787 for (i = 0; i < dma->buf_count; i++) { 827 for (i = 0; i < dma->buf_count; i++) { in r128_freelist_get() 837 for (i = 0; i < dma->buf_count; i++) { in r128_freelist_get() 860 for (i = 0; i < dma->buf_count; i++) { in r128_freelist_reset() 932 if (d->request_count < 0 || d->request_count > dma->buf_count) { in r128_cce_buffers() 934 task_pid_nr(current), d->request_count, dma->buf_count); in r128_cce_buffers()
|
A D | r128_state.c | 1329 if (vertex->idx < 0 || vertex->idx >= dma->buf_count) { in r128_cce_vertex() 1331 vertex->idx, dma->buf_count - 1); in r128_cce_vertex() 1382 if (elts->idx < 0 || elts->idx >= dma->buf_count) { in r128_cce_indices() 1384 elts->idx, dma->buf_count - 1); in r128_cce_indices() 1444 if (blit->idx < 0 || blit->idx >= dma->buf_count) { in r128_cce_blit() 1446 blit->idx, dma->buf_count - 1); in r128_cce_blit() 1531 if (indirect->idx < 0 || indirect->idx >= dma->buf_count) { in r128_cce_indirect() 1533 indirect->idx, dma->buf_count - 1); in r128_cce_indirect()
|
/linux/drivers/gpu/drm/i810/ |
A D | i810_dma.c | 61 for (i = 0; i < dma->buf_count; i++) { in i810_freelist_get() 228 for (i = 0; i < dma->buf_count; i++) { in i810_dma_cleanup() 291 if (dma->buf_count > 1019) { in i810_freelist_init() 296 for (i = 0; i < dma->buf_count; i++) { in i810_freelist_init() 870 for (i = 0; i < dma->buf_count; i++) { in i810_flush_queue() 902 for (i = 0; i < dma->buf_count; i++) { in i810_driver_reclaim_buffers() 942 if (vertex->idx < 0 || vertex->idx >= dma->buf_count) in i810_dma_vertex() 1102 if (mc->idx >= dma->buf_count || mc->idx < 0) in i810_dma_mc()
|
/linux/include/drm/ |
A D | drm_legacy.h | 95 int buf_count; /**< number of buffers */ member 111 int buf_count; /**< total number of buffers */ member
|
/linux/drivers/crypto/marvell/octeontx2/ |
A D | otx2_cptvf_reqmgr.c | 89 int buf_count, u8 *buffer) in setup_sgio_components() argument 100 for (i = 0; i < buf_count; i++) { in setup_sgio_components() 112 components = buf_count / 4; in setup_sgio_components() 125 components = buf_count % 4; in setup_sgio_components()
|
/linux/drivers/crypto/marvell/octeontx/ |
A D | otx_cptvf_reqmgr.c | 98 int buf_count, u8 *buffer) in setup_sgio_components() argument 109 for (i = 0; i < buf_count; i++) { in setup_sgio_components() 124 components = buf_count / 4; in setup_sgio_components() 137 components = buf_count % 4; in setup_sgio_components()
|
/linux/drivers/media/platform/qcom/venus/ |
A D | helpers.c | 1201 struct hfi_buffer_count_actual buf_count; in venus_helper_set_num_bufs() local 1204 buf_count.type = HFI_BUFFER_INPUT; in venus_helper_set_num_bufs() 1205 buf_count.count_actual = input_bufs; in venus_helper_set_num_bufs() 1207 ret = hfi_session_set_property(inst, ptype, &buf_count); in venus_helper_set_num_bufs() 1211 buf_count.type = HFI_BUFFER_OUTPUT; in venus_helper_set_num_bufs() 1212 buf_count.count_actual = output_bufs; in venus_helper_set_num_bufs() 1214 ret = hfi_session_set_property(inst, ptype, &buf_count); in venus_helper_set_num_bufs() 1219 buf_count.type = HFI_BUFFER_OUTPUT2; in venus_helper_set_num_bufs() 1220 buf_count.count_actual = output2_bufs; in venus_helper_set_num_bufs() 1222 ret = hfi_session_set_property(inst, ptype, &buf_count); in venus_helper_set_num_bufs()
|
/linux/drivers/crypto/cavium/cpt/ |
A D | cptvf_reqmanager.c | 45 int buf_count, u8 *buffer) in setup_sgio_components() argument 57 for (i = 0; i < buf_count; i++) { in setup_sgio_components() 73 components = buf_count / 4; in setup_sgio_components() 87 components = buf_count % 4; in setup_sgio_components()
|
/linux/drivers/usb/host/ |
A 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() 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() 2262 isp1362_hcd->intl_queue.buf_count = ISP1362_INTL_BUFFERS; in isp1362_mem_config() [all …]
|
/linux/drivers/gpu/drm/mga/ |
A 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++) { 1130 if (d->request_count < 0 || d->request_count > dma->buf_count) { in mga_dma_buffers() 1133 dma->buf_count); in mga_dma_buffers()
|
/linux/drivers/gpu/drm/savage/ |
A D | savage_bci.c | 222 DRM_DEBUG("count=%d\n", dma->buf_count); in savage_freelist_init() 232 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 task_pid_nr(current), d->request_count, dma->buf_count); in savage_bci_buffers() 1057 for (i = 0; i < dma->buf_count; i++) { in savage_reclaim_buffers()
|
/linux/drivers/media/rc/ |
A D | fintek-cir.h | 59 unsigned int buf_count; member
|
/linux/drivers/net/ethernet/pasemi/ |
A D | pasemi_mac.c | 819 unsigned int start, descr_count, buf_count, batch_limit; in pasemi_mac_clean_tx() local 842 buf_count = 0; in pasemi_mac_clean_tx() 847 i += buf_count) { in pasemi_mac_clean_tx() 859 buf_count = 2; in pasemi_mac_clean_tx() 870 buf_count = 2 + nr_frags; in pasemi_mac_clean_tx() 874 if (buf_count & 1) in pasemi_mac_clean_tx() 875 buf_count++; in pasemi_mac_clean_tx()
|