Lines Matching refs:p_nvmetcp_info

36 	if (p_hwfn->p_nvmetcp_info->event_cb) {  in qed_nvmetcp_async_event()
37 struct qed_nvmetcp_info *p_nvmetcp = p_hwfn->p_nvmetcp_info; in qed_nvmetcp_async_event()
111 p_hwfn->p_nvmetcp_info->event_context = event_context; in qed_sp_nvmetcp_func_start()
112 p_hwfn->p_nvmetcp_info->event_cb = async_event_cb; in qed_sp_nvmetcp_func_start()
465 spin_lock_bh(&p_hwfn->p_nvmetcp_info->lock); in qed_nvmetcp_allocate_connection()
466 if (!list_empty(&p_hwfn->p_nvmetcp_info->free_list)) in qed_nvmetcp_allocate_connection()
467 p_conn = list_first_entry(&p_hwfn->p_nvmetcp_info->free_list, in qed_nvmetcp_allocate_connection()
471 spin_unlock_bh(&p_hwfn->p_nvmetcp_info->lock); in qed_nvmetcp_allocate_connection()
476 spin_unlock_bh(&p_hwfn->p_nvmetcp_info->lock); in qed_nvmetcp_allocate_connection()
525 spin_lock_bh(&p_hwfn->p_nvmetcp_info->lock); in qed_nvmetcp_acquire_connection()
527 spin_unlock_bh(&p_hwfn->p_nvmetcp_info->lock); in qed_nvmetcp_acquire_connection()
534 spin_lock_bh(&p_hwfn->p_nvmetcp_info->lock); in qed_nvmetcp_acquire_connection()
536 spin_unlock_bh(&p_hwfn->p_nvmetcp_info->lock); in qed_nvmetcp_acquire_connection()
552 spin_lock_bh(&p_hwfn->p_nvmetcp_info->lock); in qed_nvmetcp_release_connection()
553 list_add_tail(&p_conn->list_entry, &p_hwfn->p_nvmetcp_info->free_list); in qed_nvmetcp_release_connection()
555 spin_unlock_bh(&p_hwfn->p_nvmetcp_info->lock); in qed_nvmetcp_release_connection()
569 struct qed_nvmetcp_info *p_nvmetcp_info; in qed_nvmetcp_alloc() local
571 p_nvmetcp_info = kzalloc(sizeof(*p_nvmetcp_info), GFP_KERNEL); in qed_nvmetcp_alloc()
572 if (!p_nvmetcp_info) in qed_nvmetcp_alloc()
575 INIT_LIST_HEAD(&p_nvmetcp_info->free_list); in qed_nvmetcp_alloc()
576 p_hwfn->p_nvmetcp_info = p_nvmetcp_info; in qed_nvmetcp_alloc()
583 spin_lock_init(&p_hwfn->p_nvmetcp_info->lock); in qed_nvmetcp_setup()
590 if (!p_hwfn->p_nvmetcp_info) in qed_nvmetcp_free()
593 while (!list_empty(&p_hwfn->p_nvmetcp_info->free_list)) { in qed_nvmetcp_free()
594 p_conn = list_first_entry(&p_hwfn->p_nvmetcp_info->free_list, in qed_nvmetcp_free()
602 kfree(p_hwfn->p_nvmetcp_info); in qed_nvmetcp_free()
603 p_hwfn->p_nvmetcp_info = NULL; in qed_nvmetcp_free()