Lines Matching refs:ibdev
116 event.device = &dd->verbs_dev.rdi.ibdev; in hfi1_event_pkey_change()
303 attr.type = rdma_ah_find_type(&dd->verbs_dev.rdi.ibdev, port_num); in hfi1_create_qp0_ah()
583 u8 *data, struct ib_device *ibdev, in __subn_get_opa_nodedesc() argument
595 memcpy(nd->data, ibdev->node_desc, sizeof(nd->data)); in __subn_get_opa_nodedesc()
604 struct ib_device *ibdev, u8 port, in __subn_get_opa_nodeinfo() argument
608 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in __subn_get_opa_nodeinfo()
614 if (am || pidx >= dd->num_pports || ibdev->node_guid == 0 || in __subn_get_opa_nodeinfo()
616 get_sguid(to_iport(ibdev, port), HFI1_PORT_GUID_INDEX) == 0) { in __subn_get_opa_nodeinfo()
621 ni->port_guid = get_sguid(to_iport(ibdev, port), HFI1_PORT_GUID_INDEX); in __subn_get_opa_nodeinfo()
625 ni->num_ports = ibdev->phys_port_cnt; in __subn_get_opa_nodeinfo()
628 ni->node_guid = ibdev->node_guid; in __subn_get_opa_nodeinfo()
643 static int subn_get_nodeinfo(struct ib_smp *smp, struct ib_device *ibdev, in subn_get_nodeinfo() argument
647 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in subn_get_nodeinfo()
652 ibdev->node_guid == 0 || in subn_get_nodeinfo()
653 get_sguid(to_iport(ibdev, port), HFI1_PORT_GUID_INDEX) == 0) { in subn_get_nodeinfo()
658 nip->port_guid = get_sguid(to_iport(ibdev, port), HFI1_PORT_GUID_INDEX); in subn_get_nodeinfo()
662 nip->num_ports = ibdev->phys_port_cnt; in subn_get_nodeinfo()
665 nip->node_guid = ibdev->node_guid; in subn_get_nodeinfo()
797 struct ib_device *ibdev, u8 port, in __subn_get_opa_portinfo() argument
819 dd = dd_from_ibdev(ibdev); in __subn_get_opa_portinfo()
1022 struct ib_device *ibdev, u8 port, in __subn_get_opa_pkeytable() argument
1025 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in __subn_get_opa_pkeytable()
1352 struct ib_device *ibdev, u8 port, in __subn_set_opa_portinfo() argument
1398 dd = dd_from_ibdev(ibdev); in __subn_set_opa_portinfo()
1402 event.device = ibdev; in __subn_set_opa_portinfo()
1642 ret = __subn_get_opa_portinfo(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_portinfo()
1660 return __subn_get_opa_portinfo(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_portinfo()
1721 struct ib_device *ibdev, u8 port, in __subn_set_opa_pkeytable() argument
1724 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in __subn_set_opa_pkeytable()
1767 return __subn_get_opa_pkeytable(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_pkeytable()
1828 struct ib_device *ibdev, u8 port, in __subn_get_opa_sl_to_sc() argument
1831 struct hfi1_ibport *ibp = to_iport(ibdev, port); in __subn_get_opa_sl_to_sc()
1851 struct ib_device *ibdev, u8 port, in __subn_set_opa_sl_to_sc() argument
1854 struct hfi1_ibport *ibp = to_iport(ibdev, port); in __subn_set_opa_sl_to_sc()
1875 return __subn_get_opa_sl_to_sc(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_sl_to_sc()
1880 struct ib_device *ibdev, u8 port, in __subn_get_opa_sc_to_sl() argument
1883 struct hfi1_ibport *ibp = to_iport(ibdev, port); in __subn_get_opa_sc_to_sl()
1903 struct ib_device *ibdev, u8 port, in __subn_set_opa_sc_to_sl() argument
1906 struct hfi1_ibport *ibp = to_iport(ibdev, port); in __subn_set_opa_sc_to_sl()
1919 return __subn_get_opa_sc_to_sl(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_sc_to_sl()
1924 struct ib_device *ibdev, u8 port, in __subn_get_opa_sc_to_vlt() argument
1928 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in __subn_get_opa_sc_to_vlt()
1946 struct ib_device *ibdev, u8 port, in __subn_set_opa_sc_to_vlt() argument
1951 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in __subn_set_opa_sc_to_vlt()
1983 return __subn_get_opa_sc_to_vlt(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_sc_to_vlt()
1988 struct ib_device *ibdev, u8 port, in __subn_get_opa_sc_to_vlnt() argument
1992 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in __subn_get_opa_sc_to_vlnt()
2013 struct ib_device *ibdev, u8 port, in __subn_set_opa_sc_to_vlnt() argument
2017 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in __subn_set_opa_sc_to_vlnt()
2040 return __subn_get_opa_sc_to_vlnt(smp, am, data, ibdev, port, in __subn_set_opa_sc_to_vlnt()
2045 struct ib_device *ibdev, u8 port, in __subn_get_opa_psi() argument
2060 ibp = to_iport(ibdev, port); in __subn_get_opa_psi()
2087 struct ib_device *ibdev, u8 port, in __subn_set_opa_psi() argument
2104 ibp = to_iport(ibdev, port); in __subn_set_opa_psi()
2130 return __subn_get_opa_psi(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_psi()
2135 struct ib_device *ibdev, u8 port, in __subn_get_opa_cable_info() argument
2138 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in __subn_get_opa_cable_info()
2187 struct ib_device *ibdev, u8 port, u32 *resp_len, in __subn_get_opa_bct() argument
2191 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in __subn_get_opa_bct()
2211 struct ib_device *ibdev, u8 port, u32 *resp_len, in __subn_set_opa_bct() argument
2215 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in __subn_set_opa_bct()
2230 return __subn_get_opa_bct(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_bct()
2235 struct ib_device *ibdev, u8 port, in __subn_get_opa_vl_arb() argument
2238 struct hfi1_pportdata *ppd = ppd_from_ibp(to_iport(ibdev, port)); in __subn_get_opa_vl_arb()
2277 struct ib_device *ibdev, u8 port, in __subn_set_opa_vl_arb() argument
2280 struct hfi1_pportdata *ppd = ppd_from_ibp(to_iport(ibdev, port)); in __subn_set_opa_vl_arb()
2313 return __subn_get_opa_vl_arb(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_vl_arb()
2603 struct ib_device *ibdev, u32 *resp_len) in pma_get_opa_classportinfo() argument
2724 struct ib_device *ibdev, in pma_get_opa_portstatus() argument
2729 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in pma_get_opa_portstatus()
2738 struct hfi1_ibport *ibp = to_iport(ibdev, port); in pma_get_opa_portstatus()
2891 static u64 get_error_counter_summary(struct ib_device *ibdev, u8 port, in get_error_counter_summary() argument
2894 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in get_error_counter_summary()
2895 struct hfi1_ibport *ibp = to_iport(ibdev, port); in get_error_counter_summary()
2953 static void pma_get_opa_port_dctrs(struct ib_device *ibdev, in pma_get_opa_port_dctrs() argument
2956 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in pma_get_opa_port_dctrs()
2975 struct ib_device *ibdev, in pma_get_opa_datacounters() argument
2980 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in pma_get_opa_datacounters()
2981 struct hfi1_ibport *ibp = to_iport(ibdev, port); in pma_get_opa_datacounters()
3042 pma_get_opa_port_dctrs(ibdev, rsp); in pma_get_opa_datacounters()
3059 cpu_to_be64(get_error_counter_summary(ibdev, port, in pma_get_opa_datacounters()
3126 struct ib_device *ibdev, u8 port) in pma_get_ib_portcounters_ext() argument
3138 pma_get_opa_port_dctrs(ibdev, &rsp); in pma_get_ib_portcounters_ext()
3153 static void pma_get_opa_port_ectrs(struct ib_device *ibdev, in pma_get_opa_port_ectrs() argument
3157 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in pma_get_opa_port_ectrs()
3158 struct hfi1_ibport *ibp = to_iport(ibdev, port); in pma_get_opa_port_ectrs()
3196 struct ib_device *ibdev, in pma_get_opa_porterrors() argument
3203 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in pma_get_opa_porterrors()
3248 ibp = to_iport(ibdev, port_num); in pma_get_opa_porterrors()
3254 pma_get_opa_port_ectrs(ibdev, rsp, port_num); in pma_get_opa_porterrors()
3286 struct ib_device *ibdev, u8 port) in pma_get_ib_portcounters() argument
3296 pma_get_opa_port_ectrs(ibdev, &rsp, port); in pma_get_ib_portcounters()
3371 struct ib_device *ibdev, in pma_get_opa_errorinfo() argument
3377 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in pma_get_opa_errorinfo()
3470 struct ib_device *ibdev, in pma_set_opa_portstatus() argument
3475 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in pma_set_opa_portstatus()
3476 struct hfi1_ibport *ibp = to_iport(ibdev, port); in pma_set_opa_portstatus()
3622 struct ib_device *ibdev, in pma_set_opa_errorinfo() argument
3627 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in pma_set_opa_errorinfo()
3705 struct ib_device *ibdev, u8 port, in __subn_get_opa_cong_info() argument
3710 struct hfi1_ibport *ibp = to_iport(ibdev, port); in __subn_get_opa_cong_info()
3729 u8 *data, struct ib_device *ibdev, in __subn_get_opa_cong_setting() argument
3735 struct hfi1_ibport *ibp = to_iport(ibdev, port); in __subn_get_opa_cong_setting()
3822 struct ib_device *ibdev, u8 port, in __subn_set_opa_cong_setting() argument
3827 struct hfi1_ibport *ibp = to_iport(ibdev, port); in __subn_set_opa_cong_setting()
3857 return __subn_get_opa_cong_setting(smp, am, data, ibdev, port, in __subn_set_opa_cong_setting()
3862 u8 *data, struct ib_device *ibdev, in __subn_get_opa_hfi1_cong_log() argument
3865 struct hfi1_ibport *ibp = to_iport(ibdev, port); in __subn_get_opa_hfi1_cong_log()
3928 struct ib_device *ibdev, u8 port, in __subn_get_opa_cc_table() argument
3933 struct hfi1_ibport *ibp = to_iport(ibdev, port); in __subn_get_opa_cc_table()
3980 struct ib_device *ibdev, u8 port, in __subn_set_opa_cc_table() argument
3984 struct hfi1_ibport *ibp = to_iport(ibdev, port); in __subn_set_opa_cc_table()
4026 return __subn_get_opa_cc_table(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_cc_table()
4039 struct ib_device *ibdev, u8 port, in __subn_get_opa_led_info() argument
4042 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in __subn_get_opa_led_info()
4069 struct ib_device *ibdev, u8 port, in __subn_set_opa_led_info() argument
4072 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in __subn_set_opa_led_info()
4087 return __subn_get_opa_led_info(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_led_info()
4092 u8 *data, struct ib_device *ibdev, u8 port, in subn_get_opa_sma() argument
4096 struct hfi1_ibport *ibp = to_iport(ibdev, port); in subn_get_opa_sma()
4100 ret = __subn_get_opa_nodedesc(smp, am, data, ibdev, port, in subn_get_opa_sma()
4104 ret = __subn_get_opa_nodeinfo(smp, am, data, ibdev, port, in subn_get_opa_sma()
4108 ret = __subn_get_opa_portinfo(smp, am, data, ibdev, port, in subn_get_opa_sma()
4112 ret = __subn_get_opa_pkeytable(smp, am, data, ibdev, port, in subn_get_opa_sma()
4116 ret = __subn_get_opa_sl_to_sc(smp, am, data, ibdev, port, in subn_get_opa_sma()
4120 ret = __subn_get_opa_sc_to_sl(smp, am, data, ibdev, port, in subn_get_opa_sma()
4124 ret = __subn_get_opa_sc_to_vlt(smp, am, data, ibdev, port, in subn_get_opa_sma()
4128 ret = __subn_get_opa_sc_to_vlnt(smp, am, data, ibdev, port, in subn_get_opa_sma()
4132 ret = __subn_get_opa_psi(smp, am, data, ibdev, port, in subn_get_opa_sma()
4136 ret = __subn_get_opa_bct(smp, am, data, ibdev, port, in subn_get_opa_sma()
4140 ret = __subn_get_opa_cable_info(smp, am, data, ibdev, port, in subn_get_opa_sma()
4144 ret = __subn_get_opa_vl_arb(smp, am, data, ibdev, port, in subn_get_opa_sma()
4148 ret = __subn_get_opa_cong_info(smp, am, data, ibdev, port, in subn_get_opa_sma()
4152 ret = __subn_get_opa_cong_setting(smp, am, data, ibdev, in subn_get_opa_sma()
4156 ret = __subn_get_opa_hfi1_cong_log(smp, am, data, ibdev, in subn_get_opa_sma()
4160 ret = __subn_get_opa_cc_table(smp, am, data, ibdev, port, in subn_get_opa_sma()
4164 ret = __subn_get_opa_led_info(smp, am, data, ibdev, port, in subn_get_opa_sma()
4182 u8 *data, struct ib_device *ibdev, u8 port, in subn_set_opa_sma() argument
4186 struct hfi1_ibport *ibp = to_iport(ibdev, port); in subn_set_opa_sma()
4190 ret = __subn_set_opa_portinfo(smp, am, data, ibdev, port, in subn_set_opa_sma()
4194 ret = __subn_set_opa_pkeytable(smp, am, data, ibdev, port, in subn_set_opa_sma()
4198 ret = __subn_set_opa_sl_to_sc(smp, am, data, ibdev, port, in subn_set_opa_sma()
4202 ret = __subn_set_opa_sc_to_sl(smp, am, data, ibdev, port, in subn_set_opa_sma()
4206 ret = __subn_set_opa_sc_to_vlt(smp, am, data, ibdev, port, in subn_set_opa_sma()
4210 ret = __subn_set_opa_sc_to_vlnt(smp, am, data, ibdev, port, in subn_set_opa_sma()
4214 ret = __subn_set_opa_psi(smp, am, data, ibdev, port, in subn_set_opa_sma()
4218 ret = __subn_set_opa_bct(smp, am, data, ibdev, port, in subn_set_opa_sma()
4222 ret = __subn_set_opa_vl_arb(smp, am, data, ibdev, port, in subn_set_opa_sma()
4226 ret = __subn_set_opa_cong_setting(smp, am, data, ibdev, in subn_set_opa_sma()
4230 ret = __subn_set_opa_cc_table(smp, am, data, ibdev, port, in subn_set_opa_sma()
4234 ret = __subn_set_opa_led_info(smp, am, data, ibdev, port, in subn_set_opa_sma()
4257 struct ib_device *ibdev, u8 port, in subn_get_opa_aggregate() argument
4291 ibdev, port, NULL, (u32)agg_data_len); in subn_get_opa_aggregate()
4306 struct ib_device *ibdev, u8 port, in subn_set_opa_aggregate() argument
4337 ibdev, port, NULL, (u32)agg_data_len, in subn_set_opa_aggregate()
4511 static int process_subn_opa(struct ib_device *ibdev, int mad_flags, in process_subn_opa() argument
4517 struct hfi1_ibport *ibp = to_iport(ibdev, port); in process_subn_opa()
4550 port_num && port_num <= ibdev->phys_port_cnt && in process_subn_opa()
4552 (void)check_mkey(to_iport(ibdev, port_num), in process_subn_opa()
4569 ibdev, port, resp_len, in process_subn_opa()
4573 ret = subn_get_opa_aggregate(smp, ibdev, port, in process_subn_opa()
4582 ibdev, port, resp_len, in process_subn_opa()
4586 ret = subn_set_opa_aggregate(smp, ibdev, port, in process_subn_opa()
4616 static int process_subn(struct ib_device *ibdev, int mad_flags, in process_subn() argument
4621 struct hfi1_ibport *ibp = to_iport(ibdev, port); in process_subn()
4647 port_num && port_num <= ibdev->phys_port_cnt && in process_subn()
4649 (void)check_mkey(to_iport(ibdev, port_num), in process_subn()
4662 ret = subn_get_nodeinfo(smp, ibdev, port); in process_subn()
4675 static int process_perf(struct ib_device *ibdev, u8 port, in process_perf() argument
4695 ret = pma_get_ib_portcounters(pmp, ibdev, port); in process_perf()
4698 ret = pma_get_ib_portcounters_ext(pmp, ibdev, port); in process_perf()
4737 static int process_perf_opa(struct ib_device *ibdev, u8 port, in process_perf_opa() argument
4757 ret = pma_get_opa_classportinfo(pmp, ibdev, resp_len); in process_perf_opa()
4760 ret = pma_get_opa_portstatus(pmp, ibdev, port, in process_perf_opa()
4764 ret = pma_get_opa_datacounters(pmp, ibdev, port, in process_perf_opa()
4768 ret = pma_get_opa_porterrors(pmp, ibdev, port, in process_perf_opa()
4772 ret = pma_get_opa_errorinfo(pmp, ibdev, port, in process_perf_opa()
4785 ret = pma_set_opa_portstatus(pmp, ibdev, port, in process_perf_opa()
4789 ret = pma_set_opa_errorinfo(pmp, ibdev, port, in process_perf_opa()
4818 static int hfi1_process_opa_mad(struct ib_device *ibdev, int mad_flags, in hfi1_process_opa_mad() argument
4829 struct hfi1_ibport *ibp = to_iport(ibdev, port); in hfi1_process_opa_mad()
4848 ret = process_subn_opa(ibdev, mad_flags, port, in_mad, in hfi1_process_opa_mad()
4856 ret = process_perf_opa(ibdev, port, in_mad, out_mad, &resp_len); in hfi1_process_opa_mad()
4872 static int hfi1_process_ib_mad(struct ib_device *ibdev, int mad_flags, u8 port, in hfi1_process_ib_mad() argument
4883 ret = process_subn(ibdev, mad_flags, port, in_mad, out_mad); in hfi1_process_ib_mad()
4886 ret = process_perf(ibdev, port, in_mad, out_mad); in hfi1_process_ib_mad()
4915 int hfi1_process_mad(struct ib_device *ibdev, int mad_flags, u8 port, in hfi1_process_mad() argument
4922 return hfi1_process_opa_mad(ibdev, mad_flags, port, in hfi1_process_mad()
4929 return hfi1_process_ib_mad(ibdev, mad_flags, port, in_wc, in hfi1_process_mad()