Lines Matching defs:rdev
129 static int idtcps_probe(struct rio_dev *rdev, const struct rio_device_id *id)
131 pr_debug("RIO: %s for %s\n", __func__, rio_name(rdev));
133 spin_lock(&rdev->rswitch->lock);
135 if (rdev->rswitch->ops) {
136 spin_unlock(&rdev->rswitch->lock);
140 rdev->rswitch->ops = &idtcps_switch_ops;
142 if (rdev->do_enum) {
144 rio_write_config_32(rdev,
145 rdev->phys_efptr + RIO_PORT_LINKTO_CTL_CSR, 0x8e << 8);
147 rio_write_config_32(rdev,
151 spin_unlock(&rdev->rswitch->lock);
155 static void idtcps_remove(struct rio_dev *rdev)
157 pr_debug("RIO: %s for %s\n", __func__, rio_name(rdev));
158 spin_lock(&rdev->rswitch->lock);
159 if (rdev->rswitch->ops != &idtcps_switch_ops) {
160 spin_unlock(&rdev->rswitch->lock);
163 rdev->rswitch->ops = NULL;
164 spin_unlock(&rdev->rswitch->lock);