Lines Matching refs:p_iscsi_info

125 	if (p_hwfn->p_iscsi_info->event_cb) {  in qed_iscsi_async_event()
126 struct qed_iscsi_info *p_iscsi = p_hwfn->p_iscsi_info; in qed_iscsi_async_event()
251 p_hwfn->p_iscsi_info->event_context = event_context; in qed_sp_iscsi_func_start()
252 p_hwfn->p_iscsi_info->event_cb = async_event_cb; in qed_sp_iscsi_func_start()
698 spin_lock_bh(&p_hwfn->p_iscsi_info->lock); in qed_iscsi_allocate_connection()
699 if (!list_empty(&p_hwfn->p_iscsi_info->free_list)) in qed_iscsi_allocate_connection()
700 p_conn = list_first_entry(&p_hwfn->p_iscsi_info->free_list, in qed_iscsi_allocate_connection()
704 spin_unlock_bh(&p_hwfn->p_iscsi_info->lock); in qed_iscsi_allocate_connection()
708 spin_unlock_bh(&p_hwfn->p_iscsi_info->lock); in qed_iscsi_allocate_connection()
787 spin_lock_bh(&p_hwfn->p_iscsi_info->lock); in qed_iscsi_acquire_connection()
789 spin_unlock_bh(&p_hwfn->p_iscsi_info->lock); in qed_iscsi_acquire_connection()
803 spin_lock_bh(&p_hwfn->p_iscsi_info->lock); in qed_iscsi_acquire_connection()
805 spin_unlock_bh(&p_hwfn->p_iscsi_info->lock); in qed_iscsi_acquire_connection()
821 spin_lock_bh(&p_hwfn->p_iscsi_info->lock); in qed_iscsi_release_connection()
822 list_add_tail(&p_conn->list_entry, &p_hwfn->p_iscsi_info->free_list); in qed_iscsi_release_connection()
824 spin_unlock_bh(&p_hwfn->p_iscsi_info->lock); in qed_iscsi_release_connection()
846 struct qed_iscsi_info *p_iscsi_info; in qed_iscsi_alloc() local
848 p_iscsi_info = kzalloc(sizeof(*p_iscsi_info), GFP_KERNEL); in qed_iscsi_alloc()
849 if (!p_iscsi_info) in qed_iscsi_alloc()
852 INIT_LIST_HEAD(&p_iscsi_info->free_list); in qed_iscsi_alloc()
854 p_hwfn->p_iscsi_info = p_iscsi_info; in qed_iscsi_alloc()
860 spin_lock_init(&p_hwfn->p_iscsi_info->lock); in qed_iscsi_setup()
867 if (!p_hwfn->p_iscsi_info) in qed_iscsi_free()
870 while (!list_empty(&p_hwfn->p_iscsi_info->free_list)) { in qed_iscsi_free()
871 p_conn = list_first_entry(&p_hwfn->p_iscsi_info->free_list, in qed_iscsi_free()
879 kfree(p_hwfn->p_iscsi_info); in qed_iscsi_free()
880 p_hwfn->p_iscsi_info = NULL; in qed_iscsi_free()