Lines Matching +full:hw +full:- +full:settle +full:- +full:time
1 // SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause
19 struct hfi1_devdata *dd = ppd->dd; in set_mgmt_allowed()
21 if (ppd->neighbor_type == NEIGHBOR_TYPE_HFI) { in set_mgmt_allowed()
22 ppd->mgmt_allowed = 1; in set_mgmt_allowed()
25 ppd->mgmt_allowed = (frame >> MGMT_ALLOWED_SHIFT) in set_mgmt_allowed()
33 * (0-based) pkey array position. Note that we should already have
39 struct hfi1_devdata *dd = ppd->dd; in add_full_mgmt_pkey()
41 /* Sanity check - ppd->pkeys[2] should be 0, or already initialized */ in add_full_mgmt_pkey()
42 if (!((ppd->pkeys[2] == 0) || (ppd->pkeys[2] == FULL_MGMT_P_KEY))) in add_full_mgmt_pkey()
44 __func__, ppd->pkeys[2], FULL_MGMT_P_KEY); in add_full_mgmt_pkey()
45 ppd->pkeys[2] = FULL_MGMT_P_KEY; in add_full_mgmt_pkey()
47 hfi1_event_pkey_change(ppd->dd, ppd->port); in add_full_mgmt_pkey()
51 * format_hwmsg - format a single hwerror message
64 * hfi1_format_hwerrors - format hardware error messages for display
84 struct hfi1_devdata *dd = ppd->dd; in signal_ib_event()
91 if (!(dd->flags & HFI1_INITTED)) in signal_ib_event()
93 event.device = &dd->verbs_dev.rdi.ibdev; in signal_ib_event()
94 event.element.port_num = ppd->port; in signal_ib_event()
100 * handle_linkup_change - finish linkup/down state changes
105 * The HW needs time to finish its link up state change. Give it that chance.
112 struct hfi1_pportdata *ppd = &dd->pport[0]; in handle_linkup_change()
115 if (!(ppd->linkup ^ !!linkup)) in handle_linkup_change()
122 * - VerifyCap interrupt in handle_linkup_change()
123 * - VerifyCap frames in handle_linkup_change()
133 if (quick_linkup || dd->icode == ICODE_FUNCTIONAL_SIMULATOR) { in handle_linkup_change()
134 set_up_vau(dd, dd->vau); in handle_linkup_change()
135 set_up_vl15(dd, dd->vl15_init); in handle_linkup_change()
136 assign_remote_cm_au_table(dd, dd->vcu); in handle_linkup_change()
139 ppd->neighbor_guid = in handle_linkup_change()
141 ppd->neighbor_type = in handle_linkup_change()
144 ppd->neighbor_port_number = in handle_linkup_change()
147 ppd->neighbor_fm_security = in handle_linkup_change()
152 ppd->neighbor_guid, ppd->neighbor_type, in handle_linkup_change()
153 ppd->neighbor_port_number); in handle_linkup_change()
155 /* HW needs LINK_UP_DELAY to settle, give it that chance */ in handle_linkup_change()
164 if (ppd->mgmt_allowed) in handle_linkup_change()
168 ppd->linkup = 1; in handle_linkup_change()
169 ppd->offline_disabled_reason = in handle_linkup_change()
177 ppd->linkup = 0; in handle_linkup_change()
179 /* clear HW details of the previous connection */ in handle_linkup_change()
180 ppd->actual_vls_operational = 0; in handle_linkup_change()
191 ppd->neighbor_normal = 0; in handle_linkup_change()
204 struct hfi1_devdata *dd = rcd->dd; in handle_user_interrupt()
207 spin_lock_irqsave(&dd->uctxt_lock, flags); in handle_user_interrupt()
208 if (bitmap_empty(rcd->in_use_ctxts, HFI1_MAX_SHARED_CTXTS)) in handle_user_interrupt()
211 if (test_and_clear_bit(HFI1_CTXT_WAITING_RCV, &rcd->event_flags)) { in handle_user_interrupt()
212 wake_up_interruptible(&rcd->wait); in handle_user_interrupt()
215 &rcd->event_flags)) { in handle_user_interrupt()
216 rcd->urgent++; in handle_user_interrupt()
217 wake_up_interruptible(&rcd->wait); in handle_user_interrupt()
220 spin_unlock_irqrestore(&dd->uctxt_lock, flags); in handle_user_interrupt()