/kernel/linux/linux-5.10/drivers/tee/amdtee/ |
H A D | call.c | 48 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() 99 * It is assumed that buf_id remains unchanged for in amd_params_to_tee_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() 236 pr_debug("unmap shared memory: buf_id in handle_unmap_shmem() 286 handle_map_shmem(u32 count, struct shmem_desc *start, u32 *buf_id) handle_map_shmem() argument [all...] |
H A D | core.c | 157 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() 347 u32 buf_id; in amdtee_map_shmem() local 364 rc = handle_map_shmem(count, &shmem, &buf_id); in amdtee_map_shmem() 372 shmnode->buf_id = buf_id; in amdtee_map_shmem() 378 pr_debug("buf_id :[%x] kaddr[%p]\n", shmnode->buf_id, shmnod in amdtee_map_shmem() 387 u32 buf_id; amdtee_unmap_shmem() local [all...] |
H A D | amdtee_if.h | 24 * @buf_id: buffer ID of the buffer mapped by TEE_CMD_ID_MAP_SHARED_MEM 29 u32 buf_id; member 103 * @buf_id: [out] return buffer ID value 107 u32 buf_id; member 113 * @buf_id: [in] buffer ID of memory to be unmapped 116 u32 buf_id; member
|
H A D | amdtee_private.h | 89 * @buf_id: Buffer id of memory mapped by TEE_CMD_ID_MAP_SHARED_MEM 94 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);
|
/kernel/linux/linux-6.6/drivers/tee/amdtee/ |
H A D | call.c | 48 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() 99 * It is assumed that buf_id remains unchanged for in amd_params_to_tee_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() 236 pr_debug("unmap shared memory: buf_id in handle_unmap_shmem() 286 handle_map_shmem(u32 count, struct shmem_desc *start, u32 *buf_id) handle_map_shmem() argument [all...] |
H A D | core.c | 157 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() 347 u32 buf_id; in amdtee_map_shmem() local 364 rc = handle_map_shmem(count, &shmem, &buf_id); in amdtee_map_shmem() 372 shmnode->buf_id = buf_id; in amdtee_map_shmem() 378 pr_debug("buf_id :[%x] kaddr[%p]\n", shmnode->buf_id, shmnod in amdtee_map_shmem() 387 u32 buf_id; amdtee_unmap_shmem() local [all...] |
H A D | amdtee_if.h | 24 * @buf_id: buffer ID of the buffer mapped by TEE_CMD_ID_MAP_SHARED_MEM 29 u32 buf_id; member 103 * @buf_id: [out] return buffer ID value 107 u32 buf_id; member 113 * @buf_id: [in] buffer ID of memory to be unmapped 116 u32 buf_id; member
|
H A D | amdtee_private.h | 89 * @buf_id: Buffer id of memory mapped by TEE_CMD_ID_MAP_SHARED_MEM 94 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);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_gsc.c | 607 static void gsc_src_set_buf_seq(struct gsc_context *ctx, u32 buf_id, in gsc_src_set_buf_seq() argument 612 u32 mask = 0x00000001 << buf_id; in gsc_src_set_buf_seq() 619 cfg |= masked << buf_id; in gsc_src_set_buf_seq() 625 static void gsc_src_set_addr(struct gsc_context *ctx, u32 buf_id, in gsc_src_set_addr() argument 629 gsc_write(buf->dma_addr[0], GSC_IN_BASE_ADDR_Y(buf_id)); in gsc_src_set_addr() 630 gsc_write(buf->dma_addr[1], GSC_IN_BASE_ADDR_CB(buf_id)); in gsc_src_set_addr() 631 gsc_write(buf->dma_addr[2], GSC_IN_BASE_ADDR_CR(buf_id)); in gsc_src_set_addr() 633 gsc_src_set_buf_seq(ctx, buf_id, true); in gsc_src_set_addr() 924 static void gsc_dst_set_buf_seq(struct gsc_context *ctx, u32 buf_id, in gsc_dst_set_buf_seq() argument 929 u32 mask = 0x00000001 << buf_id; in gsc_dst_set_buf_seq() 950 gsc_dst_set_addr(struct gsc_context *ctx, u32 buf_id, struct exynos_drm_ipp_buffer *buf) gsc_dst_set_addr() argument 964 u32 buf_id = GSC_MAX_SRC; gsc_get_src_buf_index() local 994 u32 buf_id = GSC_MAX_DST; gsc_get_dst_buf_index() local [all...] |
H A D | exynos_drm_fimc.c | 263 int frame_cnt, buf_id; in fimc_get_buf_id() local 280 buf_id = frame_cnt - 1; in fimc_get_buf_id() 281 DRM_DEV_DEBUG_KMS(ctx->dev, "buf_id[%d]\n", buf_id); in fimc_get_buf_id() 283 return buf_id; in fimc_get_buf_id() 906 static void fimc_dst_set_buf_seq(struct fimc_context *ctx, u32 buf_id, in fimc_dst_set_buf_seq() argument 913 DRM_DEV_DEBUG_KMS(ctx->dev, "buf_id[%d]enqueu[%d]\n", buf_id, enqueue); in fimc_dst_set_buf_seq() 920 cfg |= (1 << buf_id); in fimc_dst_set_buf_seq() 922 cfg &= ~(1 << buf_id); in fimc_dst_set_buf_seq() 951 int buf_id; fimc_irq_handler() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_gsc.c | 606 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() 949 gsc_dst_set_addr(struct gsc_context *ctx, u32 buf_id, struct exynos_drm_ipp_buffer *buf) gsc_dst_set_addr() argument 963 u32 buf_id = GSC_MAX_SRC; gsc_get_src_buf_index() local 993 u32 buf_id = GSC_MAX_DST; gsc_get_dst_buf_index() local [all...] |
H A D | exynos_drm_fimc.c | 261 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; fimc_irq_handler() local [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/ |
H A D | dbring.c | 18 int buf_id; in ath11k_dbring_bufs_replenish() local 37 buf_id = idr_alloc(&ring->bufs_idr, buff, 0, ring->bufs_max, GFP_ATOMIC); in ath11k_dbring_bufs_replenish() 39 if (buf_id < 0) { in ath11k_dbring_bufs_replenish() 53 FIELD_PREP(DP_RXDMA_BUF_COOKIE_BUF_ID, buf_id); in ath11k_dbring_bufs_replenish() 63 idr_remove(&ring->bufs_idr, buf_id); in ath11k_dbring_bufs_replenish() 239 int buf_id; in ath11k_dbring_buffer_release_event() local 299 buf_id = FIELD_GET(DP_RXDMA_BUF_COOKIE_BUF_ID, cookie); in ath11k_dbring_buffer_release_event() 302 buff = idr_find(&ring->bufs_idr, buf_id); in ath11k_dbring_buffer_release_event() 307 idr_remove(&ring->bufs_idr, buf_id); in ath11k_dbring_buffer_release_event() 342 int buf_id; in ath11k_dbring_buf_cleanup() local [all...] |
H A D | dp_rx.c | 288 int buf_id; in ath11k_dp_rxbufs_replenish() local 327 buf_id = idr_alloc(&rx_ring->bufs_idr, skb, 1, in ath11k_dp_rxbufs_replenish() 330 if (buf_id <= 0) in ath11k_dp_rxbufs_replenish() 340 FIELD_PREP(DP_RXDMA_BUF_COOKIE_BUF_ID, buf_id); in ath11k_dp_rxbufs_replenish() 355 idr_remove(&rx_ring->bufs_idr, buf_id); in ath11k_dp_rxbufs_replenish() 375 int buf_id; in ath11k_dp_rxdma_buf_ring_free() local 378 idr_for_each_entry(&rx_ring->bufs_idr, skb, buf_id) { in ath11k_dp_rxdma_buf_ring_free() 379 idr_remove(&rx_ring->bufs_idr, buf_id); in ath11k_dp_rxdma_buf_ring_free() 400 idr_for_each_entry(&rx_ring->bufs_idr, skb, buf_id) { in ath11k_dp_rxdma_buf_ring_free() 401 idr_remove(&rx_ring->bufs_idr, buf_id); in ath11k_dp_rxdma_buf_ring_free() 2548 int buf_id, mac_id; ath11k_dp_process_rx() local 2731 ath11k_dp_rx_alloc_mon_status_buf(struct ath11k_base *ab, struct dp_rxdma_ring *rx_ring, int *buf_id) ath11k_dp_rx_alloc_mon_status_buf() argument 2785 int buf_id; ath11k_dp_rx_mon_status_bufs_replenish() local 2852 int buf_id, srng_id; ath11k_dp_rx_reap_mon_status_ring() local 3260 int ret, buf_id; ath11k_dp_rx_h_defrag_reo_reinject() local 3554 ath11k_dp_process_rx_err_buf(struct ath11k *ar, u32 *ring_desc, int buf_id, bool drop) ath11k_dp_process_rx_err_buf() argument 3636 int buf_id, mac_id; ath11k_dp_process_rx_err() local 3944 int buf_id, mac_id; ath11k_dp_rx_process_wbm_err() local 4071 int buf_id; ath11k_dp_process_rxdma_err() local 4518 int buf_id; ath11k_dp_rx_mon_mpdu_pop() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath11k/ |
H A D | dbring.c | 48 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...] |
H A D | dp_rx.c | 353 int buf_id; in ath11k_dp_rxbufs_replenish() local 392 buf_id = idr_alloc(&rx_ring->bufs_idr, skb, 1, 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() 439 int buf_id; in ath11k_dp_rxdma_buf_ring_free() local 442 idr_for_each_entry(&rx_ring->bufs_idr, skb, buf_id) { in ath11k_dp_rxdma_buf_ring_free() 443 idr_remove(&rx_ring->bufs_idr, buf_id); in ath11k_dp_rxdma_buf_ring_free() 2648 int buf_id, mac_id; in ath11k_dp_process_rx() local 2670 buf_id in ath11k_dp_process_rx() 2849 ath11k_dp_rx_alloc_mon_status_buf(struct ath11k_base *ab, struct dp_rxdma_ring *rx_ring, int *buf_id) ath11k_dp_rx_alloc_mon_status_buf() argument 2903 int buf_id; ath11k_dp_rx_mon_status_bufs_replenish() local 3009 int buf_id, srng_id; ath11k_dp_rx_reap_mon_status_ring() local 3384 int ret, buf_id; ath11k_dp_rx_h_defrag_reo_reinject() local 3694 ath11k_dp_process_rx_err_buf(struct ath11k *ar, u32 *ring_desc, int buf_id, bool drop) ath11k_dp_process_rx_err_buf() argument 3777 int buf_id, mac_id; ath11k_dp_process_rx_err() local 4085 int buf_id, mac_id; ath11k_dp_rx_process_wbm_err() local 4212 int buf_id; ath11k_dp_process_rxdma_err() local 4659 int buf_id; ath11k_dp_rx_mon_mpdu_pop() local 5298 int buf_id, i = 0; ath11k_dp_rx_full_mon_mpdu_pop() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath12k/ |
H A D | dbring.c | 20 int buf_id; in ath12k_dbring_bufs_replenish() local 39 buf_id = idr_alloc(&ring->bufs_idr, buff, 0, ring->bufs_max, gfp); in ath12k_dbring_bufs_replenish() 41 if (buf_id < 0) { in ath12k_dbring_bufs_replenish() 55 u32_encode_bits(buf_id, DP_RXDMA_BUF_COOKIE_BUF_ID); in ath12k_dbring_bufs_replenish() 65 idr_remove(&ring->bufs_idr, buf_id); in ath12k_dbring_bufs_replenish() 243 int buf_id; in ath12k_dbring_buffer_release_event() local 302 buf_id = u32_get_bits(cookie, DP_RXDMA_BUF_COOKIE_BUF_ID); in ath12k_dbring_buffer_release_event() 305 buff = idr_find(&ring->bufs_idr, buf_id); in ath12k_dbring_buffer_release_event() 310 idr_remove(&ring->bufs_idr, buf_id); in ath12k_dbring_buffer_release_event() 345 int buf_id; in ath12k_dbring_buf_cleanup() local [all...] |
H A D | dp_mon.c | 805 int buf_id = u32_get_bits(packet_info->cookie, in ath12k_dp_mon_rx_parse_status_tlv() local 812 msdu = idr_remove(&buf_ring->bufs_idr, buf_id); in ath12k_dp_mon_rx_parse_status_tlv() 816 ath12k_warn(ab, "monitor destination with invalid buf_id %d\n", in ath12k_dp_mon_rx_parse_status_tlv() 817 buf_id); in ath12k_dp_mon_rx_parse_status_tlv() 1272 int buf_id; in ath12k_dp_mon_buf_replenish() local 1297 buf_id = idr_alloc(&buf_ring->bufs_idr, skb, 0, in ath12k_dp_mon_buf_replenish() 1301 if (unlikely(buf_id < 0)) in ath12k_dp_mon_buf_replenish() 1310 cookie = u32_encode_bits(buf_id, DP_RXDMA_BUF_COOKIE_BUF_ID); in ath12k_dp_mon_buf_replenish() 1325 idr_remove(&buf_ring->bufs_idr, buf_id); in ath12k_dp_mon_buf_replenish() 1910 int buf_id in ath12k_dp_mon_tx_parse_status_tlv() local 2075 int num_buffs_reaped = 0, srng_id, buf_id; ath12k_dp_mon_srng_process() local 2489 int num_buffs_reaped = 0, srng_id, buf_id; ath12k_dp_mon_rx_process_stats() local [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/st/cw1200/ |
H A D | hwio.c | 22 #define SDIO_ADDR17BIT(buf_id, mpf, rfu, reg_id_ofs) \ 23 ((((buf_id) & 0x1F) << 7) \ 31 void *buf, size_t buf_len, int buf_id) in __cw1200_reg_read() 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() 59 sdio_reg_addr_17bit = SDIO_ADDR17BIT(buf_id, 0, 0, addr_sdio); in __cw1200_reg_write() 30 __cw1200_reg_read(struct cw1200_common *priv, u16 addr, void *buf, size_t buf_len, int buf_id) __cw1200_reg_read() argument 51 __cw1200_reg_write(struct cw1200_common *priv, u16 addr, const void *buf, size_t buf_len, int buf_id) __cw1200_reg_write() argument
|
/kernel/linux/linux-6.6/drivers/net/wireless/st/cw1200/ |
H A D | hwio.c | 22 #define SDIO_ADDR17BIT(buf_id, mpf, rfu, reg_id_ofs) \ 23 ((((buf_id) & 0x1F) << 7) \ 31 void *buf, size_t buf_len, int buf_id) in __cw1200_reg_read() 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() 59 sdio_reg_addr_17bit = SDIO_ADDR17BIT(buf_id, 0, 0, addr_sdio); in __cw1200_reg_write() 30 __cw1200_reg_read(struct cw1200_common *priv, u16 addr, void *buf, size_t buf_len, int buf_id) __cw1200_reg_read() argument 51 __cw1200_reg_write(struct cw1200_common *priv, u16 addr, const void *buf, size_t buf_len, int buf_id) __cw1200_reg_write() argument
|
/kernel/linux/linux-5.10/drivers/net/can/mscan/ |
H A D | mscan.c | 191 int i, rtr, buf_id; in mscan_start_xmit() local 200 buf_id = ffs(i) - 1; in mscan_start_xmit() 208 * if buf_id < 3, then current frame will be send out of order, 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(®s->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); in mscan_start_xmit() 276 priv->tx_active |= 1 << buf_id; in mscan_start_xmit()
|
/kernel/linux/linux-6.6/drivers/net/can/mscan/ |
H A D | mscan.c | 191 int i, rtr, buf_id; in mscan_start_xmit() local 200 buf_id = ffs(i) - 1; in mscan_start_xmit() 208 * if buf_id < 3, then current frame will be send out of order, 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(®s->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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/google/gve/ |
H A D | gve_desc_dqo.h | 186 __le16 buf_id; /* ID returned in Rx completion descriptor */ member 240 __le16 buf_id; /* Buffer ID which was sent on the buffer queue. */ member
|
/kernel/linux/linux-5.10/drivers/media/pci/tw5864/ |
H A D | tw5864-core.c | 213 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()
|
/kernel/linux/linux-6.6/drivers/media/pci/tw5864/ |
H A D | tw5864-core.c | 213 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()
|