Lines Matching refs:ibdev
65 int pvrdma_query_device(struct ib_device *ibdev, in pvrdma_query_device() argument
69 struct pvrdma_dev *dev = to_vdev(ibdev); in pvrdma_query_device()
128 int pvrdma_query_port(struct ib_device *ibdev, u32 port, in pvrdma_query_port() argument
131 struct pvrdma_dev *dev = to_vdev(ibdev); in pvrdma_query_port()
186 int pvrdma_query_gid(struct ib_device *ibdev, u32 port, int index, in pvrdma_query_gid() argument
189 struct pvrdma_dev *dev = to_vdev(ibdev); in pvrdma_query_gid()
208 int pvrdma_query_pkey(struct ib_device *ibdev, u32 port, u16 index, in pvrdma_query_pkey() argument
221 err = pvrdma_cmd_post(to_vdev(ibdev), &req, &rsp, in pvrdma_query_pkey()
224 dev_warn(&to_vdev(ibdev)->pdev->dev, in pvrdma_query_pkey()
234 enum rdma_link_layer pvrdma_port_link_layer(struct ib_device *ibdev, in pvrdma_port_link_layer() argument
240 int pvrdma_modify_device(struct ib_device *ibdev, int mask, in pvrdma_modify_device() argument
247 dev_warn(&to_vdev(ibdev)->pdev->dev, in pvrdma_modify_device()
253 spin_lock_irqsave(&to_vdev(ibdev)->desc_lock, flags); in pvrdma_modify_device()
254 memcpy(ibdev->node_desc, props->node_desc, 64); in pvrdma_modify_device()
255 spin_unlock_irqrestore(&to_vdev(ibdev)->desc_lock, flags); in pvrdma_modify_device()
259 mutex_lock(&to_vdev(ibdev)->port_mutex); in pvrdma_modify_device()
260 to_vdev(ibdev)->sys_image_guid = in pvrdma_modify_device()
262 mutex_unlock(&to_vdev(ibdev)->port_mutex); in pvrdma_modify_device()
277 int pvrdma_modify_port(struct ib_device *ibdev, u32 port, int mask, in pvrdma_modify_port() argument
281 struct pvrdma_dev *vdev = to_vdev(ibdev); in pvrdma_modify_port()
291 ret = ib_query_port(ibdev, port, &attr); in pvrdma_modify_port()
315 struct ib_device *ibdev = uctx->device; in pvrdma_alloc_ucontext() local
316 struct pvrdma_dev *vdev = to_vdev(ibdev); in pvrdma_alloc_ucontext()
429 struct ib_device *ibdev = ibpd->device; in pvrdma_alloc_pd() local
431 struct pvrdma_dev *dev = to_vdev(ibdev); in pvrdma_alloc_pd()