• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/infiniband/hw/cxgb3/

Lines Matching refs:ibdev

64 static int iwch_modify_port(struct ib_device *ibdev,
92 static int iwch_process_mad(struct ib_device *ibdev,
116 static struct ib_ucontext *iwch_alloc_ucontext(struct ib_device *ibdev,
120 struct iwch_dev *rhp = to_iwch_dev(ibdev);
122 PDBG("%s ibdev %p\n", __func__, ibdev);
148 static struct ib_cq *iwch_create_cq(struct ib_device *ibdev, int entries, int vector,
158 PDBG("%s ib_dev %p entries %d\n", __func__, ibdev, entries);
159 rhp = to_iwch_dev(ibdev);
407 static struct ib_pd *iwch_allocate_pd(struct ib_device *ibdev,
415 PDBG("%s ibdev %p\n", __func__, ibdev);
416 rhp = (struct iwch_dev *) ibdev;
1094 static int iwch_query_pkey(struct ib_device *ibdev,
1097 PDBG("%s ibdev %p\n", __func__, ibdev);
1102 static int iwch_query_gid(struct ib_device *ibdev, u8 port,
1107 PDBG("%s ibdev %p, port %d, index %d, gid %p\n",
1108 __func__, ibdev, port, index, gid);
1109 dev = to_iwch_dev(ibdev);
1137 static int iwch_query_device(struct ib_device *ibdev,
1142 PDBG("%s ibdev %p\n", __func__, ibdev);
1144 dev = to_iwch_dev(ibdev);
1170 static int iwch_query_port(struct ib_device *ibdev,
1177 PDBG("%s ibdev %p\n", __func__, ibdev);
1179 dev = to_iwch_dev(ibdev);
1228 ibdev.dev);
1236 ibdev.dev);
1249 ibdev.dev);
1262 ibdev.dev);
1268 static int iwch_get_mib(struct ib_device *ibdev,
1275 PDBG("%s ibdev %p\n", __func__, ibdev);
1276 dev = to_iwch_dev(ibdev);
1341 strlcpy(dev->ibdev.name, "cxgb3_%d", IB_DEVICE_NAME_MAX);
1342 memset(&dev->ibdev.node_guid, 0, sizeof(dev->ibdev.node_guid));
1343 memcpy(&dev->ibdev.node_guid, dev->rdev.t3cdev_p->lldev->dev_addr, 6);
1344 dev->ibdev.owner = THIS_MODULE;
1350 dev->ibdev.local_dma_lkey = 0;
1352 dev->ibdev.uverbs_cmd_mask =
1370 dev->ibdev.node_type = RDMA_NODE_RNIC;
1371 memcpy(dev->ibdev.node_desc, IWCH_NODE_DESC, sizeof(IWCH_NODE_DESC));
1372 dev->ibdev.phys_port_cnt = dev->rdev.port_info.nports;
1373 dev->ibdev.num_comp_vectors = 1;
1374 dev->ibdev.dma_device = &(dev->rdev.rnic_info.pdev->dev);
1375 dev->ibdev.query_device = iwch_query_device;
1376 dev->ibdev.query_port = iwch_query_port;
1377 dev->ibdev.modify_port = iwch_modify_port;
1378 dev->ibdev.query_pkey = iwch_query_pkey;
1379 dev->ibdev.query_gid = iwch_query_gid;
1380 dev->ibdev.alloc_ucontext = iwch_alloc_ucontext;
1381 dev->ibdev.dealloc_ucontext = iwch_dealloc_ucontext;
1382 dev->ibdev.mmap = iwch_mmap;
1383 dev->ibdev.alloc_pd = iwch_allocate_pd;
1384 dev->ibdev.dealloc_pd = iwch_deallocate_pd;
1385 dev->ibdev.create_ah = iwch_ah_create;
1386 dev->ibdev.destroy_ah = iwch_ah_destroy;
1387 dev->ibdev.create_qp = iwch_create_qp;
1388 dev->ibdev.modify_qp = iwch_ib_modify_qp;
1389 dev->ibdev.destroy_qp = iwch_destroy_qp;
1390 dev->ibdev.create_cq = iwch_create_cq;
1391 dev->ibdev.destroy_cq = iwch_destroy_cq;
1392 dev->ibdev.resize_cq = iwch_resize_cq;
1393 dev->ibdev.poll_cq = iwch_poll_cq;
1394 dev->ibdev.get_dma_mr = iwch_get_dma_mr;
1395 dev->ibdev.reg_phys_mr = iwch_register_phys_mem;
1396 dev->ibdev.rereg_phys_mr = iwch_reregister_phys_mem;
1397 dev->ibdev.reg_user_mr = iwch_reg_user_mr;
1398 dev->ibdev.dereg_mr = iwch_dereg_mr;
1399 dev->ibdev.alloc_mw = iwch_alloc_mw;
1400 dev->ibdev.bind_mw = iwch_bind_mw;
1401 dev->ibdev.dealloc_mw = iwch_dealloc_mw;
1402 dev->ibdev.alloc_fast_reg_mr = iwch_alloc_fast_reg_mr;
1403 dev->ibdev.alloc_fast_reg_page_list = iwch_alloc_fastreg_pbl;
1404 dev->ibdev.free_fast_reg_page_list = iwch_free_fastreg_pbl;
1405 dev->ibdev.attach_mcast = iwch_multicast_attach;
1406 dev->ibdev.detach_mcast = iwch_multicast_detach;
1407 dev->ibdev.process_mad = iwch_process_mad;
1408 dev->ibdev.req_notify_cq = iwch_arm_cq;
1409 dev->ibdev.post_send = iwch_post_send;
1410 dev->ibdev.post_recv = iwch_post_receive;
1411 dev->ibdev.get_protocol_stats = iwch_get_mib;
1413 dev->ibdev.iwcm = kmalloc(sizeof(struct iw_cm_verbs), GFP_KERNEL);
1414 if (!dev->ibdev.iwcm)
1417 dev->ibdev.iwcm->connect = iwch_connect;
1418 dev->ibdev.iwcm->accept = iwch_accept_cr;
1419 dev->ibdev.iwcm->reject = iwch_reject_cr;
1420 dev->ibdev.iwcm->create_listen = iwch_create_listen;
1421 dev->ibdev.iwcm->destroy_listen = iwch_destroy_listen;
1422 dev->ibdev.iwcm->add_ref = iwch_qp_add_ref;
1423 dev->ibdev.iwcm->rem_ref = iwch_qp_rem_ref;
1424 dev->ibdev.iwcm->get_qp = iwch_get_qp;
1426 ret = ib_register_device(&dev->ibdev, NULL);
1431 ret = device_create_file(&dev->ibdev.dev,
1439 ib_unregister_device(&dev->ibdev);
1441 kfree(dev->ibdev.iwcm);
1451 device_remove_file(&dev->ibdev.dev,
1453 ib_unregister_device(&dev->ibdev);
1454 kfree(dev->ibdev.iwcm);