Lines Matching refs:port_attr
2015 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()
2049 return device->ops.query_port(device, port_num, port_attr); in iw_query_port()
2054 struct ib_port_attr *port_attr) in __ib_query_port() argument
2058 memset(port_attr, 0, sizeof(*port_attr)); in __ib_query_port()
2060 err = device->ops.query_port(device, port_num, port_attr); in __ib_query_port()
2061 if (err || port_attr->subnet_prefix) in __ib_query_port()
2069 &port_attr->subnet_prefix); in __ib_query_port()
2084 struct ib_port_attr *port_attr) in ib_query_port() argument
2090 return iw_query_port(device, port_num, port_attr); in ib_query_port()
2092 return __ib_query_port(device, port_num, port_attr); in ib_query_port()