Lines Matching defs:device

135 static struct net_device *mlx4_ib_get_netdev(struct ib_device *device, u8 port_num)
137 struct mlx4_ib_dev *ibdev = to_mdev(device);
256 static int mlx4_ib_add_gid(struct ib_device *device,
263 struct mlx4_ib_dev *ibdev = to_mdev(device);
272 if (!rdma_cap_roce_gid_table(device, port_num))
335 static int mlx4_ib_del_gid(struct ib_device *device,
341 struct mlx4_ib_dev *ibdev = to_mdev(device);
348 if (!rdma_cap_roce_gid_table(device, port_num))
529 props->vendor_part_id = dev->dev->persist->pdev->device;
588 mlx4_ib_port_link_layer(struct ib_device *device, u8 port_num)
590 struct mlx4_dev *dev = to_mdev(device)->dev;
1099 mlx4_uar_free(to_mdev(ibcontext->device)->dev, &context->uar);
1155 struct mlx4_ib_dev *dev = to_mdev(context->device);
1250 mlx4_pd_free(to_mdev(pd->device)->dev, to_mpd(pd)->pdn);
1303 mlx4_xrcd_free(to_mdev(xrcd->device)->dev, to_mxrcd(xrcd)->xrcdn);
1312 struct mlx4_ib_dev *mdev = to_mdev(ibqp->device);
1479 u8 link_layer = rdma_port_get_link_layer(qp->device, flow_attr->port);
1573 struct mlx4_ib_dev *mdev = to_mdev(qp->device);
1665 struct mlx4_dev *dev = to_mdev(qp->device)->dev;
1678 err = mlx4_tunnel_steer_add(to_mdev(qp->device)->dev, ib_spec->eth.val.dst_mac,
1742 struct mlx4_dev *dev = (to_mdev(qp->device))->dev;
1745 if (flow_attr->port < 1 || flow_attr->port > qp->device->phys_port_cnt)
1840 (void)__mlx4_ib_destroy_flow(to_mdev(qp->device)->dev,
1846 (void)__mlx4_ib_destroy_flow(to_mdev(qp->device)->dev,
1859 struct mlx4_ib_dev *mdev = to_mdev(flow_id->qp->device);
1882 struct mlx4_ib_dev *mdev = to_mdev(ibqp->device);
1960 struct mlx4_ib_dev *mdev = to_mdev(ibqp->device);
2058 static ssize_t show_hca(struct device *device, struct device_attribute *attr,
2062 container_of(device, struct mlx4_ib_dev, ib_dev.dev);
2063 return sprintf(buf, "MT%d\n", dev->dev->persist->pdev->device);
2066 static ssize_t show_rev(struct device *device, struct device_attribute *attr,
2070 container_of(device, struct mlx4_ib_dev, ib_dev.dev);
2074 static ssize_t show_board(struct device *device, struct device_attribute *attr,
2078 container_of(device, struct mlx4_ib_dev, ib_dev.dev);
2497 static void get_fw_ver_str(struct ib_device *device, char *str,
2501 container_of(device, struct mlx4_ib_dev, ib_dev);
2527 /* No point in registering a device with no ports... */
3125 ibev.device = &ibdev->ib_dev;
3281 ibev.device = ibdev_ptr;