Home
last modified time | relevance | path

Searched refs:cmdq_buf (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_io.c111 struct hinic_cmdq_buf cmdq_buf; in write_sq_ctxts() local
117 err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmdq_buf); in write_sq_ctxts()
123 sq_ctxt_block = cmdq_buf.buf; in write_sq_ctxts()
135 cmdq_buf.size = HINIC_SQ_CTXT_SIZE(num_sqs); in write_sq_ctxts()
138 IO_CMD_MODIFY_QUEUE_CTXT, &cmdq_buf, in write_sq_ctxts()
145 hinic_free_cmdq_buf(&func_to_io->cmdqs, &cmdq_buf); in write_sq_ctxts()
155 struct hinic_cmdq_buf cmdq_buf; in write_rq_ctxts() local
161 err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmdq_buf); in write_rq_ctxts()
167 rq_ctxt_block = cmdq_buf.buf; in write_rq_ctxts()
179 cmdq_buf.size = HINIC_RQ_CTXT_SIZE(num_rqs); in write_rq_ctxts()
[all …]
Dhinic_hw_cmdq.h171 struct hinic_cmdq_buf *cmdq_buf);
174 struct hinic_cmdq_buf *cmdq_buf);
Dhinic_hw_cmdq.c127 struct hinic_cmdq_buf *cmdq_buf) in hinic_alloc_cmdq_buf() argument
132 cmdq_buf->buf = dma_pool_alloc(cmdqs->cmdq_buf_pool, GFP_KERNEL, in hinic_alloc_cmdq_buf()
133 &cmdq_buf->dma_addr); in hinic_alloc_cmdq_buf()
134 if (!cmdq_buf->buf) { in hinic_alloc_cmdq_buf()
148 struct hinic_cmdq_buf *cmdq_buf) in hinic_free_cmdq_buf() argument
150 dma_pool_free(cmdqs->cmdq_buf_pool, cmdq_buf->buf, cmdq_buf->dma_addr); in hinic_free_cmdq_buf()