Lines Matching refs:p_fcoe_info

373 	spin_lock_bh(&p_hwfn->p_fcoe_info->lock);  in qed_fcoe_allocate_connection()
374 if (!list_empty(&p_hwfn->p_fcoe_info->free_list)) in qed_fcoe_allocate_connection()
376 list_first_entry(&p_hwfn->p_fcoe_info->free_list, in qed_fcoe_allocate_connection()
380 spin_unlock_bh(&p_hwfn->p_fcoe_info->lock); in qed_fcoe_allocate_connection()
384 spin_unlock_bh(&p_hwfn->p_fcoe_info->lock); in qed_fcoe_allocate_connection()
535 struct qed_fcoe_info *p_fcoe_info; in qed_fcoe_alloc() local
538 p_fcoe_info = kzalloc(sizeof(*p_fcoe_info), GFP_KERNEL); in qed_fcoe_alloc()
539 if (!p_fcoe_info) { in qed_fcoe_alloc()
543 INIT_LIST_HEAD(&p_fcoe_info->free_list); in qed_fcoe_alloc()
545 p_hwfn->p_fcoe_info = p_fcoe_info; in qed_fcoe_alloc()
555 spin_lock_init(&p_hwfn->p_fcoe_info->lock); in qed_fcoe_setup()
582 if (!p_hwfn->p_fcoe_info) in qed_fcoe_free()
585 while (!list_empty(&p_hwfn->p_fcoe_info->free_list)) { in qed_fcoe_free()
586 p_conn = list_first_entry(&p_hwfn->p_fcoe_info->free_list, in qed_fcoe_free()
594 kfree(p_hwfn->p_fcoe_info); in qed_fcoe_free()
595 p_hwfn->p_fcoe_info = NULL; in qed_fcoe_free()
607 spin_lock_bh(&p_hwfn->p_fcoe_info->lock); in qed_fcoe_acquire_connection()
609 spin_unlock_bh(&p_hwfn->p_fcoe_info->lock); in qed_fcoe_acquire_connection()
619 spin_lock_bh(&p_hwfn->p_fcoe_info->lock); in qed_fcoe_acquire_connection()
621 spin_unlock_bh(&p_hwfn->p_fcoe_info->lock); in qed_fcoe_acquire_connection()
636 spin_lock_bh(&p_hwfn->p_fcoe_info->lock); in qed_fcoe_release_connection()
637 list_add_tail(&p_conn->list_entry, &p_hwfn->p_fcoe_info->free_list); in qed_fcoe_release_connection()
639 spin_unlock_bh(&p_hwfn->p_fcoe_info->lock); in qed_fcoe_release_connection()