Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/infiniband/sw/rdmavt/
Dah.c67 struct ib_port_attr port_attr; in rvt_check_ah() local
72 err = ib_query_port(ibdev, port_num, &port_attr); in rvt_check_ah()
82 rdma_ah_read_grh(ah_attr)->sgid_index >= port_attr.gid_tbl_len) in rvt_check_ah()
/Linux-v4.19/drivers/infiniband/core/
Dsysfs.c102 struct port_attribute *port_attr = in port_attr_show() local
106 if (!port_attr->show) in port_attr_show()
109 return port_attr->show(p, port_attr, buf); in port_attr_show()
116 struct port_attribute *port_attr = in port_attr_store() local
120 if (!port_attr->store) in port_attr_store()
122 return port_attr->store(p, port_attr, buf, count); in port_attr_store()
133 struct port_attribute *port_attr = in gid_attr_show() local
138 if (!port_attr->show) in gid_attr_show()
141 return port_attr->show(p, 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()
Ddevice.c837 struct ib_port_attr *port_attr) in ib_query_port() argument
845 memset(port_attr, 0, sizeof(*port_attr)); in ib_query_port()
846 err = device->query_port(device, port_num, port_attr); in ib_query_port()
847 if (err || port_attr->subnet_prefix) in ib_query_port()
857 port_attr->subnet_prefix = be64_to_cpu(gid.global.subnet_prefix); in ib_query_port()
Dsa_query.c1513 struct ib_port_attr port_attr; in opa_pr_query_possible() local
1515 if (ib_query_port(device, port_num, &port_attr)) in opa_pr_query_possible()
1521 if (port_attr.lid >= be16_to_cpu(IB_MULTICAST_LID_BASE)) in opa_pr_query_possible()
2277 struct ib_port_attr port_attr; in update_sm_ah() local
2281 if (ib_query_port(port->agent->device, port->port_num, &port_attr)) { in update_sm_ah()
2291 new_ah->src_path_mask = (1 << port_attr.lmc) - 1; in update_sm_ah()
2301 rdma_ah_set_dlid(&ah_attr, port_attr.sm_lid); in update_sm_ah()
2302 rdma_ah_set_sl(&ah_attr, port_attr.sm_sl); in update_sm_ah()
2316 port_attr.sm_lid == be16_to_cpu(IB_LID_PERMISSIVE))) in update_sm_ah()
2322 cpu_to_be64(port_attr.subnet_prefix)); in update_sm_ah()
/Linux-v4.19/drivers/infiniband/hw/mlx4/
Dsysfs.c405 struct port_attribute *port_attr = in port_attr_show() local
409 if (!port_attr->show) in port_attr_show()
411 return port_attr->show(p, port_attr, buf); in port_attr_show()
418 struct port_attribute *port_attr = in port_attr_store() local
422 if (!port_attr->store) in port_attr_store()
424 return port_attr->store(p, port_attr, buf, size); in port_attr_store()
/Linux-v4.19/drivers/scsi/bfa/
Dbfa_fcs_lport.c1143 struct bfa_lport_attr_s *port_attr) in bfa_fcs_lport_get_attr() argument
1146 port_attr->pid = port->pid; in bfa_fcs_lport_get_attr()
1148 port_attr->pid = 0; in bfa_fcs_lport_get_attr()
1150 port_attr->port_cfg = port->port_cfg; in bfa_fcs_lport_get_attr()
1153 port_attr->port_type = port->fabric->oper_type; in bfa_fcs_lport_get_attr()
1154 port_attr->loopback = bfa_sm_cmp_state(port->fabric, in bfa_fcs_lport_get_attr()
1156 port_attr->authfail = in bfa_fcs_lport_get_attr()
1159 port_attr->fabric_name = bfa_fcs_lport_get_fabric_name(port); in bfa_fcs_lport_get_attr()
1160 memcpy(port_attr->fabric_ip_addr, in bfa_fcs_lport_get_attr()
1165 port_attr->port_type = BFA_PORT_TYPE_VPORT; in bfa_fcs_lport_get_attr()
[all …]
Dbfad_attr.c127 struct bfa_lport_attr_s port_attr; in bfad_im_get_host_port_type() local
129 bfa_fcs_lport_get_attr(&bfad->bfa_fcs.fabric.bport, &port_attr); in bfad_im_get_host_port_type()
131 switch (port_attr.port_type) { in bfad_im_get_host_port_type()
839 struct bfa_lport_attr_s port_attr; in bfad_im_symbolic_name_show() local
842 bfa_fcs_lport_get_attr(&bfad->bfa_fcs.fabric.bport, &port_attr); in bfad_im_symbolic_name_show()
843 strlcpy(symname, port_attr.port_cfg.sym_name.symname, in bfad_im_symbolic_name_show()
Dbfa_defs_fcs.h320 struct bfa_lport_attr_s port_attr; /* base class (port) attributes */ member
Dbfad_bsg.c302 struct bfa_lport_attr_s port_attr; in bfad_iocmd_port_get_attr() local
307 bfa_fcs_lport_get_attr(&bfad->bfa_fcs.fabric.bport, &port_attr); in bfad_iocmd_port_get_attr()
311 iocmd->attr.pid = port_attr.pid; in bfad_iocmd_port_get_attr()
315 iocmd->attr.port_type = port_attr.port_type; in bfad_iocmd_port_get_attr()
316 iocmd->attr.loopback = port_attr.loopback; in bfad_iocmd_port_get_attr()
317 iocmd->attr.authfail = port_attr.authfail; in bfad_iocmd_port_get_attr()
319 port_attr.port_cfg.sym_name.symname, in bfad_iocmd_port_get_attr()
469 bfa_fcs_lport_get_attr(fcs_port, &iocmd->port_attr); in bfad_iocmd_lport_get_attr()
Dbfad_bsg.h302 struct bfa_lport_attr_s port_attr; member
Dbfa_fc.h1598 struct fdmi_attr_s port_attr; /* n attributes */ member
Dbfa_fcs.h304 struct bfa_lport_attr_s *port_attr);
Dbfa_fcs_rport.c3030 struct bfa_port_attr_s port_attr; in bfa_fcs_rport_get_attr() local
3032 bfa_fcport_get_attr(rport->fcs->bfa, &port_attr); in bfa_fcs_rport_get_attr()
3064 BFA_PORT_SPEED_UNKNOWN) && (rport_speed < port_attr.speed)) in bfa_fcs_rport_get_attr()
/Linux-v4.19/drivers/infiniband/hw/bnxt_re/
Dib_verbs.c228 struct ib_port_attr *port_attr) in bnxt_re_query_port() argument
233 memset(port_attr, 0, sizeof(*port_attr)); in bnxt_re_query_port()
236 port_attr->state = IB_PORT_ACTIVE; in bnxt_re_query_port()
237 port_attr->phys_state = 5; in bnxt_re_query_port()
239 port_attr->state = IB_PORT_DOWN; in bnxt_re_query_port()
240 port_attr->phys_state = 3; in bnxt_re_query_port()
242 port_attr->max_mtu = IB_MTU_4096; in bnxt_re_query_port()
243 port_attr->active_mtu = iboe_get_mtu(rdev->netdev->mtu); in bnxt_re_query_port()
244 port_attr->gid_tbl_len = dev_attr->max_sgid; in bnxt_re_query_port()
245 port_attr->port_cap_flags = IB_PORT_CM_SUP | IB_PORT_REINIT_SUP | in bnxt_re_query_port()
[all …]
Dib_verbs.h154 struct ib_port_attr *port_attr);
/Linux-v4.19/drivers/infiniband/hw/hfi1/
Dsysfs.c174 struct hfi1_port_attr *port_attr = in cc_attr_show() local
179 return port_attr->show(ppd, buf); in cc_attr_show()
185 struct hfi1_port_attr *port_attr = in cc_attr_store() local
190 return port_attr->store(ppd, buf, count); in cc_attr_store()
/Linux-v4.19/drivers/infiniband/ulp/ipoib/
Dipoib_multicast.c570 struct ib_port_attr port_attr; in ipoib_mcast_join_task() local
577 if (ib_query_port(priv->ca, priv->port, &port_attr)) { in ipoib_mcast_join_task()
581 if (port_attr.state != IB_PORT_ACTIVE) { in ipoib_mcast_join_task()
583 port_attr.state); in ipoib_mcast_join_task()
586 priv->local_lid = port_attr.lid; in ipoib_mcast_join_task()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Dmain.c1162 port_attr); in show_port_type()
1249 port_attr); in set_port_type()
3034 info->port_attr.attr.name = info->dev_name; in mlx4_init_port_info()
3036 info->port_attr.attr.mode = 0444; in mlx4_init_port_info()
3038 info->port_attr.attr.mode = 0644; in mlx4_init_port_info()
3039 info->port_attr.store = set_port_type; in mlx4_init_port_info()
3041 info->port_attr.show = show_port_type; in mlx4_init_port_info()
3042 sysfs_attr_init(&info->port_attr.attr); in mlx4_init_port_info()
3044 err = device_create_file(&dev->persist->pdev->dev, &info->port_attr); in mlx4_init_port_info()
3068 &info->port_attr); in mlx4_init_port_info()
[all …]
Dmlx4.h835 struct device_attribute port_attr; member
/Linux-v4.19/drivers/infiniband/ulp/srpt/
Dib_srpt.c560 struct ib_port_attr port_attr; in srpt_refresh_port() local
571 ret = ib_query_port(sport->sdev->device, sport->port, &port_attr); in srpt_refresh_port()
575 sport->sm_lid = port_attr.sm_lid; in srpt_refresh_port()
576 sport->lid = port_attr.lid; in srpt_refresh_port()
/Linux-v4.19/include/rdma/
Dib_verbs.h2302 struct ib_port_attr *port_attr);
2734 u8 port_num, struct ib_port_attr *port_attr);