Lines Matching refs:dp
125 struct atp867x_priv *dp = ap->private_data; in atp867x_set_dmamode() local
137 if (dp->pci66mhz && mode > ATP867X_IO_DMAMODE_UDMA_0 && in atp867x_set_dmamode()
142 b = ioread8(dp->dma_mode); in atp867x_set_dmamode()
150 iowrite8(b, dp->dma_mode); in atp867x_set_dmamode()
156 struct atp867x_priv *dp = ap->private_data; in atp867x_get_active_clocks_shifted() local
163 if (dp->pci66mhz) in atp867x_get_active_clocks_shifted()
218 struct atp867x_priv *dp = ap->private_data; in atp867x_set_piomode() local
233 b = ioread8(dp->dma_mode); in atp867x_set_piomode()
238 iowrite8(b, dp->dma_mode); in atp867x_set_piomode()
244 iowrite8(b, dp->slave_piospd); in atp867x_set_piomode()
246 iowrite8(b, dp->mstr_piospd); in atp867x_set_piomode()
251 iowrite8(b, dp->eightb_piospd); in atp867x_set_piomode()
304 struct atp867x_priv *dp = ap->private_data; in atp867x_check_ports() local
342 (unsigned long long)dp->dma_mode, in atp867x_check_ports()
343 (unsigned long long)dp->mstr_piospd, in atp867x_check_ports()
344 (unsigned long long)dp->slave_piospd, in atp867x_check_ports()
345 (unsigned long long)dp->eightb_piospd, in atp867x_check_ports()
346 (unsigned long)dp->pci66mhz); in atp867x_check_ports()
353 struct atp867x_priv *dp; in atp867x_set_priv() local
356 dp = ap->private_data = in atp867x_set_priv()
357 devm_kzalloc(&pdev->dev, sizeof(*dp), GFP_KERNEL); in atp867x_set_priv()
358 if (dp == NULL) in atp867x_set_priv()
361 dp->dma_mode = ATP867X_IO_DMAMODE(ap, port); in atp867x_set_priv()
362 dp->mstr_piospd = ATP867X_IO_MSTRPIOSPD(ap, port); in atp867x_set_priv()
363 dp->slave_piospd = ATP867X_IO_SLAVPIOSPD(ap, port); in atp867x_set_priv()
364 dp->eightb_piospd = ATP867X_IO_8BPIOSPD(ap, port); in atp867x_set_priv()
366 dp->pci66mhz = in atp867x_set_priv()