Home
last modified time | relevance | path

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

/drivers/mtd/hyperbus/
Dhyperbus-core.c22 struct hyperbus_device *hbdev = map_to_hbdev(map); in hyperbus_read16() local
23 struct hyperbus_ctlr *ctlr = hbdev->ctlr; in hyperbus_read16()
26 read_data.x[0] = ctlr->ops->read16(hbdev, addr); in hyperbus_read16()
34 struct hyperbus_device *hbdev = map_to_hbdev(map); in hyperbus_write16() local
35 struct hyperbus_ctlr *ctlr = hbdev->ctlr; in hyperbus_write16()
37 ctlr->ops->write16(hbdev, addr, d.x[0]); in hyperbus_write16()
43 struct hyperbus_device *hbdev = map_to_hbdev(map); in hyperbus_copy_from() local
44 struct hyperbus_ctlr *ctlr = hbdev->ctlr; in hyperbus_copy_from()
46 ctlr->ops->copy_from(hbdev, to, from, len); in hyperbus_copy_from()
52 struct hyperbus_device *hbdev = map_to_hbdev(map); in hyperbus_copy_to() local
[all …]
Drpc-if.c23 struct hyperbus_device hbdev; member
76 static u16 rpcif_hb_read16(struct hyperbus_device *hbdev, unsigned long addr) in rpcif_hb_read16() argument
79 container_of(hbdev, struct rpcif_hyperbus, hbdev); in rpcif_hb_read16()
89 static void rpcif_hb_write16(struct hyperbus_device *hbdev, unsigned long addr, in rpcif_hb_write16() argument
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()
137 hyperbus->hbdev.map.size = hyperbus->rpc.size; in rpcif_hb_probe()
138 hyperbus->hbdev.map.virt = hyperbus->rpc.dirmap; in rpcif_hb_probe()
142 hyperbus->hbdev.ctlr = &hyperbus->ctlr; in rpcif_hb_probe()
[all …]
Dhbmc-am654.c34 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()
[all …]