Home
last modified time | relevance | path

Searched refs:buf_id (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.1.9/drivers/tee/amdtee/
Dcall.c48 u32 buf_id = get_buffer_id(tee[i].u.memref.shm); in tee_params_to_amd_params() local
50 amd->params[i].mref.buf_id = buf_id; in tee_params_to_amd_params()
55 i, amd->params[i].mref.buf_id, in tee_params_to_amd_params()
107 i, amd->params[i].mref.buf_id, in amd_params_to_tee_params()
225 void handle_unmap_shmem(u32 buf_id) in handle_unmap_shmem() argument
231 cmd.buf_id = buf_id; in handle_unmap_shmem()
237 buf_id, status); in handle_unmap_shmem()
286 int handle_map_shmem(u32 count, struct shmem_desc *start, u32 *buf_id) in handle_map_shmem() argument
293 if (!count || !start || !buf_id) in handle_map_shmem()
333 *buf_id = 0; in handle_map_shmem()
[all …]
Dcore.c157 u32 buf_id = 0; in get_buffer_id() local
162 buf_id = shmdata->buf_id; in get_buffer_id()
167 return buf_id; in get_buffer_id()
346 u32 buf_id; in amdtee_map_shmem() local
363 rc = handle_map_shmem(count, &shmem, &buf_id); in amdtee_map_shmem()
371 shmnode->buf_id = buf_id; in amdtee_map_shmem()
377 pr_debug("buf_id :[%x] kaddr[%p]\n", shmnode->buf_id, shmnode->kaddr); in amdtee_map_shmem()
386 u32 buf_id; in amdtee_unmap_shmem() local
391 buf_id = get_buffer_id(shm); in amdtee_unmap_shmem()
393 handle_unmap_shmem(buf_id); in amdtee_unmap_shmem()
[all …]
Damdtee_if.h29 u32 buf_id; member
107 u32 buf_id; member
116 u32 buf_id; member
Damdtee_private.h94 u32 buf_id; member
162 int handle_map_shmem(u32 count, struct shmem_desc *start, u32 *buf_id);
164 void handle_unmap_shmem(u32 buf_id);
/linux-6.1.9/drivers/gpu/drm/exynos/
Dexynos_drm_gsc.c606 static void gsc_src_set_buf_seq(struct gsc_context *ctx, u32 buf_id, in gsc_src_set_buf_seq() argument
611 u32 mask = 0x00000001 << buf_id; in gsc_src_set_buf_seq()
618 cfg |= masked << buf_id; in gsc_src_set_buf_seq()
624 static void gsc_src_set_addr(struct gsc_context *ctx, u32 buf_id, in gsc_src_set_addr() argument
628 gsc_write(buf->dma_addr[0], GSC_IN_BASE_ADDR_Y(buf_id)); in gsc_src_set_addr()
629 gsc_write(buf->dma_addr[1], GSC_IN_BASE_ADDR_CB(buf_id)); in gsc_src_set_addr()
630 gsc_write(buf->dma_addr[2], GSC_IN_BASE_ADDR_CR(buf_id)); in gsc_src_set_addr()
632 gsc_src_set_buf_seq(ctx, buf_id, true); in gsc_src_set_addr()
923 static void gsc_dst_set_buf_seq(struct gsc_context *ctx, u32 buf_id, in gsc_dst_set_buf_seq() argument
928 u32 mask = 0x00000001 << buf_id; in gsc_dst_set_buf_seq()
[all …]
Dexynos_drm_fimc.c261 int frame_cnt, buf_id; in fimc_get_buf_id() local
278 buf_id = frame_cnt - 1; in fimc_get_buf_id()
279 DRM_DEV_DEBUG_KMS(ctx->dev, "buf_id[%d]\n", buf_id); in fimc_get_buf_id()
281 return buf_id; in fimc_get_buf_id()
904 static void fimc_dst_set_buf_seq(struct fimc_context *ctx, u32 buf_id, in fimc_dst_set_buf_seq() argument
911 DRM_DEV_DEBUG_KMS(ctx->dev, "buf_id[%d]enqueu[%d]\n", buf_id, enqueue); in fimc_dst_set_buf_seq()
918 cfg |= (1 << buf_id); in fimc_dst_set_buf_seq()
920 cfg &= ~(1 << buf_id); in fimc_dst_set_buf_seq()
949 int buf_id; in fimc_irq_handler() local
960 buf_id = fimc_get_buf_id(ctx); in fimc_irq_handler()
[all …]
/linux-6.1.9/drivers/net/wireless/ath/ath11k/
Ddbring.c48 int buf_id; in ath11k_dbring_bufs_replenish() local
68 buf_id = idr_alloc(&ring->bufs_idr, buff, 0, ring->bufs_max, GFP_ATOMIC); in ath11k_dbring_bufs_replenish()
70 if (buf_id < 0) { in ath11k_dbring_bufs_replenish()
84 FIELD_PREP(DP_RXDMA_BUF_COOKIE_BUF_ID, buf_id); in ath11k_dbring_bufs_replenish()
95 idr_remove(&ring->bufs_idr, buf_id); in ath11k_dbring_bufs_replenish()
278 int buf_id; in ath11k_dbring_buffer_release_event() local
339 buf_id = FIELD_GET(DP_RXDMA_BUF_COOKIE_BUF_ID, cookie); in ath11k_dbring_buffer_release_event()
342 buff = idr_find(&ring->bufs_idr, buf_id); in ath11k_dbring_buffer_release_event()
347 idr_remove(&ring->bufs_idr, buf_id); in ath11k_dbring_buffer_release_event()
386 int buf_id; in ath11k_dbring_buf_cleanup() local
[all …]
Ddp_rx.c353 int buf_id; in ath11k_dp_rxbufs_replenish() local
392 buf_id = idr_alloc(&rx_ring->bufs_idr, skb, 0, in ath11k_dp_rxbufs_replenish()
395 if (buf_id < 0) in ath11k_dp_rxbufs_replenish()
405 FIELD_PREP(DP_RXDMA_BUF_COOKIE_BUF_ID, buf_id); in ath11k_dp_rxbufs_replenish()
420 idr_remove(&rx_ring->bufs_idr, buf_id); in ath11k_dp_rxbufs_replenish()
440 int buf_id; in ath11k_dp_rxdma_buf_ring_free() local
443 idr_for_each_entry(&rx_ring->bufs_idr, skb, buf_id) { in ath11k_dp_rxdma_buf_ring_free()
444 idr_remove(&rx_ring->bufs_idr, buf_id); in ath11k_dp_rxdma_buf_ring_free()
465 idr_for_each_entry(&rx_ring->bufs_idr, skb, buf_id) { in ath11k_dp_rxdma_buf_ring_free()
466 idr_remove(&rx_ring->bufs_idr, buf_id); in ath11k_dp_rxdma_buf_ring_free()
[all …]
Dmac.h164 int ath11k_mac_tx_mgmt_pending_free(int buf_id, void *skb, void *ctx);
Dmac.c5501 static void ath11k_mac_tx_mgmt_free(struct ath11k *ar, int buf_id) in ath11k_mac_tx_mgmt_free() argument
5507 msdu = idr_remove(&ar->txmgmt_idr, buf_id); in ath11k_mac_tx_mgmt_free()
5522 int ath11k_mac_tx_mgmt_pending_free(int buf_id, void *skb, void *ctx) in ath11k_mac_tx_mgmt_pending_free() argument
5526 ath11k_mac_tx_mgmt_free(ar, buf_id); in ath11k_mac_tx_mgmt_pending_free()
5531 static int ath11k_mac_vif_txmgmt_idr_remove(int buf_id, void *skb, void *ctx) in ath11k_mac_vif_txmgmt_idr_remove() argument
5538 ath11k_mac_tx_mgmt_free(ar, buf_id); in ath11k_mac_vif_txmgmt_idr_remove()
5550 int buf_id; in ath11k_mac_mgmt_tx_wmi() local
5556 buf_id = idr_alloc(&ar->txmgmt_idr, skb, 0, in ath11k_mac_mgmt_tx_wmi()
5561 "mac tx mgmt frame, buf id %d\n", buf_id); in ath11k_mac_mgmt_tx_wmi()
5563 if (buf_id < 0) in ath11k_mac_mgmt_tx_wmi()
[all …]
Ddp.c1008 static int ath11k_dp_tx_pending_cleanup(int buf_id, void *skb, void *ctx) in ath11k_dp_tx_pending_cleanup() argument
/linux-6.1.9/drivers/net/wireless/st/cw1200/
Dhwio.c22 #define SDIO_ADDR17BIT(buf_id, mpf, rfu, reg_id_ofs) \ argument
23 ((((buf_id) & 0x1F) << 7) \
31 void *buf, size_t buf_len, int buf_id) in __cw1200_reg_read() argument
44 sdio_reg_addr_17bit = SDIO_ADDR17BIT(buf_id, 0, 0, addr_sdio); in __cw1200_reg_read()
52 const void *buf, size_t buf_len, int buf_id) in __cw1200_reg_write() argument
59 sdio_reg_addr_17bit = SDIO_ADDR17BIT(buf_id, 0, 0, addr_sdio); in __cw1200_reg_write()
/linux-6.1.9/drivers/net/can/mscan/
Dmscan.c191 int i, rtr, buf_id; in mscan_start_xmit() local
200 buf_id = ffs(i) - 1; in mscan_start_xmit()
214 if (buf_id < priv->prev_buf_id) { in mscan_start_xmit()
224 priv->prev_buf_id = buf_id; in mscan_start_xmit()
266 out_8(&regs->cantflg, 1 << buf_id); in mscan_start_xmit()
271 list_add_tail(&priv->tx_queue[buf_id].list, &priv->tx_head); in mscan_start_xmit()
273 can_put_echo_skb(skb, dev, buf_id, 0); in mscan_start_xmit()
276 priv->tx_active |= 1 << buf_id; in mscan_start_xmit()
/linux-6.1.9/drivers/media/pci/tw5864/
Dtw5864-core.c213 if (input->buf_id != raw_buf_id) { in tw5864_timer_isr()
214 input->buf_id = raw_buf_id; in tw5864_timer_isr()
231 2 * input->nr, input->buf_id + 3); in tw5864_timer_isr()
Dtw5864.h114 u32 buf_id; member
/linux-6.1.9/drivers/net/ethernet/google/gve/
Dgve_desc_dqo.h181 __le16 buf_id; /* ID returned in Rx completion descriptor */ member
235 __le16 buf_id; /* Buffer ID which was sent on the buffer queue. */ member
Dgve_rx_dqo.c364 desc->buf_id = cpu_to_le16(buf_state - rx->dqo.buf_states); in gve_rx_post_buffers_dqo()
522 const u16 buffer_id = le16_to_cpu(compl_desc->buf_id); in gve_rx_dqo()
/linux-6.1.9/drivers/infiniband/ulp/rtrs/
Drtrs-srv.c291 msg->buf_id = cpu_to_le16(id->msg_id); in rdma_write_sg()
412 msg->buf_id = cpu_to_le16(id->msg_id); in send_io_resp_imm()
992 u32 buf_id, u32 off) in process_read() argument
1017 id = srv_path->ops_ids[buf_id]; in process_read()
1020 id->msg_id = buf_id; in process_read()
1024 data = page_address(srv->chunks[buf_id]); in process_read()
1031 buf_id, ret); in process_read()
1042 buf_id, ret); in process_read()
1050 u32 buf_id, u32 off) in process_write() argument
1070 id = srv_path->ops_ids[buf_id]; in process_write()
[all …]
Drtrs-clt.c529 u32 buf_id; in rtrs_clt_rkey_rsp_done() local
550 buf_id = le16_to_cpu(msg->buf_id); in rtrs_clt_rkey_rsp_done()
551 if (WARN_ON(buf_id >= clt_path->queue_depth)) in rtrs_clt_rkey_rsp_done()
562 if (WARN_ON(buf_id != msg_id)) in rtrs_clt_rkey_rsp_done()
564 clt_path->rbufs[buf_id].rkey = le32_to_cpu(msg->rkey); in rtrs_clt_rkey_rsp_done()
1085 u32 imm, buf_id; in rtrs_clt_write_req() local
1114 buf_id = req->permit->mem_id; in rtrs_clt_write_req()
1116 rbuf = &clt_path->rbufs[buf_id]; in rtrs_clt_write_req()
1182 u32 imm, buf_id; in rtrs_clt_read_req() local
1247 buf_id = req->permit->mem_id; in rtrs_clt_read_req()
[all …]
Drtrs-pri.h261 __le16 buf_id; member
/linux-6.1.9/drivers/edac/
Di5400_edac.c519 int buf_id; in i5400_proccess_non_recoverable_info() local
546 buf_id = nrec_buf_id(info); in i5400_proccess_non_recoverable_info()
553 buf_id, rdwr_str(rdwr), ras, cas); in i5400_proccess_non_recoverable_info()
561 bank, buf_id, ras, cas, allErrors, error_name[errnum]); in i5400_proccess_non_recoverable_info()
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/
Dqed_debug.c5208 u8 buf_id; in qed_dbg_set_bin_ptr() local
5211 for (buf_id = 0; buf_id < MAX_BIN_DBG_BUFFER_TYPE; buf_id++) in qed_dbg_set_bin_ptr()
5213 buf_id, in qed_dbg_set_bin_ptr()
5214 (u32 *)(bin_ptr + buf_hdrs[buf_id].offset), in qed_dbg_set_bin_ptr()
5215 buf_hdrs[buf_id].length); in qed_dbg_set_bin_ptr()
7523 u8 buf_id; in qed_dbg_user_set_bin_ptr() local
7526 for (buf_id = 0; buf_id < MAX_BIN_DBG_BUFFER_TYPE; buf_id++) in qed_dbg_user_set_bin_ptr()
7528 (enum bin_dbg_buffer_type)buf_id, in qed_dbg_user_set_bin_ptr()
7529 (u32 *)(bin_ptr + buf_hdrs[buf_id].offset), in qed_dbg_user_set_bin_ptr()
7530 buf_hdrs[buf_id].length); in qed_dbg_user_set_bin_ptr()
/linux-6.1.9/drivers/misc/mei/
Dclient.c2235 static int mei_cl_dma_alloc(struct mei_cl *cl, u8 buf_id, size_t size) in mei_cl_dma_alloc() argument
2242 cl->dma.buffer_id = buf_id; in mei_cl_dma_alloc()
/linux-6.1.9/drivers/gpu/drm/vmwgfx/
Dvmwgfx_execbuf.c1699 struct vmw_resource *res, uint32_t *buf_id, in vmw_cmd_res_switch_backup() argument
1710 ret = vmw_translate_mob_ptr(dev_priv, sw_context, buf_id, &vbo); in vmw_cmd_res_switch_backup()
1739 *converter, uint32_t *res_id, uint32_t *buf_id, in vmw_cmd_switch_backup() argument
1750 return vmw_cmd_res_switch_backup(dev_priv, sw_context, res, buf_id, in vmw_cmd_switch_backup()
/linux-6.1.9/drivers/media/platform/samsung/exynos4-is/
Dfimc-capture.c419 int buf_id = (vid_cap->reqbufs_count == 1) ? -1 : in buffer_queue() local
422 fimc_hw_set_output_addr(fimc, &buf->addr, buf_id); in buffer_queue()

12