Home
last modified time | relevance | path

Searched refs:ibdev (Results 1 – 25 of 36) sorted by relevance

12

/freebsd-12.1/sys/dev/cxgbe/iw_cxgbe/
H A Dprovider.c307 dev = to_c4iw_dev(ibdev); in c4iw_query_gid()
371 dev = to_c4iw_dev(ibdev); in c4iw_query_port()
431 struct ib_device *ibdev = &dev->ibdev; in c4iw_register_device() local
437 strlcpy(ibdev->name, device_get_nameunit(sc->dev), sizeof(ibdev->name)); in c4iw_register_device()
438 memset(&ibdev->node_guid, 0, sizeof(ibdev->node_guid)); in c4iw_register_device()
445 ibdev->uverbs_cmd_mask = in c4iw_register_device()
465 strlcpy(ibdev->node_desc, C4IW_NODE_DESC, sizeof(ibdev->node_desc)); in c4iw_register_device()
468 ibdev->dma_device = NULL; in c4iw_register_device()
476 ibdev->mmap = c4iw_mmap; in c4iw_register_device()
517 ibdev->iwcm = iwcm; in c4iw_register_device()
[all …]
H A Diw_cxgbe.h262 struct ib_device ibdev; member
273 static inline struct c4iw_dev *to_c4iw_dev(struct ib_device *ibdev) in to_c4iw_dev() argument
275 return container_of(ibdev, struct c4iw_dev, ibdev); in to_c4iw_dev()
946 struct ib_cq *c4iw_create_cq(struct ib_device *ibdev,
H A Dcq.c89 dma_free_coherent(rhp->ibdev.dma_device, in destroy_cq()
124 cq->queue = dma_alloc_coherent(rhp->ibdev.dma_device, cq->memsize, in create_cq()
194 dma_free_coherent(rhp->ibdev.dma_device, cq->memsize, cq->queue, in create_cq()
907 c4iw_create_cq(struct ib_device *ibdev, const struct ib_cq_init_attr *attr, in c4iw_create_cq() argument
920 CTR3(KTR_IW_CXGBE, "%s ib_dev %p entries %d", __func__, ibdev, entries); in c4iw_create_cq()
924 rhp = to_c4iw_dev(ibdev); in c4iw_create_cq()
H A Dmem.c191 daddr = dma_map_single(rhp->ibdev.dma_device, data, len, DMA_TO_DEVICE); in _c4iw_write_mem_dma()
192 if (dma_mapping_error(rhp->ibdev.dma_device, daddr)) in _c4iw_write_mem_dma()
216 dma_unmap_single(rhp->ibdev.dma_device, save, len, DMA_TO_DEVICE); in _c4iw_write_mem_dma()
635 mhp->mpl = dma_alloc_coherent(rhp->ibdev.dma_device, in c4iw_alloc_mr()
672 dma_free_coherent(rhp->ibdev.dma_device, in c4iw_alloc_mr()
H A Ddevice.c204 ib_dealloc_device(&iwsc->ibdev); in c4iw_dealloc()
246 ib_dealloc_device(&iwsc->ibdev); in c4iw_alloc()
/freebsd-12.1/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_main.c2345 iboe = &ibdev->iboe; in mlx4_ib_scan_netdevs()
2526 ibdev = (struct mlx4_ib_dev *) ib_alloc_device(sizeof *ibdev); in mlx4_ib_add()
2527 if (!ibdev) { in mlx4_ib_add()
2533 iboe = &ibdev->iboe; in mlx4_ib_add()
2543 if (!ibdev->uar_map) in mlx4_ib_add()
2547 ibdev->dev = dev; in mlx4_ib_add()
2766 bitmap_zero(ibdev->ib_uc_qpns_bitmap, ibdev->steer_qpn_count); in mlx4_ib_add()
2818 init_pkeys(ibdev); in mlx4_ib_add()
2829 return ibdev; in mlx4_ib_add()
2859 mlx4_ib_delete_counters_table(ibdev, &ibdev->counters_table[i]); in mlx4_ib_add()
[all …]
H A Dmlx4_ib_cm.c194 struct mlx4_ib_sriov *sriov = &to_mdev(ibdev)->sriov; in id_map_find_del()
258 ent->dev = to_mdev(ibdev); in id_map_alloc()
262 spin_lock(&to_mdev(ibdev)->sriov.id_map_lock); in id_map_alloc()
267 sl_id_map_add(ibdev, ent); in id_map_alloc()
328 id = id_map_alloc(ibdev, slave_id, sl_cm_id); in mlx4_ib_multiplex_cm_handler()
351 schedule_delayed(ibdev, id); in mlx4_ib_multiplex_cm_handler()
353 id_map_find_del(ibdev, pv_cm_id); in mlx4_ib_multiplex_cm_handler()
371 gid = gid_from_req_msg(ibdev, mad); in mlx4_ib_demux_cm_handler()
382 id = id_map_get(ibdev, (int *)&pv_cm_id, -1, -1); in mlx4_ib_demux_cm_handler()
394 schedule_delayed(ibdev, id); in mlx4_ib_demux_cm_handler()
[all …]
H A Dmlx4_ib.h61 #define mlx4_ib_warn(ibdev, format, arg...) \ argument
62 dev_warn((ibdev)->dma_device, MLX4_IB_DRV_NAME ": " format, ## arg)
634 static inline struct mlx4_ib_dev *to_mdev(struct ib_device *ibdev) in to_mdev() argument
636 return container_of(ibdev, struct mlx4_ib_dev, ib_dev); in to_mdev()
740 struct ib_cq *mlx4_ib_create_cq(struct ib_device *ibdev,
796 int __mlx4_ib_query_port(struct ib_device *ibdev, u8 port,
798 int __mlx4_ib_query_pkey(struct ib_device *ibdev, u8 port, u16 index,
801 int __mlx4_ib_query_gid(struct ib_device *ibdev, u8 port, int index,
820 int mlx4_ib_find_real_gid(struct ib_device *ibdev, u8 port, __be64 guid);
891 int mlx4_ib_gid_index_to_real_index(struct mlx4_ib_dev *ibdev,
[all …]
H A Dmlx4_ib_mad.c227 struct mlx4_ib_dev *dev = to_mdev(ibdev); in smp_snoop()
430 struct mlx4_ib_dev *dev = to_mdev(ibdev); in mlx4_ib_find_real_gid()
643 struct mlx4_ib_dev *dev = to_mdev(ibdev); in mlx4_ib_demux_mad()
674 mlx4_ib_warn(ibdev, "failed matching grh\n"); in mlx4_ib_demux_mad()
824 !ib_query_port(ibdev, port_num, &pattr)) in ib_process_mad()
827 err = mlx4_MAD_IFC(to_mdev(ibdev), in ib_process_mad()
836 smp_snoop(ibdev, port_num, in_mad, prev_lid); in ib_process_mad()
838 if (!mlx4_is_slave(to_mdev(ibdev)->dev)) in ib_process_mad()
839 node_desc_override(ibdev, out_mad); in ib_process_mad()
904 struct mlx4_ib_dev *dev = to_mdev(ibdev); in iboe_process_mad()
[all …]
H A Dmlx4_ib_ah.c77 struct mlx4_ib_dev *ibdev = to_mdev(pd->device); in create_iboe_ah() local
78 struct mlx4_dev *dev = ibdev->dev; in create_iboe_ah()
106 ret = mlx4_ib_gid_index_to_real_index(ibdev, ah_attr->port_num, ah_attr->grh.sgid_index); in create_iboe_ah()
H A Dmlx4_ib_alias_GUID.c489 static int set_guid_rec(struct ib_device *ibdev, in set_guid_rec() argument
493 struct mlx4_ib_dev *dev = to_mdev(ibdev); in set_guid_rec()
505 err = __mlx4_ib_query_port(ibdev, port, &attr, 1); in set_guid_rec()
548 ibdev, port, &guid_info_rec, in set_guid_rec()
/freebsd-12.1/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_mad.c90 err = mlx5_MAD_IFC(to_mdev(ibdev), in process_mad()
183 struct mlx5_ib_dev *dev = to_mdev(ibdev); in process_pma_cmd()
237 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_process_mad()
251 return process_pma_cmd(ibdev, port_num, in_mad, out_mad); in mlx5_ib_process_mad()
317 err = mlx5_query_mad_ifc_smp_attr_node_info(ibdev, out_mad); in mlx5_query_mad_ifc_system_image_guid()
329 int mlx5_query_mad_ifc_max_pkeys(struct ib_device *ibdev, in mlx5_query_mad_ifc_max_pkeys() argument
339 err = mlx5_query_mad_ifc_smp_attr_node_info(ibdev, out_mad); in mlx5_query_mad_ifc_max_pkeys()
351 int mlx5_query_mad_ifc_vendor_id(struct ib_device *ibdev, in mlx5_query_mad_ifc_vendor_id() argument
361 err = mlx5_query_mad_ifc_smp_attr_node_info(ibdev, out_mad); in mlx5_query_mad_ifc_vendor_id()
492 int mlx5_query_mad_ifc_port(struct ib_device *ibdev, u8 port, in mlx5_query_mad_ifc_port() argument
[all …]
H A Dmlx5_ib_main.c117 write_lock(&ibdev->roce.netdev_lock); in mlx5_netdev_event()
122 write_unlock(&ibdev->roce.netdev_lock); in mlx5_netdev_event()
130 && ibdev->ib_active) { in mlx5_netdev_event()
133 ibev.device = &ibdev->ib_dev; in mlx5_netdev_event()
157 read_lock(&ibdev->roce.netdev_lock); in mlx5_ib_get_netdev()
158 ndev = ibdev->roce.netdev; in mlx5_ib_get_netdev()
161 read_unlock(&ibdev->roce.netdev_lock); in mlx5_ib_get_netdev()
483 if (mlx5_use_mad_ifc(to_mdev(ibdev))) in mlx5_get_vport_access_method()
2518 ibev.device = &ibdev->ib_dev; in mlx5_ib_event()
2526 if (ibdev->ib_active) in mlx5_ib_event()
[all …]
H A Dmlx5_ib.h704 static inline struct mlx5_ib_dev *to_mdev(struct ib_device *ibdev) in to_mdev() argument
706 return container_of(ibdev, struct mlx5_ib_dev, ib_dev); in to_mdev()
817 struct ib_cq *mlx5_ib_create_cq(struct ib_device *ibdev,
849 struct ib_xrcd *mlx5_ib_alloc_xrcd(struct ib_device *ibdev,
857 int mlx5_query_mad_ifc_system_image_guid(struct ib_device *ibdev,
859 int mlx5_query_mad_ifc_max_pkeys(struct ib_device *ibdev,
861 int mlx5_query_mad_ifc_vendor_id(struct ib_device *ibdev,
869 int mlx5_query_mad_ifc_port(struct ib_device *ibdev, u8 port,
871 int mlx5_ib_query_port(struct ib_device *ibdev, u8 port,
907 int mlx5_ib_odp_init_one(struct mlx5_ib_dev *ibdev);
[all …]
/freebsd-12.1/sys/dev/mthca/
H A Dmthca_provider.c65 struct mthca_dev *mdev = to_mdev(ibdev); in mthca_query_device()
154 err = mthca_MAD_IFC(to_mdev(ibdev), 1, 1, in mthca_query_port()
195 memcpy(ibdev->node_desc, props->node_desc, in mthca_modify_device()
248 err = mthca_MAD_IFC(to_mdev(ibdev), 1, 1, in mthca_query_pkey()
277 err = mthca_MAD_IFC(to_mdev(ibdev), 1, 1, in mthca_query_gid()
288 err = mthca_MAD_IFC(to_mdev(ibdev), 1, 1, in mthca_query_gid()
308 if (!(to_mdev(ibdev)->active)) in mthca_alloc_ucontext()
314 if (mthca_is_memfree(to_mdev(ibdev))) in mthca_alloc_ucontext()
394 mthca_pd_free(to_mdev(ibdev), pd); in mthca_alloc_pd()
698 err = mthca_init_cq(to_mdev(ibdev), nent, in mthca_create_cq()
[all …]
H A Dmthca_mad.c105 static void smp_snoop(struct ib_device *ibdev, in smp_snoop() argument
120 mthca_update_rate(to_mdev(ibdev), port_num); in smp_snoop()
121 update_sm_ah(to_mdev(ibdev), port_num, in smp_snoop()
125 event.device = ibdev; in smp_snoop()
140 event.device = ibdev; in smp_snoop()
197 int mthca_process_mad(struct ib_device *ibdev, in mthca_process_mad() argument
220 forward_trap(to_mdev(ibdev), port_num, in_mad); in mthca_process_mad()
257 !ib_query_port(ibdev, port_num, &pattr)) in mthca_process_mad()
260 err = mthca_MAD_IFC(to_mdev(ibdev), in mthca_process_mad()
272 smp_snoop(ibdev, port_num, in_mad, prev_lid); in mthca_process_mad()
[all …]
H A Dmthca_dev.h578 int mthca_process_mad(struct ib_device *ibdev,
589 static inline struct mthca_dev *to_mdev(struct ib_device *ibdev) in to_mdev() argument
591 return container_of(ibdev, struct mthca_dev, ib_dev); in to_mdev()
/freebsd-12.1/contrib/ofed/libcxgb4/
H A Ddev.c106 static struct ibv_context *c4iw_alloc_context(struct ibv_device *ibdev, in c4iw_alloc_context() argument
112 struct c4iw_dev *rhp = to_c4iw_dev(ibdev); in c4iw_alloc_context()
143 context->ibv_ctx.device = ibdev; in c4iw_alloc_context()
413 char devstr[IBV_SYSFS_PATH_MAX], ibdev[16], value[128], *cp; in cxgb4_driver_init() local
423 ibdev, sizeof ibdev) < 0) in cxgb4_driver_init()
426 devnum = atoi(&ibdev[5]); in cxgb4_driver_init()
428 if (ibdev[0] == 't' && ibdev[1] >= '4' && ibdev[1] <= '6' && in cxgb4_driver_init()
429 strstr(&ibdev[2], "nex") && devnum >= 0) { in cxgb4_driver_init()
430 snprintf(dev_str, sizeof(dev_str), "/dev/t%cnex/%d", ibdev[1], in cxgb4_driver_init()
482 ibdev, sizeof ibdev) < 0) in cxgb4_driver_init()
[all …]
H A Dlibcxgb4.h126 static inline struct c4iw_dev *to_c4iw_dev(struct ibv_device *ibdev) in to_c4iw_dev() argument
/freebsd-12.1/sys/dev/iser/
H A Diser_memory.c61 iser_data_buf_aligned_len(struct iser_data_buf *data, struct ib_device *ibdev) in iser_data_buf_aligned_len() argument
71 start_addr = ib_sg_dma_address(ibdev, sgl); in iser_data_buf_aligned_len()
81 end_addr = start_addr + ib_sg_dma_len(ibdev, sg); in iser_data_buf_aligned_len()
82 start_addr = ib_sg_dma_address(ibdev, next_sg); in iser_data_buf_aligned_len()
222 struct ib_device *ibdev = device->ib_device; in iser_reg_rdma_mem() local
228 aligned_len = iser_data_buf_aligned_len(mem, ibdev); in iser_reg_rdma_mem()
/freebsd-12.1/sys/ofed/include/rdma/
H A Drdma_vt.h342 struct ib_device ibdev; /* Keep this first. Nothing above here */ member
414 static inline struct rvt_dev_info *ib_to_rvt(struct ib_device *ibdev) in ib_to_rvt() argument
416 return container_of(ibdev, struct rvt_dev_info, ibdev); in ib_to_rvt()
491 int rvt_check_ah(struct ib_device *ibdev, struct ib_ah_attr *ah_attr);
/freebsd-12.1/sys/ofed/drivers/infiniband/core/
H A Dib_sysfs.c61 struct ib_device *ibdev; member
153 ret = ib_query_port(p->ibdev, p->port_num, &attr); in state_show()
168 ret = ib_query_port(p->ibdev, p->port_num, &attr); in lid_show()
182 ret = ib_query_port(p->ibdev, p->port_num, &attr); in lid_mask_count_show()
195 ret = ib_query_port(p->ibdev, p->port_num, &attr); in sm_lid_show()
208 ret = ib_query_port(p->ibdev, p->port_num, &attr); in sm_sl_show()
221 ret = ib_query_port(p->ibdev, p->port_num, &attr); in cap_mask_show()
236 ret = ib_query_port(p->ibdev, p->port_num, &attr); in rate_show()
288 ret = ib_query_port(p->ibdev, p->port_num, &attr); in phys_state_show()
802 dev = port->ibdev; in show_hw_stats()
[all …]
/freebsd-12.1/contrib/ofed/libmlx5/
H A Dmlx5.c280 static void mlx5_local_cpu_set(struct ibv_device *ibdev, cpuset_t *cpu_set) in mlx5_local_cpu_set() argument
294 ibv_get_device_name(ibdev)); in mlx5_local_cpu_set()
330 static int mlx5_enable_sandy_bridge_fix(struct ibv_device *ibdev) in mlx5_enable_sandy_bridge_fix() argument
363 mlx5_local_cpu_set(ibdev, &dev_local_cpus); in mlx5_enable_sandy_bridge_fix()
374 static void mlx5_read_env(struct ibv_device *ibdev, struct mlx5_context *ctx) in mlx5_read_env() argument
384 ctx->stall_enable = mlx5_enable_sandy_bridge_fix(ibdev); in mlx5_read_env()
/freebsd-12.1/contrib/ofed/libmlx4/
H A Dmlx4.h306 static inline struct mlx4_device *to_mdev(struct ibv_device *ibdev) in to_mdev() argument
311 return container_of(ibdev, struct mlx4_device, verbs_dev); in to_mdev()
/freebsd-12.1/contrib/ofed/libibcm/
H A Dcm.c151 char ibdev[IBV_SYSFS_NAME_MAX]; in ucm_get_dev_index() local
159 ret = ibv_read_sysfs_file(dev_path, "ibdev", ibdev, sizeof ibdev); in ucm_get_dev_index()
163 if (!strcmp(dev_name, ibdev)) { in ucm_get_dev_index()

12