Home
last modified time | relevance | path

Searched refs:qib_pportdata (Results 1 – 24 of 24) sorted by relevance

/drivers/infiniband/hw/qib/
Dqib.h207 struct qib_pportdata *ppd;
516 struct qib_pportdata { struct
695 struct qib_pportdata *pport;
727 void (*f_quiet_serdes)(struct qib_pportdata *);
728 int (*f_bringup_serdes)(struct qib_pportdata *);
734 void (*f_setextled)(struct qib_pportdata *, u32);
742 int (*f_get_ib_cfg)(struct qib_pportdata *, int);
743 int (*f_set_ib_cfg)(struct qib_pportdata *, int, u32);
744 int (*f_set_ib_loopback)(struct qib_pportdata *, const char *);
745 int (*f_get_ib_table)(struct qib_pportdata *, int, void *);
[all …]
Dqib_sdma.c81 static int alloc_sdma(struct qib_pportdata *);
86 static void sdma_set_state(struct qib_pportdata *, enum qib_sdma_states);
87 static void sdma_start_sw_clean_up(struct qib_pportdata *);
89 static void unmap_desc(struct qib_pportdata *, unsigned);
124 static void clear_sdma_activelist(struct qib_pportdata *ppd) in clear_sdma_activelist()
147 struct qib_pportdata *ppd = (struct qib_pportdata *) opaque; in sdma_sw_clean_up_task()
192 static void sdma_hw_start_up(struct qib_pportdata *ppd) in sdma_hw_start_up()
203 static void sdma_sw_tear_down(struct qib_pportdata *ppd) in sdma_sw_tear_down()
211 static void sdma_start_sw_clean_up(struct qib_pportdata *ppd) in sdma_start_sw_clean_up()
216 static void sdma_set_state(struct qib_pportdata *ppd, in sdma_set_state()
[all …]
Dqib_sysfs.c76 static ssize_t show_hrtbt_enb(struct qib_pportdata *ppd, char *buf) in show_hrtbt_enb()
86 static ssize_t store_hrtbt_enb(struct qib_pportdata *ppd, const char *buf, in store_hrtbt_enb()
109 static ssize_t store_loopback(struct qib_pportdata *ppd, const char *buf, in store_loopback()
122 static ssize_t store_led_override(struct qib_pportdata *ppd, const char *buf, in store_led_override()
137 static ssize_t show_status(struct qib_pportdata *ppd, char *buf) in show_status()
167 static ssize_t show_status_str(struct qib_pportdata *ppd, char *buf) in show_status_str()
214 ssize_t (*show)(struct qib_pportdata *, char *);
215 ssize_t (*store)(struct qib_pportdata *, const char *, size_t);
239 struct qib_pportdata *ppd = in qib_portattr_show()
240 container_of(kobj, struct qib_pportdata, pport_kobj); in qib_portattr_show()
[all …]
Dqib_tx.c114 static struct qib_pportdata *is_sdma_buf(struct qib_devdata *dd, unsigned i) in is_sdma_buf()
116 struct qib_pportdata *ppd; in is_sdma_buf()
174 struct qib_pportdata *ppd, *pppd[QIB_MAX_IB_PORTS]; in qib_disarm_piobufs_set()
447 void qib_cancel_sends(struct qib_pportdata *ppd) in qib_cancel_sends()
508 void qib_hol_down(struct qib_pportdata *ppd) in qib_hol_down()
523 void qib_hol_init(struct qib_pportdata *ppd) in qib_hol_init()
537 void qib_hol_up(struct qib_pportdata *ppd) in qib_hol_up()
547 struct qib_pportdata *ppd = (struct qib_pportdata *)opaque; in qib_hol_event()
Dqib_driver.c96 struct qib_pportdata *ppd; in qib_count_active_units()
128 struct qib_pportdata *ppd; in qib_count_units()
166 int qib_wait_linkstate(struct qib_pportdata *ppd, u32 state, int msecs) in qib_wait_linkstate()
194 int qib_set_linkstate(struct qib_pportdata *ppd, u8 newstate) in qib_set_linkstate()
293 static u32 qib_rcv_hdrerr(struct qib_ctxtdata *rcd, struct qib_pportdata *ppd, in qib_rcv_hdrerr()
445 struct qib_pportdata *ppd = rcd->ppd; in qib_kreceive()
608 int qib_set_mtu(struct qib_pportdata *ppd, u16 arg) in qib_set_mtu()
647 int qib_set_lid(struct qib_pportdata *ppd, u32 lid, u8 lmc) in qib_set_lid()
676 struct qib_pportdata *ppd = (struct qib_pportdata *)opaque; in qib_run_led_override()
697 void qib_set_led_override(struct qib_pportdata *ppd, unsigned int val) in qib_set_led_override()
[all …]
Dqib_iba7322.c53 static void qib_setup_7322_setextled(struct qib_pportdata *, u32);
55 static void sendctrl_7322_mod(struct qib_pportdata *ppd, u32 op);
66 static void qib_set_ib_7322_lstate(struct qib_pportdata *ppd, u16 linkcmd,
68 static void force_h1(struct qib_pportdata *);
69 static void adj_tx_serdes(struct qib_pportdata *);
70 static u32 qib_7322_setpbc_control(struct qib_pportdata *, u32, u8, u8);
71 static void qib_7322_mini_pcs_reset(struct qib_pportdata *);
74 static void ibsd_wr_allchans(struct qib_pportdata *, int, unsigned, unsigned);
75 static void serdes_7322_los_enable(struct qib_pportdata *, int);
76 static int serdes_7322_init_old(struct qib_pportdata *);
[all …]
Dqib_mad.c317 struct qib_pportdata *ppd = dd->pport + pidx; in subn_get_guidinfo()
337 static void set_link_width_enabled(struct qib_pportdata *ppd, u32 w) in set_link_width_enabled()
342 static void set_link_speed_enabled(struct qib_pportdata *ppd, u32 s) in set_link_speed_enabled()
347 static int get_overrunthreshold(struct qib_pportdata *ppd) in get_overrunthreshold()
359 static int set_overrunthreshold(struct qib_pportdata *ppd, unsigned n) in set_overrunthreshold()
366 static int get_phyerrthreshold(struct qib_pportdata *ppd) in get_phyerrthreshold()
378 static int set_phyerrthreshold(struct qib_pportdata *ppd, unsigned n) in set_phyerrthreshold()
391 static int get_linkdowndefaultstate(struct qib_pportdata *ppd) in get_linkdowndefaultstate()
433 struct qib_pportdata *ppd; in subn_get_portinfo()
556 struct qib_pportdata *ppd = dd->pport + port - 1; in get_pkeys()
[all …]
Dqib_qsfp.h177 struct qib_pportdata *ppd;
184 extern int qib_refresh_qsfp_cache(struct qib_pportdata *ppd,
186 extern int qib_qsfp_mod_present(struct qib_pportdata *ppd);
Dqib_intr.c72 static void signal_ib_event(struct qib_pportdata *ppd, enum ib_event_type ev) in signal_ib_event()
83 void qib_handle_e_ibstatuschanged(struct qib_pportdata *ppd, u64 ibcs) in qib_handle_e_ibstatuschanged()
176 struct qib_pportdata *ppd = (struct qib_pportdata *)opaque; in qib_clear_symerror_on_linkup()
Dqib_iba7220.c49 static void qib_setup_7220_setextled(struct qib_pportdata *, u32);
51 static void sendctrl_7220_mod(struct qib_pportdata *ppd, u32 op);
54 static void qib_sdma_update_7220_tail(struct qib_pportdata *, u16);
55 static void qib_set_ib_7220_lstate(struct qib_pportdata *, u16, u16);
743 static u32 __iomem *qib_7220_getsendbuf(struct qib_pportdata *, u64, u32 *);
750 static void qib_disarm_7220_senderrbufs(struct qib_pportdata *ppd) in qib_disarm_7220_senderrbufs()
778 static void qib_7220_sdma_sendctrl(struct qib_pportdata *ppd, unsigned op) in qib_7220_sdma_sendctrl()
810 static void qib_decode_7220_sdma_errs(struct qib_pportdata *ppd, in qib_decode_7220_sdma_errs()
856 static void qib_7220_sdma_hw_clean_up(struct qib_pportdata *ppd) in qib_7220_sdma_hw_clean_up()
864 static void qib_sdma_7220_setlengen(struct qib_pportdata *ppd) in qib_sdma_7220_setlengen()
[all …]
Dqib_iba6120.c47 static void qib_6120_setup_setextled(struct qib_pportdata *, u32);
48 static void sendctrl_6120_mod(struct qib_pportdata *ppd, u32 op);
963 static void qib_disarm_6120_senderrbufs(struct qib_pportdata *ppd) in qib_disarm_6120_senderrbufs()
1004 struct qib_pportdata *ppd = dd->pport; in handle_6120_errors()
1196 static void qib_set_ib_6120_lstate(struct qib_pportdata *ppd, u16 linkcmd, in qib_set_ib_6120_lstate()
1234 static int qib_6120_bringup_serdes(struct qib_pportdata *ppd) in qib_6120_bringup_serdes()
1374 static void qib_6120_quiet_serdes(struct qib_pportdata *ppd) in qib_6120_quiet_serdes()
1442 static void qib_6120_setup_setextled(struct qib_pportdata *ppd, u32 on) in qib_6120_setup_setextled()
2123 static void rcvctrl_6120_mod(struct qib_pportdata *ppd, unsigned int op, in rcvctrl_6120_mod()
2225 static void sendctrl_6120_mod(struct qib_pportdata *ppd, u32 op) in sendctrl_6120_mod()
[all …]
Dqib_user_sdma.h45 int qib_user_sdma_make_progress(struct qib_pportdata *ppd,
48 void qib_user_sdma_queue_drain(struct qib_pportdata *ppd,
Dqib_qsfp.c47 static int qsfp_read(struct qib_pportdata *ppd, int addr, void *bp, int len) in qsfp_read()
156 static int qib_qsfp_write(struct qib_pportdata *ppd, int addr, void *bp, in qib_qsfp_write()
251 static int qsfp_cks(struct qib_pportdata *ppd, int first, int next) in qsfp_cks()
271 int qib_refresh_qsfp_cache(struct qib_pportdata *ppd, struct qib_qsfp_cache *cp) in qib_refresh_qsfp_cache()
441 int qib_qsfp_mod_present(struct qib_pportdata *ppd) in qib_qsfp_mod_present()
496 int qib_qsfp_dump(struct qib_pportdata *ppd, char *buf, int len) in qib_qsfp_dump()
Dqib_user_sdma.c565 static int qib_user_sdma_queue_clean(struct qib_pportdata *ppd, in qib_user_sdma_queue_clean()
613 static int qib_user_sdma_hwqueue_clean(struct qib_pportdata *ppd) in qib_user_sdma_hwqueue_clean()
626 void qib_user_sdma_queue_drain(struct qib_pportdata *ppd, in qib_user_sdma_queue_drain()
659 static inline __le64 qib_sdma_make_desc0(struct qib_pportdata *ppd, in qib_sdma_make_desc0()
693 static void qib_user_sdma_send_frag(struct qib_pportdata *ppd, in qib_user_sdma_send_frag()
716 static int qib_user_sdma_push_pkts(struct qib_pportdata *ppd, in qib_user_sdma_push_pkts()
812 struct qib_pportdata *ppd = rcd->ppd; in qib_user_sdma_writev()
877 int qib_user_sdma_make_progress(struct qib_pportdata *ppd, in qib_user_sdma_make_progress()
Dqib_init.c129 struct qib_pportdata *ppd; in qib_create_ctxts()
154 struct qib_ctxtdata *qib_create_ctxtdata(struct qib_pportdata *ppd, u32 ctxt) in qib_create_ctxtdata()
197 void qib_init_pportdata(struct qib_pportdata *ppd, struct qib_devdata *dd, in qib_init_pportdata()
505 struct qib_pportdata *ppd; in qib_init()
680 struct qib_pportdata *ppd; in qib_stop_timers()
715 struct qib_pportdata *ppd; in qib_shutdown_device()
990 struct qib_pportdata *ppd; in qib_disable_after_error()
Dqib_verbs.c601 struct qib_pportdata *ppd = rcd->ppd; in qib_ib_rcv()
1023 void qib_verbs_sdma_desc_avail(struct qib_pportdata *ppd, unsigned avail) in qib_verbs_sdma_desc_avail()
1130 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_verbs_send_dma()
1263 struct qib_pportdata *ppd = dd->pport + qp->port_num - 1; in qib_verbs_send_pio()
1395 int qib_snapshot_counters(struct qib_pportdata *ppd, u64 *swords, in qib_snapshot_counters()
1426 int qib_get_counters(struct qib_pportdata *ppd, in qib_get_counters()
1592 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_query_port()
1684 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_modify_port()
1707 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_query_gid()
1908 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_get_pkey()
[all …]
Dqib_verbs.h48 struct qib_pportdata;
856 int qib_snapshot_counters(struct qib_pportdata *ppd, u64 *swords,
860 int qib_get_counters(struct qib_pportdata *ppd,
897 void qib_verbs_sdma_desc_avail(struct qib_pportdata *ppd, unsigned avail);
Dqib_7220.h81 struct qib_pportdata pportdata;
Dqib_file_ops.c96 struct qib_pportdata *ppd = rcd->ppd; in qib_get_base_info()
559 struct qib_pportdata *ppd = rcd->ppd; in qib_set_part_key()
689 struct qib_pportdata *ppd = rcd->ppd; in qib_clean_part_key()
1253 static int setup_ctxt(struct qib_pportdata *ppd, int ctxt, in setup_ctxt()
1300 static inline int usable(struct qib_pportdata *ppd) in usable()
1315 struct qib_pportdata *ppd = NULL; in choose_port_ctxt()
1850 static int qib_sdma_get_complete(struct qib_pportdata *ppd, in qib_sdma_get_complete()
1906 int qib_set_uevent_bits(struct qib_pportdata *ppd, const int evtbit) in qib_set_uevent_bits()
Dqib_ud.c52 struct qib_pportdata *ppd; in qib_ud_loopback()
236 struct qib_pportdata *ppd; in qib_make_ud_req()
394 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_lookup_pkey()
Dqib_ruc.c247 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in get_sguid()
724 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_do_send()
Dqib_sd7220.c123 static int qib_ibsd_ucode_loaded(struct qib_pportdata *ppd, in qib_ibsd_ucode_loaded()
1390 struct qib_pportdata *ppd = dd->pport; in qib_run_relock()
Dqib_diag.c550 struct qib_pportdata *ppd; in qib_diagpkt_write()
Dqib_rc.c652 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_send_rc_ack()
1406 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_rc_rcv_resp()