Lines Matching refs:rdev
115 tsi568_em_init(struct rio_dev *rdev)
120 pr_debug("TSI568 %s [%d:%d]\n", __func__, rdev->destid, rdev->hopcount);
124 portnum < RIO_GET_TOTAL_PORTS(rdev->swpinfo); portnum++) {
125 rio_read_config_32(rdev, TSI568_SP_MODE(portnum), ®val);
126 rio_write_config_32(rdev, TSI568_SP_MODE(portnum),
144 static int tsi568_probe(struct rio_dev *rdev, const struct rio_device_id *id)
146 pr_debug("RIO: %s for %s\n", __func__, rio_name(rdev));
148 spin_lock(&rdev->rswitch->lock);
150 if (rdev->rswitch->ops) {
151 spin_unlock(&rdev->rswitch->lock);
155 rdev->rswitch->ops = &tsi568_switch_ops;
156 spin_unlock(&rdev->rswitch->lock);
160 static void tsi568_remove(struct rio_dev *rdev)
162 pr_debug("RIO: %s for %s\n", __func__, rio_name(rdev));
163 spin_lock(&rdev->rswitch->lock);
164 if (rdev->rswitch->ops != &tsi568_switch_ops) {
165 spin_unlock(&rdev->rswitch->lock);
168 rdev->rswitch->ops = NULL;
169 spin_unlock(&rdev->rswitch->lock);