Lines Matching refs:dev
486 static int xrcd_table_insert(struct ib_uverbs_device *dev, in xrcd_table_insert() argument
491 struct rb_node **p = &dev->xrcd_tree.rb_node; in xrcd_table_insert()
516 rb_insert_color(&entry->node, &dev->xrcd_tree); in xrcd_table_insert()
521 static struct xrcd_table_entry *xrcd_table_search(struct ib_uverbs_device *dev, in xrcd_table_search() argument
525 struct rb_node *p = dev->xrcd_tree.rb_node; in xrcd_table_search()
541 static struct ib_xrcd *find_xrcd(struct ib_uverbs_device *dev, struct inode *inode) in find_xrcd() argument
545 entry = xrcd_table_search(dev, inode); in find_xrcd()
552 static void xrcd_table_delete(struct ib_uverbs_device *dev, in xrcd_table_delete() argument
557 entry = xrcd_table_search(dev, inode); in xrcd_table_delete()
560 rb_erase(&entry->node, &dev->xrcd_tree); in xrcd_table_delete()
677 struct ib_uverbs_device *dev = attrs->ufile->device; in ib_uverbs_dealloc_xrcd() local
690 xrcd_table_delete(dev, inode); in ib_uverbs_dealloc_xrcd()
1728 static void copy_ah_attr_from_uverbs(struct ib_device *dev, in copy_ah_attr_from_uverbs() argument
1732 rdma_attr->type = rdma_ah_find_type(dev, uverb_attr->port_num); in copy_ah_attr_from_uverbs()