Lines Matching refs:vdev
125 struct via82cxxx_dev *vdev = host->host_priv;
128 if (~vdev->via_config->flags & VIA_BAD_AST) {
140 switch (vdev->via_config->udma_mask) {
148 if (vdev->via_config->udma_mask) {
179 struct via82cxxx_dev *vdev = host->host_priv;
186 switch (vdev->via_config->udma_mask) {
240 static void via_cable_detect(struct via82cxxx_dev *vdev, u32 u)
244 switch (vdev->via_config->udma_mask) {
254 vdev->via_80w |= (1 << (1 - (i >> 4)));
266 vdev->via_80w |= (1 << (1 - (i >> 4)));
278 vdev->via_80w |= (1 << (1 - (i >> 4)));
295 struct via82cxxx_dev *vdev = host->host_priv;
296 struct via_isa_bridge *via_config = vdev->via_config;
305 via_cable_detect(vdev, u);
381 struct via82cxxx_dev *vdev = host->host_priv;
386 if ((vdev->via_config->flags & VIA_SATA_PATA) && hwif->channel == 0)
389 if ((vdev->via_80w >> hwif->channel) & 1)
418 struct via82cxxx_dev *vdev;
471 vdev = kzalloc(sizeof(*vdev), GFP_KERNEL);
472 if (!vdev) {
478 vdev->via_config = via_config;
480 rc = ide_pci_init_one(dev, &d, vdev);
482 kfree(vdev);
490 struct via82cxxx_dev *vdev = host->host_priv;
493 kfree(vdev);