Home
last modified time | relevance | path

Searched refs:rpc (Results 1 – 25 of 48) sorted by relevance

12

/drivers/memory/
A Drenesas-rpc-if.c324 ret = rpc->info->impl->hw_init(rpc, hyperflash); in rpcif_hw_init()
498 rpc->info->impl->prepare(rpc, op, offs, len); in rpcif_prepare()
512 regmap_write(rpc->regmap, RPCIF_SMOPR, rpc->option); in rpcif_manual_xfer_impl()
514 regmap_write(rpc->regmap, RPCIF_SMDRENR, rpc->ddr); in rpcif_manual_xfer_impl()
515 regmap_write(rpc->regmap, RPCIF_SMADR, rpc->smadr); in rpcif_manual_xfer_impl()
572 memcpy_fromio(rpc->buffer, rpc->dirmap, rpc->xferlen); in rpcif_manual_xfer_impl()
619 rpcif_hw_init_impl(rpc, rpc->bus_size == 2); in rpcif_manual_xfer_impl()
772 ret = rpc->info->impl->manual_xfer(rpc); in rpcif_manual_xfer()
997 rpc = devm_kzalloc(dev, sizeof(*rpc), GFP_KERNEL); in rpcif_probe()
998 if (!rpc) in rpcif_probe()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/
A Dalloc.c32 rpc_free_v03_00 *rpc; in r535_gsp_rpc_rm_free() local
37 rpc = nvkm_gsp_rpc_get(gsp, NV_VGPU_MSG_FUNCTION_FREE, sizeof(*rpc)); in r535_gsp_rpc_rm_free()
50 rpc_gsp_rm_alloc_v03_00 *rpc = to_payload_hdr(params, rpc); in r535_gsp_rpc_rm_alloc_done() local
58 rpc_gsp_rm_alloc_v03_00 *rpc = to_payload_hdr(params, rpc); in r535_gsp_rpc_rm_alloc_push() local
62 rpc = nvkm_gsp_rpc_push(gsp, rpc, NVKM_GSP_RPC_REPLY_RECV, sizeof(*rpc)); in r535_gsp_rpc_rm_alloc_push()
64 return rpc; in r535_gsp_rpc_rm_alloc_push()
66 if (rpc->status) { in r535_gsp_rpc_rm_alloc_push()
94 if (IS_ERR(rpc)) in r535_gsp_rpc_rm_alloc_get()
95 return rpc; in r535_gsp_rpc_rm_alloc_get()
101 rpc->status = 0; in r535_gsp_rpc_rm_alloc_get()
[all …]
A Drpc.c346 rpc = buf; in r535_gsp_msgq_recv()
461 rpc = r535_gsp_msgq_peek(gsp, sizeof(*rpc), &retries); in r535_gsp_msg_recv()
463 return rpc; in r535_gsp_msg_recv()
467 return rpc; in r535_gsp_msg_recv()
500 rpc->length - sizeof(*rpc)); in r535_gsp_msg_recv()
580 struct nvfw_gsp_rpc *rpc = to_gsp_hdr(payload, rpc); in r535_gsp_rpc_send() local
586 rpc->length, rpc->length - sizeof(*rpc)); in r535_gsp_rpc_send()
588 rpc->data, rpc->length - sizeof(*rpc), true); in r535_gsp_rpc_send()
621 rpc->length = sizeof(*rpc) + payload_size; in r535_gsp_rpc_get()
629 struct nvfw_gsp_rpc *rpc = to_gsp_hdr(payload, rpc); in r535_gsp_rpc_push() local
[all …]
A Dctrl.c30 rpc_gsp_rm_control_v03_00 *rpc = to_payload_hdr(params, rpc); in r535_gsp_rpc_rm_ctrl_done() local
40 rpc_gsp_rm_control_v03_00 *rpc = to_payload_hdr((*params), rpc); in r535_gsp_rpc_rm_ctrl_push() local
44 rpc = nvkm_gsp_rpc_push(gsp, rpc, NVKM_GSP_RPC_REPLY_RECV, repc); in r535_gsp_rpc_rm_ctrl_push()
47 return PTR_ERR(rpc); in r535_gsp_rpc_rm_ctrl_push()
50 if (rpc->status) { in r535_gsp_rpc_rm_ctrl_push()
54 object->client->object.handle, object->handle, rpc->cmd, rpc->status); in r535_gsp_rpc_rm_ctrl_push()
77 if (IS_ERR(rpc)) in r535_gsp_rpc_rm_ctrl_get()
78 return rpc; in r535_gsp_rpc_rm_ctrl_get()
82 rpc->cmd = cmd; in r535_gsp_rpc_rm_ctrl_get()
83 rpc->status = 0; in r535_gsp_rpc_rm_ctrl_get()
[all …]
A Dfbsr.c58 rpc_alloc_memory_v13_01 *rpc; in r535_fbsr_memlist() local
62 sizeof(*rpc) + pages * sizeof(rpc->pteDesc.pte_pde[0])); in r535_fbsr_memlist()
63 if (IS_ERR(rpc)) in r535_fbsr_memlist()
64 return PTR_ERR(rpc); in r535_fbsr_memlist()
68 rpc->hMemory = handle; in r535_fbsr_memlist()
81 rpc->pteAdjust = 0; in r535_fbsr_memlist()
82 rpc->length = size; in r535_fbsr_memlist()
83 rpc->pageCount = pages; in r535_fbsr_memlist()
84 rpc->pteDesc.idr = 0; in r535_fbsr_memlist()
85 rpc->pteDesc.reserved1 = 0; in r535_fbsr_memlist()
[all …]
A Dbar.c55 rpc_update_bar_pde_v15_00 *rpc; in r535_bar_bar2_update_pde() local
57 rpc = nvkm_gsp_rpc_get(gsp, NV_VGPU_MSG_FUNCTION_UPDATE_BAR_PDE, sizeof(*rpc)); in r535_bar_bar2_update_pde()
58 if (WARN_ON(IS_ERR_OR_NULL(rpc))) in r535_bar_bar2_update_pde()
61 rpc->info.barType = NV_RPC_UPDATE_PDE_BAR_2; in r535_bar_bar2_update_pde()
62 rpc->info.entryValue = pdbe; in r535_bar_bar2_update_pde()
63 rpc->info.entryLevelShift = page_shift; in r535_bar_bar2_update_pde()
65 return nvkm_gsp_rpc_wr(gsp, rpc, NVKM_GSP_RPC_REPLY_RECV); in r535_bar_bar2_update_pde()
A Dgsp.c215 GspStaticConfigInfo *rpc; in r535_gsp_get_static_info() local
217 rpc = nvkm_gsp_rpc_rd(gsp, NV_VGPU_MSG_FUNCTION_GET_GSP_STATIC_INFO, sizeof(*rpc)); in r535_gsp_get_static_info()
218 if (IS_ERR(rpc)) in r535_gsp_get_static_info()
219 return PTR_ERR(rpc); in r535_gsp_get_static_info()
334 if (IS_ERR(rpc)) in r535_gsp_rpc_unloading_guest_driver()
335 return PTR_ERR(rpc); in r535_gsp_rpc_unloading_guest_driver()
339 rpc->bGc6Entering = 0; in r535_gsp_rpc_unloading_guest_driver()
343 rpc->bGc6Entering = 0; in r535_gsp_rpc_unloading_guest_driver()
697 if (IS_ERR(rpc)) { in r535_gsp_rpc_set_registry()
698 ret = PTR_ERR(rpc); in r535_gsp_rpc_set_registry()
[all …]
/drivers/mtd/hyperbus/
A Drpc-if.c21 struct rpcif rpc; member
59 rpcif_prepare(rpc->dev, &op, NULL, NULL); in rpcif_hb_prepare_read()
73 rpcif_prepare(rpc->dev, &op, NULL, NULL); in rpcif_hb_prepare_write()
84 rpcif_manual_xfer(hyperbus->rpc.dev); in rpcif_hb_read16()
97 rpcif_manual_xfer(hyperbus->rpc.dev); in rpcif_hb_write16()
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()
[all …]
A DMakefile5 obj-$(CONFIG_RPCIF_HYPERBUS) += rpc-if.o
/drivers/clk/renesas/
A Drcar-cpg-lib.c144 struct rpc_clock *rpc; in cpg_rpc_clk_register() local
147 rpc = kzalloc(sizeof(*rpc), GFP_KERNEL); in cpg_rpc_clk_register()
148 if (!rpc) in cpg_rpc_clk_register()
151 rpc->div.reg = rpcckcr; in cpg_rpc_clk_register()
152 rpc->div.width = 3; in cpg_rpc_clk_register()
154 rpc->div.lock = &cpg_lock; in cpg_rpc_clk_register()
156 rpc->gate.reg = rpcckcr; in cpg_rpc_clk_register()
157 rpc->gate.bit_idx = 8; in cpg_rpc_clk_register()
159 rpc->gate.lock = &cpg_lock; in cpg_rpc_clk_register()
161 rpc->csn.reg = rpcckcr; in cpg_rpc_clk_register()
[all …]
/drivers/spi/
A Dspi-rpc-if.c94 struct rpcif *rpc = in rpcif_spi_mem_dirmap_read() local
107 struct rpcif *rpc = in rpcif_spi_mem_dirmap_create() local
116 if (!rpc->dirmap) in rpcif_spi_mem_dirmap_create()
128 struct rpcif *rpc = in rpcif_spi_mem_exec_op() local
133 return rpcif_manual_xfer(rpc->dev); in rpcif_spi_mem_exec_op()
148 struct rpcif *rpc; in rpcif_spi_probe() local
155 rpc = spi_controller_get_devdata(ctlr); in rpcif_spi_probe()
156 error = rpcif_sw_init(rpc, parent); in rpcif_spi_probe()
164 pm_runtime_enable(rpc->dev); in rpcif_spi_probe()
186 pm_runtime_disable(rpc->dev); in rpcif_spi_probe()
[all …]
/drivers/fwctl/pds/
A Dmain.c324 rpc->in.ep); in pdsfc_validate_rpc()
344 dev_dbg(dev, "Invalid operation %d for endpoint %d\n", rpc->in.op, rpc->in.ep); in pdsfc_validate_rpc()
357 struct fwctl_rpc_pds *rpc = in; in pdsfc_fw_rpc() local
368 if (rpc->in.len > 0) { in pdsfc_fw_rpc()
377 rpc->in.len)) { in pdsfc_fw_rpc()
392 if (rpc->out.len > 0) { in pdsfc_fw_rpc()
413 .ep = cpu_to_le32(rpc->in.ep), in pdsfc_fw_rpc()
414 .op = cpu_to_le32(rpc->in.op), in pdsfc_fw_rpc()
425 __func__, rpc->in.ep, rpc->in.op, in pdsfc_fw_rpc()
434 if (copy_to_user(u64_to_user_ptr(rpc->out.payload), out_payload, rpc->out.len)) { in pdsfc_fw_rpc()
[all …]
/drivers/greybus/
A Des2.c886 rpc = kzalloc(sizeof(*rpc), GFP_KERNEL); in arpc_alloc()
887 if (!rpc) in arpc_alloc()
891 rpc->req = kzalloc(sizeof(*rpc->req) + size, GFP_KERNEL); in arpc_alloc()
895 rpc->resp = kzalloc(sizeof(*rpc->resp), GFP_KERNEL); in arpc_alloc()
900 rpc->req->size = cpu_to_le16(sizeof(*rpc->req) + size); in arpc_alloc()
905 return rpc; in arpc_alloc()
910 kfree(rpc); in arpc_alloc()
919 kfree(rpc); in arpc_free()
959 rpc->req, le16_to_cpu(rpc->req->size), in arpc_send()
982 if (!rpc) in arpc_sync()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/
A Dgsp.c79 GspStaticConfigInfo *rpc; in r570_gsp_get_static_info() local
84 rpc = nvkm_gsp_rpc_rd(gsp, NV_VGPU_MSG_FUNCTION_GET_GSP_STATIC_INFO, sizeof(*rpc)); in r570_gsp_get_static_info()
85 if (IS_ERR(rpc)) in r570_gsp_get_static_info()
86 return PTR_ERR(rpc); in r570_gsp_get_static_info()
90 gsp->internal.client.object.handle = rpc->hInternalClient; in r570_gsp_get_static_info()
96 gsp->internal.device.object.handle = rpc->hInternalDevice; in r570_gsp_get_static_info()
102 gsp->bar.rm_bar1_pdb = rpc->bar1PdeBase; in r570_gsp_get_static_info()
103 gsp->bar.rm_bar2_pdb = rpc->bar2PdeBase; in r570_gsp_get_static_info()
105 r535_gsp_get_static_info_fb(gsp, &rpc->fbRegionInfoParams); in r570_gsp_get_static_info()
111 meta->frtsOffset = rpc->fwWprLayoutOffset.frtsOffset; in r570_gsp_get_static_info()
[all …]
/drivers/net/ethernet/meta/fbnic/
A Dfbnic_hw_stats.c168 struct fbnic_rpc_stats *rpc) in fbnic_reset_rpc_stats() argument
172 &rpc->unkn_etype); in fbnic_reset_rpc_stats()
175 &rpc->unkn_ext_hdr); in fbnic_reset_rpc_stats()
183 &rpc->out_of_hdr_err); in fbnic_reset_rpc_stats()
186 &rpc->ovr_size_err); in fbnic_reset_rpc_stats()
190 struct fbnic_rpc_stats *rpc) in fbnic_get_rpc_stats32() argument
194 &rpc->unkn_etype); in fbnic_get_rpc_stats32()
197 &rpc->unkn_ext_hdr); in fbnic_get_rpc_stats32()
208 &rpc->out_of_hdr_err); in fbnic_get_rpc_stats32()
211 &rpc->ovr_size_err); in fbnic_get_rpc_stats32()
[all …]
/drivers/md/
A Ddm-era-target.c1196 struct rpc { struct
1325 struct rpc *rpc, *tmp; in process_rpc_calls() local
1333 rpc->result = rpc->fn0 ? rpc->fn0(era->md) : rpc->fn1(era->md, rpc->arg); in process_rpc_calls()
1378 static int perform_rpc(struct era *era, struct rpc *rpc) in perform_rpc() argument
1395 struct rpc rpc; in in_worker0() local
1397 rpc.fn0 = fn; in in_worker0()
1398 rpc.fn1 = NULL; in in_worker0()
1406 struct rpc rpc; in in_worker1() local
1408 rpc.fn0 = NULL; in in_worker1()
1409 rpc.fn1 = fn; in in_worker1()
[all …]
/drivers/media/platform/amphion/
A Dvpu_core.c579 core->rpc.phys = res.start; in vpu_core_parse_dt()
580 core->rpc.length = resource_size(&res); in vpu_core_parse_dt()
584 &core->rpc.phys, core->rpc.length); in vpu_core_parse_dt()
590 core->rpc.virt = memremap(core->rpc.phys, core->rpc.length, MEMREMAP_WC); in vpu_core_parse_dt()
591 memset(core->rpc.virt, 0, core->rpc.length); in vpu_core_parse_dt()
593 ret = vpu_iface_check_memory_region(core, core->rpc.phys, core->rpc.length); in vpu_core_parse_dt()
596 &core->rpc.phys, core->rpc.length); in vpu_core_parse_dt()
601 core->log.phys = core->rpc.phys + core->res->rpc_size; in vpu_core_parse_dt()
602 core->log.virt = core->rpc.virt + core->res->rpc_size; in vpu_core_parse_dt()
607 core->rpc.length = core->res->rpc_size; in vpu_core_parse_dt()
[all …]
A Dvpu_windsor.c565 if (rpc->phys < boot_addr) in vpu_windsor_init_rpc()
568 base_phy_addr = rpc->phys - boot_addr; in vpu_windsor_init_rpc()
569 iface = rpc->virt; in vpu_windsor_init_rpc()
575 iface->exec_area_size = rpc->length; in vpu_windsor_init_rpc()
580 shared->cmd_mem_vir = rpc->virt + offset; in vpu_windsor_init_rpc()
589 shared->msg_mem_vir = rpc->virt + offset; in vpu_windsor_init_rpc()
612 hcs->ctrls[i].expert = rpc->virt + offset; in vpu_windsor_init_rpc()
616 hcs->ctrls[i].param = rpc->virt + offset; in vpu_windsor_init_rpc()
620 hcs->ctrls[i].pool = rpc->virt + offset; in vpu_windsor_init_rpc()
628 hcs->ctrls[i].dsa = rpc->virt + offset; in vpu_windsor_init_rpc()
[all …]
A Dvpu_malone.c363 if (rpc->phys < boot_addr) in vpu_malone_init_rpc()
366 iface = rpc->virt; in vpu_malone_init_rpc()
374 iface->exec_area_size = rpc->length; in vpu_malone_init_rpc()
398 hc->codec_param = rpc->virt + offset; in vpu_malone_init_rpc()
403 hc->jpg = rpc->virt + offset; in vpu_malone_init_rpc()
408 hc->seq_mem = rpc->virt + offset; in vpu_malone_init_rpc()
413 hc->pic_mem = rpc->virt + offset; in vpu_malone_init_rpc()
418 hc->gop_mem = rpc->virt + offset; in vpu_malone_init_rpc()
423 hc->qmeter_mem = rpc->virt + offset; in vpu_malone_init_rpc()
429 hc->dbglog_mem = rpc->virt + offset; in vpu_malone_init_rpc()
[all …]
A Dvpu_rpc.h53 struct vpu_buffer *rpc, dma_addr_t boot_addr);
196 struct vpu_buffer *rpc, in vpu_iface_init() argument
204 ops->init_rpc(shared, rpc, boot_addr); in vpu_iface_init()
207 if (rpc->bytesused > rpc->length) in vpu_iface_init()
/drivers/pci/pcie/
A Daer.c1539 struct pci_dev *rp = rpc->rpd; in aer_irq()
1586 struct pci_dev *pdev = rpc->rpd; in aer_enable_rootport()
1639 aer_disable_rootport(rpc); in aer_remove()
1651 struct aer_rpc *rpc; in aer_probe() local
1666 if (!rpc) in aer_probe()
1669 rpc->rpd = port; in aer_probe()
1670 INIT_KFIFO(rpc->aer_fifo); in aer_probe()
1671 set_service_data(dev, rpc); in aer_probe()
1681 aer_enable_rootport(rpc); in aer_probe()
1690 aer_disable_rootport(rpc); in aer_suspend()
[all …]
/drivers/net/ethernet/aquantia/atlantic/hw_atl/
A Dhw_atl_utils.c524 err = hw_atl_write_fwcfg_dwords(self, (u32 *)(void *)&self->rpc, in hw_atl_utils_fw_rpc_call()
539 struct hw_atl_utils_fw_rpc **rpc) in hw_atl_utils_fw_rpc_wait() argument
562 if (sw.len > sizeof(self->rpc)) { in hw_atl_utils_fw_rpc_wait()
573 if (rpc) { in hw_atl_utils_fw_rpc_wait()
575 if (fw.len > sizeof(self->rpc)) { in hw_atl_utils_fw_rpc_wait()
584 &self->rpc, in hw_atl_utils_fw_rpc_wait()
592 *rpc = &self->rpc; in hw_atl_utils_fw_rpc_wait()
A Dhw_atl_utils_fw2x.c360 struct hw_atl_utils_fw_rpc *rpc = NULL; in aq_fw2x_set_wol() local
381 err = hw_atl_utils_fw_rpc_wait(self, &rpc); in aq_fw2x_set_wol()
387 memset(rpc, 0, rpc_size); in aq_fw2x_set_wol()
388 info = &rpc->fw2x_offloads; in aq_fw2x_set_wol()
/drivers/staging/most/dim2/
A Dhal.c69 u16 rpc; member
388 g.atx_dbr.rpc = dim2_rpc(ch_addr); in dbrcnt_init()
389 g.atx_dbr.wpc = g.atx_dbr.rpc; in dbrcnt_init()
409 while (norm_pc(dbr->rpc) != cur_rpc) { in dim_dbr_space()
410 dbr->rest_size += dbr->sz_queue[norm_pc(dbr->rpc)]; in dim_dbr_space()
411 dbr->rpc++; in dim_dbr_space()
414 if ((u16)(dbr->wpc - dbr->rpc) >= CDT0_RPC_MASK) in dim_dbr_space()
/drivers/gpu/drm/nouveau/include/nvkm/subdev/
A Dgsp.h271 return gsp->rm->api->rpc->get(gsp, fn, argc); in nvkm_gsp_rpc_get()
278 return gsp->rm->api->rpc->push(gsp, argv, policy, repc); in nvkm_gsp_rpc_push()
307 gsp->rm->api->rpc->done(gsp, repv); in nvkm_gsp_rpc_done()

Completed in 894 milliseconds

12