Lines Matching refs:tmp_rings
1108 struct hns3_enet_ring *tmp_rings; in hns3_backup_ringparam() local
1111 tmp_rings = kcalloc(handle->kinfo.num_tqps * 2, in hns3_backup_ringparam()
1113 if (!tmp_rings) in hns3_backup_ringparam()
1117 memcpy(&tmp_rings[i], &priv->ring[i], in hns3_backup_ringparam()
1119 tmp_rings[i].skb = NULL; in hns3_backup_ringparam()
1122 return tmp_rings; in hns3_backup_ringparam()
1239 struct hns3_enet_ring *tmp_rings; in hns3_set_ringparam() local
1255 tmp_rings = hns3_backup_ringparam(priv); in hns3_set_ringparam()
1256 if (!tmp_rings) { in hns3_set_ringparam()
1282 memcpy(&priv->ring[i], &tmp_rings[i], in hns3_set_ringparam()
1286 hns3_fini_ring(&tmp_rings[i]); in hns3_set_ringparam()
1289 kfree(tmp_rings); in hns3_set_ringparam()