Home
last modified time | relevance | path

Searched refs:cmdqs (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_cmdq.c81 #define cmdqs_to_func_to_io(cmdqs) container_of(cmdqs, \ argument
83 cmdqs)
126 int hinic_alloc_cmdq_buf(struct hinic_cmdqs *cmdqs, in hinic_alloc_cmdq_buf() argument
129 struct hinic_hwif *hwif = cmdqs->hwif; in hinic_alloc_cmdq_buf()
132 cmdq_buf->buf = dma_pool_alloc(cmdqs->cmdq_buf_pool, GFP_KERNEL, in hinic_alloc_cmdq_buf()
147 void hinic_free_cmdq_buf(struct hinic_cmdqs *cmdqs, 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()
481 int hinic_cmdq_direct_resp(struct hinic_cmdqs *cmdqs, in hinic_cmdq_direct_resp() argument
485 struct hinic_hwif *hwif = cmdqs->hwif; in hinic_cmdq_direct_resp()
495 return cmdq_sync_cmd_direct_resp(&cmdqs->cmdq[HINIC_CMDQ_SYNC], in hinic_cmdq_direct_resp()
[all …]
H A Dhinic_hw_cmdq.h170 int hinic_alloc_cmdq_buf(struct hinic_cmdqs *cmdqs,
173 void hinic_free_cmdq_buf(struct hinic_cmdqs *cmdqs,
176 int hinic_cmdq_direct_resp(struct hinic_cmdqs *cmdqs,
180 int hinic_init_cmdqs(struct hinic_cmdqs *cmdqs, struct hinic_hwif *hwif,
183 void hinic_free_cmdqs(struct hinic_cmdqs *cmdqs);
H A Dhinic_hw_io.c117 err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmdq_buf); in write_sq_ctxts()
137 err = hinic_cmdq_direct_resp(&func_to_io->cmdqs, HINIC_MOD_L2NIC, in write_sq_ctxts()
145 hinic_free_cmdq_buf(&func_to_io->cmdqs, &cmdq_buf); in write_sq_ctxts()
161 err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmdq_buf); in write_rq_ctxts()
181 err = hinic_cmdq_direct_resp(&func_to_io->cmdqs, HINIC_MOD_L2NIC, in write_rq_ctxts()
189 hinic_free_cmdq_buf(&func_to_io->cmdqs, &cmdq_buf); in write_rq_ctxts()
218 err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmdq_buf); in hinic_clean_queue_offload_ctxt()
236 err = hinic_cmdq_direct_resp(&func_to_io->cmdqs, HINIC_MOD_L2NIC, in hinic_clean_queue_offload_ctxt()
247 hinic_free_cmdq_buf(&func_to_io->cmdqs, &cmdq_buf); in hinic_clean_queue_offload_ctxt()
584 err = hinic_init_cmdqs(&func_to_io->cmdqs, hwif, in hinic_io_init()
[all …]
H A Dhinic_port.c616 err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmd_buf); in hinic_rss_set_indir_tbl()
641 err = hinic_cmdq_direct_resp(&func_to_io->cmdqs, HINIC_MOD_L2NIC, in hinic_rss_set_indir_tbl()
654 err = hinic_cmdq_direct_resp(&func_to_io->cmdqs, HINIC_MOD_L2NIC, in hinic_rss_set_indir_tbl()
663 hinic_free_cmdq_buf(&func_to_io->cmdqs, &cmd_buf); in hinic_rss_set_indir_tbl()
716 err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmd_buf); in hinic_set_rss_type()
743 err = hinic_cmdq_direct_resp(&func_to_io->cmdqs, HINIC_MOD_L2NIC, in hinic_set_rss_type()
747 hinic_free_cmdq_buf(&func_to_io->cmdqs, &cmd_buf); in hinic_set_rss_type()
H A Dhinic_hw_io.h86 struct hinic_cmdqs cmdqs; member