Lines Matching refs:port_num

157 	u32			port_num;  member
760 u32 port_num; member
943 u32 port_num; member
1032 u32 port_num; /* valid only for DR SMPs on switches */ member
1187 u32 port_num; member
1306 u32 port_num; member
1429 u32 port_num; /* valid for DR SMPs on switch only */ member
1747 u32 port_num; member
2235 u32 port_num; member
2266 int (*initialize_rdma_netdev)(struct ib_device *device, u32 port_num,
2361 u32 port_num, const struct ib_wc *in_wc,
2373 int (*query_port)(struct ib_device *device, u32 port_num,
2375 int (*modify_port)(struct ib_device *device, u32 port_num,
2384 int (*get_port_immutable)(struct ib_device *device, u32 port_num,
2387 u32 port_num);
2397 u32 port_num);
2405 struct ib_device *device, u32 port_num, enum rdma_netdev_t type,
2409 int (*rdma_netdev_get_params)(struct ib_device *device, u32 port_num,
2417 int (*query_gid)(struct ib_device *device, u32 port_num, int index,
2442 int (*query_pkey)(struct ib_device *device, u32 port_num, u16 index,
2578 u32 port_num);
3015 u32 port_num, struct ib_port_attr *port_attr);
3018 u32 port_num);
3079 u32 port_num) in rdma_is_grh_required() argument
3081 return device->port_data[port_num].immutable.core_cap_flags & in rdma_is_grh_required()
3086 u32 port_num) in rdma_protocol_ib() argument
3088 return device->port_data[port_num].immutable.core_cap_flags & in rdma_protocol_ib()
3093 u32 port_num) in rdma_protocol_roce() argument
3095 return device->port_data[port_num].immutable.core_cap_flags & in rdma_protocol_roce()
3100 u32 port_num) in rdma_protocol_roce_udp_encap() argument
3102 return device->port_data[port_num].immutable.core_cap_flags & in rdma_protocol_roce_udp_encap()
3107 u32 port_num) in rdma_protocol_roce_eth_encap() argument
3109 return device->port_data[port_num].immutable.core_cap_flags & in rdma_protocol_roce_eth_encap()
3114 u32 port_num) in rdma_protocol_iwarp() argument
3116 return device->port_data[port_num].immutable.core_cap_flags & in rdma_protocol_iwarp()
3121 u32 port_num) in rdma_ib_or_roce() argument
3123 return rdma_protocol_ib(device, port_num) || in rdma_ib_or_roce()
3124 rdma_protocol_roce(device, port_num); in rdma_ib_or_roce()
3128 u32 port_num) in rdma_protocol_raw_packet() argument
3130 return device->port_data[port_num].immutable.core_cap_flags & in rdma_protocol_raw_packet()
3135 u32 port_num) in rdma_protocol_usnic() argument
3137 return device->port_data[port_num].immutable.core_cap_flags & in rdma_protocol_usnic()
3153 static inline bool rdma_cap_ib_mad(const struct ib_device *device, u32 port_num) in rdma_cap_ib_mad() argument
3155 return device->port_data[port_num].immutable.core_cap_flags & in rdma_cap_ib_mad()
3178 static inline bool rdma_cap_opa_mad(struct ib_device *device, u32 port_num) in rdma_cap_opa_mad() argument
3180 return device->port_data[port_num].immutable.core_cap_flags & in rdma_cap_opa_mad()
3204 static inline bool rdma_cap_ib_smi(const struct ib_device *device, u32 port_num) in rdma_cap_ib_smi() argument
3206 return device->port_data[port_num].immutable.core_cap_flags & in rdma_cap_ib_smi()
3225 static inline bool rdma_cap_ib_cm(const struct ib_device *device, u32 port_num) in rdma_cap_ib_cm() argument
3227 return device->port_data[port_num].immutable.core_cap_flags & in rdma_cap_ib_cm()
3243 static inline bool rdma_cap_iw_cm(const struct ib_device *device, u32 port_num) in rdma_cap_iw_cm() argument
3245 return device->port_data[port_num].immutable.core_cap_flags & in rdma_cap_iw_cm()
3264 static inline bool rdma_cap_ib_sa(const struct ib_device *device, u32 port_num) in rdma_cap_ib_sa() argument
3266 return device->port_data[port_num].immutable.core_cap_flags & in rdma_cap_ib_sa()
3288 u32 port_num) in rdma_cap_ib_mcast() argument
3290 return rdma_cap_ib_sa(device, port_num); in rdma_cap_ib_mcast()
3306 static inline bool rdma_cap_af_ib(const struct ib_device *device, u32 port_num) in rdma_cap_af_ib() argument
3308 return device->port_data[port_num].immutable.core_cap_flags & in rdma_cap_af_ib()
3328 static inline bool rdma_cap_eth_ah(const struct ib_device *device, u32 port_num) in rdma_cap_eth_ah() argument
3330 return device->port_data[port_num].immutable.core_cap_flags & in rdma_cap_eth_ah()
3343 static inline bool rdma_cap_opa_ah(struct ib_device *device, u32 port_num) in rdma_cap_opa_ah() argument
3345 return (device->port_data[port_num].immutable.core_cap_flags & in rdma_cap_opa_ah()
3362 u32 port_num) in rdma_max_mad_size() argument
3364 return device->port_data[port_num].immutable.max_mad_size; in rdma_max_mad_size()
3381 u32 port_num) in rdma_cap_roce_gid_table() argument
3383 return rdma_protocol_roce(device, port_num) && in rdma_cap_roce_gid_table()
3390 static inline bool rdma_cap_read_inv(struct ib_device *dev, u32 port_num) in rdma_cap_read_inv() argument
3396 return rdma_protocol_iwarp(dev, port_num); in rdma_cap_read_inv()
3407 u32 port_num) in rdma_core_cap_opa_port() argument
3409 return (device->port_data[port_num].immutable.core_cap_flags & in rdma_core_cap_opa_port()
3461 u32 port_num, u16 index, u16 *pkey);
3468 u32 port_num, int port_modify_mask,
3472 u32 *port_num, u16 *index);
3475 u32 port_num, u16 pkey, u16 *index);
3590 int ib_init_ah_attr_from_wc(struct ib_device *device, u32 port_num,
3607 const struct ib_grh *grh, u32 port_num);
4473 int ib_get_eth_speed(struct ib_device *dev, u32 port_num, u16 *speed,
4542 static inline void rdma_ah_set_port_num(struct rdma_ah_attr *attr, u32 port_num) in rdma_ah_set_port_num() argument
4544 attr->port_num = port_num; in rdma_ah_set_port_num()
4549 return attr->port_num; in rdma_ah_get_port_num()
4645 u32 port_num) in rdma_ah_find_type() argument
4647 if (rdma_protocol_roce(dev, port_num)) in rdma_ah_find_type()
4649 if (rdma_protocol_ib(dev, port_num)) { in rdma_ah_find_type()
4650 if (rdma_cap_opa_ah(dev, port_num)) in rdma_ah_find_type()
4717 struct net_device *rdma_alloc_netdev(struct ib_device *device, u32 port_num,
4722 int rdma_init_netdev(struct ib_device *device, u32 port_num,