/drivers/infiniband/hw/qib/ |
D | qib_intr.c | 83 void qib_handle_e_ibstatuschanged(struct qib_pportdata *ppd, u64 ibcs) in qib_handle_e_ibstatuschanged() argument 91 lstate = dd->f_iblink_state(ibcs); /* linkstate */ in qib_handle_e_ibstatuschanged() 92 ltstate = dd->f_ibphys_portstate(ibcs); in qib_handle_e_ibstatuschanged() 107 if (dd->f_ib_updown(ppd, 1, ibcs)) in qib_handle_e_ibstatuschanged() 113 dd->f_ib_updown(ppd, 0, ibcs)) in qib_handle_e_ibstatuschanged() 168 ppd->lastibcstat = ibcs; in qib_handle_e_ibstatuschanged()
|
D | qib_iba6120.c | 984 static int chk_6120_linkrecovery(struct qib_devdata *dd, u64 ibcs) in chk_6120_linkrecovery() argument 987 u32 ibstate = qib_6120_iblink_state(ibcs); in chk_6120_linkrecovery() 1075 u64 ibcs = qib_read_kreg64(dd, kr_ibcstatus); in handle_6120_errors() local 1076 u32 ibstate = qib_6120_iblink_state(ibcs); in handle_6120_errors() 1080 handle = chk_6120_linkrecovery(dd, ibcs); in handle_6120_errors() 1088 if (handle && qib_6120_phys_portstate(ibcs) == in handle_6120_errors() 1092 qib_handle_e_ibstatuschanged(ppd, ibcs); in handle_6120_errors() 3003 static u32 qib_6120_iblink_state(u64 ibcs) in qib_6120_iblink_state() argument 3005 u32 state = (u32)SYM_FIELD(ibcs, IBCStatus, LinkState); in qib_6120_iblink_state() 3028 static u8 qib_6120_phys_portstate(u64 ibcs) in qib_6120_phys_portstate() argument [all …]
|
D | qib_iba7220.c | 1168 u64 ibcs; in handle_7220_errors() local 1170 ibcs = qib_read_kreg64(dd, kr_ibcstatus); in handle_7220_errors() 1172 handle_7220_chase(ppd, ibcs); in handle_7220_errors() 1176 ((ibcs >> IBA7220_LINKWIDTH_SHIFT) & 1) ? in handle_7220_errors() 1179 ((ibcs >> IBA7220_LINKSPEED_SHIFT) & 1) ? in handle_7220_errors() 1189 if (qib_7220_phys_portstate(ibcs) != in handle_7220_errors() 1191 qib_handle_e_ibstatuschanged(ppd, ibcs); in handle_7220_errors() 3618 static u32 qib_7220_iblink_state(u64 ibcs) in qib_7220_iblink_state() argument 3620 u32 state = (u32)SYM_FIELD(ibcs, IBCStatus, LinkState); in qib_7220_iblink_state() 3643 static u8 qib_7220_phys_portstate(u64 ibcs) in qib_7220_phys_portstate() argument [all …]
|
D | qib_iba7322.c | 1964 u64 ibcs; in handle_7322_p_errors() local 1967 ibcs = qib_read_kreg_port(ppd, krp_ibcstatus_a); in handle_7322_p_errors() 1968 ltstate = qib_7322_phys_portstate(ibcs); in handle_7322_p_errors() 1971 handle_serdes_issues(ppd, ibcs); in handle_7322_p_errors() 1987 (ibcs & SYM_MASK(IBCStatusA_0, LinkWidthActive)) ? in handle_7322_p_errors() 1989 ppd->link_speed_active = (ibcs & SYM_MASK(IBCStatusA_0, in handle_7322_p_errors() 1990 LinkSpeedQDR)) ? QIB_IB_QDR : (ibcs & in handle_7322_p_errors() 2011 qib_handle_e_ibstatuschanged(ppd, ibcs); in handle_7322_p_errors() 5543 static u32 qib_7322_iblink_state(u64 ibcs) in qib_7322_iblink_state() argument 5545 u32 state = (u32)SYM_FIELD(ibcs, IBCStatusA_0, LinkState); in qib_7322_iblink_state() [all …]
|
/drivers/infiniband/hw/ipath/ |
D | ipath_intr.c | 229 static char *ib_linkstate(struct ipath_devdata *dd, u64 ibcs) in ib_linkstate() argument 234 state = ipath_ib_state(dd, ibcs); in ib_linkstate() 263 const u64 ibcs = ipath_read_kreg64(dd, dd->ipath_kregs->kr_ibcstatus); in handle_e_ibstatuschanged() local 265 lstate = ipath_ib_linkstate(dd, ibcs); /* linkstate */ in handle_e_ibstatuschanged() 266 ibstate = ipath_ib_state(dd, ibcs); in handle_e_ibstatuschanged() 269 ltstate = ipath_ib_linktrstate(dd, ibcs); /* linktrainingtate */ in handle_e_ibstatuschanged() 292 if (dd->ipath_f_ib_updown(dd, 1, ibcs)) { in handle_e_ibstatuschanged() 303 handled = dd->ipath_f_ib_updown(dd, 0, ibcs); in handle_e_ibstatuschanged() 320 "ARM" : "ACTIVE", ib_linkstate(dd, ibcs)); in handle_e_ibstatuschanged() 359 (unsigned long long) ibcs, in handle_e_ibstatuschanged() [all …]
|
D | ipath_kernel.h | 1248 static inline u32 ipath_ib_linkstate(struct ipath_devdata *dd, u64 ibcs) in ipath_ib_linkstate() argument 1250 u32 state = (u32)(ibcs >> dd->ibcs_ls_shift) & in ipath_ib_linkstate() 1258 static inline u32 ipath_ib_linktrstate(struct ipath_devdata *dd, u64 ibcs) in ipath_ib_linktrstate() argument 1260 return (u32)(ibcs >> INFINIPATH_IBCS_LINKTRAININGSTATE_SHIFT) & in ipath_ib_linktrstate() 1269 static inline u32 ipath_ib_state(struct ipath_devdata *dd, u64 ibcs) in ipath_ib_state() argument 1272 ibs = (u32)(ibcs >> INFINIPATH_IBCS_LINKTRAININGSTATE_SHIFT) & in ipath_ib_state() 1274 ibs |= (u32)(ibcs & in ipath_ib_state()
|
D | ipath_iba6110.c | 1893 static int ipath_ht_ib_updown(struct ipath_devdata *dd, int ibup, u64 ibcs) in ipath_ht_ib_updown() argument 1895 ipath_setup_ht_setextled(dd, ipath_ib_linkstate(dd, ibcs), in ipath_ht_ib_updown() 1896 ipath_ib_linktrstate(dd, ibcs)); in ipath_ht_ib_updown()
|