Lines Matching full:rpc
3 * Linux driver for RPC-IF HyperFlash
18 #include <memory/renesas-rpc-if.h>
21 struct rpcif rpc; member
46 static void rpcif_hb_prepare_read(struct rpcif *rpc, void *to, in rpcif_hb_prepare_read() argument
59 rpcif_prepare(rpc->dev, &op, NULL, NULL); in rpcif_hb_prepare_read()
62 static void rpcif_hb_prepare_write(struct rpcif *rpc, unsigned long to, in rpcif_hb_prepare_write() argument
73 rpcif_prepare(rpc->dev, &op, NULL, NULL); in rpcif_hb_prepare_write()
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()
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()
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()
127 error = rpcif_sw_init(&hyperbus->rpc, pdev->dev.parent); 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()
153 pm_runtime_disable(hyperbus->rpc.dev); in rpcif_hb_probe()
163 pm_runtime_disable(hyperbus->rpc.dev); in rpcif_hb_remove()
167 { .name = "rpc-if-hyperflash" },
177 .name = "rpc-if-hyperflash",
183 MODULE_DESCRIPTION("Renesas RPC-IF HyperFlash driver");