Searched refs:hbdev (Results 1 – 3 of 3) sorted by relevance
| /drivers/mtd/hyperbus/ |
| A D | hyperbus-core.c | 67 if (!hbdev || !hbdev->np || !hbdev->ctlr || !hbdev->ctlr->dev) { in hyperbus_register_device() 72 np = hbdev->np; in hyperbus_register_device() 73 ctlr = hbdev->ctlr; in hyperbus_register_device() 79 hbdev->memtype = HYPERFLASH; in hyperbus_register_device() 82 map = &hbdev->map; in hyperbus_register_device() 100 ret = ops->calibrate(hbdev); in hyperbus_register_device() 110 if (!hbdev->mtd) { in hyperbus_register_device() 115 hbdev->mtd->dev.parent = dev; in hyperbus_register_device() 121 map_destroy(hbdev->mtd); in hyperbus_register_device() 131 if (hbdev && hbdev->mtd) { in hyperbus_unregister_device() [all …]
|
| A D | rpc-if.c | 23 struct hyperbus_device hbdev; member 79 container_of(hbdev, struct rpcif_hyperbus, hbdev); in rpcif_hb_read16() 93 container_of(hbdev, struct rpcif_hyperbus, hbdev); in rpcif_hb_write16() 100 static void rpcif_hb_copy_from(struct hyperbus_device *hbdev, void *to, in rpcif_hb_copy_from() argument 104 container_of(hbdev, struct rpcif_hyperbus, hbdev); in rpcif_hb_copy_from() 139 hyperbus->hbdev.map.size = hyperbus->rpc.size; in rpcif_hb_probe() 140 hyperbus->hbdev.map.virt = hyperbus->rpc.dirmap; in rpcif_hb_probe() 144 hyperbus->hbdev.ctlr = &hyperbus->ctlr; in rpcif_hb_probe() 145 hyperbus->hbdev.np = of_get_next_child(pdev->dev.parent->of_node, NULL); in rpcif_hb_probe() 146 error = hyperbus_register_device(&hyperbus->hbdev); in rpcif_hb_probe() [all …]
|
| A D | hbmc-am654.c | 34 struct hyperbus_device hbdev; member 40 struct map_info *map = &hbdev->map; in am654_hbmc_calibrate() 174 priv->hbdev.np = of_get_next_child(np, NULL); in am654_hbmc_probe() 195 priv->hbdev.map.size = resource_size(&res); in am654_hbmc_probe() 197 if (IS_ERR(priv->hbdev.map.virt)) { in am654_hbmc_probe() 198 ret = PTR_ERR(priv->hbdev.map.virt); in am654_hbmc_probe() 204 priv->hbdev.ctlr = &priv->ctlr; in am654_hbmc_probe() 212 priv->hbdev.priv = dev_priv; in am654_hbmc_probe() 234 of_node_put(priv->hbdev.np); in am654_hbmc_probe() 243 hyperbus_unregister_device(&priv->hbdev); in am654_hbmc_remove() [all …]
|
Completed in 5 milliseconds