Lines Matching refs:hbdev
23 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()
143 hyperbus->hbdev.np = of_get_next_child(pdev->dev.parent->of_node, NULL); in rpcif_hb_probe()
144 error = hyperbus_register_device(&hyperbus->hbdev); in rpcif_hb_probe()
154 int error = hyperbus_unregister_device(&hyperbus->hbdev); in rpcif_hb_remove()