Searched refs:hbdev (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/drivers/mtd/hyperbus/ |
H 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 …]
|
H 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 …]
|
H A D | hbmc-am654.c | 34 struct hyperbus_device hbdev; member 40 struct map_info *map = &hbdev->map; in am654_hbmc_calibrate() 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() 193 priv->hbdev.map.size = resource_size(&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() [all …]
|
/openbmc/linux/include/linux/mtd/ |
H A D | hyperbus.h | 58 u16 (*read16)(struct hyperbus_device *hbdev, unsigned long addr); 59 void (*write16)(struct hyperbus_device *hbdev, 61 void (*copy_from)(struct hyperbus_device *hbdev, void *to, 87 int hyperbus_register_device(struct hyperbus_device *hbdev); 93 void hyperbus_unregister_device(struct hyperbus_device *hbdev);
|