Lines Matching refs:sadev
931 struct sa1111_dev *sadev = to_sa1111_device(dev); in sa1111_remove_one() local
934 device_del(&sadev->dev); in sa1111_remove_one()
935 release_resource(&sadev->res); in sa1111_remove_one()
936 put_device(&sadev->dev); in sa1111_remove_one()
1171 static inline struct sa1111 *sa1111_chip_driver(struct sa1111_dev *sadev) in sa1111_chip_driver() argument
1173 return (struct sa1111 *)dev_get_drvdata(sadev->dev.parent); in sa1111_chip_driver()
1203 unsigned int sa1111_pll_clock(struct sa1111_dev *sadev) in sa1111_pll_clock() argument
1205 struct sa1111 *sachip = sa1111_chip_driver(sadev); in sa1111_pll_clock()
1219 void sa1111_select_audio_mode(struct sa1111_dev *sadev, int mode) in sa1111_select_audio_mode() argument
1221 struct sa1111 *sachip = sa1111_chip_driver(sadev); in sa1111_select_audio_mode()
1244 int sa1111_set_audio_rate(struct sa1111_dev *sadev, int rate) in sa1111_set_audio_rate() argument
1246 struct sa1111 *sachip = sa1111_chip_driver(sadev); in sa1111_set_audio_rate()
1249 if (sadev->devid != SA1111_DEVID_SAC) in sa1111_set_audio_rate()
1268 int sa1111_get_audio_rate(struct sa1111_dev *sadev) in sa1111_get_audio_rate() argument
1270 struct sa1111 *sachip = sa1111_chip_driver(sadev); in sa1111_get_audio_rate()
1273 if (sadev->devid != SA1111_DEVID_SAC) in sa1111_get_audio_rate()
1290 int sa1111_enable_device(struct sa1111_dev *sadev) in sa1111_enable_device() argument
1292 struct sa1111 *sachip = sa1111_chip_driver(sadev); in sa1111_enable_device()
1298 ret = sachip->pdata->enable(sachip->pdata->data, sadev->devid); in sa1111_enable_device()
1303 writel_relaxed(val | sadev->skpcr_mask, sachip->base + SA1111_SKPCR); in sa1111_enable_device()
1314 void sa1111_disable_device(struct sa1111_dev *sadev) in sa1111_disable_device() argument
1316 struct sa1111 *sachip = sa1111_chip_driver(sadev); in sa1111_disable_device()
1322 writel_relaxed(val & ~sadev->skpcr_mask, sachip->base + SA1111_SKPCR); in sa1111_disable_device()
1326 sachip->pdata->disable(sachip->pdata->data, sadev->devid); in sa1111_disable_device()
1330 int sa1111_get_irq(struct sa1111_dev *sadev, unsigned num) in sa1111_get_irq() argument
1332 struct sa1111 *sachip = sa1111_chip_driver(sadev); in sa1111_get_irq()
1333 if (num >= ARRAY_SIZE(sadev->hwirq)) in sa1111_get_irq()
1335 return sa1111_map_irq(sachip, sadev->hwirq[num]); in sa1111_get_irq()
1355 struct sa1111_dev *sadev = to_sa1111_device(dev); in sa1111_bus_probe() local
1360 ret = drv->probe(sadev); in sa1111_bus_probe()
1366 struct sa1111_dev *sadev = to_sa1111_device(dev); in sa1111_bus_remove() local
1371 ret = drv->remove(sadev); in sa1111_bus_remove()