/drivers/infiniband/hw/qib/ |
D | qib_sdma.c | 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() local 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() 253 static void unmap_desc(struct qib_pportdata *ppd, unsigned head) in unmap_desc() 268 static int alloc_sdma(struct qib_pportdata *ppd) in alloc_sdma() 307 static void free_sdma(struct qib_pportdata *ppd) in free_sdma() 328 static inline void make_sdma_desc(struct qib_pportdata *ppd, in make_sdma_desc() [all …]
|
D | qib_mad.c | 326 struct qib_pportdata *ppd = dd->pport + pidx; in subn_get_guidinfo() local 346 static void set_link_width_enabled(struct qib_pportdata *ppd, u32 w) in set_link_width_enabled() 351 static void set_link_speed_enabled(struct qib_pportdata *ppd, u32 s) in set_link_speed_enabled() 356 static int get_overrunthreshold(struct qib_pportdata *ppd) in get_overrunthreshold() 368 static int set_overrunthreshold(struct qib_pportdata *ppd, unsigned n) in set_overrunthreshold() 375 static int get_phyerrthreshold(struct qib_pportdata *ppd) in get_phyerrthreshold() 387 static int set_phyerrthreshold(struct qib_pportdata *ppd, unsigned n) in set_phyerrthreshold() 400 static int get_linkdowndefaultstate(struct qib_pportdata *ppd) in get_linkdowndefaultstate() 456 struct qib_pportdata *ppd; in subn_get_portinfo() local 581 struct qib_pportdata *ppd = dd->pport + port - 1; in get_pkeys() local [all …]
|
D | qib_driver.c | 99 struct qib_pportdata *ppd; in qib_count_active_units() local 131 struct qib_pportdata *ppd; in qib_count_units() local 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() 449 struct qib_pportdata *ppd = rcd->ppd; in qib_kreceive() local 614 int qib_set_mtu(struct qib_pportdata *ppd, u16 arg) in qib_set_mtu() 653 int qib_set_lid(struct qib_pportdata *ppd, u32 lid, u8 lmc) in qib_set_lid() 683 struct qib_pportdata *ppd = (struct qib_pportdata *)opaque; in qib_run_led_override() local 704 void qib_set_led_override(struct qib_pportdata *ppd, unsigned int val) in qib_set_led_override() [all …]
|
D | qib_sysfs.c | 43 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() 216 struct qib_pportdata *ppd = in read_cc_table_bin() local 266 struct qib_pportdata *ppd = in read_cc_setting_bin() local 301 struct qib_pportdata *ppd = in qib_portattr_show() local 315 struct qib_pportdata *ppd = in qib_portattr_store() local [all …]
|
D | qib_iba7322.c | 617 struct qib_pportdata *ppd; member 863 static inline u64 qib_read_kreg_port(const struct qib_pportdata *ppd, in qib_read_kreg_port() 871 static inline void qib_write_kreg_port(const struct qib_pportdata *ppd, in qib_write_kreg_port() 911 static inline void write_7322_creg_port(const struct qib_pportdata *ppd, in write_7322_creg_port() 919 static inline u64 read_7322_creg_port(const struct qib_pportdata *ppd, in read_7322_creg_port() 928 static inline u32 read_7322_creg32_port(const struct qib_pportdata *ppd, in read_7322_creg32_port() 1347 static void qib_disarm_7322_senderrbufs(struct qib_pportdata *ppd) in qib_disarm_7322_senderrbufs() 1425 static void flush_fifo(struct qib_pportdata *ppd) in flush_fifo() 1472 static void qib_7322_sdma_sendctrl(struct qib_pportdata *ppd, unsigned op) in qib_7322_sdma_sendctrl() 1534 static void qib_7322_sdma_hw_clean_up(struct qib_pportdata *ppd) in qib_7322_sdma_hw_clean_up() [all …]
|
D | qib_iba7220.c | 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() 877 static void qib_7220_sdma_hw_start_up(struct qib_pportdata *ppd) in qib_7220_sdma_hw_start_up() 896 static void sdma_7220_errors(struct qib_pportdata *ppd, u64 errs) in sdma_7220_errors() 1046 struct qib_pportdata *ppd = (struct qib_pportdata *)opaque; in reenable_7220_chase() local 1053 static void handle_7220_chase(struct qib_pportdata *ppd, u64 ibcst) in handle_7220_chase() 1097 struct qib_pportdata *ppd = dd->pport; in handle_7220_errors() local [all …]
|
D | qib_tx.c | 116 struct qib_pportdata *ppd; in is_sdma_buf() local 174 struct qib_pportdata *ppd, *pppd[QIB_MAX_IB_PORTS]; in qib_disarm_piobufs_set() local 457 void qib_cancel_sends(struct qib_pportdata *ppd) in qib_cancel_sends() 518 void qib_hol_down(struct qib_pportdata *ppd) in qib_hol_down() 533 void qib_hol_init(struct qib_pportdata *ppd) in qib_hol_init() 547 void qib_hol_up(struct qib_pportdata *ppd) in qib_hol_up() 557 struct qib_pportdata *ppd = (struct qib_pportdata *)opaque; in qib_hol_event() local
|
D | qib_qsfp.c | 47 static int qsfp_read(struct qib_pportdata *ppd, int addr, void *bp, int len) in qsfp_read() 157 static int qib_qsfp_write(struct qib_pportdata *ppd, int addr, void *bp, in qib_qsfp_write() 253 static int qsfp_cks(struct qib_pportdata *ppd, int first, int next) in qsfp_cks() 273 int qib_refresh_qsfp_cache(struct qib_pportdata *ppd, struct qib_qsfp_cache *cp) in qib_refresh_qsfp_cache() 444 int qib_qsfp_mod_present(struct qib_pportdata *ppd) in qib_qsfp_mod_present() 498 int qib_qsfp_dump(struct qib_pportdata *ppd, char *buf, int len) in qib_qsfp_dump()
|
D | qib_iba6120.c | 968 static void qib_disarm_6120_senderrbufs(struct qib_pportdata *ppd) in qib_disarm_6120_senderrbufs() 1009 struct qib_pportdata *ppd = dd->pport; in handle_6120_errors() local 1201 static void qib_set_ib_6120_lstate(struct qib_pportdata *ppd, u16 linkcmd, in qib_set_ib_6120_lstate() 1239 static int qib_6120_bringup_serdes(struct qib_pportdata *ppd) in qib_6120_bringup_serdes() 1379 static void qib_6120_quiet_serdes(struct qib_pportdata *ppd) in qib_6120_quiet_serdes() 1447 static void qib_6120_setup_setextled(struct qib_pportdata *ppd, u32 on) in qib_6120_setup_setextled() 2133 static void rcvctrl_6120_mod(struct qib_pportdata *ppd, unsigned int op, in rcvctrl_6120_mod() 2235 static void sendctrl_6120_mod(struct qib_pportdata *ppd, u32 op) in sendctrl_6120_mod() 2316 static u64 qib_portcntr_6120(struct qib_pportdata *ppd, u32 reg) in qib_portcntr_6120() 2595 struct qib_pportdata *ppd = &dd->pport[port]; in qib_read_6120portcntrs() local [all …]
|
D | qib_init.c | 143 struct qib_pportdata *ppd; in qib_create_ctxts() local 168 struct qib_ctxtdata *qib_create_ctxtdata(struct qib_pportdata *ppd, u32 ctxt, in qib_create_ctxtdata() 224 int qib_init_pportdata(struct qib_pportdata *ppd, struct qib_devdata *dd, in qib_init_pportdata() 602 struct qib_pportdata *ppd; in qib_create_workqueues() local 631 static void qib_free_pportdata(struct qib_pportdata *ppd) in qib_free_pportdata() 658 struct qib_pportdata *ppd; in qib_init() local 834 struct qib_pportdata *ppd; in qib_stop_timers() local 869 struct qib_pportdata *ppd; in qib_shutdown_device() local 1191 struct qib_pportdata *ppd; in qib_disable_after_error() local
|
D | qib_intr.c | 72 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() 175 struct qib_pportdata *ppd = (struct qib_pportdata *)opaque; in qib_clear_symerror_on_linkup() local
|
D | qib_verbs.c | 627 struct qib_pportdata *ppd = rcd->ppd; in qib_ib_rcv() local 1051 void qib_verbs_sdma_desc_avail(struct qib_pportdata *ppd, unsigned avail) in qib_verbs_sdma_desc_avail() 1158 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_verbs_send_dma() local 1291 struct qib_pportdata *ppd = dd->pport + qp->port_num - 1; in qib_verbs_send_pio() local 1424 int qib_snapshot_counters(struct qib_pportdata *ppd, u64 *swords, in qib_snapshot_counters() 1455 int qib_get_counters(struct qib_pportdata *ppd, in qib_get_counters() 1624 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_query_port() local 1716 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_modify_port() local 1739 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_query_gid() local 1957 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_get_pkey() local [all …]
|
D | qib_ud.c | 52 struct qib_pportdata *ppd; in qib_ud_loopback() local 239 struct qib_pportdata *ppd; in qib_make_ud_req() local 397 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_lookup_pkey() local
|
D | qib_user_sdma.c | 808 struct qib_pportdata *ppd, in qib_user_sdma_queue_pkts() 1065 static int qib_user_sdma_queue_clean(struct qib_pportdata *ppd, in qib_user_sdma_queue_clean() 1130 static int qib_user_sdma_hwqueue_clean(struct qib_pportdata *ppd) in qib_user_sdma_hwqueue_clean() 1143 void qib_user_sdma_queue_drain(struct qib_pportdata *ppd, in qib_user_sdma_queue_drain() 1226 static void qib_user_sdma_send_frag(struct qib_pportdata *ppd, in qib_user_sdma_send_frag() 1253 void qib_user_sdma_send_desc(struct qib_pportdata *ppd, in qib_user_sdma_send_desc() 1339 static int qib_user_sdma_push_pkts(struct qib_pportdata *ppd, in qib_user_sdma_push_pkts() 1397 struct qib_pportdata *ppd = rcd->ppd; in qib_user_sdma_writev() local 1459 int qib_user_sdma_make_progress(struct qib_pportdata *ppd, in qib_user_sdma_make_progress()
|
D | qib_file_ops.c | 105 struct qib_pportdata *ppd = rcd->ppd; in qib_get_base_info() local 574 struct qib_pportdata *ppd = rcd->ppd; in qib_set_part_key() local 704 struct qib_pportdata *ppd = rcd->ppd; in qib_clean_part_key() local 1312 static int setup_ctxt(struct qib_pportdata *ppd, int ctxt, in setup_ctxt() 1370 static inline int usable(struct qib_pportdata *ppd) in usable() 1385 struct qib_pportdata *ppd = NULL; in choose_port_ctxt() local 1952 static int qib_sdma_get_complete(struct qib_pportdata *ppd, in qib_sdma_get_complete() 2008 int qib_set_uevent_bits(struct qib_pportdata *ppd, const int evtbit) in qib_set_uevent_bits()
|
/drivers/staging/rdma/hfi1/ |
D | qsfp.c | 67 static int __i2c_write(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, in __i2c_write() 102 int i2c_write(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, int offset, in i2c_write() 120 static int __i2c_read(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, in __i2c_read() 174 int i2c_read(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, int offset, in i2c_read() 189 int qsfp_write(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp, in qsfp_write() 242 int qsfp_read(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp, in qsfp_read() 299 int refresh_qsfp_cache(struct hfi1_pportdata *ppd, struct qsfp_data *cp) in refresh_qsfp_cache() 404 int qsfp_mod_present(struct hfi1_pportdata *ppd) in qsfp_mod_present() 431 struct hfi1_pportdata *ppd; in get_cable_info() local 473 int qsfp_dump(struct hfi1_pportdata *ppd, char *buf, int len) in qsfp_dump()
|
D | ud.c | 71 struct hfi1_pportdata *ppd; in ud_loopback() local 270 struct hfi1_pportdata *ppd; in hfi1_make_ud_req() local 445 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in hfi1_lookup_pkey_idx() local 491 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in return_cnp() local 555 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in opa_smp_check() local 676 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in hfi1_ud_rcv() local 724 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in hfi1_ud_rcv() local 853 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in hfi1_ud_rcv() local
|
D | init.c | 142 struct hfi1_pportdata *ppd; in hfi1_create_ctxts() local 196 struct hfi1_ctxtdata *hfi1_create_ctxtdata(struct hfi1_pportdata *ppd, u32 ctxt) in hfi1_create_ctxtdata() 357 void set_link_ipg(struct hfi1_pportdata *ppd) in set_link_ipg() 412 struct hfi1_pportdata *ppd; in cca_timer_fn() local 465 void hfi1_init_pportdata(struct pci_dev *pdev, struct hfi1_pportdata *ppd, in hfi1_init_pportdata() 599 struct hfi1_pportdata *ppd; in create_workqueues() local 648 struct hfi1_pportdata *ppd; in hfi1_init() local 817 struct hfi1_pportdata *ppd; in stop_timers() local 840 struct hfi1_pportdata *ppd; in shutdown_device() local 1081 struct hfi1_pportdata *ppd; in hfi1_disable_after_error() local [all …]
|
D | chip.c | 1353 struct hfi1_pportdata *ppd = context; in port_access_u32_csr() local 1363 struct hfi1_pportdata *ppd = context; in port_access_u64_csr() local 1403 struct hfi1_pportdata *ppd = context; in access_sw_link_dn_cnt() local 1413 struct hfi1_pportdata *ppd = context; in access_sw_link_up_cnt() local 1423 struct hfi1_pportdata *ppd = context; in access_sw_xmit_discards() local 1434 struct hfi1_pportdata *ppd = context; in access_xmit_constraint_errs() local 1446 struct hfi1_pportdata *ppd = context; in access_rcv_constraint_errs() local 2210 struct hfi1_pportdata *ppd = dd->pport; in update_rcverr_timer() local 2294 struct hfi1_pportdata *ppd = dd->pport; in count_port_inactive() local 2311 struct hfi1_pportdata *ppd = dd->pport; in handle_send_egress_err_info() local [all …]
|
D | sysfs.c | 69 struct hfi1_pportdata *ppd = in read_cc_table_bin() local 122 struct hfi1_pportdata *ppd = in read_cc_setting_bin() local 241 struct hfi1_pportdata *ppd = in sc2vl_attr_show() local 347 struct hfi1_pportdata *ppd = in sl2sc_attr_show() local 421 struct hfi1_pportdata *ppd = in vl2mtu_attr_show() local 605 struct hfi1_pportdata *ppd; in hfi1_create_port_files() local 727 struct hfi1_pportdata *ppd; in hfi1_verbs_unregister_sysfs() local
|
D | driver.c | 171 struct hfi1_pportdata *ppd; in hfi1_count_active_units() local 202 struct hfi1_pportdata *ppd; in hfi1_count_units() local 261 static void rcv_hdrerr(struct hfi1_ctxtdata *rcd, struct hfi1_pportdata *ppd, in rcv_hdrerr() 480 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in process_ecn() local 955 int set_mtu(struct hfi1_pportdata *ppd) in set_mtu() 999 int hfi1_set_lid(struct hfi1_pportdata *ppd, u32 lid, u8 lmc) in hfi1_set_lid() 1026 struct hfi1_pportdata *ppd = (struct hfi1_pportdata *)opaque; in run_led_override() local 1046 void hfi1_set_led_override(struct hfi1_pportdata *ppd, unsigned int val) in hfi1_set_led_override() 1101 struct hfi1_pportdata *ppd; in hfi1_reset_device() local
|
D | verbs.c | 371 struct hfi1_pportdata *ppd; in post_one_send() local 613 struct hfi1_pportdata *ppd = rcd->ppd; in hfi1_ib_rcv() local 1008 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in hfi1_verbs_send_dma() local 1120 struct hfi1_pportdata *ppd = dd->pport + (qp->port_num - 1); in qp_to_send_context() local 1134 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in hfi1_verbs_send_pio() local 1247 static inline int egress_pkey_check(struct hfi1_pportdata *ppd, in egress_pkey_check() 1462 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in query_port() local 1565 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in modify_port() local 1592 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in query_gid() local 1674 struct hfi1_pportdata *ppd; in hfi1_check_ah() local [all …]
|
D | mad.c | 386 static void set_link_width_enabled(struct hfi1_pportdata *ppd, u32 w) in set_link_width_enabled() 391 static void set_link_width_downgrade_enabled(struct hfi1_pportdata *ppd, u32 w) in set_link_width_downgrade_enabled() 396 static void set_link_speed_enabled(struct hfi1_pportdata *ppd, u32 s) in set_link_speed_enabled() 503 static u8 __opa_porttype(struct hfi1_pportdata *ppd) in __opa_porttype() 519 struct hfi1_pportdata *ppd; in __subn_get_opa_portinfo() local 723 struct hfi1_pportdata *ppd = dd->pport + port - 1; in get_pkeys() local 896 static int port_states_transition_allowed(struct hfi1_pportdata *ppd, in port_states_transition_allowed() 936 static int set_port_states(struct hfi1_pportdata *ppd, struct opa_smp *smp, in set_port_states() 1043 struct hfi1_pportdata *ppd; in __subn_set_opa_portinfo() local 1344 struct hfi1_pportdata *ppd; in set_pkeys() local [all …]
|
D | intr.c | 89 static void signal_ib_event(struct hfi1_pportdata *ppd, enum ib_event_type ev) in signal_ib_event() 113 struct hfi1_pportdata *ppd = &dd->pport[0]; in handle_linkup_change() local
|
D | debugfs.c | 402 struct hfi1_pportdata *ppd; in portcntrs_debugfs_read() local 420 struct hfi1_pportdata *ppd; in qsfp_debugfs_dump() local 444 struct hfi1_pportdata *ppd; in __i2c_debugfs_write() local 504 struct hfi1_pportdata *ppd; in __i2c_debugfs_read() local 564 struct hfi1_pportdata *ppd; in __qsfp_debugfs_write() local 624 struct hfi1_pportdata *ppd; in __qsfp_debugfs_read() local 710 struct hfi1_pportdata *ppd; in hfi1_dbg_ibdev_init() local
|