Home
last modified time | relevance | path

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

/drivers/infiniband/hw/qib/
Dqib.h214 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 *);
[all …]
Dqib_sysfs.c43 static ssize_t show_hrtbt_enb(struct qib_pportdata *ppd, char *buf) in show_hrtbt_enb()
53 static ssize_t store_hrtbt_enb(struct qib_pportdata *ppd, const char *buf, in store_hrtbt_enb()
77 static ssize_t store_loopback(struct qib_pportdata *ppd, const char *buf, in store_loopback()
90 static ssize_t store_led_override(struct qib_pportdata *ppd, const char *buf, in store_led_override()
107 static ssize_t show_status(struct qib_pportdata *ppd, char *buf) in show_status()
137 static ssize_t show_status_str(struct qib_pportdata *ppd, char *buf) in show_status_str()
184 ssize_t (*show)(struct qib_pportdata *, char *);
185 ssize_t (*store)(struct qib_pportdata *, const char *, size_t);
216 struct qib_pportdata *ppd = in read_cc_table_bin()
217 container_of(kobj, struct qib_pportdata, pport_cc_kobj); in read_cc_table_bin()
[all …]
Dqib_sdma.c82 static int alloc_sdma(struct qib_pportdata *);
87 static void sdma_set_state(struct qib_pportdata *, enum qib_sdma_states);
88 static void sdma_start_sw_clean_up(struct qib_pportdata *);
90 static void unmap_desc(struct qib_pportdata *, unsigned);
125 static void clear_sdma_activelist(struct qib_pportdata *ppd) in clear_sdma_activelist()
148 struct qib_pportdata *ppd = (struct qib_pportdata *) opaque; in sdma_sw_clean_up_task()
193 static void sdma_hw_start_up(struct qib_pportdata *ppd) in sdma_hw_start_up()
204 static void sdma_sw_tear_down(struct qib_pportdata *ppd) in sdma_sw_tear_down()
212 static void sdma_start_sw_clean_up(struct qib_pportdata *ppd) in sdma_start_sw_clean_up()
217 static void sdma_set_state(struct qib_pportdata *ppd, in sdma_set_state()
[all …]
Dqib_driver.c99 struct qib_pportdata *ppd; in qib_count_active_units()
131 struct qib_pportdata *ppd; in qib_count_units()
169 int qib_wait_linkstate(struct qib_pportdata *ppd, u32 state, int msecs) in qib_wait_linkstate()
197 int qib_set_linkstate(struct qib_pportdata *ppd, u8 newstate) in qib_set_linkstate()
296 static u32 qib_rcv_hdrerr(struct qib_ctxtdata *rcd, struct qib_pportdata *ppd, in qib_rcv_hdrerr()
448 struct qib_pportdata *ppd = rcd->ppd; in qib_kreceive()
612 int qib_set_mtu(struct qib_pportdata *ppd, u16 arg) in qib_set_mtu()
651 int qib_set_lid(struct qib_pportdata *ppd, u32 lid, u8 lmc) in qib_set_lid()
680 struct qib_pportdata *ppd = (struct qib_pportdata *)opaque; in qib_run_led_override()
701 void qib_set_led_override(struct qib_pportdata *ppd, unsigned int val) in qib_set_led_override()
[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()
456 void qib_cancel_sends(struct qib_pportdata *ppd) in qib_cancel_sends()
517 void qib_hol_down(struct qib_pportdata *ppd) in qib_hol_down()
532 void qib_hol_init(struct qib_pportdata *ppd) in qib_hol_init()
546 void qib_hol_up(struct qib_pportdata *ppd) in qib_hol_up()
556 struct qib_pportdata *ppd = (struct qib_pportdata *)opaque; in qib_hol_event()
Dqib_iba7322.c61 static void qib_setup_7322_setextled(struct qib_pportdata *, u32);
63 static void sendctrl_7322_mod(struct qib_pportdata *ppd, u32 op);
74 static void qib_set_ib_7322_lstate(struct qib_pportdata *ppd, u16 linkcmd,
76 static void force_h1(struct qib_pportdata *);
77 static void adj_tx_serdes(struct qib_pportdata *);
78 static u32 qib_7322_setpbc_control(struct qib_pportdata *, u32, u8, u8);
79 static void qib_7322_mini_pcs_reset(struct qib_pportdata *);
82 static void ibsd_wr_allchans(struct qib_pportdata *, int, unsigned, unsigned);
83 static void serdes_7322_los_enable(struct qib_pportdata *, int);
84 static int serdes_7322_init_old(struct qib_pportdata *);
[all …]
Dqib_mad.c325 struct qib_pportdata *ppd = dd->pport + pidx; in subn_get_guidinfo()
345 static void set_link_width_enabled(struct qib_pportdata *ppd, u32 w) in set_link_width_enabled()
350 static void set_link_speed_enabled(struct qib_pportdata *ppd, u32 s) in set_link_speed_enabled()
355 static int get_overrunthreshold(struct qib_pportdata *ppd) in get_overrunthreshold()
367 static int set_overrunthreshold(struct qib_pportdata *ppd, unsigned n) in set_overrunthreshold()
374 static int get_phyerrthreshold(struct qib_pportdata *ppd) in get_phyerrthreshold()
386 static int set_phyerrthreshold(struct qib_pportdata *ppd, unsigned n) in set_phyerrthreshold()
399 static int get_linkdowndefaultstate(struct qib_pportdata *ppd) in get_linkdowndefaultstate()
455 struct qib_pportdata *ppd; in subn_get_portinfo()
580 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_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_iba6120.c48 static void qib_6120_setup_setextled(struct qib_pportdata *, u32);
49 static void sendctrl_6120_mod(struct qib_pportdata *ppd, u32 op);
967 static void qib_disarm_6120_senderrbufs(struct qib_pportdata *ppd) in qib_disarm_6120_senderrbufs()
1008 struct qib_pportdata *ppd = dd->pport; in handle_6120_errors()
1200 static void qib_set_ib_6120_lstate(struct qib_pportdata *ppd, u16 linkcmd, in qib_set_ib_6120_lstate()
1238 static int qib_6120_bringup_serdes(struct qib_pportdata *ppd) in qib_6120_bringup_serdes()
1378 static void qib_6120_quiet_serdes(struct qib_pportdata *ppd) in qib_6120_quiet_serdes()
1446 static void qib_6120_setup_setextled(struct qib_pportdata *ppd, u32 on) in qib_6120_setup_setextled()
2130 static void rcvctrl_6120_mod(struct qib_pportdata *ppd, unsigned int op, in rcvctrl_6120_mod()
2232 static void sendctrl_6120_mod(struct qib_pportdata *ppd, u32 op) in sendctrl_6120_mod()
[all …]
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.c806 struct qib_pportdata *ppd, in qib_user_sdma_queue_pkts()
1048 static int qib_user_sdma_queue_clean(struct qib_pportdata *ppd, in qib_user_sdma_queue_clean()
1113 static int qib_user_sdma_hwqueue_clean(struct qib_pportdata *ppd) in qib_user_sdma_hwqueue_clean()
1126 void qib_user_sdma_queue_drain(struct qib_pportdata *ppd, in qib_user_sdma_queue_drain()
1209 static void qib_user_sdma_send_frag(struct qib_pportdata *ppd, in qib_user_sdma_send_frag()
1236 void qib_user_sdma_send_desc(struct qib_pportdata *ppd, in qib_user_sdma_send_desc()
1324 static int qib_user_sdma_push_pkts(struct qib_pportdata *ppd, in qib_user_sdma_push_pkts()
1382 struct qib_pportdata *ppd = rcd->ppd; in qib_user_sdma_writev()
1444 int qib_user_sdma_make_progress(struct qib_pportdata *ppd, in qib_user_sdma_make_progress()
Dqib_init.c152 struct qib_pportdata *ppd; in qib_create_ctxts()
177 struct qib_ctxtdata *qib_create_ctxtdata(struct qib_pportdata *ppd, u32 ctxt, in qib_create_ctxtdata()
233 int qib_init_pportdata(struct qib_pportdata *ppd, struct qib_devdata *dd, in qib_init_pportdata()
610 struct qib_pportdata *ppd; in qib_create_workqueues()
638 static void qib_free_pportdata(struct qib_pportdata *ppd) in qib_free_pportdata()
665 struct qib_pportdata *ppd; in qib_init()
840 struct qib_pportdata *ppd; in qib_stop_timers()
875 struct qib_pportdata *ppd; in qib_shutdown_device()
1197 struct qib_pportdata *ppd; in qib_disable_after_error()
Dqib_verbs.c611 struct qib_pportdata *ppd = rcd->ppd; in qib_ib_rcv()
1035 void qib_verbs_sdma_desc_avail(struct qib_pportdata *ppd, unsigned avail) in qib_verbs_sdma_desc_avail()
1142 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_verbs_send_dma()
1275 struct qib_pportdata *ppd = dd->pport + qp->port_num - 1; in qib_verbs_send_pio()
1407 int qib_snapshot_counters(struct qib_pportdata *ppd, u64 *swords, in qib_snapshot_counters()
1438 int qib_get_counters(struct qib_pportdata *ppd, in qib_get_counters()
1604 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_query_port()
1696 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_modify_port()
1719 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_query_gid()
1937 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_get_pkey()
[all …]
Dqib_verbs.h50 struct qib_pportdata;
893 int qib_snapshot_counters(struct qib_pportdata *ppd, u64 *swords,
897 int qib_get_counters(struct qib_pportdata *ppd,
946 void qib_verbs_sdma_desc_avail(struct qib_pportdata *ppd, unsigned avail);
Dqib_7220.h81 struct qib_pportdata pportdata;
Dqib_ud.c52 struct qib_pportdata *ppd; in qib_ud_loopback()
239 struct qib_pportdata *ppd; in qib_make_ud_req()
397 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_lookup_pkey()
Dqib_file_ops.c101 struct qib_pportdata *ppd = rcd->ppd; in qib_get_base_info()
565 struct qib_pportdata *ppd = rcd->ppd; in qib_set_part_key()
695 struct qib_pportdata *ppd = rcd->ppd; in qib_clean_part_key()
1304 static int setup_ctxt(struct qib_pportdata *ppd, int ctxt, in setup_ctxt()
1362 static inline int usable(struct qib_pportdata *ppd) in usable()
1377 struct qib_pportdata *ppd = NULL; in choose_port_ctxt()
1939 static int qib_sdma_get_complete(struct qib_pportdata *ppd, in qib_sdma_get_complete()
1995 int qib_set_uevent_bits(struct qib_pportdata *ppd, const int evtbit) in qib_set_uevent_bits()
Dqib_ruc.c247 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in get_sguid()
721 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()
1391 struct qib_pportdata *ppd = dd->pport; in qib_run_relock()
Dqib_diag.c553 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()