/drivers/infiniband/sw/rdmavt/ |
D | ah.c | 67 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()
|
/drivers/infiniband/core/ |
D | device.c | 1990 struct ib_port_attr *port_attr) in iw_query_port() argument 1996 memset(port_attr, 0, sizeof(*port_attr)); in iw_query_port() 2002 port_attr->max_mtu = IB_MTU_4096; in iw_query_port() 2003 port_attr->active_mtu = ib_mtu_int_to_enum(netdev->mtu); in iw_query_port() 2006 port_attr->state = IB_PORT_DOWN; in iw_query_port() 2007 port_attr->phys_state = IB_PORT_PHYS_STATE_DISABLED; in iw_query_port() 2013 port_attr->state = IB_PORT_ACTIVE; in iw_query_port() 2014 port_attr->phys_state = IB_PORT_PHYS_STATE_LINK_UP; in iw_query_port() 2016 port_attr->state = IB_PORT_INIT; in iw_query_port() 2017 port_attr->phys_state = in iw_query_port() [all …]
|
D | sysfs.c | 103 struct port_attribute *port_attr = in port_attr_show() local 107 if (!port_attr->show) in port_attr_show() 110 return port_attr->show(p, port_attr, buf); in port_attr_show() 117 struct port_attribute *port_attr = in port_attr_store() local 121 if (!port_attr->store) in port_attr_store() 123 return port_attr->store(p, port_attr, buf, count); in port_attr_store() 134 struct port_attribute *port_attr = in gid_attr_show() local 139 if (!port_attr->show) in gid_attr_show() 142 return port_attr->show(p, port_attr, buf); in gid_attr_show()
|
D | uverbs_marshall.c | 41 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()
|
D | sa_query.c | 1457 struct ib_port_attr port_attr; in opa_pr_query_possible() local 1459 if (ib_query_port(device, port_num, &port_attr)) in opa_pr_query_possible() 1465 if (port_attr.lid >= be16_to_cpu(IB_MULTICAST_LID_BASE)) in opa_pr_query_possible() 2221 struct ib_port_attr port_attr; in update_sm_ah() local 2225 if (ib_query_port(port->agent->device, port->port_num, &port_attr)) { in update_sm_ah() 2235 new_ah->src_path_mask = (1 << port_attr.lmc) - 1; in update_sm_ah() 2245 rdma_ah_set_dlid(&ah_attr, port_attr.sm_lid); in update_sm_ah() 2246 rdma_ah_set_sl(&ah_attr, port_attr.sm_sl); in update_sm_ah() 2260 port_attr.sm_lid == be16_to_cpu(IB_LID_PERMISSIVE))) in update_sm_ah() 2266 cpu_to_be64(port_attr.subnet_prefix)); in update_sm_ah()
|
/drivers/infiniband/hw/mlx4/ |
D | sysfs.c | 401 struct port_attribute *port_attr = in port_attr_show() local 405 if (!port_attr->show) in port_attr_show() 407 return port_attr->show(p, port_attr, buf); in port_attr_show() 414 struct port_attribute *port_attr = in port_attr_store() local 418 if (!port_attr->store) in port_attr_store() 420 return port_attr->store(p, port_attr, buf, size); in port_attr_store()
|
/drivers/scsi/bfa/ |
D | bfa_fcs_lport.c | 1135 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 …]
|
D | bfad_attr.c | 119 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 strlcpy(symname, port_attr.port_cfg.sym_name.symname, in bfad_im_symbolic_name_show()
|
D | bfa_defs_fcs.h | 312 struct bfa_lport_attr_s port_attr; /* base class (port) attributes */ member
|
D | bfad_bsg.c | 294 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()
|
D | bfad_bsg.h | 294 struct bfa_lport_attr_s port_attr; member
|
D | bfa_fc.h | 1590 struct fdmi_attr_s port_attr; /* n attributes */ member
|
D | bfa_fcs.h | 296 struct bfa_lport_attr_s *port_attr);
|
D | bfa_fcs_rport.c | 3017 struct bfa_port_attr_s port_attr; in bfa_fcs_rport_get_attr() local 3019 bfa_fcport_get_attr(rport->fcs->bfa, &port_attr); in bfa_fcs_rport_get_attr() 3051 BFA_PORT_SPEED_UNKNOWN) && (rport_speed < port_attr.speed)) in bfa_fcs_rport_get_attr()
|
/drivers/infiniband/hw/bnxt_re/ |
D | ib_verbs.c | 214 struct ib_port_attr *port_attr) in bnxt_re_query_port() argument 219 memset(port_attr, 0, sizeof(*port_attr)); in bnxt_re_query_port() 222 port_attr->state = IB_PORT_ACTIVE; in bnxt_re_query_port() 223 port_attr->phys_state = IB_PORT_PHYS_STATE_LINK_UP; in bnxt_re_query_port() 225 port_attr->state = IB_PORT_DOWN; in bnxt_re_query_port() 226 port_attr->phys_state = IB_PORT_PHYS_STATE_DISABLED; in bnxt_re_query_port() 228 port_attr->max_mtu = IB_MTU_4096; in bnxt_re_query_port() 229 port_attr->active_mtu = iboe_get_mtu(rdev->netdev->mtu); in bnxt_re_query_port() 230 port_attr->gid_tbl_len = dev_attr->max_sgid; in bnxt_re_query_port() 231 port_attr->port_cap_flags = IB_PORT_CM_SUP | IB_PORT_REINIT_SUP | in bnxt_re_query_port() [all …]
|
D | ib_verbs.h | 152 struct ib_port_attr *port_attr);
|
/drivers/infiniband/ulp/ipoib/ |
D | ipoib_multicast.c | 570 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()
|
/drivers/infiniband/hw/hfi1/ |
D | sysfs.c | 174 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()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | main.c | 1161 port_attr); in show_port_type() 1247 port_attr); in set_port_type() 3044 info->port_attr.attr.name = info->dev_name; in mlx4_init_port_info() 3046 info->port_attr.attr.mode = 0444; in mlx4_init_port_info() 3048 info->port_attr.attr.mode = 0644; in mlx4_init_port_info() 3049 info->port_attr.store = set_port_type; in mlx4_init_port_info() 3051 info->port_attr.show = show_port_type; in mlx4_init_port_info() 3052 sysfs_attr_init(&info->port_attr.attr); in mlx4_init_port_info() 3054 err = device_create_file(&dev->persist->pdev->dev, &info->port_attr); in mlx4_init_port_info() 3078 &info->port_attr); in mlx4_init_port_info() [all …]
|
D | mlx4.h | 835 struct device_attribute port_attr; member
|
/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.c | 556 struct ib_port_attr port_attr; in srpt_refresh_port() local 567 ret = ib_query_port(sport->sdev->device, sport->port, &port_attr); in srpt_refresh_port() 571 sport->sm_lid = port_attr.sm_lid; in srpt_refresh_port() 572 sport->lid = port_attr.lid; in srpt_refresh_port()
|