Searched refs:cmdq_buf (Results 1 – 3 of 3) sorted by relevance
111 struct hinic_cmdq_buf cmdq_buf; in write_sq_ctxts() local117 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() local161 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 …]
171 struct hinic_cmdq_buf *cmdq_buf);174 struct hinic_cmdq_buf *cmdq_buf);
127 struct hinic_cmdq_buf *cmdq_buf) in hinic_alloc_cmdq_buf() argument132 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() argument150 dma_pool_free(cmdqs->cmdq_buf_pool, cmdq_buf->buf, cmdq_buf->dma_addr); in hinic_free_cmdq_buf()