Lines Matching refs:kinfo
1653 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_assign_tqp() local
1662 hdev->htqp[i].q.tx_desc_num = kinfo->num_tx_desc; in hclge_assign_tqp()
1663 hdev->htqp[i].q.rx_desc_num = kinfo->num_rx_desc; in hclge_assign_tqp()
1664 kinfo->tqp[alloced] = &hdev->htqp[i].q; in hclge_assign_tqp()
1670 kinfo->rss_size = min_t(u16, hdev->pf_rss_size_max, in hclge_assign_tqp()
1674 kinfo->rss_size = min_t(u16, kinfo->rss_size, in hclge_assign_tqp()
1685 struct hnae3_knic_private_info *kinfo = &nic->kinfo; in hclge_knic_setup() local
1689 kinfo->num_tx_desc = num_tx_desc; in hclge_knic_setup()
1690 kinfo->num_rx_desc = num_rx_desc; in hclge_knic_setup()
1692 kinfo->rx_buf_len = hdev->rx_buf_len; in hclge_knic_setup()
1693 kinfo->tx_spare_buf_size = hdev->tx_spare_buf_size; in hclge_knic_setup()
1695 kinfo->tqp = devm_kcalloc(&hdev->pdev->dev, num_tqps, in hclge_knic_setup()
1697 if (!kinfo->tqp) in hclge_knic_setup()
1711 struct hnae3_knic_private_info *kinfo; in hclge_map_tqp_to_vport() local
1714 kinfo = &nic->kinfo; in hclge_map_tqp_to_vport()
1717 container_of(kinfo->tqp[i], struct hclge_comm_tqp, q); in hclge_map_tqp_to_vport()
1759 nic->kinfo.io_base = hdev->hw.hw.io_base; in hclge_vport_setup()
2444 roce->rinfo.netdev = nic->kinfo.netdev; in hclge_init_roce_base_info()
4833 tc_info = &vport->nic.kinfo.tc_info; in hclge_init_rss_tc_mode()
5789 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_config_action() local
5800 kinfo->tc_info.tqp_offset[rule->cls_flower.tc]; in hclge_config_action()
5802 ilog2(kinfo->tc_info.tqp_count[rule->cls_flower.tc]); in hclge_config_action()
6430 tqps = hdev->vport[vf].nic.kinfo.num_tqps; in hclge_fd_parse_ring_cookie()
7840 for (i = 0; i < handle->kinfo.num_tqps; i++) { in hclge_tqp_enable()
10699 queue = handle->kinfo.tqp[queue_id]; in hclge_covert_handle_qid_global()
10715 for (i = 0; i < handle->kinfo.num_tqps; i++) { in hclge_reset_tqp_cmd()
10775 req->fun_reset_rcb_vqid_num = cpu_to_le16(handle->kinfo.num_tqps); in hclge_reset_rcb()
11073 handle->kinfo.tc_info.dcb_ets_active ? "enable" : "disable"); in hclge_info_show()
11075 handle->kinfo.tc_info.mqprio_active ? "enable" : "disable"); in hclge_info_show()
12222 ch->combined_count = handle->kinfo.rss_size; in hclge_get_channels()
12245 roundup_size = roundup_pow_of_two(vport->nic.kinfo.rss_size); in hclge_set_rss_tc_mode_cfg()
12256 tc_offset[i] = vport->nic.kinfo.rss_size * i; in hclge_set_rss_tc_mode_cfg()
12268 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_set_channels() local
12270 u16 cur_rss_size = kinfo->rss_size; in hclge_set_channels()
12271 u16 cur_tqps = kinfo->num_tqps; in hclge_set_channels()
12276 kinfo->req_rss_size = new_tqps_num; in hclge_set_channels()
12299 rss_indir[i] = i % kinfo->rss_size; in hclge_set_channels()
12312 cur_rss_size, kinfo->rss_size, in hclge_set_channels()
12313 cur_tqps, kinfo->rss_size * kinfo->tc_info.num_tc); in hclge_set_channels()
12645 *tc_mode = vport->nic.kinfo.tc_map_mode; in hclge_get_dscp_prio()
12647 *priority = vport->nic.kinfo.dscp_prio[dscp] == HNAE3_PRIO_ID_INVALID ? 0 : in hclge_get_dscp_prio()
12648 vport->nic.kinfo.dscp_prio[dscp]; in hclge_get_dscp_prio()