Lines Matching refs:ib_device
63 void ibdev_printk(const char *level, const struct ib_device *ibdev,
66 void ibdev_emerg(const struct ib_device *ibdev, const char *format, ...);
68 void ibdev_alert(const struct ib_device *ibdev, const char *format, ...);
70 void ibdev_crit(const struct ib_device *ibdev, const char *format, ...);
72 void ibdev_err(const struct ib_device *ibdev, const char *format, ...);
74 void ibdev_warn(const struct ib_device *ibdev, const char *format, ...);
76 void ibdev_notice(const struct ib_device *ibdev, const char *format, ...);
78 void ibdev_info(const struct ib_device *ibdev, const char *format, ...);
87 void ibdev_dbg(const struct ib_device *ibdev, const char *format, ...) {} in ibdev_dbg()
130 void ibdev_dbg_ratelimited(const struct ib_device *ibdev, const char *format, ...) {} in ibdev_dbg_ratelimited()
153 struct ib_device *device;
750 struct ib_device *device;
762 struct ib_device *device;
1503 struct ib_device *device;
1541 struct ib_device *device;
1555 struct ib_device *device;
1563 struct ib_device *device;
1582 struct ib_device *device;
1613 struct ib_device *device;
1668 struct ib_device *device;
1712 struct ib_device *device;
1750 struct ib_device *dev;
1770 struct ib_device *device;
1811 struct ib_device *device;
1819 struct ib_device *device;
1842 struct ib_device *device;
2100 struct ib_device *device;
2156 struct ib_device *device;
2193 struct ib_device *ib_dev;
2223 struct ib_device *hca;
2240 int (*attach_mcast)(struct net_device *dev, struct ib_device *hca,
2243 int (*detach_mcast)(struct net_device *dev, struct ib_device *hca,
2255 int (*initialize_rdma_netdev)(struct ib_device *device, u32 port_num,
2266 struct ib_device *device;
2349 int (*process_mad)(struct ib_device *device, int process_mad_flags,
2354 int (*query_device)(struct ib_device *device,
2357 int (*modify_device)(struct ib_device *device, int device_modify_mask,
2359 void (*get_dev_fw_str)(struct ib_device *device, char *str);
2360 const struct cpumask *(*get_vector_affinity)(struct ib_device *ibdev,
2362 int (*query_port)(struct ib_device *device, u32 port_num,
2364 int (*modify_port)(struct ib_device *device, u32 port_num,
2373 int (*get_port_immutable)(struct ib_device *device, u32 port_num,
2375 enum rdma_link_layer (*get_link_layer)(struct ib_device *device,
2385 struct net_device *(*get_netdev)(struct ib_device *device,
2394 struct ib_device *device, u32 port_num, enum rdma_netdev_t type,
2398 int (*rdma_netdev_get_params)(struct ib_device *device, u32 port_num,
2406 int (*query_gid)(struct ib_device *device, u32 port_num, int index,
2431 int (*query_pkey)(struct ib_device *device, u32 port_num, u16 index,
2519 int (*set_vf_link_state)(struct ib_device *device, int vf, u32 port,
2521 int (*get_vf_config)(struct ib_device *device, int vf, u32 port,
2523 int (*get_vf_stats)(struct ib_device *device, int vf, u32 port,
2525 int (*get_vf_guid)(struct ib_device *device, int vf, u32 port,
2528 int (*set_vf_guid)(struct ib_device *device, int vf, u32 port, u64 guid,
2540 struct ib_dm *(*alloc_dm)(struct ib_device *device,
2565 struct rdma_hw_stats *(*alloc_hw_device_stats)(struct ib_device *device);
2566 struct rdma_hw_stats *(*alloc_hw_port_stats)(struct ib_device *device,
2580 int (*get_hw_stats)(struct ib_device *device,
2588 int (*modify_hw_stat)(struct ib_device *device, u32 port,
2606 int (*enable_driver)(struct ib_device *dev);
2610 void (*dealloc_driver)(struct ib_device *dev);
2615 struct ib_qp *(*iw_get_qp)(struct ib_device *device, int qpn);
2664 int (*get_numa_node)(struct ib_device *dev);
2686 struct ib_device *owner; /* reach back to owner ib_device */
2690 struct ib_device { struct
2778 static inline void *rdma_zalloc_obj(struct ib_device *dev, size_t size, in rdma_zalloc_obj() argument
2790 int (*add)(struct ib_device *ibdev);
2791 void (*remove)(struct ib_device *, void *client_data);
2792 void (*rename)(struct ib_device *dev, void *client_data);
2793 int (*get_nl_info)(struct ib_device *ibdev, void *client_data,
2813 struct ib_device *dev,
2843 struct ib_device *_ib_alloc_device(size_t size);
2850 void ib_dealloc_device(struct ib_device *device);
2852 void ib_get_device_fw_str(struct ib_device *device, char *str);
2854 int ib_register_device(struct ib_device *device, const char *name,
2856 void ib_unregister_device(struct ib_device *device);
2858 void ib_unregister_device_and_put(struct ib_device *device);
2859 void ib_unregister_device_queued(struct ib_device *ib_dev);
2906 static inline void *ib_get_client_data(struct ib_device *device, in ib_get_client_data()
2911 void ib_set_client_data(struct ib_device *device, struct ib_client *client,
2913 void ib_set_device_ops(struct ib_device *device,
3003 int ib_query_port(struct ib_device *device,
3006 enum rdma_link_layer rdma_port_get_link_layer(struct ib_device *device,
3018 static inline bool rdma_cap_ib_switch(const struct ib_device *device) in rdma_cap_ib_switch()
3031 static inline u32 rdma_start_port(const struct ib_device *device) in rdma_start_port()
3055 static inline u32 rdma_end_port(const struct ib_device *device) in rdma_end_port()
3060 static inline int rdma_is_port_valid(const struct ib_device *device, in rdma_is_port_valid()
3067 static inline bool rdma_is_grh_required(const struct ib_device *device, in rdma_is_grh_required()
3074 static inline bool rdma_protocol_ib(const struct ib_device *device, in rdma_protocol_ib()
3081 static inline bool rdma_protocol_roce(const struct ib_device *device, in rdma_protocol_roce()
3088 static inline bool rdma_protocol_roce_udp_encap(const struct ib_device *device, in rdma_protocol_roce_udp_encap()
3095 static inline bool rdma_protocol_roce_eth_encap(const struct ib_device *device, in rdma_protocol_roce_eth_encap()
3102 static inline bool rdma_protocol_iwarp(const struct ib_device *device, in rdma_protocol_iwarp()
3109 static inline bool rdma_ib_or_roce(const struct ib_device *device, in rdma_ib_or_roce()
3116 static inline bool rdma_protocol_raw_packet(const struct ib_device *device, in rdma_protocol_raw_packet()
3123 static inline bool rdma_protocol_usnic(const struct ib_device *device, in rdma_protocol_usnic()
3142 static inline bool rdma_cap_ib_mad(const struct ib_device *device, u32 port_num) in rdma_cap_ib_mad()
3167 static inline bool rdma_cap_opa_mad(struct ib_device *device, u32 port_num) in rdma_cap_opa_mad()
3193 static inline bool rdma_cap_ib_smi(const struct ib_device *device, u32 port_num) in rdma_cap_ib_smi()
3214 static inline bool rdma_cap_ib_cm(const struct ib_device *device, u32 port_num) in rdma_cap_ib_cm()
3232 static inline bool rdma_cap_iw_cm(const struct ib_device *device, u32 port_num) in rdma_cap_iw_cm()
3253 static inline bool rdma_cap_ib_sa(const struct ib_device *device, u32 port_num) in rdma_cap_ib_sa()
3276 static inline bool rdma_cap_ib_mcast(const struct ib_device *device, in rdma_cap_ib_mcast()
3295 static inline bool rdma_cap_af_ib(const struct ib_device *device, u32 port_num) in rdma_cap_af_ib()
3317 static inline bool rdma_cap_eth_ah(const struct ib_device *device, u32 port_num) in rdma_cap_eth_ah()
3332 static inline bool rdma_cap_opa_ah(struct ib_device *device, u32 port_num) in rdma_cap_opa_ah()
3350 static inline size_t rdma_max_mad_size(const struct ib_device *device, in rdma_max_mad_size()
3369 static inline bool rdma_cap_roce_gid_table(const struct ib_device *device, in rdma_cap_roce_gid_table()
3379 static inline bool rdma_cap_read_inv(struct ib_device *dev, u32 port_num) in rdma_cap_read_inv()
3395 static inline bool rdma_core_cap_opa_port(struct ib_device *device, in rdma_core_cap_opa_port()
3411 static inline int rdma_mtu_enum_to_int(struct ib_device *device, u32 port, in rdma_mtu_enum_to_int()
3428 static inline int rdma_mtu_from_attr(struct ib_device *device, u32 port, in rdma_mtu_from_attr()
3437 int ib_set_vf_link_state(struct ib_device *device, int vf, u32 port,
3439 int ib_get_vf_config(struct ib_device *device, int vf, u32 port,
3441 int ib_get_vf_stats(struct ib_device *device, int vf, u32 port,
3443 int ib_get_vf_guid(struct ib_device *device, int vf, u32 port,
3446 int ib_set_vf_guid(struct ib_device *device, int vf, u32 port, u64 guid,
3449 int ib_query_pkey(struct ib_device *device,
3452 int ib_modify_device(struct ib_device *device,
3456 int ib_modify_port(struct ib_device *device,
3460 int ib_find_gid(struct ib_device *device, union ib_gid *gid,
3463 int ib_find_pkey(struct ib_device *device,
3479 struct ib_pd *__ib_alloc_pd(struct ib_device *device, unsigned int flags,
3579 int ib_init_ah_attr_from_wc(struct ib_device *device, u32 port_num,
3856 struct ib_cq *__ib_alloc_cq(struct ib_device *dev, void *private, int nr_cqe,
3859 static inline struct ib_cq *ib_alloc_cq(struct ib_device *dev, void *private, in ib_alloc_cq()
3867 struct ib_cq *__ib_alloc_cq_any(struct ib_device *dev, void *private,
3878 static inline struct ib_cq *ib_alloc_cq_any(struct ib_device *dev, in ib_alloc_cq_any()
3902 struct ib_cq *__ib_create_cq(struct ib_device *device,
4000 struct ib_cq *ib_cq_pool_get(struct ib_device *dev, unsigned int nr_cqe,
4011 static inline bool ib_uses_virt_dma(struct ib_device *dev) in ib_uses_virt_dma()
4019 static inline bool ib_dma_pci_p2p_dma_supported(struct ib_device *dev) in ib_dma_pci_p2p_dma_supported()
4032 static inline int ib_dma_mapping_error(struct ib_device *dev, u64 dma_addr) in ib_dma_mapping_error()
4046 static inline u64 ib_dma_map_single(struct ib_device *dev, in ib_dma_map_single()
4062 static inline void ib_dma_unmap_single(struct ib_device *dev, in ib_dma_unmap_single()
4078 static inline u64 ib_dma_map_page(struct ib_device *dev, in ib_dma_map_page()
4096 static inline void ib_dma_unmap_page(struct ib_device *dev, in ib_dma_unmap_page()
4104 int ib_dma_virt_map_sg(struct ib_device *dev, struct scatterlist *sg, int nents);
4105 static inline int ib_dma_map_sg_attrs(struct ib_device *dev, in ib_dma_map_sg_attrs()
4116 static inline void ib_dma_unmap_sg_attrs(struct ib_device *dev, in ib_dma_unmap_sg_attrs()
4133 static inline int ib_dma_map_sgtable_attrs(struct ib_device *dev, in ib_dma_map_sgtable_attrs()
4150 static inline void ib_dma_unmap_sgtable_attrs(struct ib_device *dev, in ib_dma_unmap_sgtable_attrs()
4166 static inline int ib_dma_map_sg(struct ib_device *dev, in ib_dma_map_sg()
4180 static inline void ib_dma_unmap_sg(struct ib_device *dev, in ib_dma_unmap_sg()
4193 static inline unsigned int ib_dma_max_seg_size(struct ib_device *dev) in ib_dma_max_seg_size()
4207 static inline void ib_dma_sync_single_for_cpu(struct ib_device *dev, in ib_dma_sync_single_for_cpu()
4223 static inline void ib_dma_sync_single_for_device(struct ib_device *dev, in ib_dma_sync_single_for_device()
4317 struct ib_xrcd *ib_alloc_xrcd_user(struct ib_device *device,
4321 static inline int ib_check_mr_access(struct ib_device *ib_dev, in ib_check_mr_access()
4383 static inline bool ib_device_try_get(struct ib_device *dev) in ib_device_try_get()
4388 void ib_device_put(struct ib_device *device);
4389 struct ib_device *ib_device_get_by_netdev(struct net_device *ndev,
4391 struct ib_device *ib_device_get_by_name(const char *name,
4393 struct net_device *ib_get_net_dev_by_params(struct ib_device *dev, u32 port,
4396 int ib_device_set_netdev(struct ib_device *ib_dev, struct net_device *ndev,
4398 struct net_device *ib_device_netdev(struct ib_device *dev, u32 port);
4430 int ib_get_eth_speed(struct ib_device *dev, u32 port_num, u16 *speed,
4601 static inline enum rdma_ah_attr_type rdma_ah_find_type(struct ib_device *dev, in rdma_ah_find_type()
4652 ib_get_vector_affinity(struct ib_device *device, int comp_vector) in ib_get_vector_affinity()
4668 void rdma_roce_rescan_device(struct ib_device *ibdev);
4674 struct net_device *rdma_alloc_netdev(struct ib_device *device, u32 port_num,
4679 int rdma_init_netdev(struct ib_device *device, u32 port_num,
4693 static inline struct ib_device *rdma_device_to_ibdev(struct device *device) in rdma_device_to_ibdev()
4705 static inline int ibdev_to_node(struct ib_device *ibdev) in ibdev_to_node()
4725 bool rdma_dev_access_netns(const struct ib_device *device,
4791 ib_port_immutable_read(struct ib_device *dev, unsigned int port);