Home
last modified time | relevance | path

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

/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_cmdq.c81 #define cmdqs_to_func_to_io(cmdqs) container_of(cmdqs, \ argument
83 cmdqs)
131 int hinic_alloc_cmdq_buf(struct hinic_cmdqs *cmdqs, in hinic_alloc_cmdq_buf() argument
134 struct hinic_hwif *hwif = cmdqs->hwif; in hinic_alloc_cmdq_buf()
137 cmdq_buf->buf = dma_pool_alloc(cmdqs->cmdq_buf_pool, GFP_KERNEL, in hinic_alloc_cmdq_buf()
152 void hinic_free_cmdq_buf(struct hinic_cmdqs *cmdqs, in hinic_free_cmdq_buf() argument
155 dma_pool_free(cmdqs->cmdq_buf_pool, cmdq_buf->buf, cmdq_buf->dma_addr); in hinic_free_cmdq_buf()
486 int hinic_cmdq_direct_resp(struct hinic_cmdqs *cmdqs, in hinic_cmdq_direct_resp() argument
490 struct hinic_hwif *hwif = cmdqs->hwif; in hinic_cmdq_direct_resp()
500 return cmdq_sync_cmd_direct_resp(&cmdqs->cmdq[HINIC_CMDQ_SYNC], in hinic_cmdq_direct_resp()
[all …]
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_set_arm_bit(struct hinic_cmdqs *cmdqs,
183 int hinic_init_cmdqs(struct hinic_cmdqs *cmdqs, struct hinic_hwif *hwif,
186 void hinic_free_cmdqs(struct hinic_cmdqs *cmdqs);
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()
585 err = hinic_init_cmdqs(&func_to_io->cmdqs, hwif, in hinic_io_init()
[all …]
Dhinic_port.c601 err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmd_buf); in hinic_rss_set_indir_tbl()
626 err = hinic_cmdq_direct_resp(&func_to_io->cmdqs, HINIC_MOD_L2NIC, in hinic_rss_set_indir_tbl()
639 err = hinic_cmdq_direct_resp(&func_to_io->cmdqs, HINIC_MOD_L2NIC, in hinic_rss_set_indir_tbl()
648 hinic_free_cmdq_buf(&func_to_io->cmdqs, &cmd_buf); in hinic_rss_set_indir_tbl()
701 err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmd_buf); in hinic_set_rss_type()
728 err = hinic_cmdq_direct_resp(&func_to_io->cmdqs, HINIC_MOD_L2NIC, in hinic_set_rss_type()
732 hinic_free_cmdq_buf(&func_to_io->cmdqs, &cmd_buf); in hinic_set_rss_type()
Dhinic_hw_io.h86 struct hinic_cmdqs cmdqs; member