/linux-3.4.99/drivers/infiniband/hw/cxgb4/ |
D | provider.c | 82 static int c4iw_process_mad(struct ib_device *ibdev, int mad_flags, in c4iw_process_mad() argument 104 static struct ib_ucontext *c4iw_alloc_ucontext(struct ib_device *ibdev, in c4iw_alloc_ucontext() argument 108 struct c4iw_dev *rhp = to_c4iw_dev(ibdev); in c4iw_alloc_ucontext() 110 PDBG("%s ibdev %p\n", __func__, ibdev); in c4iw_alloc_ucontext() 197 static struct ib_pd *c4iw_allocate_pd(struct ib_device *ibdev, in c4iw_allocate_pd() argument 205 PDBG("%s ibdev %p\n", __func__, ibdev); in c4iw_allocate_pd() 206 rhp = (struct c4iw_dev *) ibdev; in c4iw_allocate_pd() 229 static int c4iw_query_pkey(struct ib_device *ibdev, u8 port, u16 index, in c4iw_query_pkey() argument 232 PDBG("%s ibdev %p\n", __func__, ibdev); in c4iw_query_pkey() 237 static int c4iw_query_gid(struct ib_device *ibdev, u8 port, int index, in c4iw_query_gid() argument [all …]
|
/linux-3.4.99/drivers/infiniband/hw/mlx4/ |
D | main.c | 85 static int mlx4_ib_query_device(struct ib_device *ibdev, in mlx4_ib_query_device() argument 88 struct mlx4_ib_dev *dev = to_mdev(ibdev); in mlx4_ib_query_device() 101 err = mlx4_MAD_IFC(to_mdev(ibdev), 1, 1, 1, NULL, NULL, in_mad, out_mad); in mlx4_ib_query_device() 184 static int ib_link_query_port(struct ib_device *ibdev, u8 port, in ib_link_query_port() argument 201 err = mlx4_MAD_IFC(to_mdev(ibdev), 1, 1, port, NULL, NULL, in ib_link_query_port() 214 props->gid_tbl_len = to_mdev(ibdev)->dev->caps.gid_table_len[port]; in ib_link_query_port() 215 props->max_msg_sz = to_mdev(ibdev)->dev->caps.max_msg_sz; in ib_link_query_port() 216 props->pkey_tbl_len = to_mdev(ibdev)->dev->caps.pkey_table_len[port]; in ib_link_query_port() 247 err = mlx4_MAD_IFC(to_mdev(ibdev), 1, 1, port, in ib_link_query_port() 272 static int eth_link_query_port(struct ib_device *ibdev, u8 port, in eth_link_query_port() argument [all …]
|
D | mad.c | 153 static void smp_snoop(struct ib_device *ibdev, u8 port_num, struct ib_mad *mad, in smp_snoop() argument 166 update_sm_ah(to_mdev(ibdev), port_num, in smp_snoop() 170 event.device = ibdev; in smp_snoop() 185 event.device = ibdev; in smp_snoop() 237 static int ib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num, in ib_process_mad() argument 248 forward_trap(to_mdev(ibdev), port_num, in_mad); in ib_process_mad() 278 !ib_query_port(ibdev, port_num, &pattr)) in ib_process_mad() 281 err = mlx4_MAD_IFC(to_mdev(ibdev), in ib_process_mad() 289 smp_snoop(ibdev, port_num, in_mad, prev_lid); in ib_process_mad() 290 node_desc_override(ibdev, out_mad); in ib_process_mad() [all …]
|
D | mlx4_ib.h | 207 static inline struct mlx4_ib_dev *to_mdev(struct ib_device *ibdev) in to_mdev() argument 209 return container_of(ibdev, struct mlx4_ib_dev, ib_dev); in to_mdev() 289 struct ib_fast_reg_page_list *mlx4_ib_alloc_fast_reg_page_list(struct ib_device *ibdev, 295 struct ib_cq *mlx4_ib_create_cq(struct ib_device *ibdev, int entries, int vector, 335 int mlx4_ib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,
|
D | ah.c | 93 struct mlx4_ib_dev *ibdev = to_mdev(pd->device); in create_iboe_ah() local 94 struct mlx4_dev *dev = ibdev->dev; in create_iboe_ah() 101 err = mlx4_ib_resolve_grh(ibdev, ah_attr, mac, &is_mcast, ah_attr->port_num); in create_iboe_ah()
|
/linux-3.4.99/drivers/infiniband/hw/amso1100/ |
D | c2_provider.c | 66 static int c2_query_device(struct ib_device *ibdev, in c2_query_device() argument 69 struct c2_dev *c2dev = to_c2dev(ibdev); in c2_query_device() 77 static int c2_query_port(struct ib_device *ibdev, in c2_query_port() argument 102 static int c2_query_pkey(struct ib_device *ibdev, in c2_query_pkey() argument 110 static int c2_query_gid(struct ib_device *ibdev, u8 port, in c2_query_gid() argument 113 struct c2_dev *c2dev = to_c2dev(ibdev); in c2_query_gid() 125 static struct ib_ucontext *c2_alloc_ucontext(struct ib_device *ibdev, in c2_alloc_ucontext() argument 151 static struct ib_pd *c2_alloc_pd(struct ib_device *ibdev, in c2_alloc_pd() argument 164 err = c2_pd_alloc(to_c2dev(ibdev), !context, pd); in c2_alloc_pd() 172 c2_pd_free(to_c2dev(ibdev), pd); in c2_alloc_pd() [all …]
|
D | c2.h | 288 struct ib_device ibdev; member 430 static inline struct c2_dev *to_c2dev(struct ib_device *ibdev) in to_c2dev() argument 432 return container_of(ibdev, struct c2_dev, ibdev); in to_c2dev()
|
/linux-3.4.99/drivers/infiniband/hw/cxgb3/ |
D | iwch_provider.c | 85 static int iwch_process_mad(struct ib_device *ibdev, in iwch_process_mad() argument 109 static struct ib_ucontext *iwch_alloc_ucontext(struct ib_device *ibdev, in iwch_alloc_ucontext() argument 113 struct iwch_dev *rhp = to_iwch_dev(ibdev); in iwch_alloc_ucontext() 115 PDBG("%s ibdev %p\n", __func__, ibdev); in iwch_alloc_ucontext() 141 static struct ib_cq *iwch_create_cq(struct ib_device *ibdev, int entries, int vector, in iwch_create_cq() argument 153 PDBG("%s ib_dev %p entries %d\n", __func__, ibdev, entries); in iwch_create_cq() 154 rhp = to_iwch_dev(ibdev); in iwch_create_cq() 414 static struct ib_pd *iwch_allocate_pd(struct ib_device *ibdev, in iwch_allocate_pd() argument 422 PDBG("%s ibdev %p\n", __func__, ibdev); in iwch_allocate_pd() 423 rhp = (struct iwch_dev *) ibdev; in iwch_allocate_pd() [all …]
|
D | iwch.h | 105 struct ib_device ibdev; member 117 static inline struct iwch_dev *to_iwch_dev(struct ib_device *ibdev) in to_iwch_dev() argument 119 return container_of(ibdev, struct iwch_dev, ibdev); in to_iwch_dev()
|
D | iwch.c | 164 ib_dealloc_device(&rnicp->ibdev); in open_rnic_dev() 198 ib_dealloc_device(&dev->ibdev); in close_rnic_dev() 260 event.device = &rnicp->ibdev; in iwch_event_handler()
|
/linux-3.4.99/drivers/infiniband/hw/ipath/ |
D | ipath_mad.c | 59 struct ib_device *ibdev) in recv_subn_get_nodedescription() argument 64 memcpy(smp->data, ibdev->node_desc, sizeof(smp->data)); in recv_subn_get_nodedescription() 85 struct ib_device *ibdev, u8 port) in recv_subn_get_nodeinfo() argument 88 struct ipath_devdata *dd = to_idev(ibdev)->dd; in recv_subn_get_nodeinfo() 103 nip->num_ports = ibdev->phys_port_cnt; in recv_subn_get_nodeinfo() 105 nip->sys_guid = to_idev(ibdev)->sys_image_guid; in recv_subn_get_nodeinfo() 123 struct ib_device *ibdev) in recv_subn_get_guidinfo() argument 137 __be64 g = to_idev(ibdev)->dd->ipath_guid; in recv_subn_get_guidinfo() 236 struct ib_device *ibdev, u8 port) in recv_subn_get_portinfo() argument 246 if (be32_to_cpu(smp->attr_mod) > ibdev->phys_port_cnt) { in recv_subn_get_portinfo() [all …]
|
D | ipath_verbs.c | 1498 static int ipath_query_device(struct ib_device *ibdev, in ipath_query_device() argument 1501 struct ipath_ibdev *dev = to_idev(ibdev); in ipath_query_device() 1580 static int ipath_query_port(struct ib_device *ibdev, in ipath_query_port() argument 1583 struct ipath_ibdev *dev = to_idev(ibdev); in ipath_query_port() 1666 static int ipath_modify_port(struct ib_device *ibdev, in ipath_modify_port() argument 1670 struct ipath_ibdev *dev = to_idev(ibdev); in ipath_modify_port() 1681 static int ipath_query_gid(struct ib_device *ibdev, u8 port, in ipath_query_gid() argument 1684 struct ipath_ibdev *dev = to_idev(ibdev); in ipath_query_gid() 1700 static struct ib_pd *ipath_alloc_pd(struct ib_device *ibdev, in ipath_alloc_pd() argument 1704 struct ipath_ibdev *dev = to_idev(ibdev); in ipath_alloc_pd() [all …]
|
/linux-3.4.99/drivers/infiniband/hw/qib/ |
D | qib_mad.c | 258 struct ib_device *ibdev) in subn_get_nodedescription() argument 263 memcpy(smp->data, ibdev->node_desc, sizeof(smp->data)); in subn_get_nodedescription() 268 static int subn_get_nodeinfo(struct ib_smp *smp, struct ib_device *ibdev, in subn_get_nodeinfo() argument 272 struct qib_devdata *dd = dd_from_ibdev(ibdev); in subn_get_nodeinfo() 286 nip->num_ports = ibdev->phys_port_cnt; in subn_get_nodeinfo() 304 static int subn_get_guidinfo(struct ib_smp *smp, struct ib_device *ibdev, in subn_get_guidinfo() argument 307 struct qib_devdata *dd = dd_from_ibdev(ibdev); in subn_get_guidinfo() 429 static int subn_get_portinfo(struct ib_smp *smp, struct ib_device *ibdev, in subn_get_portinfo() argument 444 if (port_num > ibdev->phys_port_cnt) { in subn_get_portinfo() 450 ibp = to_iport(ibdev, port_num); in subn_get_portinfo() [all …]
|
D | qib_verbs.c | 1541 static int qib_query_device(struct ib_device *ibdev, in qib_query_device() argument 1544 struct qib_devdata *dd = dd_from_ibdev(ibdev); in qib_query_device() 1545 struct qib_ibdev *dev = to_idev(ibdev); in qib_query_device() 1587 static int qib_query_port(struct ib_device *ibdev, u8 port, in qib_query_port() argument 1590 struct qib_devdata *dd = dd_from_ibdev(ibdev); in qib_query_port() 1591 struct qib_ibport *ibp = to_iport(ibdev, port); in qib_query_port() 1680 static int qib_modify_port(struct ib_device *ibdev, u8 port, in qib_modify_port() argument 1683 struct qib_ibport *ibp = to_iport(ibdev, port); in qib_modify_port() 1697 static int qib_query_gid(struct ib_device *ibdev, u8 port, in qib_query_gid() argument 1700 struct qib_devdata *dd = dd_from_ibdev(ibdev); in qib_query_gid() [all …]
|
D | qib_sysfs.c | 447 container_of(device, struct qib_ibdev, ibdev.dev); in show_rev() 456 container_of(device, struct qib_ibdev, ibdev.dev); in show_hca() 478 container_of(device, struct qib_ibdev, ibdev.dev); in show_boardversion() 490 container_of(device, struct qib_ibdev, ibdev.dev); in show_localbus_info() 502 container_of(device, struct qib_ibdev, ibdev.dev); in show_nctxts() 514 container_of(device, struct qib_ibdev, ibdev.dev); in show_nfreectxts() 525 container_of(device, struct qib_ibdev, ibdev.dev); in show_serial() 539 container_of(device, struct qib_ibdev, ibdev.dev); in store_chip_reset() 557 container_of(device, struct qib_ibdev, ibdev.dev); in show_logged_errs() 582 container_of(device, struct qib_ibdev, ibdev.dev); in show_tempsense() [all …]
|
D | qib_verbs.h | 708 struct ib_device ibdev; member 795 static inline struct qib_ibdev *to_idev(struct ib_device *ibdev) in to_idev() argument 797 return container_of(ibdev, struct qib_ibdev, ibdev); in to_idev() 839 int qib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num, 915 int qib_check_ah(struct ib_device *ibdev, struct ib_ah_attr *ah_attr); 957 struct ib_cq *qib_create_cq(struct ib_device *ibdev, int entries, 982 struct ib_device *ibdev, int page_list_len);
|
/linux-3.4.99/drivers/infiniband/ulp/iser/ |
D | iser_memory.c | 173 struct ib_device *ibdev) in iser_sg_to_page_vec() argument 187 start_addr = ib_sg_dma_address(ibdev, sg); in iser_sg_to_page_vec() 190 dma_len = ib_sg_dma_len(ibdev, sg); in iser_sg_to_page_vec() 224 struct ib_device *ibdev) in iser_data_buf_aligned_len() argument 234 start_addr = ib_sg_dma_address(ibdev, sgl); in iser_data_buf_aligned_len() 244 end_addr = start_addr + ib_sg_dma_len(ibdev, sg); in iser_data_buf_aligned_len() 245 start_addr = ib_sg_dma_address(ibdev, next_sg); in iser_data_buf_aligned_len() 263 struct ib_device *ibdev) in iser_data_buf_dump() argument 275 i, (unsigned long)ib_sg_dma_address(ibdev, sg), in iser_data_buf_dump() 277 sg->length, ib_sg_dma_len(ibdev, sg)); in iser_data_buf_dump() [all …]
|
/linux-3.4.99/drivers/infiniband/hw/ehca/ |
D | ehca_sqp.c | 142 static int ehca_process_perf(struct ib_device *ibdev, u8 port_num, in ehca_process_perf() argument 153 container_of(ibdev, struct ehca_shca, ib_device); in ehca_process_perf() 156 ehca_dbg(ibdev, "method=%x", in_perf->mad_hdr.method); in ehca_process_perf() 161 ehca_warn(ibdev, "Unsupported class_version=%x", in ehca_process_perf() 185 ehca_query_pkey(ibdev, port_num, in_wc->pkey_index, in ehca_process_perf() 198 ehca_query_gid(ibdev, port_num, 0, in ehca_process_perf() 201 ehca_dbg(ibdev, "ehca_pma_lid=%x ehca_pma_qp=%x", in ehca_process_perf() 219 int ehca_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num, in ehca_process_mad() argument 225 if (!port_num || port_num > ibdev->phys_port_cnt || !in_wc) in ehca_process_mad() 232 ehca_dbg(ibdev, "port_num=%x src_qp=%x", port_num, in_wc->src_qp); in ehca_process_mad() [all …]
|
D | ehca_hca.c | 53 int ehca_query_device(struct ib_device *ibdev, struct ib_device_attr *props) in ehca_query_device() argument 56 struct ehca_shca *shca = container_of(ibdev, struct ehca_shca, in ehca_query_device() 182 int ehca_query_port(struct ib_device *ibdev, in ehca_query_port() argument 187 struct ehca_shca *shca = container_of(ibdev, struct ehca_shca, in ehca_query_port() 281 int ehca_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) in ehca_query_pkey() argument 288 shca = container_of(ibdev, struct ehca_shca, ib_device); in ehca_query_pkey() 315 int ehca_query_gid(struct ib_device *ibdev, u8 port, in ehca_query_gid() argument 320 struct ehca_shca *shca = container_of(ibdev, struct ehca_shca, in ehca_query_gid() 356 int ehca_modify_port(struct ib_device *ibdev, in ehca_modify_port() argument 366 shca = container_of(ibdev, struct ehca_shca, ib_device); in ehca_modify_port()
|
D | ehca_iverbs.h | 47 int ehca_query_device(struct ib_device *ibdev, struct ib_device_attr *props); 49 int ehca_query_port(struct ib_device *ibdev, u8 port, 55 int ehca_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 * pkey); 57 int ehca_query_gid(struct ib_device *ibdev, u8 port, int index, 60 int ehca_modify_port(struct ib_device *ibdev, u8 port, int port_modify_mask, 190 int ehca_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,
|
/linux-3.4.99/drivers/infiniband/hw/mthca/ |
D | 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() 195 int mthca_process_mad(struct ib_device *ibdev, in mthca_process_mad() argument 211 forward_trap(to_mdev(ibdev), port_num, in_mad); in mthca_process_mad() 248 !ib_query_port(ibdev, port_num, &pattr)) in mthca_process_mad() 251 err = mthca_MAD_IFC(to_mdev(ibdev), in mthca_process_mad() 258 mthca_err(to_mdev(ibdev), "MAD_IFC returned %d\n", err); in mthca_process_mad() [all …]
|
D | mthca_provider.c | 60 static int mthca_query_device(struct ib_device *ibdev, in mthca_query_device() argument 66 struct mthca_dev *mdev = to_mdev(ibdev); in mthca_query_device() 133 static int mthca_query_port(struct ib_device *ibdev, in mthca_query_port() argument 151 err = mthca_MAD_IFC(to_mdev(ibdev), 1, 1, in mthca_query_port() 163 props->gid_tbl_len = to_mdev(ibdev)->limits.gid_table_len; in mthca_query_port() 165 props->pkey_tbl_len = to_mdev(ibdev)->limits.pkey_table_len; in mthca_query_port() 182 static int mthca_modify_device(struct ib_device *ibdev, in mthca_modify_device() argument 190 if (mutex_lock_interruptible(&to_mdev(ibdev)->cap_mask_mutex)) in mthca_modify_device() 192 memcpy(ibdev->node_desc, props->node_desc, 64); in mthca_modify_device() 193 mutex_unlock(&to_mdev(ibdev)->cap_mask_mutex); in mthca_modify_device() [all …]
|
/linux-3.4.99/drivers/infiniband/hw/nes/ |
D | nes_verbs.c | 443 struct ib_device *ibdev, in nes_alloc_fast_reg_page_list() argument 446 struct nes_vnic *nesvnic = to_nesvnic(ibdev); in nes_alloc_fast_reg_page_list() 512 static int nes_query_device(struct ib_device *ibdev, struct ib_device_attr *props) in nes_query_device() argument 514 struct nes_vnic *nesvnic = to_nesvnic(ibdev); in nes_query_device() 563 static int nes_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *props) in nes_query_port() argument 565 struct nes_vnic *nesvnic = to_nesvnic(ibdev); in nes_query_port() 610 static int nes_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) in nes_query_pkey() argument 620 static int nes_query_gid(struct ib_device *ibdev, u8 port, in nes_query_gid() argument 623 struct nes_vnic *nesvnic = to_nesvnic(ibdev); in nes_query_gid() 636 static struct ib_ucontext *nes_alloc_ucontext(struct ib_device *ibdev, in nes_alloc_ucontext() argument [all …]
|
/linux-3.4.99/drivers/infiniband/core/ |
D | sysfs.c | 45 struct ib_device *ibdev; member 102 ret = ib_query_port(p->ibdev, p->port_num, &attr); in state_show() 117 ret = ib_query_port(p->ibdev, p->port_num, &attr); in lid_show() 131 ret = ib_query_port(p->ibdev, p->port_num, &attr); in lid_mask_count_show() 144 ret = ib_query_port(p->ibdev, p->port_num, &attr); in sm_lid_show() 157 ret = ib_query_port(p->ibdev, p->port_num, &attr); in sm_sl_show() 170 ret = ib_query_port(p->ibdev, p->port_num, &attr); in cap_mask_show() 185 ret = ib_query_port(p->ibdev, p->port_num, &attr); in rate_show() 232 ret = ib_query_port(p->ibdev, p->port_num, &attr); in phys_state_show() 251 switch (rdma_port_get_link_layer(p->ibdev, p->port_num)) { in link_layer_show() [all …]
|
/linux-3.4.99/drivers/infiniband/ulp/srp/ |
D | ib_srp.c | 461 struct ib_device *ibdev = target->srp_host->srp_dev->dev; in srp_free_req_data() local 469 ib_dma_unmap_single(ibdev, req->indirect_dma_addr, in srp_free_req_data() 573 struct ib_device *ibdev = target->srp_host->srp_dev->dev; in srp_unmap_data() local 585 ib_dma_unmap_sg(ibdev, scsi_sglist(scmnd), scsi_sg_count(scmnd), in srp_unmap_data() 782 struct ib_device *ibdev = dev->dev; in srp_map_sg_entry() local 783 dma_addr_t dma_addr = ib_sg_dma_address(ibdev, sg); in srp_map_sg_entry() 784 unsigned int dma_len = ib_sg_dma_len(ibdev, sg); in srp_map_sg_entry() 863 struct ib_device *ibdev; in srp_map_data() local 884 ibdev = dev->dev; in srp_map_data() 886 count = ib_dma_map_sg(ibdev, scat, nents, scmnd->sc_data_direction); in srp_map_data() [all …]
|