Lines Matching refs:ldev
16 static int i40e_client_virtchnl_send(struct i40e_info *ldev,
20 static int i40e_client_setup_qvlist(struct i40e_info *ldev,
24 static void i40e_client_request_reset(struct i40e_info *ldev,
28 static int i40e_client_update_vsi_ctxt(struct i40e_info *ldev,
139 static void i40e_client_release_qvlist(struct i40e_info *ldev) in i40e_client_release_qvlist() argument
141 struct i40e_qvlist_info *qvlist_info = ldev->qvlist_info; in i40e_client_release_qvlist()
144 if (!ldev->qvlist_info) in i40e_client_release_qvlist()
148 struct i40e_pf *pf = ldev->pf; in i40e_client_release_qvlist()
158 kfree(ldev->qvlist_info); in i40e_client_release_qvlist()
159 ldev->qvlist_info = NULL; in i40e_client_release_qvlist()
405 struct i40e_device *ldev; in i40e_lan_add_device() local
409 list_for_each_entry(ldev, &i40e_devices, list) { in i40e_lan_add_device()
410 if (ldev->pf == pf) { in i40e_lan_add_device()
415 ldev = kzalloc(sizeof(*ldev), GFP_KERNEL); in i40e_lan_add_device()
416 if (!ldev) { in i40e_lan_add_device()
420 ldev->pf = pf; in i40e_lan_add_device()
421 INIT_LIST_HEAD(&ldev->list); in i40e_lan_add_device()
422 list_add(&ldev->list, &i40e_devices); in i40e_lan_add_device()
453 struct i40e_device *ldev, *tmp; in i40e_lan_del_device() local
460 list_for_each_entry_safe(ldev, tmp, &i40e_devices, list) { in i40e_lan_del_device()
461 if (ldev->pf == pf) { in i40e_lan_del_device()
465 list_del(&ldev->list); in i40e_lan_del_device()
466 kfree(ldev); in i40e_lan_del_device()
483 struct i40e_device *ldev; in i40e_client_release() local
487 list_for_each_entry(ldev, &i40e_devices, list) { in i40e_client_release()
488 pf = ldev->pf; in i40e_client_release()
524 struct i40e_device *ldev; in i40e_client_prepare() local
528 list_for_each_entry(ldev, &i40e_devices, list) { in i40e_client_prepare()
529 pf = ldev->pf; in i40e_client_prepare()
548 static int i40e_client_virtchnl_send(struct i40e_info *ldev, in i40e_client_virtchnl_send() argument
552 struct i40e_pf *pf = ldev->pf; in i40e_client_virtchnl_send()
573 static int i40e_client_setup_qvlist(struct i40e_info *ldev, in i40e_client_setup_qvlist() argument
577 struct i40e_pf *pf = ldev->pf; in i40e_client_setup_qvlist()
582 ldev->qvlist_info = kzalloc(struct_size(ldev->qvlist_info, qv_info, in i40e_client_setup_qvlist()
584 if (!ldev->qvlist_info) in i40e_client_setup_qvlist()
586 ldev->qvlist_info->num_vectors = qvlist_info->num_vectors; in i40e_client_setup_qvlist()
599 ldev->qvlist_info->qv_info[i] = *qv_info; in i40e_client_setup_qvlist()
633 kfree(ldev->qvlist_info); in i40e_client_setup_qvlist()
634 ldev->qvlist_info = NULL; in i40e_client_setup_qvlist()
644 static void i40e_client_request_reset(struct i40e_info *ldev, in i40e_client_request_reset() argument
648 struct i40e_pf *pf = ldev->pf; in i40e_client_request_reset()
678 static int i40e_client_update_vsi_ctxt(struct i40e_info *ldev, in i40e_client_update_vsi_ctxt() argument
683 struct i40e_pf *pf = ldev->pf; in i40e_client_update_vsi_ctxt()