Home
last modified time | relevance | path

Searched refs:buf_count (Results 1 – 25 of 46) sorted by relevance

12

/linux-6.3-rc2/drivers/gpu/drm/
A Ddrm_bufs.c808 buf->idx = dma->buf_count + entry->buf_count; in drm_legacy_addbufs_agp()
835 entry->buf_count++; in drm_legacy_addbufs_agp()
842 (dma->buf_count + entry->buf_count) * in drm_legacy_addbufs_agp()
857 dma->buf_count += entry->buf_count; in drm_legacy_addbufs_agp()
1024 buf->idx = dma->buf_count + entry->buf_count; in drm_legacy_addbufs_pci()
1057 (dma->buf_count + entry->buf_count) * in drm_legacy_addbufs_pci()
1081 dma->buf_count += entry->buf_count; in drm_legacy_addbufs_pci()
1186 buf->idx = dma->buf_count + entry->buf_count; in drm_legacy_addbufs_sg()
1214 entry->buf_count++; in drm_legacy_addbufs_sg()
1221 (dma->buf_count + entry->buf_count) * in drm_legacy_addbufs_sg()
[all …]
A Ddrm_dma.c100 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-6.3-rc2/drivers/crypto/ccp/
A Dccp-crypto-sha.c43 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 Dccp-crypto-aes-cmac.c40 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 Dccp-crypto.h145 unsigned int buf_count; member
160 unsigned int buf_count; member
219 unsigned int buf_count; member
235 unsigned int buf_count; member
/linux-6.3-rc2/arch/arm64/crypto/
A Dghash-ce-glue.c270 int *buf_count, struct gcm_aes_ctx *ctx) in gcm_update_mac() argument
272 if (*buf_count > 0) { in gcm_update_mac()
275 memcpy(&buf[*buf_count], src, buf_added); in gcm_update_mac()
277 *buf_count += buf_added; in gcm_update_mac()
286 *buf_count ? buf : NULL, in gcm_update_mac()
291 *buf_count = 0; in gcm_update_mac()
296 *buf_count = count; in gcm_update_mac()
306 int buf_count = 0; in gcm_calculate_auth_mac() local
320 gcm_update_mac(dg, p, n, buf, &buf_count, ctx); in gcm_calculate_auth_mac()
328 if (buf_count) { in gcm_calculate_auth_mac()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/sfc/siena/
A Dvfdi.h170 u32 buf_count; member
175 u32 buf_count; member
185 u32 buf_count; member
A Dsiena_sriov.c505 return ((buf_count & (buf_count - 1)) || buf_count > max_buf_count); in bad_buf_count()
535 unsigned buf_count = req->u.init_evq.buf_count; in efx_vfdi_init_evq() local
545 vf->pci_name, vf_evq, buf_count); in efx_vfdi_init_evq()
558 FRF_AZ_EVQ_SIZE, __ffs(buf_count), in efx_vfdi_init_evq()
564 buf_count * sizeof(u64)); in efx_vfdi_init_evq()
565 vf->evq0_count = buf_count; in efx_vfdi_init_evq()
577 unsigned buf_count = req->u.init_rxq.buf_count; in efx_vfdi_init_rxq() local
589 vf_evq, buf_count); in efx_vfdi_init_rxq()
601 FRF_AZ_RX_DESCQ_SIZE, __ffs(buf_count), in efx_vfdi_init_rxq()
618 unsigned buf_count = req->u.init_txq.buf_count; in efx_vfdi_init_txq() local
[all …]
/linux-6.3-rc2/drivers/net/ethernet/sfc/
A Dvfdi.h170 u32 buf_count; member
175 u32 buf_count; member
185 u32 buf_count; member
/linux-6.3-rc2/arch/arm/crypto/
A Dghash-ce-glue.c422 int *buf_count, struct gcm_key *ctx) in gcm_update_mac() argument
424 if (*buf_count > 0) { in gcm_update_mac()
427 memcpy(&buf[*buf_count], src, buf_added); in gcm_update_mac()
429 *buf_count += buf_added; in gcm_update_mac()
438 *buf_count ? buf : NULL); in gcm_update_mac()
442 *buf_count = 0; in gcm_update_mac()
447 *buf_count = count; in gcm_update_mac()
457 int buf_count = 0; in gcm_calculate_auth_mac() local
471 gcm_update_mac(dg, p, n, buf, &buf_count, ctx); in gcm_calculate_auth_mac()
484 if (buf_count) { in gcm_calculate_auth_mac()
[all …]
/linux-6.3-rc2/drivers/media/platform/samsung/s5p-mfc/
A Ds5p_mfc_dec.c917 unsigned int *buf_count, in s5p_mfc_queue_setup() argument
930 if (*buf_count < 1) in s5p_mfc_queue_setup()
931 *buf_count = 1; in s5p_mfc_queue_setup()
932 if (*buf_count > MFC_MAX_BUFFERS) in s5p_mfc_queue_setup()
933 *buf_count = MFC_MAX_BUFFERS; in s5p_mfc_queue_setup()
941 if (*buf_count < ctx->pb_count) in s5p_mfc_queue_setup()
942 *buf_count = ctx->pb_count; in s5p_mfc_queue_setup()
944 *buf_count = ctx->pb_count + MFC_MAX_EXTRA_DPB; in s5p_mfc_queue_setup()
945 if (*buf_count > MFC_MAX_BUFFERS) in s5p_mfc_queue_setup()
946 *buf_count = MFC_MAX_BUFFERS; in s5p_mfc_queue_setup()
[all …]
A Ds5p_mfc_enc.c2381 unsigned int *buf_count, unsigned int *plane_count, in s5p_mfc_queue_setup() argument
2397 if (*buf_count < 1) in s5p_mfc_queue_setup()
2398 *buf_count = 1; in s5p_mfc_queue_setup()
2399 if (*buf_count > MFC_MAX_BUFFERS) in s5p_mfc_queue_setup()
2400 *buf_count = MFC_MAX_BUFFERS; in s5p_mfc_queue_setup()
2409 if (*buf_count < 1) in s5p_mfc_queue_setup()
2410 *buf_count = 1; in s5p_mfc_queue_setup()
2411 if (*buf_count > MFC_MAX_BUFFERS) in s5p_mfc_queue_setup()
2412 *buf_count = MFC_MAX_BUFFERS; in s5p_mfc_queue_setup()
/linux-6.3-rc2/drivers/media/platform/samsung/exynos4-is/
A Dfimc-isp-video.c99 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 Dfimc-isp.h136 unsigned int buf_count; member
/linux-6.3-rc2/drivers/accel/ivpu/
A Divpu_job.c429 u32 buf_count, u32 commands_offset) in ivpu_job_prepare_bos_for_submit() argument
438 for (i = 0; i < buf_count; i++) { in ivpu_job_prepare_bos_for_submit()
464 ret = drm_gem_lock_reservations((struct drm_gem_object **)job->bos, buf_count, in ivpu_job_prepare_bos_for_submit()
471 for (i = 0; i < buf_count; i++) { in ivpu_job_prepare_bos_for_submit()
479 for (i = 0; i < buf_count; i++) in ivpu_job_prepare_bos_for_submit()
483 drm_gem_unlock_reservations((struct drm_gem_object **)job->bos, buf_count, &acquire_ctx); in ivpu_job_prepare_bos_for_submit()
/linux-6.3-rc2/include/drm/
A Ddrm_legacy.h108 int buf_count; /**< number of buffers */ member
124 int buf_count; /**< total number of buffers */ member
/linux-6.3-rc2/drivers/crypto/marvell/octeontx2/
A Dotx2_cptvf_reqmgr.c89 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-6.3-rc2/drivers/crypto/marvell/octeontx/
A Dotx_cptvf_reqmgr.c98 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-6.3-rc2/drivers/media/platform/qcom/venus/
A Dhelpers.c1220 struct hfi_buffer_count_actual buf_count; in venus_helper_set_num_bufs() local
1223 buf_count.type = HFI_BUFFER_INPUT; in venus_helper_set_num_bufs()
1224 buf_count.count_actual = input_bufs; in venus_helper_set_num_bufs()
1226 ret = hfi_session_set_property(inst, ptype, &buf_count); in venus_helper_set_num_bufs()
1230 buf_count.type = HFI_BUFFER_OUTPUT; in venus_helper_set_num_bufs()
1231 buf_count.count_actual = output_bufs; in venus_helper_set_num_bufs()
1233 ret = hfi_session_set_property(inst, ptype, &buf_count); in venus_helper_set_num_bufs()
1238 buf_count.type = HFI_BUFFER_OUTPUT2; in venus_helper_set_num_bufs()
1239 buf_count.count_actual = output2_bufs; in venus_helper_set_num_bufs()
1241 ret = hfi_session_set_property(inst, ptype, &buf_count); in venus_helper_set_num_bufs()
/linux-6.3-rc2/drivers/crypto/cavium/cpt/
A Dcptvf_reqmanager.c45 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-6.3-rc2/drivers/media/platform/amphion/
A Dvpu_v4l2.c462 unsigned int *buf_count, in vpu_vb2_queue_setup() argument
484 *buf_count = max_t(unsigned int, *buf_count, inst->min_buffer_out); in vpu_vb2_queue_setup()
486 *buf_count = max_t(unsigned int, *buf_count, inst->min_buffer_cap); in vpu_vb2_queue_setup()
/linux-6.3-rc2/drivers/media/rc/
A Dfintek-cir.h59 unsigned int buf_count; member
/linux-6.3-rc2/drivers/usb/host/
A Disp1362-hcd.c203 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-6.3-rc2/drivers/net/ethernet/pasemi/
A Dpasemi_mac.c819 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()
/linux-6.3-rc2/drivers/mtd/nand/raw/
A Dqcom_nandc.c428 int buf_count; member
1338 nandc->buf_count = 512; in nandc_param()
1339 memset(nandc->data_buffer, 0xff, nandc->buf_count); in nandc_param()
1344 nandc->buf_count, 0); in nandc_param()
1512 nandc->buf_count = 0; in pre_command()
1562 nandc->buf_count); in post_command()
1597 nandc->buf_count = 4; in qcom_nandc_command()
2518 if (nandc->buf_start < nandc->buf_count) in qcom_nandc_read_byte()
2527 int real_len = min_t(size_t, len, nandc->buf_count - nandc->buf_start); in qcom_nandc_read_buf()
2537 int real_len = min_t(size_t, len, nandc->buf_count - nandc->buf_start); in qcom_nandc_write_buf()

Completed in 71 milliseconds

12