Searched refs:cgdev (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/drivers/s390/net/
H A Dctcm_main.c1204 struct ccwgroup_device *cgdev; ctcm_irq_handler() local
1214 cgdev = dev_get_drvdata(&cdev->dev); ctcm_irq_handler()
1220 if (cgdev == NULL) { ctcm_irq_handler()
1229 priv = dev_get_drvdata(&cgdev->dev); ctcm_irq_handler()
1308 * cgdev pointer to ccwgroup_device just added
1312 static int ctcm_probe_device(struct ccwgroup_device *cgdev) ctcm_probe_device() argument
1318 __func__, cgdev); ctcm_probe_device()
1320 if (!get_device(&cgdev->dev)) ctcm_probe_device()
1328 put_device(&cgdev->dev); ctcm_probe_device()
1332 cgdev->cdev[0]->handler = ctcm_irq_handler; ctcm_probe_device()
1333 cgdev->cdev[1]->handler = ctcm_irq_handler; ctcm_probe_device()
1334 dev_set_drvdata(&cgdev->dev, priv); ctcm_probe_device()
1335 cgdev->dev.type = &ctcm_devtype; ctcm_probe_device()
1522 * cgdev Device to be setup.
1526 static int ctcm_new_device(struct ccwgroup_device *cgdev) ctcm_new_device() argument
1541 priv = dev_get_drvdata(&cgdev->dev); ctcm_new_device()
1547 cdev0 = cgdev->cdev[0]; ctcm_new_device()
1548 cdev1 = cgdev->cdev[1]; ctcm_new_device()
1605 SET_NETDEV_DEV(dev, &cgdev->dev); ctcm_new_device()
1628 ccw_device_set_offline(cgdev->cdev[1]); ctcm_new_device()
1630 ccw_device_set_offline(cgdev->cdev[0]); ctcm_new_device()
1644 * cgdev Device to be shut down.
1648 static int ctcm_shutdown_device(struct ccwgroup_device *cgdev) ctcm_shutdown_device() argument
1653 priv = dev_get_drvdata(&cgdev->dev); ctcm_shutdown_device()
1678 ccw_device_set_offline(cgdev->cdev[1]); ctcm_shutdown_device()
1679 ccw_device_set_offline(cgdev->cdev[0]); ctcm_shutdown_device()
1692 static void ctcm_remove_device(struct ccwgroup_device *cgdev) ctcm_remove_device() argument
1694 struct ctcm_priv *priv = dev_get_drvdata(&cgdev->dev); ctcm_remove_device()
1698 cgdev, priv->protocol); ctcm_remove_device()
1700 if (cgdev->state == CCWGROUP_ONLINE) ctcm_remove_device()
1701 ctcm_shutdown_device(cgdev); ctcm_remove_device()
1702 dev_set_drvdata(&cgdev->dev, NULL); ctcm_remove_device()
1704 put_device(&cgdev->dev); ctcm_remove_device()
H A Dctcm_sysfs.c179 struct ccwgroup_device *cgdev; ctcm_type_show() local
181 cgdev = to_ccwgroupdev(dev); ctcm_type_show()
182 if (!cgdev) ctcm_type_show()
186 ctcm_type[cgdev->cdev[0]->id.driver_info]); ctcm_type_show()
H A Dqeth_l2_main.c893 static void qeth_l2_remove_device(struct ccwgroup_device *cgdev) qeth_l2_remove_device() argument
895 struct qeth_card *card = dev_get_drvdata(&cgdev->dev); qeth_l2_remove_device()
897 qeth_l2_remove_device_attributes(&cgdev->dev); qeth_l2_remove_device()
901 if (cgdev->state == CCWGROUP_ONLINE) qeth_l2_remove_device()
902 qeth_l2_set_offline(cgdev); qeth_l2_remove_device()
1106 static int __qeth_l2_set_offline(struct ccwgroup_device *cgdev, __qeth_l2_set_offline() argument
1109 struct qeth_card *card = dev_get_drvdata(&cgdev->dev); __qeth_l2_set_offline()
1137 kobject_uevent(&cgdev->dev.kobj, KOBJ_CHANGE); __qeth_l2_set_offline()
1143 static int qeth_l2_set_offline(struct ccwgroup_device *cgdev) qeth_l2_set_offline() argument
1145 return __qeth_l2_set_offline(cgdev, 0); qeth_l2_set_offline()
H A Dqeth_l3_main.c3352 static void qeth_l3_remove_device(struct ccwgroup_device *cgdev) qeth_l3_remove_device() argument
3354 struct qeth_card *card = dev_get_drvdata(&cgdev->dev); qeth_l3_remove_device()
3356 qeth_l3_remove_device_attributes(&cgdev->dev); qeth_l3_remove_device()
3361 if (cgdev->state == CCWGROUP_ONLINE) qeth_l3_remove_device()
3362 qeth_l3_set_offline(cgdev); qeth_l3_remove_device()
3494 static int __qeth_l3_set_offline(struct ccwgroup_device *cgdev, __qeth_l3_set_offline() argument
3497 struct qeth_card *card = dev_get_drvdata(&cgdev->dev); __qeth_l3_set_offline()
3530 kobject_uevent(&cgdev->dev.kobj, KOBJ_CHANGE); __qeth_l3_set_offline()
3536 static int qeth_l3_set_offline(struct ccwgroup_device *cgdev) qeth_l3_set_offline() argument
3538 return __qeth_l3_set_offline(cgdev, 0); qeth_l3_set_offline()
H A Dlcs.c1976 struct ccwgroup_device *cgdev; lcs_type_show() local
1978 cgdev = to_ccwgroupdev(dev); lcs_type_show()
1979 if (!cgdev) lcs_type_show()
1982 return sprintf(buf, "%s\n", lcs_type[cgdev->cdev[0]->id.driver_info]); lcs_type_show()

Completed in 198 milliseconds