Searched refs:func_to_io (Results 1 – 11 of 11) sorted by relevance
/linux-6.6.21/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_io.c | 60 static void __iomem *get_db_area(struct hinic_func_to_io *func_to_io) in get_db_area() argument 62 struct hinic_free_db_area *free_db_area = &func_to_io->free_db_area; in get_db_area() 84 return func_to_io->db_base + idx * HINIC_DB_PAGE_SIZE; in get_db_area() 87 static void return_db_area(struct hinic_func_to_io *func_to_io, in return_db_area() argument 90 struct hinic_free_db_area *free_db_area = &func_to_io->free_db_area; in return_db_area() 91 int pos, idx = DB_IDX(db_base, func_to_io->db_base); in return_db_area() 105 static int write_sq_ctxts(struct hinic_func_to_io *func_to_io, u16 base_qpn, in write_sq_ctxts() argument 108 struct hinic_hwif *hwif = func_to_io->hwif; in write_sq_ctxts() 117 err = hinic_alloc_cmdq_buf(&func_to_io->cmdqs, &cmdq_buf); in write_sq_ctxts() 127 num_sqs, func_to_io->max_qps); in write_sq_ctxts() [all …]
|
D | hinic_sriov.c | 44 …dev_err(&hwdev->func_to_io.hwif->pdev->dev, "Failed to set MAC, err: %d, status: 0x%x, out size: 0… in hinic_set_mac() 55 struct vf_data_storage *vf_infos = hwdev->func_to_io.vf_infos; in hinic_notify_vf_link_status() 79 struct hinic_func_to_io *nic_io = &hwdev->func_to_io; in hinic_notify_all_vfs_link_changed() 91 struct hinic_func_to_io *nic_io = &hwdev->func_to_io; in hinic_vf_info_vlanprio() 137 struct hinic_func_to_io *nic_io = &hwdev->func_to_io; in hinic_set_vf_tx_rate_max_min() 167 struct hinic_func_to_io *nic_io = &hwdev->func_to_io; in hinic_set_vf_rate_limit() 218 vf_info = hwdev->func_to_io.vf_infos + HW_VF_ID_TO_OS(vf_id); in hinic_init_vf_config() 227 dev_err(&hwdev->func_to_io.hwif->pdev->dev, "Failed to set VF %d MAC\n", in hinic_init_vf_config() 266 nic_io = &hw_dev->func_to_io; in hinic_register_vf_msg_handler() 293 nic_io = &hw_dev->func_to_io; in hinic_unregister_vf_msg_handler() [all …]
|
D | hinic_hw_io.h | 109 int hinic_io_create_qps(struct hinic_func_to_io *func_to_io, 114 void hinic_io_destroy_qps(struct hinic_func_to_io *func_to_io, 117 int hinic_io_init(struct hinic_func_to_io *func_to_io, 121 void hinic_io_free(struct hinic_func_to_io *func_to_io);
|
D | hinic_hw_dev.c | 440 struct hinic_func_to_io *func_to_io = &hwdev->func_to_io; in hinic_hwdev_ifup() local 460 func_to_io->hwdev = hwdev; in hinic_hwdev_ifup() 461 func_to_io->sq_depth = sq_depth; in hinic_hwdev_ifup() 462 func_to_io->rq_depth = rq_depth; in hinic_hwdev_ifup() 463 func_to_io->global_qpn = base_qpn; in hinic_hwdev_ifup() 465 err = hinic_io_init(func_to_io, hwif, nic_cap->max_qps, num_ceqs, in hinic_hwdev_ifup() 476 err = hinic_io_create_qps(func_to_io, base_qpn, num_qps, in hinic_hwdev_ifup() 498 hinic_io_destroy_qps(func_to_io, num_qps); in hinic_hwdev_ifup() 501 hinic_io_free(func_to_io); in hinic_hwdev_ifup() 512 struct hinic_func_to_io *func_to_io = &hwdev->func_to_io; in hinic_hwdev_ifdown() local [all …]
|
D | hinic_port.c | 601 struct hinic_func_to_io *func_to_io; in hinic_rss_set_indir_tbl() local 612 func_to_io = &hwdev->func_to_io; in hinic_rss_set_indir_tbl() 616 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() 702 struct hinic_func_to_io *func_to_io; in hinic_set_rss_type() local 712 func_to_io = &hwdev->func_to_io; in hinic_set_rss_type() 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() [all …]
|
D | hinic_hw_cmdq.c | 878 struct hinic_func_to_io *func_to_io = cmdqs_to_func_to_io(cmdqs); in hinic_init_cmdqs() local 907 hwdev = container_of(func_to_io, struct hinic_hwdev, func_to_io); in hinic_init_cmdqs() 914 hinic_ceq_register_cb(&func_to_io->ceqs, HINIC_CEQ_CMDQ, cmdqs, in hinic_init_cmdqs() 926 hinic_ceq_unregister_cb(&func_to_io->ceqs, HINIC_CEQ_CMDQ); in hinic_init_cmdqs() 946 struct hinic_func_to_io *func_to_io = cmdqs_to_func_to_io(cmdqs); in hinic_free_cmdqs() local 951 hinic_ceq_unregister_cb(&func_to_io->ceqs, HINIC_CEQ_CMDQ); in hinic_free_cmdqs()
|
D | hinic_debugfs.c | 29 return nic_dev->hwdev->func_to_io.global_qpn + sq->qid; in hinic_dbg_get_sq_info() 59 return nic_dev->hwdev->func_to_io.global_qpn + rq->qid; in hinic_dbg_get_rq_info()
|
D | hinic_ethtool.c | 834 nic_cfg = &nic_dev->hwdev->func_to_io.nic_cfg; in hinic_get_pauseparam() 868 mutex_lock(&nic_dev->hwdev->func_to_io.nic_cfg.cfg_mutex); in hinic_set_pauseparam() 871 mutex_unlock(&nic_dev->hwdev->func_to_io.nic_cfg.cfg_mutex); in hinic_set_pauseparam() 874 nic_dev->hwdev->func_to_io.nic_cfg.pause_set = true; in hinic_set_pauseparam() 875 nic_dev->hwdev->func_to_io.nic_cfg.auto_neg = pause->autoneg; in hinic_set_pauseparam() 876 nic_dev->hwdev->func_to_io.nic_cfg.rx_pause = pause->rx_pause; in hinic_set_pauseparam() 877 nic_dev->hwdev->func_to_io.nic_cfg.tx_pause = pause->tx_pause; in hinic_set_pauseparam() 878 mutex_unlock(&nic_dev->hwdev->func_to_io.nic_cfg.cfg_mutex); in hinic_set_pauseparam()
|
D | hinic_hw_dev.h | 431 struct hinic_func_to_io func_to_io; member
|
D | hinic_hw_eqs.c | 965 for (q_id = 0; q_id < hwdev->func_to_io.ceqs.num_ceqs; q_id++) { in hinic_dump_ceq_info() 966 eq = &hwdev->func_to_io.ceqs.ceq[q_id]; in hinic_dump_ceq_info()
|
D | hinic_main.c | 938 struct hinic_nic_cfg *nic_cfg = &nic_dev->hwdev->func_to_io.nic_cfg; in hinic_refresh_nic_cfg()
|