cmdqs              81 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c #define cmdqs_to_func_to_io(cmdqs)      container_of(cmdqs, \
cmdqs              83 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 						     cmdqs)
cmdqs             131 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c int hinic_alloc_cmdq_buf(struct hinic_cmdqs *cmdqs,
cmdqs             134 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	struct hinic_hwif *hwif = cmdqs->hwif;
cmdqs             137 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	cmdq_buf->buf = dma_pool_alloc(cmdqs->cmdq_buf_pool, GFP_KERNEL,
cmdqs             152 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c void hinic_free_cmdq_buf(struct hinic_cmdqs *cmdqs,
cmdqs             155 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	dma_pool_free(cmdqs->cmdq_buf_pool, cmdq_buf->buf, cmdq_buf->dma_addr);
cmdqs             485 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c int hinic_cmdq_direct_resp(struct hinic_cmdqs *cmdqs,
cmdqs             489 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	struct hinic_hwif *hwif = cmdqs->hwif;
cmdqs             499 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	return cmdq_sync_cmd_direct_resp(&cmdqs->cmdq[HINIC_CMDQ_SYNC],
cmdqs             511 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c int hinic_set_arm_bit(struct hinic_cmdqs *cmdqs,
cmdqs             514 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	struct hinic_cmdq *cmdq = &cmdqs->cmdq[HINIC_CMDQ_SYNC];
cmdqs             515 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	struct hinic_hwif *hwif = cmdqs->hwif;
cmdqs             646 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	struct hinic_cmdqs *cmdqs = (struct hinic_cmdqs *)handle;
cmdqs             647 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	struct hinic_cmdq *cmdq = &cmdqs->cmdq[cmdq_type];
cmdqs             681 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 		struct hinic_hwif *hwif = cmdqs->hwif;
cmdqs             684 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 		err = hinic_set_arm_bit(cmdqs, HINIC_SET_ARM_CMDQ, cmdq_type);
cmdqs             702 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	struct hinic_cmdqs *cmdqs = cmdq_to_cmdqs(cmdq);
cmdqs             726 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	cmdq_ctxt->func_idx = HINIC_HWIF_FUNC_IDX(cmdqs->hwif);
cmdqs             788 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 			   struct hinic_cmdqs *cmdqs, void __iomem **db_area)
cmdqs             812 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 		err = init_cmdq(&cmdqs->cmdq[cmdq_type],
cmdqs             813 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 				&cmdqs->saved_wqs[cmdq_type], cmdq_type,
cmdqs             821 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 				     &cmdqs->cmdq[cmdq_type],
cmdqs             822 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 				     &cmdqs->cmdq_pages);
cmdqs             848 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 		free_cmdq(&cmdqs->cmdq[type]);
cmdqs             862 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c int hinic_init_cmdqs(struct hinic_cmdqs *cmdqs, struct hinic_hwif *hwif,
cmdqs             865 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	struct hinic_func_to_io *func_to_io = cmdqs_to_func_to_io(cmdqs);
cmdqs             872 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	cmdqs->hwif = hwif;
cmdqs             873 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	cmdqs->cmdq_buf_pool = dma_pool_create("hinic_cmdq", &pdev->dev,
cmdqs             876 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	if (!cmdqs->cmdq_buf_pool)
cmdqs             880 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	cmdqs->saved_wqs = devm_kzalloc(&pdev->dev, saved_wqs_size, GFP_KERNEL);
cmdqs             881 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	if (!cmdqs->saved_wqs) {
cmdqs             887 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	err = hinic_wqs_cmdq_alloc(&cmdqs->cmdq_pages, cmdqs->saved_wqs, hwif,
cmdqs             896 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	err = init_cmdqs_ctxt(hwdev, cmdqs, db_area);
cmdqs             902 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	hinic_ceq_register_cb(&func_to_io->ceqs, HINIC_CEQ_CMDQ, cmdqs,
cmdqs             907 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	hinic_wqs_cmdq_free(&cmdqs->cmdq_pages, cmdqs->saved_wqs,
cmdqs             911 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	devm_kfree(&pdev->dev, cmdqs->saved_wqs);
cmdqs             914 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	dma_pool_destroy(cmdqs->cmdq_buf_pool);
cmdqs             922 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c void hinic_free_cmdqs(struct hinic_cmdqs *cmdqs)
cmdqs             924 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	struct hinic_func_to_io *func_to_io = cmdqs_to_func_to_io(cmdqs);
cmdqs             925 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	struct hinic_hwif *hwif = cmdqs->hwif;
cmdqs             933 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 		free_cmdq(&cmdqs->cmdq[cmdq_type]);
cmdqs             935 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	hinic_wqs_cmdq_free(&cmdqs->cmdq_pages, cmdqs->saved_wqs,
cmdqs             938 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	devm_kfree(&pdev->dev, cmdqs->saved_wqs);
cmdqs             940 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	dma_pool_destroy(cmdqs->cmdq_buf_pool);
cmdqs             160 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.h int hinic_alloc_cmdq_buf(struct hinic_cmdqs *cmdqs,
cmdqs             163 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.h void hinic_free_cmdq_buf(struct hinic_cmdqs *cmdqs,
cmdqs             166 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.h int hinic_cmdq_direct_resp(struct hinic_cmdqs *cmdqs,
cmdqs             170 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.h int hinic_set_arm_bit(struct hinic_cmdqs *cmdqs,
cmdqs             173 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.h int hinic_init_cmdqs(struct hinic_cmdqs *cmdqs, struct hinic_hwif *hwif,
cmdqs             176 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.h void hinic_free_cmdqs(struct hinic_cmdqs *cmdqs);
cmdqs             114 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c 	err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmdq_buf);
cmdqs             134 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c 	err = hinic_cmdq_direct_resp(&func_to_io->cmdqs, HINIC_MOD_L2NIC,
cmdqs             142 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c 	hinic_free_cmdq_buf(&func_to_io->cmdqs, &cmdq_buf);
cmdqs             158 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c 	err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmdq_buf);
cmdqs             178 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c 	err = hinic_cmdq_direct_resp(&func_to_io->cmdqs, HINIC_MOD_L2NIC,
cmdqs             186 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c 	hinic_free_cmdq_buf(&func_to_io->cmdqs, &cmdq_buf);
cmdqs             215 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c 	err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmdq_buf);
cmdqs             233 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c 	err = hinic_cmdq_direct_resp(&func_to_io->cmdqs, HINIC_MOD_L2NIC,
cmdqs             244 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c 	hinic_free_cmdq_buf(&func_to_io->cmdqs, &cmdq_buf);
cmdqs             544 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c 	err = hinic_init_cmdqs(&func_to_io->cmdqs, hwif,
cmdqs             576 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c 	hinic_free_cmdqs(&func_to_io->cmdqs);
cmdqs              71 drivers/net/ethernet/huawei/hinic/hinic_hw_io.h 	struct hinic_cmdqs              cmdqs;
cmdqs             597 drivers/net/ethernet/huawei/hinic/hinic_port.c 	err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmd_buf);
cmdqs             622 drivers/net/ethernet/huawei/hinic/hinic_port.c 	err = hinic_cmdq_direct_resp(&func_to_io->cmdqs, HINIC_MOD_L2NIC,
cmdqs             635 drivers/net/ethernet/huawei/hinic/hinic_port.c 	err = hinic_cmdq_direct_resp(&func_to_io->cmdqs, HINIC_MOD_L2NIC,
cmdqs             644 drivers/net/ethernet/huawei/hinic/hinic_port.c 	hinic_free_cmdq_buf(&func_to_io->cmdqs, &cmd_buf);
cmdqs             697 drivers/net/ethernet/huawei/hinic/hinic_port.c 	err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmd_buf);
cmdqs             724 drivers/net/ethernet/huawei/hinic/hinic_port.c 	err = hinic_cmdq_direct_resp(&func_to_io->cmdqs, HINIC_MOD_L2NIC,
cmdqs             728 drivers/net/ethernet/huawei/hinic/hinic_port.c 	hinic_free_cmdq_buf(&func_to_io->cmdqs, &cmd_buf);