Lines Matching defs:rdev
111 tsi568_em_init(struct rio_dev *rdev)
116 pr_debug("TSI568 %s [%d:%d]\n", __func__, rdev->destid, rdev->hopcount);
120 portnum < RIO_GET_TOTAL_PORTS(rdev->swpinfo); portnum++) {
121 rio_read_config_32(rdev, TSI568_SP_MODE(portnum), ®val);
122 rio_write_config_32(rdev, TSI568_SP_MODE(portnum),
140 static int tsi568_probe(struct rio_dev *rdev, const struct rio_device_id *id)
142 pr_debug("RIO: %s for %s\n", __func__, rio_name(rdev));
144 spin_lock(&rdev->rswitch->lock);
146 if (rdev->rswitch->ops) {
147 spin_unlock(&rdev->rswitch->lock);
151 rdev->rswitch->ops = &tsi568_switch_ops;
152 spin_unlock(&rdev->rswitch->lock);
156 static void tsi568_remove(struct rio_dev *rdev)
158 pr_debug("RIO: %s for %s\n", __func__, rio_name(rdev));
159 spin_lock(&rdev->rswitch->lock);
160 if (rdev->rswitch->ops != &tsi568_switch_ops) {
161 spin_unlock(&rdev->rswitch->lock);
164 rdev->rswitch->ops = NULL;
165 spin_unlock(&rdev->rswitch->lock);