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()
2314 return __subn_get_opa_vl_arb(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_vl_arb()
2604 struct ib_device *ibdev, u32 *resp_len) in pma_get_opa_classportinfo() argument
2726 struct ib_device *ibdev, in pma_get_opa_portstatus() argument
2731 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in pma_get_opa_portstatus()
2740 struct hfi1_ibport *ibp = to_iport(ibdev, port); in pma_get_opa_portstatus()
2895 static u64 get_error_counter_summary(struct ib_device *ibdev, u8 port, in get_error_counter_summary() argument
2898 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in get_error_counter_summary()
2899 struct hfi1_ibport *ibp = to_iport(ibdev, port); in get_error_counter_summary()
2959 static void pma_get_opa_port_dctrs(struct ib_device *ibdev, in pma_get_opa_port_dctrs() argument
2962 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in pma_get_opa_port_dctrs()
2981 struct ib_device *ibdev, in pma_get_opa_datacounters() argument
2986 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in pma_get_opa_datacounters()
2987 struct hfi1_ibport *ibp = to_iport(ibdev, port); in pma_get_opa_datacounters()
3049 pma_get_opa_port_dctrs(ibdev, rsp); in pma_get_opa_datacounters()
3066 cpu_to_be64(get_error_counter_summary(ibdev, port, in pma_get_opa_datacounters()
3134 struct ib_device *ibdev, u8 port) in pma_get_ib_portcounters_ext() argument
3146 pma_get_opa_port_dctrs(ibdev, &rsp); in pma_get_ib_portcounters_ext()
3161 static void pma_get_opa_port_ectrs(struct ib_device *ibdev, in pma_get_opa_port_ectrs() argument
3165 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in pma_get_opa_port_ectrs()
3166 struct hfi1_ibport *ibp = to_iport(ibdev, port); in pma_get_opa_port_ectrs()
3204 struct ib_device *ibdev, in pma_get_opa_porterrors() argument
3211 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in pma_get_opa_porterrors()
3257 ibp = to_iport(ibdev, port_num); in pma_get_opa_porterrors()
3263 pma_get_opa_port_ectrs(ibdev, rsp, port_num); in pma_get_opa_porterrors()
3296 struct ib_device *ibdev, u8 port) in pma_get_ib_portcounters() argument
3306 pma_get_opa_port_ectrs(ibdev, &rsp, port); in pma_get_ib_portcounters()
3381 struct ib_device *ibdev, in pma_get_opa_errorinfo() argument
3387 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in pma_get_opa_errorinfo()
3480 struct ib_device *ibdev, in pma_set_opa_portstatus() argument
3485 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in pma_set_opa_portstatus()
3486 struct hfi1_ibport *ibp = to_iport(ibdev, port); in pma_set_opa_portstatus()
3633 struct ib_device *ibdev, in pma_set_opa_errorinfo() argument
3638 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in pma_set_opa_errorinfo()
3716 struct ib_device *ibdev, u8 port, in __subn_get_opa_cong_info() argument
3721 struct hfi1_ibport *ibp = to_iport(ibdev, port); in __subn_get_opa_cong_info()
3740 u8 *data, struct ib_device *ibdev, in __subn_get_opa_cong_setting() argument
3746 struct hfi1_ibport *ibp = to_iport(ibdev, port); in __subn_get_opa_cong_setting()
3833 struct ib_device *ibdev, u8 port, in __subn_set_opa_cong_setting() argument
3838 struct hfi1_ibport *ibp = to_iport(ibdev, port); in __subn_set_opa_cong_setting()
3868 return __subn_get_opa_cong_setting(smp, am, data, ibdev, port, in __subn_set_opa_cong_setting()
3873 u8 *data, struct ib_device *ibdev, in __subn_get_opa_hfi1_cong_log() argument
3876 struct hfi1_ibport *ibp = to_iport(ibdev, port); in __subn_get_opa_hfi1_cong_log()
3939 struct ib_device *ibdev, u8 port, in __subn_get_opa_cc_table() argument
3944 struct hfi1_ibport *ibp = to_iport(ibdev, port); in __subn_get_opa_cc_table()
3991 struct ib_device *ibdev, u8 port, in __subn_set_opa_cc_table() argument
3995 struct hfi1_ibport *ibp = to_iport(ibdev, port); in __subn_set_opa_cc_table()
4037 return __subn_get_opa_cc_table(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_cc_table()
4050 struct ib_device *ibdev, u8 port, in __subn_get_opa_led_info() argument
4053 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in __subn_get_opa_led_info()
4080 struct ib_device *ibdev, u8 port, in __subn_set_opa_led_info() argument
4083 struct hfi1_devdata *dd = dd_from_ibdev(ibdev); in __subn_set_opa_led_info()
4098 return __subn_get_opa_led_info(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_led_info()
4103 u8 *data, struct ib_device *ibdev, u8 port, in subn_get_opa_sma() argument
4107 struct hfi1_ibport *ibp = to_iport(ibdev, port); in subn_get_opa_sma()
4111 ret = __subn_get_opa_nodedesc(smp, am, data, ibdev, port, in subn_get_opa_sma()
4115 ret = __subn_get_opa_nodeinfo(smp, am, data, ibdev, port, in subn_get_opa_sma()
4119 ret = __subn_get_opa_portinfo(smp, am, data, ibdev, port, in subn_get_opa_sma()
4123 ret = __subn_get_opa_pkeytable(smp, am, data, ibdev, port, in subn_get_opa_sma()
4127 ret = __subn_get_opa_sl_to_sc(smp, am, data, ibdev, port, in subn_get_opa_sma()
4131 ret = __subn_get_opa_sc_to_sl(smp, am, data, ibdev, port, in subn_get_opa_sma()
4135 ret = __subn_get_opa_sc_to_vlt(smp, am, data, ibdev, port, in subn_get_opa_sma()
4139 ret = __subn_get_opa_sc_to_vlnt(smp, am, data, ibdev, port, in subn_get_opa_sma()
4143 ret = __subn_get_opa_psi(smp, am, data, ibdev, port, in subn_get_opa_sma()
4147 ret = __subn_get_opa_bct(smp, am, data, ibdev, port, in subn_get_opa_sma()
4151 ret = __subn_get_opa_cable_info(smp, am, data, ibdev, port, in subn_get_opa_sma()
4155 ret = __subn_get_opa_vl_arb(smp, am, data, ibdev, port, in subn_get_opa_sma()
4159 ret = __subn_get_opa_cong_info(smp, am, data, ibdev, port, in subn_get_opa_sma()
4163 ret = __subn_get_opa_cong_setting(smp, am, data, ibdev, in subn_get_opa_sma()
4167 ret = __subn_get_opa_hfi1_cong_log(smp, am, data, ibdev, in subn_get_opa_sma()
4171 ret = __subn_get_opa_cc_table(smp, am, data, ibdev, port, in subn_get_opa_sma()
4175 ret = __subn_get_opa_led_info(smp, am, data, ibdev, port, in subn_get_opa_sma()
4193 u8 *data, struct ib_device *ibdev, u8 port, in subn_set_opa_sma() argument
4197 struct hfi1_ibport *ibp = to_iport(ibdev, port); in subn_set_opa_sma()
4201 ret = __subn_set_opa_portinfo(smp, am, data, ibdev, port, in subn_set_opa_sma()
4205 ret = __subn_set_opa_pkeytable(smp, am, data, ibdev, port, in subn_set_opa_sma()
4209 ret = __subn_set_opa_sl_to_sc(smp, am, data, ibdev, port, in subn_set_opa_sma()
4213 ret = __subn_set_opa_sc_to_sl(smp, am, data, ibdev, port, in subn_set_opa_sma()
4217 ret = __subn_set_opa_sc_to_vlt(smp, am, data, ibdev, port, in subn_set_opa_sma()
4221 ret = __subn_set_opa_sc_to_vlnt(smp, am, data, ibdev, port, in subn_set_opa_sma()
4225 ret = __subn_set_opa_psi(smp, am, data, ibdev, port, in subn_set_opa_sma()
4229 ret = __subn_set_opa_bct(smp, am, data, ibdev, port, in subn_set_opa_sma()
4233 ret = __subn_set_opa_vl_arb(smp, am, data, ibdev, port, in subn_set_opa_sma()
4237 ret = __subn_set_opa_cong_setting(smp, am, data, ibdev, in subn_set_opa_sma()
4241 ret = __subn_set_opa_cc_table(smp, am, data, ibdev, port, in subn_set_opa_sma()
4245 ret = __subn_set_opa_led_info(smp, am, data, ibdev, port, in subn_set_opa_sma()
4268 struct ib_device *ibdev, u8 port, in subn_get_opa_aggregate() argument
4302 ibdev, port, NULL, (u32)agg_data_len); in subn_get_opa_aggregate()
4317 struct ib_device *ibdev, u8 port, in subn_set_opa_aggregate() argument
4348 ibdev, port, NULL, (u32)agg_data_len, in subn_set_opa_aggregate()
4522 static int process_subn_opa(struct ib_device *ibdev, int mad_flags, in process_subn_opa() argument
4528 struct hfi1_ibport *ibp = to_iport(ibdev, port); in process_subn_opa()
4561 port_num && port_num <= ibdev->phys_port_cnt && in process_subn_opa()
4563 (void)check_mkey(to_iport(ibdev, port_num), in process_subn_opa()
4580 ibdev, port, resp_len, in process_subn_opa()
4584 ret = subn_get_opa_aggregate(smp, ibdev, port, in process_subn_opa()
4593 ibdev, port, resp_len, in process_subn_opa()
4597 ret = subn_set_opa_aggregate(smp, ibdev, port, in process_subn_opa()
4627 static int process_subn(struct ib_device *ibdev, int mad_flags, in process_subn() argument
4632 struct hfi1_ibport *ibp = to_iport(ibdev, port); in process_subn()
4658 port_num && port_num <= ibdev->phys_port_cnt && in process_subn()
4660 (void)check_mkey(to_iport(ibdev, port_num), in process_subn()
4673 ret = subn_get_nodeinfo(smp, ibdev, port); in process_subn()
4686 static int process_perf(struct ib_device *ibdev, u8 port, in process_perf() argument
4706 ret = pma_get_ib_portcounters(pmp, ibdev, port); in process_perf()
4709 ret = pma_get_ib_portcounters_ext(pmp, ibdev, port); in process_perf()
4748 static int process_perf_opa(struct ib_device *ibdev, u8 port, in process_perf_opa() argument
4768 ret = pma_get_opa_classportinfo(pmp, ibdev, resp_len); in process_perf_opa()
4771 ret = pma_get_opa_portstatus(pmp, ibdev, port, in process_perf_opa()
4775 ret = pma_get_opa_datacounters(pmp, ibdev, port, in process_perf_opa()
4779 ret = pma_get_opa_porterrors(pmp, ibdev, port, in process_perf_opa()
4783 ret = pma_get_opa_errorinfo(pmp, ibdev, port, in process_perf_opa()
4796 ret = pma_set_opa_portstatus(pmp, ibdev, port, in process_perf_opa()
4800 ret = pma_set_opa_errorinfo(pmp, ibdev, port, in process_perf_opa()
4829 static int hfi1_process_opa_mad(struct ib_device *ibdev, int mad_flags, in hfi1_process_opa_mad() argument
4840 struct hfi1_ibport *ibp = to_iport(ibdev, port); in hfi1_process_opa_mad()
4859 ret = process_subn_opa(ibdev, mad_flags, port, in_mad, in hfi1_process_opa_mad()
4867 ret = process_perf_opa(ibdev, port, in_mad, out_mad, &resp_len); in hfi1_process_opa_mad()
4883 static int hfi1_process_ib_mad(struct ib_device *ibdev, int mad_flags, u8 port, in hfi1_process_ib_mad() argument
4894 ret = process_subn(ibdev, mad_flags, port, in_mad, out_mad); in hfi1_process_ib_mad()
4897 ret = process_perf(ibdev, port, in_mad, out_mad); in hfi1_process_ib_mad()
4926 int hfi1_process_mad(struct ib_device *ibdev, int mad_flags, u8 port, in hfi1_process_mad() argument
4935 dev_err(ibdev->dev.parent, "invalid in_mad_size\n"); in hfi1_process_mad()
4938 return hfi1_process_opa_mad(ibdev, mad_flags, port, in hfi1_process_mad()
4945 return hfi1_process_ib_mad(ibdev, mad_flags, port, in hfi1_process_mad()