Lines Matching refs:rdi
237 struct pci_dev * (*get_pci_dev)(struct rvt_dev_info *rdi);
245 void * (*qp_priv_alloc)(struct rvt_dev_info *rdi, struct rvt_qp *qp);
251 int (*qp_priv_init)(struct rvt_dev_info *rdi, struct rvt_qp *qp,
257 void (*qp_priv_free)(struct rvt_dev_info *rdi, struct rvt_qp *qp);
268 int (*get_pmtu_from_attr)(struct rvt_dev_info *rdi, struct rvt_qp *qp,
296 u32 (*mtu_from_qp)(struct rvt_dev_info *rdi, struct rvt_qp *qp,
306 int (*get_guid_be)(struct rvt_dev_info *rdi, struct rvt_ibport *rvp,
312 int (*query_port_state)(struct rvt_dev_info *rdi, u32 port_num,
318 int (*shut_down_port)(struct rvt_dev_info *rdi, u32 port_num);
321 void (*cap_mask_chg)(struct rvt_dev_info *rdi, u32 port_num);
330 unsigned (*free_all_qps)(struct rvt_dev_info *rdi);
340 int (*alloc_qpn)(struct rvt_dev_info *rdi, struct rvt_qpn_table *qpt,
352 void (*notify_create_mad_agent)(struct rvt_dev_info *rdi, int port_idx);
355 void (*notify_free_mad_agent)(struct rvt_dev_info *rdi, int port_idx);
361 int (*comp_vect_cpu_lookup)(struct rvt_dev_info *rdi, int comp_vect);
437 static inline void rvt_set_ibdev_name(struct rvt_dev_info *rdi, in rvt_set_ibdev_name() argument
447 dev_set_name(&rdi->ibdev.dev, fmt, name, unit); in rvt_set_ibdev_name()
448 strscpy(rdi->ibdev.name, dev_name(&rdi->ibdev.dev), IB_DEVICE_NAME_MAX); in rvt_set_ibdev_name()
457 static inline const char *rvt_get_ibdev_name(const struct rvt_dev_info *rdi) in rvt_get_ibdev_name() argument
459 return dev_name(&rdi->ibdev.dev); in rvt_get_ibdev_name()
477 static inline unsigned rvt_get_npkeys(struct rvt_dev_info *rdi) in rvt_get_npkeys() argument
482 return rdi->dparms.npkeys; in rvt_get_npkeys()
489 static inline unsigned int rvt_max_atomic(struct rvt_dev_info *rdi) in rvt_max_atomic() argument
491 return rdi->dparms.max_rdma_atomic + in rvt_max_atomic()
492 rdi->dparms.extra_rdma_atomic + 1; in rvt_max_atomic()
495 static inline unsigned int rvt_size_atomic(struct rvt_dev_info *rdi) in rvt_size_atomic() argument
497 return rdi->dparms.max_rdma_atomic + in rvt_size_atomic()
498 rdi->dparms.extra_rdma_atomic; in rvt_size_atomic()
504 static inline u16 rvt_get_pkey(struct rvt_dev_info *rdi, in rvt_get_pkey() argument
508 if (index >= rvt_get_npkeys(rdi)) in rvt_get_pkey()
511 return rdi->ports[port_index]->pkey_table[index]; in rvt_get_pkey()
515 void rvt_dealloc_device(struct rvt_dev_info *rdi);
519 int rvt_init_port(struct rvt_dev_info *rdi, struct rvt_ibport *port,