port_attr 1979 drivers/infiniband/core/device.c struct ib_port_attr *port_attr) port_attr 1985 drivers/infiniband/core/device.c memset(port_attr, 0, sizeof(*port_attr)); port_attr 1991 drivers/infiniband/core/device.c port_attr->max_mtu = IB_MTU_4096; port_attr 1992 drivers/infiniband/core/device.c port_attr->active_mtu = ib_mtu_int_to_enum(netdev->mtu); port_attr 1995 drivers/infiniband/core/device.c port_attr->state = IB_PORT_DOWN; port_attr 1996 drivers/infiniband/core/device.c port_attr->phys_state = IB_PORT_PHYS_STATE_DISABLED; port_attr 2002 drivers/infiniband/core/device.c port_attr->state = IB_PORT_ACTIVE; port_attr 2003 drivers/infiniband/core/device.c port_attr->phys_state = IB_PORT_PHYS_STATE_LINK_UP; port_attr 2005 drivers/infiniband/core/device.c port_attr->state = IB_PORT_INIT; port_attr 2006 drivers/infiniband/core/device.c port_attr->phys_state = port_attr 2014 drivers/infiniband/core/device.c err = device->ops.query_port(device, port_num, port_attr); port_attr 2023 drivers/infiniband/core/device.c struct ib_port_attr *port_attr) port_attr 2028 drivers/infiniband/core/device.c memset(port_attr, 0, sizeof(*port_attr)); port_attr 2030 drivers/infiniband/core/device.c err = device->ops.query_port(device, port_num, port_attr); port_attr 2031 drivers/infiniband/core/device.c if (err || port_attr->subnet_prefix) port_attr 2042 drivers/infiniband/core/device.c port_attr->subnet_prefix = be64_to_cpu(gid.global.subnet_prefix); port_attr 2057 drivers/infiniband/core/device.c struct ib_port_attr *port_attr) port_attr 2063 drivers/infiniband/core/device.c return iw_query_port(device, port_num, port_attr); port_attr 2065 drivers/infiniband/core/device.c return __ib_query_port(device, port_num, port_attr); port_attr 1457 drivers/infiniband/core/sa_query.c struct ib_port_attr port_attr; port_attr 1459 drivers/infiniband/core/sa_query.c if (ib_query_port(device, port_num, &port_attr)) port_attr 1465 drivers/infiniband/core/sa_query.c if (port_attr.lid >= be16_to_cpu(IB_MULTICAST_LID_BASE)) port_attr 2221 drivers/infiniband/core/sa_query.c struct ib_port_attr port_attr; port_attr 2225 drivers/infiniband/core/sa_query.c if (ib_query_port(port->agent->device, port->port_num, &port_attr)) { port_attr 2235 drivers/infiniband/core/sa_query.c new_ah->src_path_mask = (1 << port_attr.lmc) - 1; port_attr 2245 drivers/infiniband/core/sa_query.c rdma_ah_set_dlid(&ah_attr, port_attr.sm_lid); port_attr 2246 drivers/infiniband/core/sa_query.c rdma_ah_set_sl(&ah_attr, port_attr.sm_sl); port_attr 2260 drivers/infiniband/core/sa_query.c port_attr.sm_lid == be16_to_cpu(IB_LID_PERMISSIVE))) port_attr 2266 drivers/infiniband/core/sa_query.c cpu_to_be64(port_attr.subnet_prefix)); port_attr 103 drivers/infiniband/core/sysfs.c struct port_attribute *port_attr = port_attr 107 drivers/infiniband/core/sysfs.c if (!port_attr->show) port_attr 110 drivers/infiniband/core/sysfs.c return port_attr->show(p, port_attr, buf); port_attr 117 drivers/infiniband/core/sysfs.c struct port_attribute *port_attr = port_attr 121 drivers/infiniband/core/sysfs.c if (!port_attr->store) port_attr 123 drivers/infiniband/core/sysfs.c return port_attr->store(p, port_attr, buf, count); port_attr 134 drivers/infiniband/core/sysfs.c struct port_attribute *port_attr = port_attr 139 drivers/infiniband/core/sysfs.c if (!port_attr->show) port_attr 142 drivers/infiniband/core/sysfs.c return port_attr->show(p, port_attr, buf); port_attr 41 drivers/infiniband/core/uverbs_marshall.c struct ib_port_attr port_attr; port_attr 50 drivers/infiniband/core/uverbs_marshall.c if (ib_query_port(dev, opa->port_num, &port_attr)) { port_attr 56 drivers/infiniband/core/uverbs_marshall.c cpu_to_be64(port_attr.subnet_prefix)); port_attr 214 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct ib_port_attr *port_attr) port_attr 219 drivers/infiniband/hw/bnxt_re/ib_verbs.c memset(port_attr, 0, sizeof(*port_attr)); port_attr 222 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->state = IB_PORT_ACTIVE; port_attr 223 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->phys_state = IB_PORT_PHYS_STATE_LINK_UP; port_attr 225 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->state = IB_PORT_DOWN; port_attr 226 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->phys_state = IB_PORT_PHYS_STATE_DISABLED; port_attr 228 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->max_mtu = IB_MTU_4096; port_attr 229 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->active_mtu = iboe_get_mtu(rdev->netdev->mtu); port_attr 230 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->gid_tbl_len = dev_attr->max_sgid; port_attr 231 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->port_cap_flags = IB_PORT_CM_SUP | IB_PORT_REINIT_SUP | port_attr 234 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->ip_gids = true; port_attr 236 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->max_msg_sz = (u32)BNXT_RE_MAX_MR_SIZE_LOW; port_attr 237 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->bad_pkey_cntr = 0; port_attr 238 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->qkey_viol_cntr = 0; port_attr 239 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->pkey_tbl_len = dev_attr->max_pkey; port_attr 240 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->lid = 0; port_attr 241 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->sm_lid = 0; port_attr 242 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->lmc = 0; port_attr 243 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->max_vl_num = 4; port_attr 244 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->sm_sl = 0; port_attr 245 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->subnet_timeout = 0; port_attr 246 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->init_type_reply = 0; port_attr 247 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->active_speed = rdev->active_speed; port_attr 248 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->active_width = rdev->active_width; port_attr 256 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct ib_port_attr port_attr; port_attr 258 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (bnxt_re_query_port(ibdev, port_num, &port_attr)) port_attr 261 drivers/infiniband/hw/bnxt_re/ib_verbs.c immutable->pkey_tbl_len = port_attr.pkey_tbl_len; port_attr 262 drivers/infiniband/hw/bnxt_re/ib_verbs.c immutable->gid_tbl_len = port_attr.gid_tbl_len; port_attr 152 drivers/infiniband/hw/bnxt_re/ib_verbs.h struct ib_port_attr *port_attr); port_attr 174 drivers/infiniband/hw/hfi1/sysfs.c struct hfi1_port_attr *port_attr = port_attr 179 drivers/infiniband/hw/hfi1/sysfs.c return port_attr->show(ppd, buf); port_attr 185 drivers/infiniband/hw/hfi1/sysfs.c struct hfi1_port_attr *port_attr = port_attr 190 drivers/infiniband/hw/hfi1/sysfs.c return port_attr->store(ppd, buf, count); port_attr 401 drivers/infiniband/hw/mlx4/sysfs.c struct port_attribute *port_attr = port_attr 405 drivers/infiniband/hw/mlx4/sysfs.c if (!port_attr->show) port_attr 407 drivers/infiniband/hw/mlx4/sysfs.c return port_attr->show(p, port_attr, buf); port_attr 414 drivers/infiniband/hw/mlx4/sysfs.c struct port_attribute *port_attr = port_attr 418 drivers/infiniband/hw/mlx4/sysfs.c if (!port_attr->store) port_attr 420 drivers/infiniband/hw/mlx4/sysfs.c return port_attr->store(p, port_attr, buf, size); port_attr 67 drivers/infiniband/sw/rdmavt/ah.c struct ib_port_attr port_attr; port_attr 72 drivers/infiniband/sw/rdmavt/ah.c err = ib_query_port(ibdev, port_num, &port_attr); port_attr 82 drivers/infiniband/sw/rdmavt/ah.c rdma_ah_read_grh(ah_attr)->sgid_index >= port_attr.gid_tbl_len) port_attr 570 drivers/infiniband/ulp/ipoib/ipoib_multicast.c struct ib_port_attr port_attr; port_attr 577 drivers/infiniband/ulp/ipoib/ipoib_multicast.c if (ib_query_port(priv->ca, priv->port, &port_attr)) { port_attr 581 drivers/infiniband/ulp/ipoib/ipoib_multicast.c if (port_attr.state != IB_PORT_ACTIVE) { port_attr 583 drivers/infiniband/ulp/ipoib/ipoib_multicast.c port_attr.state); port_attr 586 drivers/infiniband/ulp/ipoib/ipoib_multicast.c priv->local_lid = port_attr.lid; port_attr 556 drivers/infiniband/ulp/srpt/ib_srpt.c struct ib_port_attr port_attr; port_attr 567 drivers/infiniband/ulp/srpt/ib_srpt.c ret = ib_query_port(sport->sdev->device, sport->port, &port_attr); port_attr 571 drivers/infiniband/ulp/srpt/ib_srpt.c sport->sm_lid = port_attr.sm_lid; port_attr 572 drivers/infiniband/ulp/srpt/ib_srpt.c sport->lid = port_attr.lid; port_attr 1161 drivers/net/ethernet/mellanox/mlx4/main.c port_attr); port_attr 1247 drivers/net/ethernet/mellanox/mlx4/main.c port_attr); port_attr 3046 drivers/net/ethernet/mellanox/mlx4/main.c info->port_attr.attr.name = info->dev_name; port_attr 3048 drivers/net/ethernet/mellanox/mlx4/main.c info->port_attr.attr.mode = 0444; port_attr 3050 drivers/net/ethernet/mellanox/mlx4/main.c info->port_attr.attr.mode = 0644; port_attr 3051 drivers/net/ethernet/mellanox/mlx4/main.c info->port_attr.store = set_port_type; port_attr 3053 drivers/net/ethernet/mellanox/mlx4/main.c info->port_attr.show = show_port_type; port_attr 3054 drivers/net/ethernet/mellanox/mlx4/main.c sysfs_attr_init(&info->port_attr.attr); port_attr 3056 drivers/net/ethernet/mellanox/mlx4/main.c err = device_create_file(&dev->persist->pdev->dev, &info->port_attr); port_attr 3080 drivers/net/ethernet/mellanox/mlx4/main.c &info->port_attr); port_attr 3094 drivers/net/ethernet/mellanox/mlx4/main.c device_remove_file(&info->dev->persist->pdev->dev, &info->port_attr); port_attr 835 drivers/net/ethernet/mellanox/mlx4/mlx4.h struct device_attribute port_attr; port_attr 312 drivers/scsi/bfa/bfa_defs_fcs.h struct bfa_lport_attr_s port_attr; /* base class (port) attributes */ port_attr 1590 drivers/scsi/bfa/bfa_fc.h struct fdmi_attr_s port_attr; /* n attributes */ port_attr 296 drivers/scsi/bfa/bfa_fcs.h struct bfa_lport_attr_s *port_attr); port_attr 1135 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_lport_attr_s *port_attr) port_attr 1138 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->pid = port->pid; port_attr 1140 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->pid = 0; port_attr 1142 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->port_cfg = port->port_cfg; port_attr 1145 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->port_type = port->fabric->oper_type; port_attr 1146 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->loopback = bfa_sm_cmp_state(port->fabric, port_attr 1148 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->authfail = port_attr 1151 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->fabric_name = bfa_fcs_lport_get_fabric_name(port); port_attr 1152 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(port_attr->fabric_ip_addr, port_attr 1157 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->port_type = BFA_PORT_TYPE_VPORT; port_attr 1158 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->fpma_mac = port_attr 1161 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->fpma_mac = port_attr 1165 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->port_type = BFA_PORT_TYPE_UNKNOWN; port_attr 1166 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->state = BFA_LPORT_UNINIT; port_attr 1422 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_fdmi_port_attr_s *port_attr); port_attr 2257 drivers/scsi/bfa/bfa_fcs_lport.c curr_ptr = (u8 *) &port_attrib->port_attr; port_attr 2670 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_fdmi_port_attr_s *port_attr) port_attr 2677 drivers/scsi/bfa/bfa_fcs_lport.c memset(port_attr, 0, sizeof(struct bfa_fcs_fdmi_port_attr_s)); port_attr 2687 drivers/scsi/bfa/bfa_fcs_lport.c fc_get_fc4type_bitmask(FC_TYPE_FCP, port_attr->supp_fc4_types); port_attr 2694 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->supp_speed = port_attr 2699 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->supp_speed = port_attr 2704 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->supp_speed = port_attr 2709 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->supp_speed = port_attr 2720 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->curr_speed = cpu_to_be32( port_attr 2726 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->max_frm_size = cpu_to_be32(pport_attr.pport_cfg.maxfrsize); port_attr 2731 drivers/scsi/bfa/bfa_fcs_lport.c strlcpy(port_attr->os_device_name, driver_info->os_device_name, port_attr 2732 drivers/scsi/bfa/bfa_fcs_lport.c sizeof(port_attr->os_device_name)); port_attr 2737 drivers/scsi/bfa/bfa_fcs_lport.c strlcpy(port_attr->host_name, driver_info->host_machine_name, port_attr 2738 drivers/scsi/bfa/bfa_fcs_lport.c sizeof(port_attr->host_name)); port_attr 2740 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->node_name = bfa_fcs_lport_get_nwwn(port); port_attr 2741 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->port_name = bfa_fcs_lport_get_pwwn(port); port_attr 2743 drivers/scsi/bfa/bfa_fcs_lport.c strlcpy(port_attr->port_sym_name.symname, port_attr 2746 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->port_type = cpu_to_be32(lport_attr.port_type); port_attr 2747 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->scos = pport_attr.cos_supported; port_attr 2748 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->port_fabric_name = port->fabric->lps->pr_nwwn; port_attr 2749 drivers/scsi/bfa/bfa_fcs_lport.c fc_get_fc4type_bitmask(FC_TYPE_FCP, port_attr->port_act_fc4_type); port_attr 2750 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->port_state = cpu_to_be32(pport_attr.port_state); port_attr 2751 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->num_ports = cpu_to_be32(port->num_rports); port_attr 5817 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_port_attr_s port_attr; port_attr 5828 drivers/scsi/bfa/bfa_fcs_lport.c bfa_fcport_get_attr(port->fcs->bfa, &port_attr); port_attr 5829 drivers/scsi/bfa/bfa_fcs_lport.c port_speed = port_attr.speed; port_attr 6858 drivers/scsi/bfa/bfa_fcs_lport.c bfa_fcs_lport_get_attr(&vport->lport, &attr->port_attr); port_attr 3017 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_port_attr_s port_attr; port_attr 3019 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcport_get_attr(rport->fcs->bfa, &port_attr); port_attr 3051 drivers/scsi/bfa/bfa_fcs_rport.c BFA_PORT_SPEED_UNKNOWN) && (rport_speed < port_attr.speed)) port_attr 119 drivers/scsi/bfa/bfad_attr.c struct bfa_lport_attr_s port_attr; port_attr 121 drivers/scsi/bfa/bfad_attr.c bfa_fcs_lport_get_attr(&bfad->bfa_fcs.fabric.bport, &port_attr); port_attr 123 drivers/scsi/bfa/bfad_attr.c switch (port_attr.port_type) { port_attr 833 drivers/scsi/bfa/bfad_attr.c struct bfa_lport_attr_s port_attr; port_attr 836 drivers/scsi/bfa/bfad_attr.c bfa_fcs_lport_get_attr(&bfad->bfa_fcs.fabric.bport, &port_attr); port_attr 837 drivers/scsi/bfa/bfad_attr.c strlcpy(symname, port_attr.port_cfg.sym_name.symname, port_attr 294 drivers/scsi/bfa/bfad_bsg.c struct bfa_lport_attr_s port_attr; port_attr 299 drivers/scsi/bfa/bfad_bsg.c bfa_fcs_lport_get_attr(&bfad->bfa_fcs.fabric.bport, &port_attr); port_attr 303 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.pid = port_attr.pid; port_attr 307 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.port_type = port_attr.port_type; port_attr 308 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.loopback = port_attr.loopback; port_attr 309 drivers/scsi/bfa/bfad_bsg.c iocmd->attr.authfail = port_attr.authfail; port_attr 311 drivers/scsi/bfa/bfad_bsg.c port_attr.port_cfg.sym_name.symname, port_attr 461 drivers/scsi/bfa/bfad_bsg.c bfa_fcs_lport_get_attr(fcs_port, &iocmd->port_attr); port_attr 294 drivers/scsi/bfa/bfad_bsg.h struct bfa_lport_attr_s port_attr; port_attr 2292 include/rdma/ib_verbs.h struct ib_port_attr *port_attr); port_attr 2906 include/rdma/ib_verbs.h u8 port_num, struct ib_port_attr *port_attr);