Lines Matching refs:ibdev
258 struct ib_device *ibdev) in subn_get_nodedescription() argument
263 memcpy(smp->data, ibdev->node_desc, sizeof(smp->data)); in subn_get_nodedescription()
268 static int subn_get_nodeinfo(struct ib_smp *smp, struct ib_device *ibdev, in subn_get_nodeinfo() argument
272 struct qib_devdata *dd = dd_from_ibdev(ibdev); in subn_get_nodeinfo()
286 nip->num_ports = ibdev->phys_port_cnt; in subn_get_nodeinfo()
304 static int subn_get_guidinfo(struct ib_smp *smp, struct ib_device *ibdev, in subn_get_guidinfo() argument
307 struct qib_devdata *dd = dd_from_ibdev(ibdev); in subn_get_guidinfo()
429 static int subn_get_portinfo(struct ib_smp *smp, struct ib_device *ibdev, in subn_get_portinfo() argument
444 if (port_num > ibdev->phys_port_cnt) { in subn_get_portinfo()
450 ibp = to_iport(ibdev, port_num); in subn_get_portinfo()
457 dd = dd_from_ibdev(ibdev); in subn_get_portinfo()
569 static int subn_get_pkeytable(struct ib_smp *smp, struct ib_device *ibdev, in subn_get_pkeytable() argument
580 struct qib_devdata *dd = dd_from_ibdev(ibdev); in subn_get_pkeytable()
593 static int subn_set_guidinfo(struct ib_smp *smp, struct ib_device *ibdev, in subn_set_guidinfo() argument
596 struct qib_devdata *dd = dd_from_ibdev(ibdev); in subn_set_guidinfo()
615 return subn_get_guidinfo(smp, ibdev, port); in subn_set_guidinfo()
626 static int subn_set_portinfo(struct ib_smp *smp, struct ib_device *ibdev, in subn_set_portinfo() argument
649 if (port_num > ibdev->phys_port_cnt) in subn_set_portinfo()
656 dd = dd_from_ibdev(ibdev); in subn_set_portinfo()
660 event.device = ibdev; in subn_set_portinfo()
847 ret = subn_get_portinfo(smp, ibdev, port); in subn_set_portinfo()
857 ret = subn_get_portinfo(smp, ibdev, port); in subn_set_portinfo()
1007 event.device = &dd->verbs_dev.ibdev; in set_pkeys()
1014 static int subn_set_pkeytable(struct ib_smp *smp, struct ib_device *ibdev, in subn_set_pkeytable() argument
1020 struct qib_devdata *dd = dd_from_ibdev(ibdev); in subn_set_pkeytable()
1029 return subn_get_pkeytable(smp, ibdev, port); in subn_set_pkeytable()
1032 static int subn_get_sl_to_vl(struct ib_smp *smp, struct ib_device *ibdev, in subn_get_sl_to_vl() argument
1035 struct qib_ibport *ibp = to_iport(ibdev, port); in subn_get_sl_to_vl()
1050 static int subn_set_sl_to_vl(struct ib_smp *smp, struct ib_device *ibdev, in subn_set_sl_to_vl() argument
1053 struct qib_ibport *ibp = to_iport(ibdev, port); in subn_set_sl_to_vl()
1066 qib_set_uevent_bits(ppd_from_ibp(to_iport(ibdev, port)), in subn_set_sl_to_vl()
1069 return subn_get_sl_to_vl(smp, ibdev, port); in subn_set_sl_to_vl()
1072 static int subn_get_vl_arb(struct ib_smp *smp, struct ib_device *ibdev, in subn_get_vl_arb() argument
1076 struct qib_pportdata *ppd = ppd_from_ibp(to_iport(ibdev, port)); in subn_get_vl_arb()
1094 static int subn_set_vl_arb(struct ib_smp *smp, struct ib_device *ibdev, in subn_set_vl_arb() argument
1098 struct qib_pportdata *ppd = ppd_from_ibp(to_iport(ibdev, port)); in subn_set_vl_arb()
1111 return subn_get_vl_arb(smp, ibdev, port); in subn_set_vl_arb()
1114 static int subn_trap_repress(struct ib_smp *smp, struct ib_device *ibdev, in subn_trap_repress() argument
1127 struct ib_device *ibdev) in pma_get_classportinfo() argument
1131 struct qib_devdata *dd = dd_from_ibdev(ibdev); in pma_get_classportinfo()
1156 struct ib_device *ibdev, u8 port) in pma_get_portsamplescontrol() argument
1160 struct qib_ibdev *dev = to_idev(ibdev); in pma_get_portsamplescontrol()
1162 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_get_portsamplescontrol()
1194 struct ib_device *ibdev, u8 port) in pma_set_portsamplescontrol() argument
1198 struct qib_ibdev *dev = to_idev(ibdev); in pma_set_portsamplescontrol()
1200 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_set_portsamplescontrol()
1234 ret = pma_get_portsamplescontrol(pmp, ibdev, port); in pma_set_portsamplescontrol()
1323 struct ib_device *ibdev, u8 port) in pma_get_portsamplesresult() argument
1327 struct qib_ibdev *dev = to_idev(ibdev); in pma_get_portsamplesresult()
1329 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_get_portsamplesresult()
1362 struct ib_device *ibdev, u8 port) in pma_get_portsamplesresult_ext() argument
1366 struct qib_ibdev *dev = to_idev(ibdev); in pma_get_portsamplesresult_ext()
1368 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_get_portsamplesresult_ext()
1404 struct ib_device *ibdev, u8 port) in pma_get_portcounters() argument
1408 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_get_portcounters()
1502 struct ib_device *ibdev, u8 port) in pma_get_portcounters_cong() argument
1508 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_get_portcounters_cong()
1615 struct ib_device *ibdev, u8 port) in pma_get_portcounters_ext() argument
1619 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_get_portcounters_ext()
1654 struct ib_device *ibdev, u8 port) in pma_set_portcounters() argument
1658 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_set_portcounters()
1713 return pma_get_portcounters(pmp, ibdev, port); in pma_set_portcounters()
1717 struct ib_device *ibdev, u8 port) in pma_set_portcounters_cong() argument
1719 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_set_portcounters_cong()
1729 ret = pma_get_portcounters_cong(pmp, ibdev, port); in pma_set_portcounters_cong()
1768 struct ib_device *ibdev, u8 port) in pma_set_portcounters_ext() argument
1772 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_set_portcounters_ext()
1802 return pma_get_portcounters_ext(pmp, ibdev, port); in pma_set_portcounters_ext()
1805 static int process_subn(struct ib_device *ibdev, int mad_flags, in process_subn() argument
1810 struct qib_ibport *ibp = to_iport(ibdev, port); in process_subn()
1835 port_num && port_num <= ibdev->phys_port_cnt && in process_subn()
1837 (void) check_mkey(to_iport(ibdev, port_num), smp, 0); in process_subn()
1845 ret = subn_get_nodedescription(smp, ibdev); in process_subn()
1848 ret = subn_get_nodeinfo(smp, ibdev, port); in process_subn()
1851 ret = subn_get_guidinfo(smp, ibdev, port); in process_subn()
1854 ret = subn_get_portinfo(smp, ibdev, port); in process_subn()
1857 ret = subn_get_pkeytable(smp, ibdev, port); in process_subn()
1860 ret = subn_get_sl_to_vl(smp, ibdev, port); in process_subn()
1863 ret = subn_get_vl_arb(smp, ibdev, port); in process_subn()
1885 ret = subn_set_guidinfo(smp, ibdev, port); in process_subn()
1888 ret = subn_set_portinfo(smp, ibdev, port); in process_subn()
1891 ret = subn_set_pkeytable(smp, ibdev, port); in process_subn()
1894 ret = subn_set_sl_to_vl(smp, ibdev, port); in process_subn()
1897 ret = subn_set_vl_arb(smp, ibdev, port); in process_subn()
1918 ret = subn_trap_repress(smp, ibdev, port); in process_subn()
1956 static int process_perf(struct ib_device *ibdev, u8 port, in process_perf() argument
1974 ret = pma_get_classportinfo(pmp, ibdev); in process_perf()
1977 ret = pma_get_portsamplescontrol(pmp, ibdev, port); in process_perf()
1980 ret = pma_get_portsamplesresult(pmp, ibdev, port); in process_perf()
1983 ret = pma_get_portsamplesresult_ext(pmp, ibdev, port); in process_perf()
1986 ret = pma_get_portcounters(pmp, ibdev, port); in process_perf()
1989 ret = pma_get_portcounters_ext(pmp, ibdev, port); in process_perf()
1992 ret = pma_get_portcounters_cong(pmp, ibdev, port); in process_perf()
2003 ret = pma_set_portsamplescontrol(pmp, ibdev, port); in process_perf()
2006 ret = pma_set_portcounters(pmp, ibdev, port); in process_perf()
2009 ret = pma_set_portcounters_ext(pmp, ibdev, port); in process_perf()
2012 ret = pma_set_portcounters_cong(pmp, ibdev, port); in process_perf()
2058 int qib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port, in qib_process_mad() argument
2067 ret = process_subn(ibdev, mad_flags, port, in_mad, out_mad); in qib_process_mad()
2071 ret = process_perf(ibdev, port, in_mad, out_mad); in qib_process_mad()
2122 agent = ib_register_mad_agent(&dev->ibdev, p + 1, IB_QPT_SMI, in qib_create_agents()