Lines Matching refs:qib_pportdata
214 struct qib_pportdata *ppd;
536 struct qib_pportdata { struct
752 struct qib_pportdata *pport;
784 void (*f_quiet_serdes)(struct qib_pportdata *);
785 int (*f_bringup_serdes)(struct qib_pportdata *);
791 void (*f_setextled)(struct qib_pportdata *, u32);
799 int (*f_get_ib_cfg)(struct qib_pportdata *, int);
800 int (*f_set_ib_cfg)(struct qib_pportdata *, int, u32);
801 int (*f_set_ib_loopback)(struct qib_pportdata *, const char *);
802 int (*f_get_ib_table)(struct qib_pportdata *, int, void *);
803 int (*f_set_ib_table)(struct qib_pportdata *, int, void *);
806 void (*f_xgxs_reset)(struct qib_pportdata *);
808 int (*f_ib_updown)(struct qib_pportdata *, int, u64);
809 u32 __iomem *(*f_getsendbuf)(struct qib_pportdata *, u64, u32 *);
821 void (*f_rcvctrl)(struct qib_pportdata *, unsigned int op,
824 void (*f_sendctrl)(struct qib_pportdata *, u32 op);
829 int (*f_init_sdma_regs)(struct qib_pportdata *);
830 u16 (*f_sdma_gethead)(struct qib_pportdata *);
831 int (*f_sdma_busy)(struct qib_pportdata *);
832 void (*f_sdma_update_tail)(struct qib_pportdata *, u16);
833 void (*f_sdma_set_desc_cnt)(struct qib_pportdata *, unsigned);
834 void (*f_sdma_sendctrl)(struct qib_pportdata *, unsigned);
835 void (*f_sdma_hw_clean_up)(struct qib_pportdata *);
836 void (*f_sdma_hw_start_up)(struct qib_pportdata *);
837 void (*f_sdma_init_early)(struct qib_pportdata *);
838 void (*f_set_cntr_sample)(struct qib_pportdata *, u32, u32);
841 u64 (*f_portcntr)(struct qib_pportdata *, u32);
846 u32 (*f_setpbc_control)(struct qib_pportdata *, u32, u8, u8);
1157 void qib_handle_e_ibstatuschanged(struct qib_pportdata *, u64);
1158 void qib_sdma_update_tail(struct qib_pportdata *, u16); /* hold sdma_lock */
1176 void qib_cancel_sends(struct qib_pportdata *);
1182 struct qib_ctxtdata *qib_create_ctxtdata(struct qib_pportdata *, u32, int);
1183 int qib_init_pportdata(struct qib_pportdata *, struct qib_devdata *, u8, u8);
1188 int qib_wait_linkstate(struct qib_pportdata *, u32, int);
1189 int qib_set_linkstate(struct qib_pportdata *, u8);
1190 int qib_set_mtu(struct qib_pportdata *, u16);
1191 int qib_set_lid(struct qib_pportdata *, u32, u8);
1192 void qib_hol_down(struct qib_pportdata *);
1193 void qib_hol_init(struct qib_pportdata *);
1194 void qib_hol_up(struct qib_pportdata *);
1197 int qib_set_uevent_bits(struct qib_pportdata *, const int);
1209 static inline struct qib_devdata *dd_from_ppd(struct qib_pportdata *ppd) in dd_from_ppd()
1224 static inline struct qib_pportdata *ppd_from_ibp(struct qib_ibport *ibp) in ppd_from_ibp()
1226 return container_of(ibp, struct qib_pportdata, ibport_data); in ppd_from_ibp()
1318 void qib_set_led_override(struct qib_pportdata *ppd, unsigned int val);
1321 int qib_setup_sdma(struct qib_pportdata *);
1322 void qib_teardown_sdma(struct qib_pportdata *);
1323 void __qib_sdma_intr(struct qib_pportdata *);
1324 void qib_sdma_intr(struct qib_pportdata *);
1325 void qib_user_sdma_send_desc(struct qib_pportdata *dd,
1327 int qib_sdma_verbs_send(struct qib_pportdata *, struct qib_sge_state *,
1330 int qib_sdma_make_progress(struct qib_pportdata *dd);
1332 static inline int qib_sdma_empty(const struct qib_pportdata *ppd) in qib_sdma_empty()
1338 static inline u16 qib_sdma_descq_freecnt(const struct qib_pportdata *ppd) in qib_sdma_descq_freecnt()
1344 static inline int __qib_sdma_running(struct qib_pportdata *ppd) in __qib_sdma_running()
1348 int qib_sdma_running(struct qib_pportdata *);
1349 void dump_sdma_state(struct qib_pportdata *ppd);
1350 void __qib_sdma_process_event(struct qib_pportdata *, enum qib_sdma_events);
1351 void qib_sdma_process_event(struct qib_pportdata *, enum qib_sdma_events);
1428 extern int qib_qsfp_dump(struct qib_pportdata *ppd, char *buf, int len);