Lines Matching full:asic
36 struct pasic3_data *asic = dev_get_drvdata(dev); in pasic3_write_register() local
37 int bus_shift = asic->bus_shift; in pasic3_write_register()
38 void __iomem *addr = asic->mapping + (REG_ADDR << bus_shift); in pasic3_write_register()
39 void __iomem *data = asic->mapping + (REG_DATA << bus_shift); in pasic3_write_register()
51 struct pasic3_data *asic = dev_get_drvdata(dev); in pasic3_read_register() local
52 int bus_shift = asic->bus_shift; in pasic3_read_register()
53 void __iomem *addr = asic->mapping + (REG_ADDR << bus_shift); in pasic3_read_register()
54 void __iomem *data = asic->mapping + (REG_DATA << bus_shift); in pasic3_read_register()
128 struct pasic3_data *asic; in pasic3_probe() local
147 asic = devm_kzalloc(dev, sizeof(struct pasic3_data), GFP_KERNEL); in pasic3_probe()
148 if (!asic) in pasic3_probe()
151 platform_set_drvdata(pdev, asic); in pasic3_probe()
153 asic->mapping = ioremap(r->start, resource_size(r)); in pasic3_probe()
154 if (!asic->mapping) { in pasic3_probe()
160 asic->bus_shift = (resource_size(r) - 5) >> 3; in pasic3_probe()
165 ds1wm_resources[0].end = (5 << asic->bus_shift) - 1; in pasic3_probe()
186 struct pasic3_data *asic = platform_get_drvdata(pdev); in pasic3_remove() local
191 iounmap(asic->mapping); in pasic3_remove()