Home
last modified time | relevance | path

Searched refs:hbdev (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/mtd/hyperbus/
Dhyperbus-core.c23 struct hyperbus_device *hbdev = map_to_hbdev(map); in hyperbus_read16() local
24 struct hyperbus_ctlr *ctlr = hbdev->ctlr; in hyperbus_read16()
27 read_data.x[0] = ctlr->ops->read16(hbdev, addr); in hyperbus_read16()
35 struct hyperbus_device *hbdev = map_to_hbdev(map); in hyperbus_write16() local
36 struct hyperbus_ctlr *ctlr = hbdev->ctlr; in hyperbus_write16()
38 ctlr->ops->write16(hbdev, addr, d.x[0]); in hyperbus_write16()
44 struct hyperbus_device *hbdev = map_to_hbdev(map); in hyperbus_copy_from() local
45 struct hyperbus_ctlr *ctlr = hbdev->ctlr; in hyperbus_copy_from()
47 ctlr->ops->copy_from(hbdev, to, from, len); in hyperbus_copy_from()
53 struct hyperbus_device *hbdev = map_to_hbdev(map); in hyperbus_copy_to() local
[all …]
Dhbmc-am654.c22 struct hyperbus_device hbdev; member
26 static int am654_hbmc_calibrate(struct hyperbus_device *hbdev) in am654_hbmc_calibrate() argument
28 struct map_info *map = &hbdev->map; in am654_hbmc_calibrate()
93 priv->hbdev.ctlr = &priv->ctlr; in am654_hbmc_probe()
94 priv->hbdev.np = of_get_next_child(dev->of_node, NULL); in am654_hbmc_probe()
95 ret = hyperbus_register_device(&priv->hbdev); in am654_hbmc_probe()
115 ret = hyperbus_unregister_device(&priv->hbdev); in am654_hbmc_remove()
/Linux-v5.4/include/linux/mtd/
Dhyperbus.h45 u16 (*read16)(struct hyperbus_device *hbdev, unsigned long addr);
46 void (*write16)(struct hyperbus_device *hbdev,
48 void (*copy_from)(struct hyperbus_device *hbdev, void *to,
74 int hyperbus_register_device(struct hyperbus_device *hbdev);
82 int hyperbus_unregister_device(struct hyperbus_device *hbdev);