Lines Matching defs:device
102 /* 100Mhz cell, found in Uninorth 2 and K2. It appears as a pci device
213 * of the device (via GPIO/FCR).
234 struct device *dev;
369 static void pata_macio_apply_timings(struct ata_port *ap, unsigned int device)
377 writel(priv->treg[device][0], rbase + IDE_KAUAI_PIO_CONFIG);
378 writel(priv->treg[device][1], rbase + IDE_KAUAI_ULTRA_CONFIG);
380 writel(priv->treg[device][0], rbase + IDE_TIMING_CONFIG);
383 static void pata_macio_dev_select(struct ata_port *ap, unsigned int device)
385 ata_sff_dev_select(ap, device);
388 pata_macio_apply_timings(ap, device);
477 /* Get cable type from device-tree */
501 /* G5's seem to have incorrect cable type in device-tree.
773 /* If resuming a PCI device, restore the config space here */
781 "Failed to enable device after resume (%d)\n",
813 dev = &ap->link.device[sdev->id];
1047 * device-tree
1125 /* Check for broken device-trees */
1164 * device-trees.
1166 * This is a bit bogus, it should be fixed in the device-tree itself,
1264 /* We cannot use a MacIO controller without its OF device node */
1268 "Cannot find OF device node for controller\n");
1275 "Cannot enable controller PCI device\n");