Home
last modified time | relevance | path

Searched refs:qmem (Results 1 – 8 of 8) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/af/
Dcommon.h38 struct qmem { struct
47 static inline int qmem_alloc(struct device *dev, struct qmem **q, in qmem_alloc() argument
50 struct qmem *qmem; in qmem_alloc() local
56 *q = devm_kzalloc(dev, sizeof(*qmem), GFP_KERNEL); in qmem_alloc()
59 qmem = *q; in qmem_alloc()
61 qmem->entry_sz = entry_sz; in qmem_alloc()
62 qmem->alloc_sz = (qsize * entry_sz) + OTX2_ALIGN; in qmem_alloc()
63 qmem->base = dma_alloc_attrs(dev, qmem->alloc_sz, &qmem->iova, in qmem_alloc()
65 if (!qmem->base) in qmem_alloc()
68 qmem->qsize = qsize; in qmem_alloc()
[all …]
Drvu.h120 struct qmem *mce_ctx;
121 struct qmem *mcast_buf;
230 struct qmem *aura_ctx;
231 struct qmem *pool_ctx;
232 struct qmem *npa_qints_ctx;
237 struct qmem *rq_ctx;
238 struct qmem *sq_ctx;
239 struct qmem *cq_ctx;
240 struct qmem *rss_ctx;
241 struct qmem *cq_ints_ctx;
[all …]
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_txrx.h97 struct qmem *sqe;
98 struct qmem *tso_hdrs;
100 struct qmem *timestamps;
124 struct qmem *stack;
125 struct qmem *fc_addr;
142 struct qmem *cqe;
Dotx2_common.h507 struct qmem *dync_lmt;
/linux-6.12.1/drivers/media/platform/qcom/venus/
Dhfi_venus.c106 struct mem_desc qmem; member
171 if (!queue->qmem.kva) in venus_write_queue()
207 wr_ptr = (u32 *)(queue->qmem.kva + (wr_idx << 2)); in venus_write_queue()
209 if (wr_ptr < (u32 *)queue->qmem.kva || in venus_write_queue()
210 wr_ptr > (u32 *)(queue->qmem.kva + queue->qmem.size - sizeof(*wr_ptr))) in venus_write_queue()
221 memcpy(queue->qmem.kva, packet + len, new_wr_idx << 2); in venus_write_queue()
246 if (!queue->qmem.kva) in venus_read_queue()
279 rd_ptr = (u32 *)(queue->qmem.kva + (rd_idx << 2)); in venus_read_queue()
281 if (rd_ptr < (u32 *)queue->qmem.kva || in venus_read_queue()
282 rd_ptr > (u32 *)(queue->qmem.kva + queue->qmem.size - sizeof(*rd_ptr))) in venus_read_queue()
[all …]
/linux-6.12.1/drivers/scsi/elx/libefc_sli/
Dsli4.c92 sli_cmd_common_create_cq(struct sli4 *sli4, void *buf, struct efc_dma *qmem, in sli_cmd_common_create_cq() argument
107 n_cqe = qmem->size / SLI4_CQE_BYTES; in sli_cmd_common_create_cq()
121 num_pages = sli_page_count(qmem->size, page_size); in sli_cmd_common_create_cq()
169 for (p = 0, addr = qmem->phys; p < num_pages; p++, addr += page_size) { in sli_cmd_common_create_cq()
178 sli_cmd_common_create_eq(struct sli4 *sli4, void *buf, struct efc_dma *qmem) in sli_cmd_common_create_eq() argument
201 num_pages = qmem->size / SLI_PAGE_SIZE; in sli_cmd_common_create_eq()
231 for (p = 0, addr = qmem->phys; p < num_pages; in sli_cmd_common_create_eq()
241 sli_cmd_common_create_mq_ext(struct sli4 *sli4, void *buf, struct efc_dma *qmem, in sli_cmd_common_create_mq_ext() argument
260 num_pages = qmem->size / SLI_PAGE_SIZE; in sli_cmd_common_create_mq_ext()
291 for (p = 0, addr = qmem->phys; p < num_pages; in sli_cmd_common_create_mq_ext()
[all …]
Dsli4.h4048 struct efc_dma *qmem, u16 cq_id);
/linux-6.12.1/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c15049 static int bnxt_queue_mem_alloc(struct net_device *dev, void *qmem, int idx) in bnxt_queue_mem_alloc() argument
15057 clone = qmem; in bnxt_queue_mem_alloc()
15119 static void bnxt_queue_mem_free(struct net_device *dev, void *qmem) in bnxt_queue_mem_free() argument
15121 struct bnxt_rx_ring_info *rxr = qmem; in bnxt_queue_mem_free()
15198 static int bnxt_queue_start(struct net_device *dev, void *qmem, int idx) in bnxt_queue_start() argument
15207 clone = qmem; in bnxt_queue_start()
15246 static int bnxt_queue_stop(struct net_device *dev, void *qmem, int idx) in bnxt_queue_stop() argument
15266 memcpy(qmem, rxr, sizeof(*rxr)); in bnxt_queue_stop()
15267 bnxt_init_rx_ring_struct(bp, qmem); in bnxt_queue_stop()