Lines Matching refs:syscfg
54 struct vexpress_syscfg *syscfg; member
161 struct vexpress_syscfg *syscfg = func->syscfg; in vexpress_syscfg_exec() local
169 command = readl(syscfg->base + SYS_CFGCTRL); in vexpress_syscfg_exec()
181 dev_dbg(syscfg->dev, "func %p, command %x, data %x\n", in vexpress_syscfg_exec()
183 writel(*data, syscfg->base + SYS_CFGDATA); in vexpress_syscfg_exec()
184 writel(0, syscfg->base + SYS_CFGSTAT); in vexpress_syscfg_exec()
185 writel(command, syscfg->base + SYS_CFGCTRL); in vexpress_syscfg_exec()
201 status = readl(syscfg->base + SYS_CFGSTAT); in vexpress_syscfg_exec()
212 *data = readl(syscfg->base + SYS_CFGDATA); in vexpress_syscfg_exec()
213 dev_dbg(syscfg->dev, "func %p, read data %x\n", func, *data); in vexpress_syscfg_exec()
251 struct vexpress_syscfg *syscfg = context; in vexpress_syscfg_regmap_init() local
291 func->syscfg = syscfg; in vexpress_syscfg_regmap_init()
323 list_add(&func->list, &syscfg->funcs); in vexpress_syscfg_regmap_init()
330 struct vexpress_syscfg *syscfg = context; in vexpress_syscfg_regmap_exit() local
335 list_for_each_entry_safe(func, tmp, &syscfg->funcs, list) { in vexpress_syscfg_regmap_exit()
337 list_del(&syscfg->funcs); in vexpress_syscfg_regmap_exit()
352 struct vexpress_syscfg *syscfg; in vexpress_syscfg_probe() local
359 syscfg = devm_kzalloc(&pdev->dev, sizeof(*syscfg), GFP_KERNEL); in vexpress_syscfg_probe()
360 if (!syscfg) in vexpress_syscfg_probe()
362 syscfg->dev = &pdev->dev; in vexpress_syscfg_probe()
363 INIT_LIST_HEAD(&syscfg->funcs); in vexpress_syscfg_probe()
366 syscfg->base = devm_ioremap_resource(&pdev->dev, res); in vexpress_syscfg_probe()
367 if (IS_ERR(syscfg->base)) in vexpress_syscfg_probe()
368 return PTR_ERR(syscfg->base); in vexpress_syscfg_probe()
375 bridge->context = syscfg; in vexpress_syscfg_probe()
379 master = readl(syscfg->base + SYS_MISC) & SYS_MISC_MASTERSITE ? in vexpress_syscfg_probe()
385 u32 id = readl(syscfg->base + (master == VEXPRESS_SITE_DB1 ? in vexpress_syscfg_probe()