Lines Matching refs:hyperbus

78 	struct rpcif_hyperbus *hyperbus =  in rpcif_hb_read16()  local
82 rpcif_hb_prepare_read(&hyperbus->rpc, &data, addr, 2); in rpcif_hb_read16()
84 rpcif_manual_xfer(hyperbus->rpc.dev); in rpcif_hb_read16()
92 struct rpcif_hyperbus *hyperbus = in rpcif_hb_write16() local
95 rpcif_hb_prepare_write(&hyperbus->rpc, addr, &data, 2); in rpcif_hb_write16()
97 rpcif_manual_xfer(hyperbus->rpc.dev); in rpcif_hb_write16()
103 struct rpcif_hyperbus *hyperbus = in rpcif_hb_copy_from() local
106 rpcif_hb_prepare_read(&hyperbus->rpc, to, from, len); in rpcif_hb_copy_from()
108 rpcif_dirmap_read(hyperbus->rpc.dev, from, len, to); in rpcif_hb_copy_from()
120 struct rpcif_hyperbus *hyperbus; in rpcif_hb_probe() local
123 hyperbus = devm_kzalloc(dev, sizeof(*hyperbus), GFP_KERNEL); in rpcif_hb_probe()
124 if (!hyperbus) in rpcif_hb_probe()
127 error = rpcif_sw_init(&hyperbus->rpc, pdev->dev.parent); in rpcif_hb_probe()
131 platform_set_drvdata(pdev, hyperbus); in rpcif_hb_probe()
133 pm_runtime_enable(hyperbus->rpc.dev); in rpcif_hb_probe()
135 error = rpcif_hw_init(hyperbus->rpc.dev, true); in rpcif_hb_probe()
139 hyperbus->hbdev.map.size = hyperbus->rpc.size; in rpcif_hb_probe()
140 hyperbus->hbdev.map.virt = hyperbus->rpc.dirmap; in rpcif_hb_probe()
142 hyperbus->ctlr.dev = dev; in rpcif_hb_probe()
143 hyperbus->ctlr.ops = &rpcif_hb_ops; 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()
153 pm_runtime_disable(hyperbus->rpc.dev); in rpcif_hb_probe()
159 struct rpcif_hyperbus *hyperbus = platform_get_drvdata(pdev); in rpcif_hb_remove() local
161 hyperbus_unregister_device(&hyperbus->hbdev); in rpcif_hb_remove()
163 pm_runtime_disable(hyperbus->rpc.dev); in rpcif_hb_remove()