Home
last modified time | relevance | path

Searched +full:rpc +full:- +full:if (Results 1 – 25 of 221) sorted by relevance

123456789

/linux/drivers/memory/
H A Drenesas-rpc-if.c1 // SPDX-License-Identifier: GPL-2.0
3 * Renesas RPC-IF core driver
5 * Copyright (C) 2018-2019 Renesas Solutions Corp.
7 * Copyright (C) 2019-2020 Cogent Embedded, Inc.
19 #include <memory/renesas-rpc-if.h>
21 #include "renesas-rpc-if-regs.h"
22 #include "renesas-xspi-if-regs.h"
47 int (*hw_init)(struct rpcif_priv *rpc, bool hyperflash);
48 void (*prepare)(struct rpcif_priv *rpc, const struct rpcif_op *op,
50 int (*manual_xfer)(struct rpcif_priv *rpc);
[all …]
/linux/arch/mips/pci/
H A Dpci-rt3883.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2011-2013 Gabor Juhos <juhosg@openwrt.org>
22 #include <asm/mach-ralink/rt3883.h>
23 #include <asm/mach-ralink/ralink_regs.h>
77 hose = (struct pci_controller *) bus->sysdata; in pci_bus_to_rt3883_controller()
81 static inline u32 rt3883_pci_r32(struct rt3883_pci_controller *rpc, in rt3883_pci_r32() argument
84 return ioread32(rpc->base + reg); in rt3883_pci_r32()
87 static inline void rt3883_pci_w32(struct rt3883_pci_controller *rpc, in rt3883_pci_w32() argument
90 iowrite32(val, rpc->base + reg); in rt3883_pci_w32()
100 static u32 rt3883_pci_read_cfg32(struct rt3883_pci_controller *rpc, in rt3883_pci_read_cfg32() argument
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/
H A Drpc.c22 #include <rm/rpc.h>
32 …* https://github.com/NVIDIA/open-gpu-kernel-modules/blob/535/src/nvidia/inc/kernel/gpu/gsp/message…
36 * RPC via the GSP command queue, GSP writes the status of the submitted
37 * RPC in the status queue.
41 * - message element header (struct r535_gsp_msg), which mostly maintains
44 * - RPC message header (struct nvfw_gsp_rpc), which maintains the info
45 * of the RPC. E.g., the RPC function number.
47 * - The payload, where the RPC message stays. E.g. the params of a
48 * specific RPC function. Some RPC functions also have their headers
53 * +------------------------+
[all …]
/linux/Documentation/devicetree/bindings/memory-controllers/
H A Drenesas,rpc-if.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/memory-controllers/renesas,rpc-if.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Renesas Reduced Pin Count Interface (RPC-IF)
10 - Sergei Shtylyov <sergei.shtylyov@gmail.com>
13 Renesas RPC-IF allows a SPI flash or HyperFlash connected to the SoC to
16 The flash chip itself should be represented by a subnode of the RPC-IF node.
19 - if it contains "jedec,spi-nor", then SPI is used;
20 - if it contains "cfi-flash", then HyperFlash is used.
[all …]
/linux/drivers/mtd/hyperbus/
H A Drpc-if.c1 // SPDX-License-Identifier: GPL-2.0
3 * Linux driver for RPC-IF HyperFlash
5 * Copyright (C) 2019-2020 Cogent Embedded, Inc.
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()
[all …]
/linux/drivers/clk/renesas/
H A Drcar-cpg-lib.c1 // SPDX-License-Identifier: GPL-2.0
3 * R-Car Gen3 Clock Pulse Generator Library
5 * Copyright (C) 2015-2018 Glider bvba
8 * Based on clk-rcar-gen3.c
14 #include <linux/clk-provider.h>
23 #include "rcar-cpg-lib.h"
48 csn->saved = readl(csn->reg); in cpg_simple_notifier_call()
52 writel(csn->saved, csn->reg); in cpg_simple_notifier_call()
61 csn->nb.notifier_call = cpg_simple_notifier_call; in cpg_simple_notifier_register()
62 raw_notifier_chain_register(notifiers, &csn->nb); in cpg_simple_notifier_register()
[all …]
/linux/drivers/greybus/
H A Des2.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright 2014-2015 Google Inc.
6 * Copyright 2014-2015 Linaro Ltd.
48 * Adjust if we are having stalls in the USB buffer due to not enough urbs in
54 * Adjust if we get messages saying we are out of urbs in the system log.
75 * struct es2_ap_dev - ES2 USB Bridge to AP structure
83 * @cport_out_urb_busy: array of flags to see if the @cport_out_urb is busy or
88 * @cdsi1_in_use: true if cport CDSI1 is in use
95 * @arpc_endpoint_in: bulk in endpoint for APBridgeA RPC
138 return (struct es2_ap_dev *)&hd->hd_priv; in hd_to_es2()
[all …]
/linux/tools/net/sunrpc/xdrgen/generators/
H A Dprogram.py4 """Generate code for an RPC program's procedures"""
14 ) -> None:
15 """Emit procedure numbers for each RPC version's procedures"""
21 if procedure.name not in excluded_apis:
35 ) -> None:
36 """Emit declarations for each RPC version's procedures"""
39 if procedure.name not in excluded_apis:
41 if len(arguments) > 0:
49 if procedure.name not in excluded_apis:
51 if len(results) > 0:
[all …]
/linux/net/sunrpc/
H A Dstats.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * procfs-based user access to generic RPC statistics. The stats files
6 * reside in /proc/net/rpc.
9 * If you implement an RPC service that has its own stats routine which
10 * appends the generic RPC stats, make sure you don't exceed the PAGE_SIZE
35 * Get RPC client stats
38 const struct rpc_stat *statp = seq->private; in rpc_proc_show()
39 const struct rpc_program *prog = statp->program; in rpc_proc_show()
44 statp->netcnt, in rpc_proc_show()
45 statp->netudpcnt, in rpc_proc_show()
[all …]
H A Dclnt.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * This file contains the high-level RPC interface.
9 * - RPC header generation and argument serialization.
10 * - Credential refresh.
11 * - TCP connect handling.
12 * - Retry of operation when it is suspected the operation failed because
47 #if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
82 spin_lock(&sn->rpc_client_lock); in rpc_register_client()
83 list_add(&clnt->cl_clients, &sn->all_clients); in rpc_register_client()
84 spin_unlock(&sn->rpc_client_lock); in rpc_register_client()
[all …]
H A Dxprt.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * This is a generic RPC call interface supporting congestion avoidance,
10 * - When a process places a call, it allocates a request slot if
13 * - Next, the caller puts together the RPC message, stuffs it into
15 * - xprt_transmit sends the message and installs the caller on the
16 * transport's wait list. At the same time, if a reply is expected,
19 * - When a packet arrives, the data_ready handler walks the list of
20 * pending requests for that transport. If a matching XID is found, the
22 * - When no reply arrives within the timeout interval, the timer is
25 * of -ETIMEDOUT.
[all …]
H A Dbackchannel_rqst.c1 // SPDX-License-Identifier: GPL-2.0-only
16 #if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
33 return xprt->bc_alloc_count < xprt->bc_alloc_max; in xprt_need_to_requeue()
44 dprintk("RPC: free allocations for req= %p\n", req); in xprt_free_allocation()
45 WARN_ON_ONCE(test_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state)); in xprt_free_allocation()
46 xbufp = &req->rq_rcv_buf; in xprt_free_allocation()
47 free_page((unsigned long)xbufp->head[0].iov_base); in xprt_free_allocation()
48 xbufp = &req->rq_snd_buf; in xprt_free_allocation()
49 free_page((unsigned long)xbufp->head[0].iov_base); in xprt_free_allocation()
55 buf->head[0].iov_len = PAGE_SIZE; in xprt_bc_reinit_xdr_buf()
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
20 tristate "Secure RPC: Kerberos V mechanism"
28 Choose Y here to enable Secure RPC using the Kerberos version 5
29 GSS-API mechanism (RFC 1964).
31 Secure RPC calls with Kerberos require an auxiliary user-space
32 daemon which may be found in the Linux nfs-utils package
33 available from http://linux-nfs.org/. In addition, user-space
36 If unsure, say Y.
39 bool "Enable Kerberos enctypes based on AES and SHA-1"
48 SHA-1 digests. These include aes128-cts-hmac-sha1-96 and
[all …]
H A Dauth.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Generic RPC client authentication API.
62 if (!val) in param_set_hashtbl_sz()
65 if (ret) in param_set_hashtbl_sz()
67 nbits = fls(num - 1); in param_set_hashtbl_sz()
68 if (nbits > MAX_HASHTABLE_BITS || nbits < 2) in param_set_hashtbl_sz()
70 *(unsigned int *)kp->arg = nbits; in param_set_hashtbl_sz()
73 return -EINVAL; in param_set_hashtbl_sz()
80 nbits = *(unsigned int *)kp->arg; in param_get_hashtbl_sz()
92 MODULE_PARM_DESC(auth_hashtable_size, "RPC credential cache hashtable size");
[all …]
H A Dtimer.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Estimate RPC request round trip time.
7 * Based on packet round-trip and variance estimator algorithms described
12 * This RTT estimator is used only for RPC over datagram protocols.
30 * rpc_init_rtt - Initialize an RPC RTT estimator context
40 rt->timeo = timeo; in rpc_init_rtt()
42 if (timeo > RPC_RTO_INIT) in rpc_init_rtt()
43 init = (timeo - RPC_RTO_INIT) << 3; in rpc_init_rtt()
45 rt->srtt[i] = init; in rpc_init_rtt()
46 rt->sdrtt[i] = RPC_RTO_INIT; in rpc_init_rtt()
[all …]
H A Dxprtsock.c1 // SPDX-License-Identifier: GPL-2.0
5 * Client-side transport implementation for sockets.
166 * Wait duration for a reply from the RPC portmapper.
171 * Delay if a UDP socket connect error occurs. This is most likely some
183 * increase over time if the server is down or not responding.
188 * TCP idle timeout; client drops the transport socket if it is idle
190 * holding port numbers when there is no RPC traffic.
199 #if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
210 dprintk("RPC: %s\n", msg); in xs_pktdump()
212 if (!(j & 31)) { in xs_pktdump()
[all …]
H A Dsched.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Scheduling for synchronous and asynchronous RPC requests.
34 * RPC slabs and memory pools
49 * RPC tasks sit here while waiting for conditions to improve.
54 * rpciod-related stuff
62 if (current->flags & PF_WQ_WORKER) in rpc_task_gfp_mask()
70 if (cmpxchg(&task->tk_rpc_status, 0, rpc_status) == 0) in rpc_task_set_rpc_status()
78 unsigned long timeout = READ_ONCE(task->tk_timeout); in rpc_task_timeout()
80 if (timeout != 0) { in rpc_task_timeout()
82 if (time_before(now, timeout)) in rpc_task_timeout()
[all …]
/linux/net/sunrpc/xprtrdma/
H A Dtransport.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
3 * Copyright (c) 2014-2017 Oracle. All rights reserved.
4 * Copyright (c) 2003-2007 Network Appliance, Inc. All rights reserved.
9 * COPYING in the main directory of this source tree, or the BSD-type
39 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45 * This file contains the top-level implementation of an RPC RDMA
49 * transport switch. All others are RPC RDMA internal.
74 #if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
82 static unsigned int max_memreg = RPCRDMA_LAST - 1;
152 snprintf(buf, sizeof(buf), "%08x", ntohl(sin->sin_addr.s_addr)); in xprt_rdma_format_addresses4()
[all …]
H A Dsvc_rdma_sendto.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
3 * Copyright (c) 2016-2018 Oracle. All rights reserved.
5 * Copyright (c) 2005-2006 Network Appliance, Inc. All rights reserved.
10 * COPYING in the main directory of this source tree, or the BSD-type
40 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
48 * RPC serve
[all...]
H A Drpc_rdma.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
3 * Copyright (c) 2014-2020, Oracle and/or its affiliates.
4 * Copyright (c) 2003-2007 Network Appliance, Inc. All rights reserved.
9 * COPYING in the main directory of this source tree, or the BSD-type
39 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45 * This file contains the guts of the RPC RDMA protocol, and
47 * to the Linux RPC framework lives.
57 /* Returns size of largest RPC-over-RDMA header in a Call message
59 * The largest Call header contains a full-size Read list and a
80 /* Returns size of largest RPC-over-RDMA header in a Reply message
[all …]
H A Dbackchannel.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2015-2020, Oracle and/or its affiliates.
5 * Support for reverse-direction RPCs on RPC/RDMA.
19 * xprt_rdma_bc_setup - Pre-allocate resources for handling backchannel requests
29 r_xprt->rx_buf.rb_bc_srv_max_requests = RPCRDMA_BACKWARD_WRS >> 1; in xprt_rdma_bc_setup()
35 * xprt_rdma_bc_maxpayload - Return maximum backchannel message size
43 struct rpcrdma_ep *ep = r_xprt->rx_ep; in xprt_rdma_bc_maxpayload()
46 maxmsg = min_t(unsigned int, ep->re_inline_send, ep->re_inline_recv); in xprt_rdma_bc_maxpayload()
48 return maxmsg - RPCRDMA_HDRLEN_MIN; in xprt_rdma_bc_maxpayload()
58 struct rpcrdma_xprt *r_xprt = rpcx_to_rdmax(rqst->rq_xprt); in rpcrdma_bc_marshal_reply()
[all …]
/linux/include/linux/sunrpc/
H A Dsched.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Scheduling primitives for kernel Sun RPC.
22 * This is the actual RPC procedure call info.
46 to_increment; /* if !exponential */
52 * This is the RPC task struct
69 struct rpc_wait_queue *tk_waitqueue; /* RPC wait queue we're on */
72 struct rpc_wait tk_wait; /* RPC wait */
76 * RPC call state
78 struct rpc_message tk_msg; /* RPC call info */
82 struct rpc_clnt * tk_client; /* RPC client */
[all …]
H A Dsvc.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * RPC server declarations.
28 * RPC service thread pool.
31 * a single one of these per RPC service, but on NUMA machines those
33 * have one pool per NUMA node. This optimisation reduces cross-
34 * node traffic on multi-node NUMA NFS servers.
53 SP_TASK_PENDING, /* still work to do even if no xprt is queued */
60 * RPC service.
62 * An RPC service is a ``daemon,'' possibly multithreaded, which
63 * receives and processes incoming RPC messages.
[all …]
/linux/Documentation/filesystems/nfs/
H A Drpc-server-gss.rst2 rpcsec_gss support for kernel RPC servers
6 implement RPCGSS authentication in kernel RPC servers such as the NFS
13 - RFC2203 v1: https://tools.ietf.org/rfc/rfc2203.txt
14 - RFC5403 v2: https://tools.ietf.org/rfc/rfc5403.txt
18 - RFC7861 v3: https://tools.ietf.org/rfc/rfc7861.txt
35 - initial context establishment
36 - integrity/privacy protection (signing and encrypting of individual
39 The former is more complex and policy-independent, but less
40 performance-sensitive. The latter is simpler and needs to be very fast.
42 Therefore, we perform per-packet integrity and privacy protection in the
[all …]
/linux/drivers/md/
H A Ddm-era-target.c1 // SPDX-License-Identifier: GPL-2.0-only
3 #include "persistent-data/dm-transaction-manager.h"
4 #include "persistent-data/dm-bitset.h"
5 #include "persistent-data/dm-space-map.h"
7 #include <linux/dm-io.h>
8 #include <linux/dm-kcopyd.h>
26 *--------------------------------------------------------------
28 *--------------------------------------------------------------
51 vfree(ws->bits); in writeset_free()
52 ws->bits = NULL; in writeset_free()
[all …]

123456789