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

/linux-4.4.14/drivers/pcmcia/
H A Dsa1111_jornada720.c95 int pcmcia_jornada720_init(struct sa1111_dev *sadev) pcmcia_jornada720_init() argument
105 sa1111_set_io_dir(sadev, pin, 0, 0); pcmcia_jornada720_init()
106 sa1111_set_io(sadev, pin, 0); pcmcia_jornada720_init()
107 sa1111_set_sleep_io(sadev, pin, 0); pcmcia_jornada720_init()
110 ret = sa1111_pcmcia_add(sadev, &jornada720_pcmcia_ops, pcmcia_jornada720_init()
H A Dsa1111_neponset.c111 int pcmcia_neponset_init(struct sa1111_dev *sadev) pcmcia_neponset_init() argument
120 sa1111_set_io_dir(sadev, GPIO_A0|GPIO_A1|GPIO_A2|GPIO_A3, 0, 0); pcmcia_neponset_init()
121 sa1111_set_io(sadev, GPIO_A0|GPIO_A1|GPIO_A2|GPIO_A3, 0); pcmcia_neponset_init()
122 sa1111_set_sleep_io(sadev, GPIO_A0|GPIO_A1|GPIO_A2|GPIO_A3, 0); pcmcia_neponset_init()
124 ret = sa1111_pcmcia_add(sadev, &neponset_pcmcia_ops, pcmcia_neponset_init()
H A Dsa1111_lubbock.c211 int pcmcia_lubbock_init(struct sa1111_dev *sadev) pcmcia_lubbock_init() argument
220 sa1111_set_io_dir(sadev, GPIO_A0|GPIO_A1|GPIO_A2|GPIO_A3, 0, 0); pcmcia_lubbock_init()
221 sa1111_set_io(sadev, GPIO_A0|GPIO_A1|GPIO_A2|GPIO_A3, 0); pcmcia_lubbock_init()
222 sa1111_set_sleep_io(sadev, GPIO_A0|GPIO_A1|GPIO_A2|GPIO_A3, 0); pcmcia_lubbock_init()
228 pxa2xx_configure_sockets(&sadev->dev); pcmcia_lubbock_init()
229 ret = sa1111_pcmcia_add(sadev, &lubbock_pcmcia_ops, pcmcia_lubbock_init()
/linux-4.4.14/arch/arm/common/
H A Dsa1111.c815 struct sa1111_dev *sadev = SA1111_DEV(dev); sa1111_remove_one() local
816 device_del(&sadev->dev); sa1111_remove_one()
817 release_resource(&sadev->res); sa1111_remove_one()
818 put_device(&sadev->dev); sa1111_remove_one()
1064 static inline struct sa1111 *sa1111_chip_driver(struct sa1111_dev *sadev) sa1111_chip_driver() argument
1066 return (struct sa1111 *)dev_get_drvdata(sadev->dev.parent); sa1111_chip_driver()
1089 * @sadev: SA1111 function block
1096 unsigned int sa1111_pll_clock(struct sa1111_dev *sadev) sa1111_pll_clock() argument
1098 struct sa1111 *sachip = sa1111_chip_driver(sadev); sa1111_pll_clock()
1106 * @sadev: SA1111 function block
1112 void sa1111_select_audio_mode(struct sa1111_dev *sadev, int mode) sa1111_select_audio_mode() argument
1114 struct sa1111 *sachip = sa1111_chip_driver(sadev); sa1111_select_audio_mode()
1134 * @sadev: SA1111 SAC function block
1137 int sa1111_set_audio_rate(struct sa1111_dev *sadev, int rate) sa1111_set_audio_rate() argument
1139 struct sa1111 *sachip = sa1111_chip_driver(sadev); sa1111_set_audio_rate()
1142 if (sadev->devid != SA1111_DEVID_SAC) sa1111_set_audio_rate()
1159 * @sadev: SA1111 SAC function block device
1161 int sa1111_get_audio_rate(struct sa1111_dev *sadev) sa1111_get_audio_rate() argument
1163 struct sa1111 *sachip = sa1111_chip_driver(sadev); sa1111_get_audio_rate()
1166 if (sadev->devid != SA1111_DEVID_SAC) sa1111_get_audio_rate()
1175 void sa1111_set_io_dir(struct sa1111_dev *sadev, sa1111_set_io_dir() argument
1179 struct sa1111 *sachip = sa1111_chip_driver(sadev); sa1111_set_io_dir()
1204 void sa1111_set_io(struct sa1111_dev *sadev, unsigned int bits, unsigned int v) sa1111_set_io() argument
1206 struct sa1111 *sachip = sa1111_chip_driver(sadev); sa1111_set_io()
1219 void sa1111_set_sleep_io(struct sa1111_dev *sadev, unsigned int bits, unsigned int v) sa1111_set_sleep_io() argument
1221 struct sa1111 *sachip = sa1111_chip_driver(sadev); sa1111_set_sleep_io()
1240 * @sadev: SA1111 function block device to enable
1242 int sa1111_enable_device(struct sa1111_dev *sadev) sa1111_enable_device() argument
1244 struct sa1111 *sachip = sa1111_chip_driver(sadev); sa1111_enable_device()
1250 ret = sachip->pdata->enable(sachip->pdata->data, sadev->devid); sa1111_enable_device()
1255 sa1111_writel(val | sadev->skpcr_mask, sachip->base + SA1111_SKPCR); sa1111_enable_device()
1264 * @sadev: SA1111 function block device to disable
1266 void sa1111_disable_device(struct sa1111_dev *sadev) sa1111_disable_device() argument
1268 struct sa1111 *sachip = sa1111_chip_driver(sadev); sa1111_disable_device()
1274 sa1111_writel(val & ~sadev->skpcr_mask, sachip->base + SA1111_SKPCR); sa1111_disable_device()
1278 sachip->pdata->disable(sachip->pdata->data, sadev->devid); sa1111_disable_device()
1298 struct sa1111_dev *sadev = SA1111_DEV(dev); sa1111_bus_suspend() local
1303 ret = drv->suspend(sadev, state); sa1111_bus_suspend()
1309 struct sa1111_dev *sadev = SA1111_DEV(dev); sa1111_bus_resume() local
1314 ret = drv->resume(sadev); sa1111_bus_resume()
1328 struct sa1111_dev *sadev = SA1111_DEV(dev); sa1111_bus_probe() local
1333 ret = drv->probe(sadev); sa1111_bus_probe()
1339 struct sa1111_dev *sadev = SA1111_DEV(dev); sa1111_bus_remove() local
1344 ret = drv->remove(sadev); sa1111_bus_remove()
/linux-4.4.14/arch/arm/include/asm/hardware/
H A Dsa1111.h454 void sa1111_select_audio_mode(struct sa1111_dev *sadev, int mode);
455 int sa1111_set_audio_rate(struct sa1111_dev *sadev, int rate);
456 int sa1111_get_audio_rate(struct sa1111_dev *sadev);
463 void sa1111_set_io_dir(struct sa1111_dev *sadev, unsigned int bits, unsigned int dir, unsigned int sleep_dir);
464 void sa1111_set_io(struct sa1111_dev *sadev, unsigned int bits, unsigned int v);
465 void sa1111_set_sleep_io(struct sa1111_dev *sadev, unsigned int bits, unsigned int v);

Completed in 256 milliseconds