Lines Matching refs:hbdev
34 struct hyperbus_device hbdev; member
38 static int am654_hbmc_calibrate(struct hyperbus_device *hbdev) in am654_hbmc_calibrate() argument
40 struct map_info *map = &hbdev->map; in am654_hbmc_calibrate()
124 static void am654_hbmc_read(struct hyperbus_device *hbdev, void *to, in am654_hbmc_read() argument
127 struct am654_hbmc_device_priv *priv = hbdev->priv; in am654_hbmc_read()
130 memcpy_fromio(to, hbdev->map.virt + from, len); in am654_hbmc_read()
174 priv->hbdev.np = of_get_next_child(np, NULL); in am654_hbmc_probe()
175 ret = of_address_to_resource(priv->hbdev.np, 0, &res); in am654_hbmc_probe()
193 priv->hbdev.map.size = resource_size(&res); in am654_hbmc_probe()
194 priv->hbdev.map.virt = devm_ioremap_resource(dev, &res); in am654_hbmc_probe()
195 if (IS_ERR(priv->hbdev.map.virt)) in am654_hbmc_probe()
196 return PTR_ERR(priv->hbdev.map.virt); in am654_hbmc_probe()
200 priv->hbdev.ctlr = &priv->ctlr; in am654_hbmc_probe()
208 priv->hbdev.priv = dev_priv; in am654_hbmc_probe()
216 ret = hyperbus_register_device(&priv->hbdev); in am654_hbmc_probe()
235 struct am654_hbmc_device_priv *dev_priv = priv->hbdev.priv; in am654_hbmc_remove()
237 hyperbus_unregister_device(&priv->hbdev); in am654_hbmc_remove()