| /freebsd-13-stable/sys/dev/cxgbe/iw_cxgbe/ |
| HD | provider.c | 52 static int c4iw_modify_port(struct ib_device *ibdev, in c4iw_modify_port() argument 81 static int c4iw_process_mad(struct ib_device *ibdev, int mad_flags, in c4iw_process_mad() argument 119 static struct ib_ucontext *c4iw_alloc_ucontext(struct ib_device *ibdev, in c4iw_alloc_ucontext() argument 123 struct c4iw_dev *rhp = to_c4iw_dev(ibdev); in c4iw_alloc_ucontext() 129 PDBG("%s ibdev %p\n", __func__, ibdev); in c4iw_alloc_ucontext() 245 c4iw_allocate_pd(struct ib_device *ibdev, struct ib_ucontext *context, in c4iw_allocate_pd() argument 252 CTR4(KTR_IW_CXGBE, "%s: ibdev %p, context %p, data %p", __func__, ibdev, in c4iw_allocate_pd() 254 rhp = (struct c4iw_dev *) ibdev; in c4iw_allocate_pd() 279 ibdev, context, udata, pdid, php); in c4iw_allocate_pd() 284 c4iw_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) in c4iw_query_pkey() argument [all …]
|
| /freebsd-13-stable/sys/dev/mlx4/mlx4_ib/ |
| HD | mlx4_ib_main.c | 86 static void do_slave_init(struct mlx4_ib_dev *ibdev, int slave, int do_init); 136 struct mlx4_ib_dev *ibdev = to_mdev(device); in mlx4_ib_get_netdev() local 140 dev = mlx4_get_protocol_dev(ibdev->dev, MLX4_PROT_ETH, port_num); in mlx4_ib_get_netdev() 144 if (mlx4_is_bonded(ibdev->dev)) { in mlx4_ib_get_netdev() 166 struct mlx4_ib_dev *ibdev, in mlx4_ib_update_gids_v1() argument 171 struct mlx4_dev *dev = ibdev->dev; in mlx4_ib_update_gids_v1() 199 struct mlx4_ib_dev *ibdev, in mlx4_ib_update_gids_v1_v2() argument 204 struct mlx4_dev *dev = ibdev->dev; in mlx4_ib_update_gids_v1_v2() 246 struct mlx4_ib_dev *ibdev, in mlx4_ib_update_gids() argument 249 if (ibdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_ROCE_V1_V2) in mlx4_ib_update_gids() [all …]
|
| HD | mlx4_ib_cm.c | 135 static union ib_gid gid_from_req_msg(struct ib_device *ibdev, struct ib_mad *mad) in gid_from_req_msg() argument 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() argument 146 struct rb_root *sl_id_map = &to_mdev(ibdev)->sriov.sl_id_map; 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() argument 194 struct mlx4_ib_sriov *sriov = &to_mdev(ibdev)->sriov; in id_map_find_del() 202 found_ent = id_map_find_by_sl_id(ibdev, ent->slave_id, ent->sl_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() argument 212 struct rb_root *sl_id_map = &to_mdev(ibdev)->sriov.sl_id_map; in sl_id_map_add() 218 ent = id_map_find_by_sl_id(ibdev, slave_id, sl_cm_id); in sl_id_map_add() 243 id_map_alloc(struct ib_device *ibdev, int slave_id, u32 sl_cm_id) in id_map_alloc() argument [all …]
|
| HD | mlx4_ib.h | 61 #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, 782 int mlx4_ib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num, 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); [all …]
|
| HD | mlx4_ib_mad.c | 217 static void smp_snoop(struct ib_device *ibdev, u8 port_num, const struct ib_mad *mad, in smp_snoop() argument 227 struct mlx4_ib_dev *dev = to_mdev(ibdev); in smp_snoop() 412 static int mlx4_ib_demux_sa_handler(struct ib_device *ibdev, int port, int slave, in mlx4_ib_demux_sa_handler() argument 420 ret = mlx4_ib_mcg_demux_handler(ibdev, port, slave, sa_mad); in mlx4_ib_demux_sa_handler() 428 int mlx4_ib_find_real_gid(struct ib_device *ibdev, u8 port, __be64 guid) in mlx4_ib_find_real_gid() argument 430 struct mlx4_ib_dev *dev = to_mdev(ibdev); in mlx4_ib_find_real_gid() 639 static int mlx4_ib_demux_mad(struct ib_device *ibdev, u8 port, in mlx4_ib_demux_mad() argument 643 struct mlx4_ib_dev *dev = to_mdev(ibdev); in mlx4_ib_demux_mad() 649 if (rdma_port_get_link_layer(ibdev, port) == IB_LINK_LAYER_INFINIBAND) in mlx4_ib_demux_mad() 656 mlx4_ib_warn(ibdev, "RoCE grh not present.\n"); in mlx4_ib_demux_mad() [all …]
|
| HD | mlx4_ib_ah.c | 77 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()
|
| /freebsd-13-stable/sys/dev/qlnx/qlnxr/ |
| HD | qlnxr_os.c | 129 ibev.device = &dev->ibdev; in qlnxr_ib_dispatch_event() 149 struct ib_device *ibdev; in qlnxr_register_device() local 155 ibdev = &dev->ibdev; in qlnxr_register_device() 157 strlcpy(ibdev->name, "qlnxr%d", IB_DEVICE_NAME_MAX); in qlnxr_register_device() 159 memset(&ibdev->node_guid, 0, sizeof(ibdev->node_guid)); in qlnxr_register_device() 160 memcpy(&ibdev->node_guid, dev->ha->primary_mac, ETHER_ADDR_LEN); in qlnxr_register_device() 162 memcpy(ibdev->node_desc, QLNXR_NODE_DESC, sizeof(QLNXR_NODE_DESC)); in qlnxr_register_device() 164 ibdev->owner = THIS_MODULE; in qlnxr_register_device() 165 ibdev->uverbs_abi_ver = 7; in qlnxr_register_device() 166 ibdev->local_dma_lkey = 0; in qlnxr_register_device() [all …]
|
| HD | qlnxr_verbs.h | 65 extern int qlnxr_get_port_immutable(struct ib_device *ibdev, u8 port_num, 88 extern struct ib_cq *qlnxr_create_cq(struct ib_device *ibdev, 94 extern struct ib_cq *qlnxr_create_cq(struct ib_device *ibdev, 99 extern struct ib_cq *qlnxr_create_cq(struct ib_device *ibdev, 155 extern int qlnxr_process_mad(struct ib_device *ibdev, 166 extern int qlnxr_process_mad(struct ib_device *ibdev, 228 struct ib_device *ibdev, 235 extern struct ib_ucontext *qlnxr_alloc_ucontext(struct ib_device *ibdev,
|
| HD | qlnxr_def.h | 360 struct ib_device ibdev; member 772 get_qlnxr_dev(struct ib_device *ibdev) in get_qlnxr_dev() argument 774 return container_of(ibdev, struct qlnxr_dev, ibdev); in get_qlnxr_dev()
|
| HD | qlnxr_verbs.c | 102 qlnxr_iw_query_gid(struct ib_device *ibdev, u8 port, int index, in qlnxr_iw_query_gid() argument 108 dev = get_qlnxr_dev(ibdev); in qlnxr_iw_query_gid() 123 qlnxr_query_gid(struct ib_device *ibdev, u8 port, int index, in qlnxr_query_gid() argument 129 dev = get_qlnxr_dev(ibdev); in qlnxr_query_gid() 136 if (!(rdma_protocol_roce(ibdev, port) && in qlnxr_query_gid() 137 ibdev->add_gid && ibdev->del_gid)) { in qlnxr_query_gid() 142 ret = ib_get_cached_gid(ibdev, port, index, sgid, NULL); in qlnxr_query_gid() 381 qlnxr_roce_port_immutable(struct ib_device *ibdev, u8 port_num, in qlnxr_roce_port_immutable() argument 386 dev = get_qlnxr_dev(ibdev); in qlnxr_roce_port_immutable() 482 qlnxr_query_device(struct ib_device *ibdev, struct ib_device_attr *attr) in qlnxr_query_device() argument [all …]
|
| /freebsd-13-stable/sys/dev/mlx5/mlx5_ib/ |
| HD | mlx5_ib_mad.c | 57 static int process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num, in process_mad() argument 91 err = mlx5_MAD_IFC(to_mdev(ibdev), in process_mad() 181 static int process_pma_cmd(struct ib_device *ibdev, u8 port_num, in process_pma_cmd() argument 184 struct mlx5_ib_dev *dev = to_mdev(ibdev); 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() argument 238 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_process_mad() 252 return process_pma_cmd(ibdev, port_num, in_mad, out_mad); in mlx5_ib_process_mad() 254 return process_mad(ibdev, mad_flags, port_num, in_wc, in_grh, 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() argument 301 err = mlx5_MAD_IFC(to_mdev(ibdev), 1, 1, 1, NULL, NULL, in_mad, in mlx5_query_mad_ifc_smp_attr_node_info() [all …]
|
| HD | mlx5_ib_main.c | 102 struct mlx5_ib_dev *ibdev = container_of(this, struct mlx5_ib_dev, in mlx5_netdev_event() local 108 write_lock(&ibdev->roce.netdev_lock); in mlx5_netdev_event() 110 if (mlx5_netdev_match(ndev, ibdev->mdev, "mce")) in mlx5_netdev_event() 111 ibdev->roce.netdev = (event == NETDEV_UNREGISTER) ? in mlx5_netdev_event() 113 write_unlock(&ibdev->roce.netdev_lock); in mlx5_netdev_event() 120 if ((upper == ndev || (!upper && ndev == ibdev->roce.netdev)) in mlx5_netdev_event() 121 && ibdev->ib_active) { in mlx5_netdev_event() 124 ibev.device = &ibdev->ib_dev; in mlx5_netdev_event() 143 struct mlx5_ib_dev *ibdev = to_mdev(device); in mlx5_ib_get_netdev() local 148 read_lock(&ibdev->roce.netdev_lock); in mlx5_ib_get_netdev() [all …]
|
| HD | mlx5_ib.h | 779 static inline struct mlx5_ib_dev *to_mdev(struct ib_device *ibdev) in to_mdev() argument 781 return container_of(ibdev, struct mlx5_ib_dev, ib_dev); in to_mdev() 892 struct ib_cq *mlx5_ib_create_cq(struct ib_device *ibdev, 919 int mlx5_ib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num, 924 struct ib_xrcd *mlx5_ib_alloc_xrcd(struct ib_device *ibdev, 930 int mlx5_query_mad_ifc_smp_attr_node_info(struct ib_device *ibdev, 932 int mlx5_query_mad_ifc_system_image_guid(struct ib_device *ibdev, 934 int mlx5_query_mad_ifc_max_pkeys(struct ib_device *ibdev, 936 int mlx5_query_mad_ifc_vendor_id(struct ib_device *ibdev, 940 int mlx5_query_mad_ifc_pkey(struct ib_device *ibdev, u8 port, u16 index, [all …]
|
| /freebsd-13-stable/sys/dev/irdma/ |
| HD | fbsd_kcompat.h | 52 #define set_ibdev_dma_device(ibdev, dev) \ argument 53 ibdev.dma_device = (dev) 99 static inline int irdma_iw_query_pkey(struct ib_device *ibdev, u8 port, u16 index, in irdma_iw_query_pkey() argument 140 struct ib_cq *irdma_create_cq(struct ib_device *ibdev, 159 enum rdma_link_layer irdma_get_link_layer(struct ib_device *ibdev, 161 int irdma_roce_port_immutable(struct ib_device *ibdev, u8 port_num, 163 int irdma_iw_port_immutable(struct ib_device *ibdev, u8 port_num, 165 int irdma_query_gid(struct ib_device *ibdev, u8 port, int index, 167 int irdma_query_gid_roce(struct ib_device *ibdev, u8 port, int index, 169 int irdma_query_pkey(struct ib_device *ibdev, u8 port, u16 index, [all …]
|
| HD | irdma_kcompat.c | 173 irdma_alloc_ucontext(struct ib_device *ibdev, struct ib_udata *udata) in irdma_alloc_ucontext() argument 175 struct irdma_device *iwdev = to_iwdev(ibdev); in irdma_alloc_ucontext() 268 irdma_dev_err(&iwdev->ibdev, in irdma_alloc_ucontext() 299 irdma_alloc_pd(struct ib_device *ibdev, struct ib_ucontext *context, struct ib_udata *udata) in irdma_alloc_pd() argument 302 struct irdma_device *iwdev = to_iwdev(ibdev); in irdma_alloc_pd() 506 irdma_dev_err(&rf->iwdev->ibdev, "CQP create AH error ret = %d opt_ret_val = %d", in irdma_create_ah_wait() 594 err = ib_get_cached_gid(&iwdev->ibdev, attr->port_num, in irdma_create_ah() 789 if (!rdma_protocol_roce(&iwdev->ibdev, 1)) in irdma_create_qp() 811 if (rdma_protocol_roce(&iwdev->ibdev, 1)) { in irdma_create_qp() 838 if (rdma_protocol_roce(&iwdev->ibdev, 1)) in irdma_create_qp() [all …]
|
| HD | irdma_verbs.c | 44 irdma_query_device(struct ib_device *ibdev, in irdma_query_device() argument 48 struct irdma_device *iwdev = to_iwdev(ibdev); in irdma_query_device() 79 if (rdma_protocol_roce(ibdev, 1)) { in irdma_query_device() 713 if (rdma_protocol_roce(&iwdev->ibdev, 1)) { in irdma_validate_qp_attrs() 830 irdma_dev_warn(&iwqp->iwdev->ibdev, in irdma_wait_for_suspend() 993 irdma_dev_err(&iwdev->ibdev, in irdma_modify_qp_roce() 1006 irdma_dev_err(&iwdev->ibdev, in irdma_modify_qp_roce() 1036 irdma_dev_warn(&iwdev->ibdev, "modify_qp invalid for qp_id=%d, old_state=0x%x, new_state=0x%x\n", in irdma_modify_qp_roce() 3314 irdma_get_netdev(struct ib_device *ibdev, u8 port_num) in irdma_get_netdev() argument 3316 struct irdma_device *iwdev = to_iwdev(ibdev); in irdma_get_netdev() [all …]
|
| HD | osdep.h | 130 #define irdma_dev_err(ibdev, fmt, ...) \ argument 131 pr_err("%s:%s:%d ERR "fmt, (ibdev)->name, __func__, __LINE__, ##__VA_ARGS__) 132 #define irdma_dev_warn(ibdev, fmt, ...) \ argument 133 pr_warn("%s:%s:%d WARN "fmt, (ibdev)->name, __func__, __LINE__, ##__VA_ARGS__)
|
| HD | irdma_main.h | 365 struct ib_device ibdev; member 408 static inline struct irdma_device *to_iwdev(struct ib_device *ibdev) in to_iwdev() argument 410 return container_of(ibdev, struct irdma_device, ibdev); in to_iwdev() 514 struct ib_qp *irdma_get_qp(struct ib_device *ibdev, int qpn);
|
| /freebsd-13-stable/sys/dev/mthca/ |
| HD | mthca_provider.c | 59 static int mthca_query_device(struct ib_device *ibdev, struct ib_device_attr *props, in mthca_query_device() argument 65 struct mthca_dev *mdev = to_mdev(ibdev); in mthca_query_device() 136 static int mthca_query_port(struct ib_device *ibdev, in mthca_query_port() argument 154 err = mthca_MAD_IFC(to_mdev(ibdev), 1, 1, in mthca_query_port() 166 props->gid_tbl_len = to_mdev(ibdev)->limits.gid_table_len; in mthca_query_port() 168 props->pkey_tbl_len = to_mdev(ibdev)->limits.pkey_table_len; in mthca_query_port() 185 static int mthca_modify_device(struct ib_device *ibdev, in mthca_modify_device() argument 193 if (mutex_lock_interruptible(&to_mdev(ibdev)->cap_mask_mutex)) in mthca_modify_device() 195 memcpy(ibdev->node_desc, props->node_desc, in mthca_modify_device() 197 mutex_unlock(&to_mdev(ibdev)->cap_mask_mutex); in mthca_modify_device() [all …]
|
| HD | mthca_mad.c | 105 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() 267 mthca_err(to_mdev(ibdev), "MAD_IFC returned %d\n", err); in mthca_process_mad() [all …]
|
| /freebsd-13-stable/contrib/ofed/libcxgb4/ |
| HD | dev.c | 106 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 …]
|
| /freebsd-13-stable/sys/dev/iser/ |
| HD | iser_memory.c | 60 iser_data_buf_aligned_len(struct iser_data_buf *data, struct ib_device *ibdev) in iser_data_buf_aligned_len() argument 70 start_addr = ib_sg_dma_address(ibdev, sgl); in iser_data_buf_aligned_len() 80 end_addr = start_addr + ib_sg_dma_len(ibdev, sg); in iser_data_buf_aligned_len() 81 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-13-stable/sys/ofed/include/rdma/ |
| HD | rdma_vt.h | 340 struct ib_device ibdev; /* Keep this first. Nothing above here */ member 412 static inline struct rvt_dev_info *ib_to_rvt(struct ib_device *ibdev) in ib_to_rvt() argument 414 return container_of(ibdev, struct rvt_dev_info, ibdev); in ib_to_rvt() 489 int rvt_check_ah(struct ib_device *ibdev, struct ib_ah_attr *ah_attr);
|
| /freebsd-13-stable/contrib/ofed/libirdma/ |
| HD | osdep.h | 125 #define irdma_dev_err(ibdev, fmt, ...) \ argument 126 pr_err("%s:%s:%d ERR "fmt, (ibdev)->name, __func__, __LINE__, ##__VA_ARGS__) 127 #define irdma_dev_warn(ibdev, fmt, ...) \ argument 128 pr_warn("%s:%s:%d WARN "fmt, (ibdev)->name, __func__, __LINE__, ##__VA_ARGS__)
|
| /freebsd-13-stable/sys/ofed/drivers/infiniband/core/ |
| HD | ib_sysfs.c | 60 struct ib_device *ibdev; member 166 ret = ib_query_port(p->ibdev, p->port_num, &attr); in state_show() 181 ret = ib_query_port(p->ibdev, p->port_num, &attr); in lid_show() 195 ret = ib_query_port(p->ibdev, p->port_num, &attr); in lid_mask_count_show() 208 ret = ib_query_port(p->ibdev, p->port_num, &attr); in sm_lid_show() 221 ret = ib_query_port(p->ibdev, p->port_num, &attr); in sm_sl_show() 234 ret = ib_query_port(p->ibdev, p->port_num, &attr); in cap_mask_show() 249 ret = ib_query_port(p->ibdev, p->port_num, &attr); in rate_show() 323 ret = ib_query_port(p->ibdev, p->port_num, &attr); in phys_state_show() 334 switch (rdma_port_get_link_layer(p->ibdev, p->port_num)) { in link_layer_show() [all …]
|