• Home
  • Raw
  • Download

Lines Matching refs:attr

202 rdma_gid_attr_network_type(const struct ib_gid_attr *attr)  in rdma_gid_attr_network_type()  argument
204 if (attr->gid_type == IB_GID_TYPE_IB) in rdma_gid_attr_network_type()
207 if (attr->gid_type == IB_GID_TYPE_ROCE) in rdma_gid_attr_network_type()
210 if (ipv6_addr_v4mapped((struct in6_addr *)&attr->gid)) in rdma_gid_attr_network_type()
1071 struct ib_srq_attr attr; member
2432 int (*add_gid)(const struct ib_gid_attr *attr, void **context);
2441 int (*del_gid)(const struct ib_gid_attr *attr, void **context);
2458 int (*create_ah)(struct ib_ah *ah, struct rdma_ah_init_attr *attr,
2460 int (*create_user_ah)(struct ib_ah *ah, struct rdma_ah_init_attr *attr,
2480 int (*create_cq)(struct ib_cq *cq, const struct ib_cq_init_attr *attr,
2545 int (*modify_wq)(struct ib_wq *wq, struct ib_wq_attr *attr,
2553 struct ib_dm_alloc_attr *attr,
2557 struct ib_dm_mr_attr *attr,
3441 struct ib_port_attr *attr) in rdma_mtu_from_attr() argument
3444 return attr->phys_mtu; in rdma_mtu_from_attr()
3446 return ib_mtu_enum_to_int(attr->max_mtu); in rdma_mtu_from_attr()
3759 struct ib_qp_attr *attr,
4477 static inline u8 *rdma_ah_retrieve_dmac(struct rdma_ah_attr *attr) in rdma_ah_retrieve_dmac() argument
4479 if (attr->type == RDMA_AH_ATTR_TYPE_ROCE) in rdma_ah_retrieve_dmac()
4480 return attr->roce.dmac; in rdma_ah_retrieve_dmac()
4484 static inline void rdma_ah_set_dlid(struct rdma_ah_attr *attr, u32 dlid) in rdma_ah_set_dlid() argument
4486 if (attr->type == RDMA_AH_ATTR_TYPE_IB) in rdma_ah_set_dlid()
4487 attr->ib.dlid = (u16)dlid; in rdma_ah_set_dlid()
4488 else if (attr->type == RDMA_AH_ATTR_TYPE_OPA) in rdma_ah_set_dlid()
4489 attr->opa.dlid = dlid; in rdma_ah_set_dlid()
4492 static inline u32 rdma_ah_get_dlid(const struct rdma_ah_attr *attr) in rdma_ah_get_dlid() argument
4494 if (attr->type == RDMA_AH_ATTR_TYPE_IB) in rdma_ah_get_dlid()
4495 return attr->ib.dlid; in rdma_ah_get_dlid()
4496 else if (attr->type == RDMA_AH_ATTR_TYPE_OPA) in rdma_ah_get_dlid()
4497 return attr->opa.dlid; in rdma_ah_get_dlid()
4501 static inline void rdma_ah_set_sl(struct rdma_ah_attr *attr, u8 sl) in rdma_ah_set_sl() argument
4503 attr->sl = sl; in rdma_ah_set_sl()
4506 static inline u8 rdma_ah_get_sl(const struct rdma_ah_attr *attr) in rdma_ah_get_sl() argument
4508 return attr->sl; in rdma_ah_get_sl()
4511 static inline void rdma_ah_set_path_bits(struct rdma_ah_attr *attr, in rdma_ah_set_path_bits() argument
4514 if (attr->type == RDMA_AH_ATTR_TYPE_IB) in rdma_ah_set_path_bits()
4515 attr->ib.src_path_bits = src_path_bits; in rdma_ah_set_path_bits()
4516 else if (attr->type == RDMA_AH_ATTR_TYPE_OPA) in rdma_ah_set_path_bits()
4517 attr->opa.src_path_bits = src_path_bits; in rdma_ah_set_path_bits()
4520 static inline u8 rdma_ah_get_path_bits(const struct rdma_ah_attr *attr) in rdma_ah_get_path_bits() argument
4522 if (attr->type == RDMA_AH_ATTR_TYPE_IB) in rdma_ah_get_path_bits()
4523 return attr->ib.src_path_bits; in rdma_ah_get_path_bits()
4524 else if (attr->type == RDMA_AH_ATTR_TYPE_OPA) in rdma_ah_get_path_bits()
4525 return attr->opa.src_path_bits; in rdma_ah_get_path_bits()
4529 static inline void rdma_ah_set_make_grd(struct rdma_ah_attr *attr, in rdma_ah_set_make_grd() argument
4532 if (attr->type == RDMA_AH_ATTR_TYPE_OPA) in rdma_ah_set_make_grd()
4533 attr->opa.make_grd = make_grd; in rdma_ah_set_make_grd()
4536 static inline bool rdma_ah_get_make_grd(const struct rdma_ah_attr *attr) in rdma_ah_get_make_grd() argument
4538 if (attr->type == RDMA_AH_ATTR_TYPE_OPA) in rdma_ah_get_make_grd()
4539 return attr->opa.make_grd; in rdma_ah_get_make_grd()
4543 static inline void rdma_ah_set_port_num(struct rdma_ah_attr *attr, u32 port_num) in rdma_ah_set_port_num() argument
4545 attr->port_num = port_num; in rdma_ah_set_port_num()
4548 static inline u32 rdma_ah_get_port_num(const struct rdma_ah_attr *attr) in rdma_ah_get_port_num() argument
4550 return attr->port_num; in rdma_ah_get_port_num()
4553 static inline void rdma_ah_set_static_rate(struct rdma_ah_attr *attr, in rdma_ah_set_static_rate() argument
4556 attr->static_rate = static_rate; in rdma_ah_set_static_rate()
4559 static inline u8 rdma_ah_get_static_rate(const struct rdma_ah_attr *attr) in rdma_ah_get_static_rate() argument
4561 return attr->static_rate; in rdma_ah_get_static_rate()
4564 static inline void rdma_ah_set_ah_flags(struct rdma_ah_attr *attr, in rdma_ah_set_ah_flags() argument
4567 attr->ah_flags = flag; in rdma_ah_set_ah_flags()
4571 rdma_ah_get_ah_flags(const struct rdma_ah_attr *attr) in rdma_ah_get_ah_flags() argument
4573 return attr->ah_flags; in rdma_ah_get_ah_flags()
4577 *rdma_ah_read_grh(const struct rdma_ah_attr *attr) in rdma_ah_read_grh() argument
4579 return &attr->grh; in rdma_ah_read_grh()
4584 *rdma_ah_retrieve_grh(struct rdma_ah_attr *attr) in rdma_ah_retrieve_grh() argument
4586 return &attr->grh; in rdma_ah_retrieve_grh()
4589 static inline void rdma_ah_set_dgid_raw(struct rdma_ah_attr *attr, void *dgid) in rdma_ah_set_dgid_raw() argument
4591 struct ib_global_route *grh = rdma_ah_retrieve_grh(attr); in rdma_ah_set_dgid_raw()
4596 static inline void rdma_ah_set_subnet_prefix(struct rdma_ah_attr *attr, in rdma_ah_set_subnet_prefix() argument
4599 struct ib_global_route *grh = rdma_ah_retrieve_grh(attr); in rdma_ah_set_subnet_prefix()
4604 static inline void rdma_ah_set_interface_id(struct rdma_ah_attr *attr, in rdma_ah_set_interface_id() argument
4607 struct ib_global_route *grh = rdma_ah_retrieve_grh(attr); in rdma_ah_set_interface_id()
4612 static inline void rdma_ah_set_grh(struct rdma_ah_attr *attr, in rdma_ah_set_grh() argument
4617 struct ib_global_route *grh = rdma_ah_retrieve_grh(attr); in rdma_ah_set_grh()
4619 attr->ah_flags = IB_AH_GRH; in rdma_ah_set_grh()
4630 void rdma_move_grh_sgid_attr(struct rdma_ah_attr *attr, union ib_gid *dgid,