Home
last modified time | relevance | path

Searched refs:port_attr (Results 1 – 21 of 21) sorted by relevance

/Linux-v6.6/drivers/infiniband/sw/rdmavt/
Dah.c25 struct ib_port_attr port_attr; in rvt_check_ah() local
30 err = ib_query_port(ibdev, port_num, &port_attr); in rvt_check_ah()
40 rdma_ah_read_grh(ah_attr)->sgid_index >= port_attr.gid_tbl_len) in rvt_check_ah()
/Linux-v6.6/drivers/infiniband/core/
Ddevice.c2015 struct ib_port_attr *port_attr) in iw_query_port() argument
2020 memset(port_attr, 0, sizeof(*port_attr)); in iw_query_port()
2026 port_attr->max_mtu = IB_MTU_4096; in iw_query_port()
2027 port_attr->active_mtu = ib_mtu_int_to_enum(netdev->mtu); in iw_query_port()
2030 port_attr->state = IB_PORT_DOWN; in iw_query_port()
2031 port_attr->phys_state = IB_PORT_PHYS_STATE_DISABLED; in iw_query_port()
2037 port_attr->state = IB_PORT_ACTIVE; in iw_query_port()
2038 port_attr->phys_state = IB_PORT_PHYS_STATE_LINK_UP; in iw_query_port()
2040 port_attr->state = IB_PORT_INIT; in iw_query_port()
2041 port_attr->phys_state = in iw_query_port()
[all …]
Dsysfs.c108 struct ib_port_attribute *port_attr = in port_attr_show() local
112 if (!port_attr->show) in port_attr_show()
115 return port_attr->show(p->ibdev, p->port_num, port_attr, buf); in port_attr_show()
122 struct ib_port_attribute *port_attr = in port_attr_store() local
126 if (!port_attr->store) in port_attr_store()
128 return port_attr->store(p->ibdev, p->port_num, port_attr, buf, count); in port_attr_store()
198 struct ib_port_attribute *port_attr = in gid_attr_show() local
203 if (!port_attr->show) in gid_attr_show()
206 return port_attr->show(p->ibdev, p->port_num, port_attr, buf); in gid_attr_show()
Duverbs_marshall.c41 struct ib_port_attr port_attr; in rdma_ah_conv_opa_to_ib() local
50 if (ib_query_port(dev, opa->port_num, &port_attr)) { in rdma_ah_conv_opa_to_ib()
56 cpu_to_be64(port_attr.subnet_prefix)); in rdma_ah_conv_opa_to_ib()
Dsa_query.c1432 struct ib_port_attr port_attr; in opa_pr_query_possible() local
1434 if (ib_query_port(device, port_num, &port_attr)) in opa_pr_query_possible()
1440 if (port_attr.lid >= be16_to_cpu(IB_MULTICAST_LID_BASE)) in opa_pr_query_possible()
2045 struct ib_port_attr port_attr; in update_sm_ah() local
2049 if (ib_query_port(port->agent->device, port->port_num, &port_attr)) { in update_sm_ah()
2059 new_ah->src_path_mask = (1 << port_attr.lmc) - 1; in update_sm_ah()
2069 rdma_ah_set_dlid(&ah_attr, port_attr.sm_lid); in update_sm_ah()
2070 rdma_ah_set_sl(&ah_attr, port_attr.sm_sl); in update_sm_ah()
2084 port_attr.sm_lid == be16_to_cpu(IB_LID_PERMISSIVE))) in update_sm_ah()
2090 cpu_to_be64(port_attr.subnet_prefix)); in update_sm_ah()
/Linux-v6.6/drivers/infiniband/hw/mlx4/
Dsysfs.c403 struct port_attribute *port_attr = in port_attr_show() local
407 if (!port_attr->show) in port_attr_show()
409 return port_attr->show(p, port_attr, buf); in port_attr_show()
416 struct port_attribute *port_attr = in port_attr_store() local
420 if (!port_attr->store) in port_attr_store()
422 return port_attr->store(p, port_attr, buf, size); in port_attr_store()
/Linux-v6.6/drivers/scsi/bfa/
Dbfa_fcs_lport.c1135 struct bfa_lport_attr_s *port_attr) in bfa_fcs_lport_get_attr() argument
1138 port_attr->pid = port->pid; in bfa_fcs_lport_get_attr()
1140 port_attr->pid = 0; in bfa_fcs_lport_get_attr()
1142 port_attr->port_cfg = port->port_cfg; in bfa_fcs_lport_get_attr()
1145 port_attr->port_type = port->fabric->oper_type; in bfa_fcs_lport_get_attr()
1146 port_attr->loopback = bfa_sm_cmp_state(port->fabric, in bfa_fcs_lport_get_attr()
1148 port_attr->authfail = in bfa_fcs_lport_get_attr()
1151 port_attr->fabric_name = bfa_fcs_lport_get_fabric_name(port); in bfa_fcs_lport_get_attr()
1152 memcpy(port_attr->fabric_ip_addr, in bfa_fcs_lport_get_attr()
1157 port_attr->port_type = BFA_PORT_TYPE_VPORT; in bfa_fcs_lport_get_attr()
[all …]
Dbfad_attr.c119 struct bfa_lport_attr_s port_attr; in bfad_im_get_host_port_type() local
121 bfa_fcs_lport_get_attr(&bfad->bfa_fcs.fabric.bport, &port_attr); in bfad_im_get_host_port_type()
123 switch (port_attr.port_type) { in bfad_im_get_host_port_type()
833 struct bfa_lport_attr_s port_attr; in bfad_im_symbolic_name_show() local
836 bfa_fcs_lport_get_attr(&bfad->bfa_fcs.fabric.bport, &port_attr); in bfad_im_symbolic_name_show()
837 strscpy(symname, port_attr.port_cfg.sym_name.symname, in bfad_im_symbolic_name_show()
Dbfa_defs_fcs.h312 struct bfa_lport_attr_s port_attr; /* base class (port) attributes */ member
Dbfad_bsg.c294 struct bfa_lport_attr_s port_attr; in bfad_iocmd_port_get_attr() local
299 bfa_fcs_lport_get_attr(&bfad->bfa_fcs.fabric.bport, &port_attr); in bfad_iocmd_port_get_attr()
303 iocmd->attr.pid = port_attr.pid; in bfad_iocmd_port_get_attr()
307 iocmd->attr.port_type = port_attr.port_type; in bfad_iocmd_port_get_attr()
308 iocmd->attr.loopback = port_attr.loopback; in bfad_iocmd_port_get_attr()
309 iocmd->attr.authfail = port_attr.authfail; in bfad_iocmd_port_get_attr()
311 port_attr.port_cfg.sym_name.symname, in bfad_iocmd_port_get_attr()
461 bfa_fcs_lport_get_attr(fcs_port, &iocmd->port_attr); in bfad_iocmd_lport_get_attr()
Dbfad_bsg.h294 struct bfa_lport_attr_s port_attr; member
Dbfa_fc.h1575 struct fdmi_attr_s port_attr; /* n attributes */ member
Dbfa_fcs.h293 struct bfa_lport_attr_s *port_attr);
Dbfa_fcs_rport.c3014 struct bfa_port_attr_s port_attr; in bfa_fcs_rport_get_attr() local
3016 bfa_fcport_get_attr(rport->fcs->bfa, &port_attr); in bfa_fcs_rport_get_attr()
3048 BFA_PORT_SPEED_UNKNOWN) && (rport_speed < port_attr.speed)) in bfa_fcs_rport_get_attr()
/Linux-v6.6/drivers/infiniband/hw/bnxt_re/
Dib_verbs.c207 struct ib_port_attr *port_attr) in bnxt_re_query_port() argument
213 memset(port_attr, 0, sizeof(*port_attr)); in bnxt_re_query_port()
216 port_attr->state = IB_PORT_ACTIVE; in bnxt_re_query_port()
217 port_attr->phys_state = IB_PORT_PHYS_STATE_LINK_UP; in bnxt_re_query_port()
219 port_attr->state = IB_PORT_DOWN; in bnxt_re_query_port()
220 port_attr->phys_state = IB_PORT_PHYS_STATE_DISABLED; in bnxt_re_query_port()
222 port_attr->max_mtu = IB_MTU_4096; in bnxt_re_query_port()
223 port_attr->active_mtu = iboe_get_mtu(rdev->netdev->mtu); in bnxt_re_query_port()
224 port_attr->gid_tbl_len = dev_attr->max_sgid; in bnxt_re_query_port()
225 port_attr->port_cap_flags = IB_PORT_CM_SUP | IB_PORT_REINIT_SUP | in bnxt_re_query_port()
[all …]
Dib_verbs.h174 struct ib_port_attr *port_attr);
/Linux-v6.6/drivers/infiniband/ulp/ipoib/
Dipoib_multicast.c558 struct ib_port_attr port_attr; in ipoib_mcast_join_task() local
565 if (ib_query_port(priv->ca, priv->port, &port_attr)) { in ipoib_mcast_join_task()
569 if (port_attr.state != IB_PORT_ACTIVE) { in ipoib_mcast_join_task()
571 port_attr.state); in ipoib_mcast_join_task()
574 priv->local_lid = port_attr.lid; in ipoib_mcast_join_task()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx4/
Dmain.c1139 port_attr); in show_port_type()
1225 port_attr); in set_port_type()
3116 info->port_attr.attr.name = info->dev_name; in mlx4_init_port_info()
3118 info->port_attr.attr.mode = 0444; in mlx4_init_port_info()
3120 info->port_attr.attr.mode = 0644; in mlx4_init_port_info()
3121 info->port_attr.store = set_port_type; in mlx4_init_port_info()
3123 info->port_attr.show = show_port_type; in mlx4_init_port_info()
3124 sysfs_attr_init(&info->port_attr.attr); in mlx4_init_port_info()
3126 err = device_create_file(&dev->persist->pdev->dev, &info->port_attr); in mlx4_init_port_info()
3151 &info->port_attr); in mlx4_init_port_info()
[all …]
Dmlx4.h838 struct device_attribute port_attr; member
/Linux-v6.6/drivers/infiniband/ulp/srpt/
Dib_srpt.c555 struct ib_port_attr port_attr; in srpt_refresh_port() local
558 ret = ib_query_port(sport->sdev->device, sport->port, &port_attr); in srpt_refresh_port()
562 sport->sm_lid = port_attr.sm_lid; in srpt_refresh_port()
563 sport->lid = port_attr.lid; in srpt_refresh_port()
/Linux-v6.6/include/rdma/
Dib_verbs.h2374 struct ib_port_attr *port_attr);
3015 u32 port_num, struct ib_port_attr *port_attr);