Lines Matching refs:rdev

31 						    const struct rio_dev *rdev)  in rio_match_device()  argument
34 if (((id->vid == RIO_ANY_ID) || (id->vid == rdev->vid)) && in rio_match_device()
35 ((id->did == RIO_ANY_ID) || (id->did == rdev->did)) && in rio_match_device()
37 || (id->asm_vid == rdev->asm_vid)) in rio_match_device()
39 || (id->asm_did == rdev->asm_did))) in rio_match_device()
57 struct rio_dev *rio_dev_get(struct rio_dev *rdev) in rio_dev_get() argument
59 if (rdev) in rio_dev_get()
60 get_device(&rdev->dev); in rio_dev_get()
62 return rdev; in rio_dev_get()
74 void rio_dev_put(struct rio_dev *rdev) in rio_dev_put() argument
76 if (rdev) in rio_dev_put()
77 put_device(&rdev->dev); in rio_dev_put()
89 struct rio_dev *rdev = to_rio_dev(dev); in rio_device_probe() local
93 if (!rdev->driver && rdrv->probe) { in rio_device_probe()
96 id = rio_match_device(rdrv->id_table, rdev); in rio_device_probe()
97 rio_dev_get(rdev); in rio_device_probe()
99 error = rdrv->probe(rdev, id); in rio_device_probe()
101 rdev->driver = rdrv; in rio_device_probe()
104 rio_dev_put(rdev); in rio_device_probe()
120 struct rio_dev *rdev = to_rio_dev(dev); in rio_device_remove() local
121 struct rio_driver *rdrv = rdev->driver; in rio_device_remove()
125 rdrv->remove(rdev); in rio_device_remove()
126 rdev->driver = NULL; in rio_device_remove()
129 rio_dev_put(rdev); in rio_device_remove()
167 void rio_attach_device(struct rio_dev *rdev) in rio_attach_device() argument
169 rdev->dev.bus = &rio_bus_type; in rio_attach_device()
185 struct rio_dev *rdev = to_rio_dev(dev); in rio_match_bus() local
193 found_id = rio_match_device(id, rdev); in rio_match_bus()
203 struct rio_dev *rdev; in rio_uevent() local
208 rdev = to_rio_dev(dev); in rio_uevent()
209 if (!rdev) in rio_uevent()
213 rdev->vid, rdev->did, rdev->asm_vid, rdev->asm_did)) in rio_uevent()