Lines Matching defs:rdev
23 * @rdev: the RIO device structure to match against
31 const struct rio_dev *rdev)
34 if (((id->vid == RIO_ANY_ID) || (id->vid == rdev->vid)) &&
35 ((id->did == RIO_ANY_ID) || (id->did == rdev->did)) &&
37 || (id->asm_vid == rdev->asm_vid))
39 || (id->asm_did == rdev->asm_did)))
49 * @rdev: RIO device being referenced
57 struct rio_dev *rio_dev_get(struct rio_dev *rdev)
59 if (rdev)
60 get_device(&rdev->dev);
62 return rdev;
68 * @rdev: RIO device being disconnected
74 void rio_dev_put(struct rio_dev *rdev)
76 if (rdev)
77 put_device(&rdev->dev);
89 struct rio_dev *rdev = to_rio_dev(dev);
93 if (!rdev->driver && rdrv->probe) {
96 id = rio_match_device(rdrv->id_table, rdev);
97 rio_dev_get(rdev);
99 error = rdrv->probe(rdev, id);
101 rdev->driver = rdrv;
104 rio_dev_put(rdev);
120 struct rio_dev *rdev = to_rio_dev(dev);
121 struct rio_driver *rdrv = rdev->driver;
125 rdrv->remove(rdev);
126 rdev->driver = NULL;
129 rio_dev_put(rdev);
179 struct rio_dev *rdev = to_rio_dev(dev);
187 found_id = rio_match_device(id, rdev);