Home
last modified time | relevance | path

Searched refs:ib_device (Results 1 – 25 of 106) sorted by relevance

12345

/freebsd/sys/ofed/drivers/infiniband/core/
H A Dcore_priv.h64 typedef bool (*cma_device_filter)(struct ib_device *, void *);
72 struct ib_device *cma_get_ib_dev(struct cma_device *cma_dev);
74 int ib_device_register_sysfs(struct ib_device *device,
75 int (*port_callback)(struct ib_device *,
77 void ib_device_unregister_sysfs(struct ib_device *device);
82 typedef void (*roce_netdev_callback)(struct ib_device *device, u8 port,
85 typedef int (*roce_netdev_filter)(struct ib_device *device, u8 port,
88 void ib_enum_roce_netdev(struct ib_device *ib_dev,
107 void ib_cache_gid_set_default_gid(struct ib_device *ib_dev, u8 port,
112 int ib_cache_gid_add(struct ib_device *ib_dev, u8 port,
[all …]
H A Dib_device.c87 static int ib_device_check_mandatory(struct ib_device *device) in ib_device_check_mandatory()
89 #define IB_MANDATORY_FUNC(x) { offsetof(struct ib_device, x), #x } in ib_device_check_mandatory()
128 static struct ib_device *__ib_device_get_by_name(const char *name) in __ib_device_get_by_name()
130 struct ib_device *device; in __ib_device_get_by_name()
144 struct ib_device *device; in alloc_name()
174 struct ib_device *dev = container_of(device, struct ib_device, dev); in ib_device_release()
204 struct ib_device *ib_alloc_device(size_t size) in ib_alloc_device()
206 struct ib_device *device; in ib_alloc_device()
208 if (WARN_ON(size < sizeof(struct ib_device))) in ib_alloc_device()
237 void ib_dealloc_device(struct ib_device *device) in ib_dealloc_device()
[all …]
H A Dib_cache.c58 struct ib_device *device;
120 static void dispatch_gid_change_event(struct ib_device *ib_dev, u8 port) in dispatch_gid_change_event()
175 static int write_gid(struct ib_device *ib_dev, u8 port, in write_gid()
233 static int add_gid(struct ib_device *ib_dev, u8 port, in add_gid()
242 static int modify_gid(struct ib_device *ib_dev, u8 port, in modify_gid()
251 static int del_gid(struct ib_device *ib_dev, u8 port, in del_gid()
332 int ib_cache_gid_add(struct ib_device *ib_dev, u8 port, in ib_cache_gid_add()
370 int ib_cache_gid_del(struct ib_device *ib_dev, u8 port, in ib_cache_gid_del()
400 int ib_cache_gid_del_all_netdev_gids(struct ib_device *ib_dev, u8 port, in ib_cache_gid_del_all_netdev_gids()
429 static int __ib_cache_gid_get(struct ib_device *ib_dev, u8 port, int index, in __ib_cache_gid_get()
[all …]
H A Dib_sysfs.c60 struct ib_device *ibdev;
466 static int get_perf_mad(struct ib_device *dev, int port_num, __be16 attr, in get_perf_mad()
772 static struct attribute_group *get_counter_table(struct ib_device *dev, in get_counter_table()
792 static int update_hw_stats(struct ib_device *dev, struct rdma_hw_stats *stats, in update_hw_stats()
816 struct ib_device *dev; in show_hw_stats()
825 struct ib_device, dev); in show_hw_stats()
853 struct ib_device *dev = container_of((struct device *)kobj, in show_stats_lifespan()
854 struct ib_device, dev); in show_stats_lifespan()
888 struct ib_device *dev = container_of((struct device *)kobj, in set_stats_lifespan()
889 struct ib_device, dev); in set_stats_lifespan()
[all …]
H A Dagent.h45 extern int ib_agent_port_open(struct ib_device *device, int port_num);
47 extern int ib_agent_port_close(struct ib_device *device, int port_num);
50 const struct ib_wc *wc, const struct ib_device *device,
H A Dib_roce_gid_mgmt.c62 struct ib_device *ib_dev;
66 bool (*is_supported)(const struct ib_device *device, u8 port_num);
75 unsigned long roce_gid_type_mask_support(struct ib_device *ib_dev, u8 port) in roce_gid_type_mask_support()
91 static void update_gid(enum gid_op_type gid_op, struct ib_device *ib_dev, in update_gid()
119 roce_gid_match_netdev(struct ib_device *ib_dev, u8 port, in roce_gid_match_netdev()
129 roce_gid_match_all(struct ib_device *ib_dev, u8 port, in roce_gid_match_all()
138 roce_gid_enum_netdev_default(struct ib_device *ib_dev, in roce_gid_enum_netdev_default()
211 roce_gid_update_addr_callback(struct ib_device *device, u8 port, in roce_gid_update_addr_callback()
441 int roce_rescan_device(struct ib_device *ib_dev) in roce_rescan_device()
H A Dib_agent.c59 __ib_get_agent_port(const struct ib_device *device, int port_num) in __ib_get_agent_port()
72 ib_get_agent_port(const struct ib_device *device, int port_num) in ib_get_agent_port()
84 const struct ib_wc *wc, const struct ib_device *device, in agent_send_response()
152 int ib_agent_port_open(struct ib_device *device, int port_num) in ib_agent_port_open()
203 int ib_agent_port_close(struct ib_device *device, int port_num) in ib_agent_port_close()
/freebsd/sys/ofed/include/rdma/
H A Dib_verbs.h667 struct ib_device *device;
679 struct ib_device *device;
1386 struct ib_device *device;
1431 struct ib_device *device;
1444 struct ib_device *device;
1453 struct ib_device *device;
1467 struct ib_device *device;
1479 struct ib_device *device;
1521 struct ib_device *device;
1564 struct ib_device *device;
[all …]
H A Dib_cache.h54 int ib_get_cached_gid(struct ib_device *device,
74 int ib_find_cached_gid(struct ib_device *device,
96 int ib_find_cached_gid_by_port(struct ib_device *device,
103 int ib_find_gid_by_filter(struct ib_device *device,
120 int ib_get_cached_pkey(struct ib_device *device_handle,
136 int ib_find_cached_pkey(struct ib_device *device,
152 int ib_find_exact_cached_pkey(struct ib_device *device,
166 int ib_get_cached_lmc(struct ib_device *device,
H A Dib_sa.h329 struct ib_device *device, u8 port_num,
340 struct ib_device *device, u8 port_num,
388 struct ib_device *device, u8 port_num,
417 int ib_sa_get_mcmember_rec(struct ib_device *device, u8 port_num,
424 int ib_init_ah_from_mcmember(struct ib_device *device, u8 port_num,
434 int ib_init_ah_from_path(struct ib_device *device, u8 port_num,
452 struct ib_device *device, u8 port_num,
464 struct ib_device *device, u8 port_num,
H A Diw_cm.h88 struct ib_device *device;
115 struct ib_qp * (*get_qp)(struct ib_device *device,
142 struct iw_cm_id *iw_create_cm_id(struct ib_device *device,
174 struct ib_qp *iw_cm_get_qp(struct ib_device *device, int qpn);
H A Drdma_vt.h190 int (*port_callback)(struct ib_device *, u8, struct kobject *);
310 int (*check_ah)(struct ib_device *, struct ib_ah_attr *);
313 void (*notify_new_ah)(struct ib_device *, struct ib_ah_attr *,
340 struct ib_device ibdev; /* Keep this first. Nothing above here */
412 static inline struct rvt_dev_info *ib_to_rvt(struct ib_device *ibdev) in ib_to_rvt()
489 int rvt_check_ah(struct ib_device *ibdev, struct ib_ah_attr *ah_attr);
/freebsd/sys/dev/irdma/
H A Dfbsd_kcompat.h88 static inline int irdma_iw_query_pkey(struct ib_device *ibdev, u8 port, u16 index, in irdma_iw_query_pkey()
145 int ib_get_eth_speed(struct ib_device *dev, u32 port_num, u8 *speed, u8 *width);
146 enum rdma_link_layer irdma_get_link_layer(struct ib_device *ibdev,
148 int irdma_roce_port_immutable(struct ib_device *ibdev, u8 port_num,
150 int irdma_iw_port_immutable(struct ib_device *ibdev, u8 port_num,
152 int irdma_query_gid(struct ib_device *ibdev, u8 port, int index,
154 int irdma_query_gid_roce(struct ib_device *ibdev, u8 port, int index,
156 int irdma_query_pkey(struct ib_device *ibdev, u8 port, u16 index,
158 int irdma_query_port(struct ib_device *ibdev, u8 port,
160 struct rdma_hw_stats *irdma_alloc_hw_stats(struct ib_device *ibdev, u8 port_num);
[all …]
/freebsd/sys/dev/qlnx/qlnxr/
H A Dqlnxr_verbs.h32 extern int qlnxr_iw_query_gid(struct ib_device *,
37 extern int qlnxr_query_gid(struct ib_device *,
61 extern int qlnxr_query_device(struct ib_device *, struct ib_device_attr *,
63 extern int qlnxr_get_port_immutable(struct ib_device *ibdev, u8 port_num,
66 extern int qlnxr_query_port(struct ib_device *,
70 extern int qlnxr_modify_port(struct ib_device *,
75 extern enum rdma_link_layer qlnxr_link_layer(struct ib_device *device,
112 extern int qlnxr_query_pkey(struct ib_device *,
128 extern int qlnxr_process_mad(struct ib_device *ibdev,
192 extern struct ib_qp *qlnxr_iw_get_qp(struct ib_device *dev, int qpn);
/freebsd/sys/dev/iser/
H A Diser_initiator.c107 ib_dma_sync_single_for_cpu(device->ib_device, in iser_create_send_desc()
130 ib_dma_unmap_single(device->ib_device, in iser_free_login_buf()
135 ib_dma_unmap_single(device->ib_device, in iser_free_login_buf()
165 iser_conn->login_req_dma = ib_dma_map_single(device->ib_device, in iser_alloc_login_buf()
170 iser_conn->login_resp_dma = ib_dma_map_single(device->ib_device, in iser_alloc_login_buf()
175 req_err = ib_dma_mapping_error(device->ib_device, in iser_alloc_login_buf()
177 resp_err = ib_dma_mapping_error(device->ib_device, in iser_alloc_login_buf()
224 dma_addr = ib_dma_map_single(device->ib_device, (void *)rx_desc, in iser_alloc_rx_descriptors()
226 if (ib_dma_mapping_error(device->ib_device, dma_addr)) in iser_alloc_rx_descriptors()
244 ib_dma_unmap_single(device->ib_device, rx_desc->dma_addr, in iser_alloc_rx_descriptors()
[all …]
H A Diser_memory.c60 iser_data_buf_aligned_len(struct iser_data_buf *data, struct ib_device *ibdev) in iser_data_buf_aligned_len()
102 struct ib_device *dev; in iser_dma_unmap_task_data()
104 dev = iser_pdu->iser_conn->ib_conn.device->ib_device; in iser_dma_unmap_task_data()
116 reg->sge.length = ib_sg_dma_len(device->ib_device, &sg[0]); in iser_reg_dma()
117 reg->sge.addr = ib_sg_dma_address(device->ib_device, &sg[0]); in iser_reg_dma()
222 struct ib_device *ibdev = device->ib_device; in iser_reg_rdma_mem()
273 struct ib_device *dev; in iser_dma_map_task_data()
276 dev = iser_pdu->iser_conn->ib_conn.device->ib_device; in iser_dma_map_task_data()
H A Diser_verbs.c202 struct ib_device *ib_dev = device->ib_device; in iser_create_device_ib_res()
207 "can't register memory", device->ib_device->name); in iser_create_device_ib_res()
211 device->comps_used = min(mp_ncpus, device->ib_device->num_comp_vectors); in iser_create_device_ib_res()
219 device->comps_used, device->ib_device->name, in iser_create_device_ib_res()
220 device->ib_device->num_comp_vectors, max_cqe); in iser_create_device_ib_res()
222 device->pd = ib_alloc_pd(device->ib_device, IB_PD_UNSAFE_GLOBAL_RKEY); in iser_create_device_ib_res()
234 comp->cq = ib_create_cq(device->ib_device, in iser_create_device_ib_res()
259 INIT_IB_EVENT_HANDLER(&device->event_handler, device->ib_device, in iser_create_device_ib_res()
313 iser_alloc_reg_res(struct ib_device *ib_device, in iser_alloc_reg_res() argument
337 iser_create_fastreg_desc(struct ib_device *ib_device, struct ib_pd *pd) in iser_create_fastreg_desc() argument
[all …]
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_virt.c33 int mlx5_ib_get_vf_config(struct ib_device *device, int vf, u8 port, in mlx5_ib_get_vf_config()
39 int mlx5_ib_set_vf_link_state(struct ib_device *device, int vf, in mlx5_ib_set_vf_link_state()
45 int mlx5_ib_get_vf_stats(struct ib_device *device, int vf, in mlx5_ib_get_vf_stats()
51 int mlx5_ib_set_vf_guid(struct ib_device *device, int vf, u8 port, in mlx5_ib_set_vf_guid()
H A Dmlx5_ib.h749 struct ib_device ib_dev;
805 static inline struct mlx5_ib_dev *to_mdev(struct ib_device *ibdev) in to_mdev()
956 int mlx5_ib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,
961 struct ib_xrcd *mlx5_ib_alloc_xrcd(struct ib_device *ibdev,
966 int mlx5_query_mad_ifc_smp_attr_node_info(struct ib_device *ibdev,
968 int mlx5_query_mad_ifc_system_image_guid(struct ib_device *ibdev,
970 int mlx5_query_mad_ifc_max_pkeys(struct ib_device *ibdev,
972 int mlx5_query_mad_ifc_vendor_id(struct ib_device *ibdev,
976 int mlx5_query_mad_ifc_pkey(struct ib_device *ibdev, u8 port, u16 index,
978 int mlx5_query_mad_ifc_gids(struct ib_device *ibde
[all...]
H A Dmlx5_ib_mad.c57 static int process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num, in process_mad()
181 static int process_pma_cmd(struct ib_device *ibdev, u8 port_num, in process_pma_cmd()
232 int mlx5_ib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num, in mlx5_ib_process_mad()
288 int mlx5_query_mad_ifc_smp_attr_node_info(struct ib_device *ibdev, in mlx5_query_mad_ifc_smp_attr_node_info()
308 int mlx5_query_mad_ifc_system_image_guid(struct ib_device *ibdev, in mlx5_query_mad_ifc_system_image_guid()
330 int mlx5_query_mad_ifc_max_pkeys(struct ib_device *ibdev, in mlx5_query_mad_ifc_max_pkeys()
352 int mlx5_query_mad_ifc_vendor_id(struct ib_device *ibdev, in mlx5_query_mad_ifc_vendor_id()
424 int mlx5_query_mad_ifc_pkey(struct ib_device *ibdev, u8 port, u16 index, in mlx5_query_mad_ifc_pkey()
453 int mlx5_query_mad_ifc_gids(struct ib_device *ibdev, u8 port, int index, in mlx5_query_mad_ifc_gids()
493 int mlx5_query_mad_ifc_port(struct ib_device *ibdev, u8 port, in mlx5_query_mad_ifc_port()
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dib_verbs.h116 bnxt_re_query_fw_str(struct ib_device *ibdev, \
259 struct ifnet *bnxt_re_get_netdev(struct ib_device *ibdev,
262 int bnxt_re_query_device(struct ib_device *ibdev,
265 int bnxt_re_modify_device(struct ib_device *ibdev,
268 int bnxt_re_query_port(struct ib_device *ibdev, u8 port_num,
270 int bnxt_re_modify_port(struct ib_device *ibdev, u8 port_num,
273 int bnxt_re_get_port_immutable(struct ib_device *ibdev, u8 port_num,
276 int bnxt_re_query_pkey(struct ib_device *ibdev, u8 port_num,
278 int bnxt_re_del_gid(struct ib_device *ibdev, u8 port_num,
280 int bnxt_re_add_gid(struct ib_device *ibdev, u8 port_num,
[all …]
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib.h437 struct ib_device *ib_dev;
446 struct ib_device *ib_dev;
561 struct ib_device ib_dev;
629 static inline struct mlx4_ib_dev *to_mdev(struct ib_device *ibdev) in to_mdev()
775 int mlx4_ib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,
789 int __mlx4_ib_query_port(struct ib_device *ibdev, u8 port,
791 int __mlx4_ib_query_pkey(struct ib_device *ibdev, u8 port, u16 index,
794 int __mlx4_ib_query_gid(struct ib_device *ibdev, u8 port, int index,
813 int mlx4_ib_find_real_gid(struct ib_device *ibdev, u8 port, __be64 guid);
815 int mlx4_ib_mcg_multiplex_handler(struct ib_device *ibdev, int port, int slave,
[all …]
H A Dmlx4_ib_cm.c135 static union ib_gid gid_from_req_msg(struct ib_device *ibdev, struct ib_mad *mad) in gid_from_req_msg()
144 id_map_find_by_sl_id(struct ib_device *ibdev, u32 slave_id, u32 sl_cm_id) in id_map_find_by_sl_id()
192 static void id_map_find_del(struct ib_device *ibdev, int pv_cm_id) in id_map_find_del()
210 static void sl_id_map_add(struct ib_device *ibdev, struct id_map_entry *new) in sl_id_map_add()
243 id_map_alloc(struct ib_device *ibdev, int slave_id, u32 sl_cm_id) in id_map_alloc()
284 id_map_get(struct ib_device *ibdev, int *pv_cm_id, int sl_cm_id, int slave_id) in id_map_get()
301 static void schedule_delayed(struct ib_device *ibdev, struct id_map_entry *id) in schedule_delayed()
317 int mlx4_ib_multiplex_cm_handler(struct ib_device *ibdev, int port, int slave_id, in mlx4_ib_multiplex_cm_handler()
358 int mlx4_ib_demux_cm_handler(struct ib_device *ibdev, int port, int *slave, in mlx4_ib_demux_cm_handler()
/freebsd/sys/dev/cxgbe/iw_cxgbe/
H A Dprovider.c52 static int c4iw_modify_port(struct ib_device *ibdev, in c4iw_modify_port()
80 static int c4iw_process_mad(struct ib_device *ibdev, int mad_flags, in c4iw_process_mad()
112 struct ib_device *ibdev = ucontext->device; in c4iw_alloc_ucontext()
227 struct ib_device *ibdev = pd->device; in c4iw_allocate_pd()
261 c4iw_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) in c4iw_query_pkey()
272 c4iw_query_gid(struct ib_device *ibdev, u8 port, int index, union ib_gid *gid) in c4iw_query_gid()
292 c4iw_query_device(struct ib_device *ibdev, struct ib_device_attr *props, in c4iw_query_device()
335 c4iw_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *props) in c4iw_query_port()
380 static int c4iw_port_immutable(struct ib_device *ibdev, u8 port_num, in c4iw_port_immutable()
405 struct ib_device *ibdev = &dev->ibdev; in c4iw_register_device()
/freebsd/sys/ofed/drivers/infiniband/ulp/ipoib/
H A Dipoib.h349 struct ib_device *ca;
460 struct ipoib_dev_priv *ipoib_intf_alloc(const char *format, struct ib_device *ca);
462 int ipoib_ib_dev_init(struct ipoib_dev_priv *priv, struct ib_device *ca,
475 int ipoib_dev_init(struct ipoib_dev_priv *priv, struct ib_device *ca, int port);
513 int ipoib_transport_dev_init(struct ipoib_dev_priv *priv, struct ib_device *ca);
523 int ipoib_dma_map_tx(struct ib_device *ca, struct ipoib_tx_buf *tx_req, int max);
524 void ipoib_dma_unmap_tx(struct ib_device *ca, struct ipoib_tx_buf *tx_req);
533 int ipoib_set_dev_features(struct ipoib_dev_priv *priv, struct ib_device *hca);

12345