Lines Matching defs:port
69 void hfi1_event_pkey_change(struct hfi1_devdata *dd, u32 port)
75 event.element.port_num = port;
80 * If the port is down, clean up all pending traps. We need to be careful
220 rdma_ah_set_port_num(attr, ppd_from_ibp(ibp)->port);
258 u32 port_num = ppd->port;
542 u32 port, u32 *resp_len, u32 max_len)
562 struct ib_device *ibdev, u32 port,
567 u32 pidx = port - 1; /* IB number port from 1, hw from 0 */
574 get_sguid(to_iport(ibdev, port), HFI1_PORT_GUID_INDEX) == 0) {
579 ni->port_guid = get_sguid(to_iport(ibdev, port), HFI1_PORT_GUID_INDEX);
590 ni->local_port_num = port;
602 u32 port)
606 u32 pidx = port - 1; /* IB number port from 1, hw from 0 */
611 get_sguid(to_iport(ibdev, port), HFI1_PORT_GUID_INDEX) == 0) {
616 nip->port_guid = get_sguid(to_iport(ibdev, port), HFI1_PORT_GUID_INDEX);
627 nip->local_port_num = port;
755 struct ib_device *ibdev, u32 port,
779 ppd = dd->pport + (port - 1);
917 pi->local_port_num = port;
967 * @port: the IB port number
970 static int get_pkeys(struct hfi1_devdata *dd, u32 port, u16 *pkeys)
972 struct hfi1_pportdata *ppd = dd->pport + port - 1;
980 struct ib_device *ibdev, u32 port,
995 port, start_block, n_blocks_req);
1023 get_pkeys(dd, port, q);
1219 pr_warn("SubnSet(OPA_PortInfo) port state invalid: logical_state 0x%x physical_state 0x%x\n",
1273 * through the disabled port.
1303 * subn_set_opa_portinfo - set port information
1306 * @port: the port on the device
1310 struct ib_device *ibdev, u32 port,
1358 ppd = dd->pport + (port - 1);
1361 event.element.port_num = port;
1588 * Do the port state change now that the other link parameters
1590 * Changing the port physical state only makes sense if the link
1600 ret = __subn_get_opa_portinfo(smp, am, data, ibdev, port, resp_len,
1609 * Possible problem: if setting the port state above fails, then
1618 return __subn_get_opa_portinfo(smp, am, data, ibdev, port, resp_len,
1625 * @port: the IB port number
1628 static int set_pkeys(struct hfi1_devdata *dd, u32 port, u16 *pkeys)
1636 * IB port one/two always maps to context zero/one,
1641 ppd = dd->pport + (port - 1);
1672 hfi1_event_pkey_change(dd, port);
1679 struct ib_device *ibdev, u32 port,
1694 port, start_block, n_blocks_sent);
1720 if (start_block == 0 && set_pkeys(dd, port, p) != 0) {
1725 return __subn_get_opa_pkeytable(smp, am, data, ibdev, port, resp_len,
1786 struct ib_device *ibdev, u32 port,
1789 struct hfi1_ibport *ibp = to_iport(ibdev, port);
1809 struct ib_device *ibdev, u32 port,
1812 struct hfi1_ibport *ibp = to_iport(ibdev, port);
1833 return __subn_get_opa_sl_to_sc(smp, am, data, ibdev, port, resp_len,
1838 struct ib_device *ibdev, u32 port,
1841 struct hfi1_ibport *ibp = to_iport(ibdev, port);
1861 struct ib_device *ibdev, u32 port,
1864 struct hfi1_ibport *ibp = to_iport(ibdev, port);
1877 return __subn_get_opa_sc_to_sl(smp, am, data, ibdev, port, resp_len,
1882 struct ib_device *ibdev, u32 port,
1904 struct ib_device *ibdev, u32 port,
1927 ppd = dd->pport + (port - 1);
1941 return __subn_get_opa_sc_to_vlt(smp, am, data, ibdev, port, resp_len,
1946 struct ib_device *ibdev, u32 port,
1960 ppd = dd->pport + (port - 1);
1971 struct ib_device *ibdev, u32 port,
1987 ppd = dd->pport + (port - 1);
1994 ppd = dd->pport + (port - 1);
1998 return __subn_get_opa_sc_to_vlnt(smp, am, data, ibdev, port,
2003 struct ib_device *ibdev, u32 port,
2018 ibp = to_iport(ibdev, port);
2045 struct ib_device *ibdev, u32 port,
2062 ibp = to_iport(ibdev, port);
2088 return __subn_get_opa_psi(smp, am, data, ibdev, port, resp_len,
2093 struct ib_device *ibdev, u32 port,
2121 ret = get_cable_info(dd, port, addr, len, data);
2145 struct ib_device *ibdev, u32 port, u32 *resp_len,
2159 ppd = dd->pport + (port - 1);
2169 struct ib_device *ibdev, u32 port, u32 *resp_len,
2181 ppd = dd->pport + (port - 1);
2188 return __subn_get_opa_bct(smp, am, data, ibdev, port, resp_len,
2193 struct ib_device *ibdev, u32 port,
2196 struct hfi1_pportdata *ppd = ppd_from_ibp(to_iport(ibdev, port));
2235 struct ib_device *ibdev, u32 port,
2238 struct hfi1_pportdata *ppd = ppd_from_ibp(to_iport(ibdev, port));
2271 return __subn_get_opa_vl_arb(smp, am, data, ibdev, port, resp_len,
2423 /* Sum of error counts/port */
2442 } port;
2475 } port;
2546 } port;
2636 * @ppd: info of physical Hfi port
2683 u32 port, u32 *resp_len)
2696 struct hfi1_ibport *ibp = to_iport(ibdev, port);
2709 if (nports != 1 || (port_num && port_num != port) ||
2721 rsp->port_num = port;
2849 static u64 get_error_counter_summary(struct ib_device *ibdev, u32 port,
2853 struct hfi1_ibport *ibp = to_iport(ibdev, port);
2934 u32 port, u32 *resp_len)
2939 struct hfi1_ibport *ibp = to_iport(ibdev, port);
2969 response_data_size = struct_size(req, port.vls, num_vls);
2978 * port the request came in on.
2984 if (port_num != port) {
2989 rsp = &req->port;
2992 rsp->port_number = port;
3017 cpu_to_be64(get_error_counter_summary(ibdev, port,
3084 struct ib_device *ibdev, u32 port)
3090 if (pmp->mad_hdr.attr_mod != 0 || p->port_select != port) {
3112 struct _port_ectrs *rsp, u32 port)
3116 struct hfi1_ibport *ibp = to_iport(ibdev, port);
3155 u32 port, u32 *resp_len)
3185 response_data_size = struct_size(req, port.vls, num_vls);
3193 * port the request came in on.
3199 if (port_num != port) {
3204 rsp = &req->port;
3244 struct ib_device *ibdev, u32 port)
3254 pma_get_opa_port_ectrs(ibdev, &rsp, port);
3256 if (pmp->mad_hdr.attr_mod != 0 || p->port_select != port) {
3330 u32 port, u32 *resp_len)
3343 rsp = &req->port;
3364 * The bit set in the mask needs to be consistent with the port
3371 if (port_num != port) {
3375 rsp->port_number = port;
3429 u32 port, u32 *resp_len)
3434 struct hfi1_ibport *ibp = to_iport(ibdev, port);
3442 if ((nports != 1) || (portn != 1 << port)) {
3581 u32 port, u32 *resp_len)
3593 rsp = &req->port;
3606 * The bit set in the mask needs to be consistent with the port
3613 if (port_num != port) {
3663 struct ib_device *ibdev, u32 port,
3668 struct hfi1_ibport *ibp = to_iport(ibdev, port);
3688 u32 port, u32 *resp_len, u32 max_len)
3693 struct hfi1_ibport *ibp = to_iport(ibdev, port);
3780 struct ib_device *ibdev, u32 port,
3785 struct hfi1_ibport *ibp = to_iport(ibdev, port);
3815 return __subn_get_opa_cong_setting(smp, am, data, ibdev, port,
3821 u32 port, u32 *resp_len, u32 max_len)
3823 struct hfi1_ibport *ibp = to_iport(ibdev, port);
3886 struct ib_device *ibdev, u32 port,
3891 struct hfi1_ibport *ibp = to_iport(ibdev, port);
3938 struct ib_device *ibdev, u32 port,
3942 struct hfi1_ibport *ibp = to_iport(ibdev, port);
3984 return __subn_get_opa_cc_table(smp, am, data, ibdev, port, resp_len,
3997 struct ib_device *ibdev, u32 port,
4027 struct ib_device *ibdev, u32 port,
4045 return __subn_get_opa_led_info(smp, am, data, ibdev, port, resp_len,
4050 u8 *data, struct ib_device *ibdev, u32 port,
4054 struct hfi1_ibport *ibp = to_iport(ibdev, port);
4058 ret = __subn_get_opa_nodedesc(smp, am, data, ibdev, port,
4062 ret = __subn_get_opa_nodeinfo(smp, am, data, ibdev, port,
4066 ret = __subn_get_opa_portinfo(smp, am, data, ibdev, port,
4070 ret = __subn_get_opa_pkeytable(smp, am, data, ibdev, port,
4074 ret = __subn_get_opa_sl_to_sc(smp, am, data, ibdev, port,
4078 ret = __subn_get_opa_sc_to_sl(smp, am, data, ibdev, port,
4082 ret = __subn_get_opa_sc_to_vlt(smp, am, data, ibdev, port,
4086 ret = __subn_get_opa_sc_to_vlnt(smp, am, data, ibdev, port,
4090 ret = __subn_get_opa_psi(smp, am, data, ibdev, port,
4094 ret = __subn_get_opa_bct(smp, am, data, ibdev, port,
4098 ret = __subn_get_opa_cable_info(smp, am, data, ibdev, port,
4102 ret = __subn_get_opa_vl_arb(smp, am, data, ibdev, port,
4106 ret = __subn_get_opa_cong_info(smp, am, data, ibdev, port,
4111 port, resp_len, max_len);
4115 port, resp_len, max_len);
4118 ret = __subn_get_opa_cc_table(smp, am, data, ibdev, port,
4122 ret = __subn_get_opa_led_info(smp, am, data, ibdev, port,
4140 u8 *data, struct ib_device *ibdev, u32 port,
4144 struct hfi1_ibport *ibp = to_iport(ibdev, port);
4148 ret = __subn_set_opa_portinfo(smp, am, data, ibdev, port,
4152 ret = __subn_set_opa_pkeytable(smp, am, data, ibdev, port,
4156 ret = __subn_set_opa_sl_to_sc(smp, am, data, ibdev, port,
4160 ret = __subn_set_opa_sc_to_sl(smp, am, data, ibdev, port,
4164 ret = __subn_set_opa_sc_to_vlt(smp, am, data, ibdev, port,
4168 ret = __subn_set_opa_sc_to_vlnt(smp, am, data, ibdev, port,
4172 ret = __subn_set_opa_psi(smp, am, data, ibdev, port,
4176 ret = __subn_set_opa_bct(smp, am, data, ibdev, port,
4180 ret = __subn_set_opa_vl_arb(smp, am, data, ibdev, port,
4185 port, resp_len, max_len);
4188 ret = __subn_set_opa_cc_table(smp, am, data, ibdev, port,
4192 ret = __subn_set_opa_led_info(smp, am, data, ibdev, port,
4215 struct ib_device *ibdev, u32 port,
4249 ibdev, port, NULL, (u32)agg_data_len);
4264 struct ib_device *ibdev, u32 port,
4295 ibdev, port, NULL, (u32)agg_data_len,
4403 * our own port's lid
4414 * @ibp: IB port data
4416 * @in_wc: Work completion data such as source LID, port number, etc.
4470 u32 port, const struct opa_mad *in_mad,
4475 struct hfi1_ibport *ibp = to_iport(ibdev, port);
4500 * M_Key if the MAD is for another port and the M_Key
4501 * is OK on the receiving port. This check is needed
4509 port != port_num)
4527 ibdev, port, resp_len,
4531 ret = subn_get_opa_aggregate(smp, ibdev, port,
4540 ibdev, port, resp_len,
4544 ret = subn_set_opa_aggregate(smp, ibdev, port,
4575 u32 port, const struct ib_mad *in_mad,
4579 struct hfi1_ibport *ibp = to_iport(ibdev, port);
4597 * M_Key if the MAD is for another port and the M_Key
4598 * is OK on the receiving port. This check is needed
4606 port != port_num)
4620 ret = subn_get_nodeinfo(smp, ibdev, port);
4633 static int process_perf(struct ib_device *ibdev, u32 port,
4653 ret = pma_get_ib_portcounters(pmp, ibdev, port);
4656 ret = pma_get_ib_portcounters_ext(pmp, ibdev, port);
4695 static int process_perf_opa(struct ib_device *ibdev, u32 port,
4718 ret = pma_get_opa_portstatus(pmp, ibdev, port,
4722 ret = pma_get_opa_datacounters(pmp, ibdev, port,
4726 ret = pma_get_opa_porterrors(pmp, ibdev, port,
4730 ret = pma_get_opa_errorinfo(pmp, ibdev, port,
4743 ret = pma_set_opa_portstatus(pmp, ibdev, port,
4747 ret = pma_set_opa_errorinfo(pmp, ibdev, port,
4777 u32 port, const struct ib_wc *in_wc,
4787 struct hfi1_ibport *ibp = to_iport(ibdev, port);
4806 ret = process_subn_opa(ibdev, mad_flags, port, in_mad,
4814 ret = process_perf_opa(ibdev, port, in_mad, out_mad, &resp_len);
4830 static int hfi1_process_ib_mad(struct ib_device *ibdev, int mad_flags, u32 port,
4841 ret = process_subn(ibdev, mad_flags, port, in_mad, out_mad);
4844 ret = process_perf(ibdev, port, in_mad, out_mad);
4858 * @port: the port number this packet came in on
4875 int hfi1_process_mad(struct ib_device *ibdev, int mad_flags, u32 port,
4882 return hfi1_process_opa_mad(ibdev, mad_flags, port,
4889 return hfi1_process_ib_mad(ibdev, mad_flags, port, in_wc,