Lines Matching refs:kinfo

208 	struct hnae3_knic_private_info *kinfo;  in hns3_lb_check_rx_ring()  local
211 kinfo = &h->kinfo; in hns3_lb_check_rx_ring()
212 for (i = kinfo->num_tqps; i < kinfo->num_tqps * 2; i++) { in hns3_lb_check_rx_ring()
483 return ((HNS3_TQP_STATS_COUNT * h->kinfo.num_tqps) + in hns3_get_sset_count()
525 struct hnae3_knic_private_info *kinfo = &handle->kinfo; in hns3_get_strings_tqps() local
531 kinfo->num_tqps, tx_prefix); in hns3_get_strings_tqps()
535 kinfo->num_tqps, rx_prefix); in hns3_get_strings_tqps()
572 struct hnae3_knic_private_info *kinfo = &handle->kinfo; in hns3_get_stats_tqps() local
579 for (i = 0; i < kinfo->num_tqps; i++) { in hns3_get_stats_tqps()
588 for (i = 0; i < kinfo->num_tqps; i++) { in hns3_get_stats_tqps()
589 ring = &nic_priv->ring[i + kinfo->num_tqps]; in hns3_get_stats_tqps()
678 int rx_queue_index = h->kinfo.num_tqps; in hns3_get_ringparam()
988 cmd->data = h->kinfo.num_tqps; in hns3_get_rxnfc()
1076 h->kinfo.num_tx_desc = tx_desc_num; in hns3_change_all_ring_bd_num()
1077 h->kinfo.num_rx_desc = rx_desc_num; in hns3_change_all_ring_bd_num()
1079 for (i = 0; i < h->kinfo.num_tqps; i++) { in hns3_change_all_ring_bd_num()
1081 priv->ring[i + h->kinfo.num_tqps].desc_num = rx_desc_num; in hns3_change_all_ring_bd_num()
1091 tmp_rings = kcalloc(handle->kinfo.num_tqps * 2, in hns3_backup_ringparam()
1096 for (i = 0; i < handle->kinfo.num_tqps * 2; i++) { in hns3_backup_ringparam()
1150 u16 queue_num = h->kinfo.num_tqps; in hns3_is_ringparam_changed()
1177 h->kinfo.rx_buf_len = rx_buf_len; in hns3_change_rx_buf_len()
1179 for (i = 0; i < h->kinfo.num_tqps; i++) { in hns3_change_rx_buf_len()
1180 h->kinfo.tqp[i]->buf_size = rx_buf_len; in hns3_change_rx_buf_len()
1181 priv->ring[i + h->kinfo.num_tqps].buf_size = rx_buf_len; in hns3_change_rx_buf_len()
1261 for (i = 0; i < h->kinfo.num_tqps * 2; i++) in hns3_set_ringparam()
1265 for (i = 0; i < h->kinfo.num_tqps * 2; i++) in hns3_set_ringparam()
1361 cmd->tx_coalesce_usecs_high = h->kinfo.int_rl_setting; in hns3_get_coalesce()
1362 cmd->rx_coalesce_usecs_high = h->kinfo.int_rl_setting; in hns3_get_coalesce()
1521 int queue_num = h->kinfo.num_tqps; in hns3_set_coalesce_per_queue()
1542 hns3_set_vector_coalesce_rl(tx_vector, h->kinfo.int_rl_setting); in hns3_set_coalesce_per_queue()
1543 hns3_set_vector_coalesce_rl(rx_vector, h->kinfo.int_rl_setting); in hns3_set_coalesce_per_queue()
1562 u16 queue_num = h->kinfo.num_tqps; in hns3_set_coalesce()
1575 h->kinfo.int_rl_setting = in hns3_set_coalesce()
1878 *(u32 *)data = h->kinfo.tx_spare_buf_size; in hns3_get_tunable()
1895 h->kinfo.tx_spare_buf_size = data; in hns3_set_tx_spare_buf_size()
1934 for (i = 0; i < h->kinfo.num_tqps; i++) in hns3_set_tunable()
1941 for (i = h->kinfo.num_tqps; i < h->kinfo.num_tqps * 2; i++) in hns3_set_tunable()
1946 old_tx_spare_buf_size = h->kinfo.tx_spare_buf_size; in hns3_set_tunable()