Lines Matching refs:cdev
276 static long ctcm_check_irb_error(struct ccw_device *cdev, struct irb *irb) in ctcm_check_irb_error() argument
283 PTR_ERR(irb), dev_name(&cdev->dev)); in ctcm_check_irb_error()
287 dev_err(&cdev->dev, in ctcm_check_irb_error()
291 dev_err(&cdev->dev, in ctcm_check_irb_error()
295 dev_err(&cdev->dev, in ctcm_check_irb_error()
569 spin_lock_irqsave(get_ccwdev_lock(ch->cdev), saveflags); in ctcm_transmit_skb()
571 rc = ccw_device_start(ch->cdev, &ch->ccw[ccw_idx], in ctcm_transmit_skb()
573 spin_unlock_irqrestore(get_ccwdev_lock(ch->cdev), saveflags); in ctcm_transmit_skb()
833 spin_lock_irqsave(get_ccwdev_lock(ch->cdev), saveflags); in ctcmpc_transmit_skb()
835 rc = ccw_device_start(ch->cdev, &ch->ccw[ccw_idx], in ctcmpc_transmit_skb()
837 spin_unlock_irqrestore(get_ccwdev_lock(ch->cdev), saveflags); in ctcmpc_transmit_skb()
1198 static void ctcm_irq_handler(struct ccw_device *cdev, in ctcm_irq_handler() argument
1209 "Enter %s(%s)", CTCM_FUNTAIL, dev_name(&cdev->dev)); in ctcm_irq_handler()
1211 if (ctcm_check_irb_error(cdev, irb)) in ctcm_irq_handler()
1214 cgdev = dev_get_drvdata(&cdev->dev); in ctcm_irq_handler()
1223 CTCM_FUNTAIL, dev_name(&cdev->dev), cstat, dstat); in ctcm_irq_handler()
1224 dev_warn(&cdev->dev, in ctcm_irq_handler()
1232 if (priv->channel[CTCM_READ]->cdev == cdev) in ctcm_irq_handler()
1234 else if (priv->channel[CTCM_WRITE]->cdev == cdev) in ctcm_irq_handler()
1237 dev_err(&cdev->dev, in ctcm_irq_handler()
1240 __func__, dev_name(&cdev->dev)); in ctcm_irq_handler()
1247 dev_err(&cdev->dev, in ctcm_irq_handler()
1263 dev_warn(&cdev->dev, in ctcm_irq_handler()
1332 cgdev->cdev[0]->handler = ctcm_irq_handler; in ctcm_probe_device()
1333 cgdev->cdev[1]->handler = ctcm_irq_handler; in ctcm_probe_device()
1350 static int add_channel(struct ccw_device *cdev, enum ctcm_channel_types type, in add_channel() argument
1360 __func__, dev_name(&cdev->dev), type, priv->protocol); in add_channel()
1386 ch->cdev = cdev; in add_channel()
1387 snprintf(ch->id, CTCM_ID_SIZE, "ch-%s", dev_name(&cdev->dev)); in add_channel()
1547 cdev0 = cgdev->cdev[0]; in ctcm_new_device()
1548 cdev1 = cgdev->cdev[1]; in ctcm_new_device()
1628 ccw_device_set_offline(cgdev->cdev[1]); in ctcm_new_device()
1630 ccw_device_set_offline(cgdev->cdev[0]); in ctcm_new_device()
1678 ccw_device_set_offline(cgdev->cdev[1]); in ctcm_shutdown_device()
1679 ccw_device_set_offline(cgdev->cdev[0]); in ctcm_shutdown_device()
1720 ccw_device_set_offline(gdev->cdev[1]); in ctcm_pm_suspend()
1721 ccw_device_set_offline(gdev->cdev[0]); in ctcm_pm_suspend()
1732 rc = ccw_device_set_online(gdev->cdev[1]); in ctcm_pm_resume()
1735 rc = ccw_device_set_online(gdev->cdev[0]); in ctcm_pm_resume()