| /linux/net/sunrpc/ |
| H A D | sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0 22 kfree(addr->addr); in free_xprt_addr() 54 kobj->kset = kset; in rpc_sysfs_object_alloc() 63 static inline struct rpc_clnt * 68 struct rpc_clnt *ret = c->clnt; in rpc_sysfs_client_kobj_get_clnt() 70 return refcount_inc_not_zero(&ret->cl_count) ? ret : NULL; in rpc_sysfs_client_kobj_get_clnt() 73 static inline struct rpc_xprt * 79 return xprt_get(x->xpr in rpc_sysfs_xprt_kobj_get_xprt() [all...] |
| /linux/drivers/s390/scsi/ |
| H A D | zfcp_fc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Fibre Channel related definitions and inline functions for the zfcp 21 #define ZFCP_FC_CT_SIZE_PAGE (PAGE_SIZE - sizeof(struct fc_ct_hdr)) 27 - sizeof(struct fc_ct_hdr)) 34 * struct zfcp_fc_event - FC HBAAPI event for internal queueing from irq context 46 * struct zfcp_fc_events - Infrastructure for posting FC events from irq context 58 * struct zfcp_fc_gid_pn_req - container for ct header plus gid_pn request 68 * struct zfcp_fc_gid_pn_rsp - container for ct header plus gid_pn response 78 * struct zfcp_fc_gpn_ft - container for ct header plus gpn_ft request 88 * struct zfcp_fc_gspn_req - container for ct header plus GSPN_ID request [all …]
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_drm_client.h | 1 /* SPDX-License-Identifier: MIT */ 45 * @past_runtime: Accumulation of pphwsp runtimes from closed contexts. 50 static inline struct i915_drm_client * 53 kref_get(&client->kref); in i915_drm_client_get() 59 static inline void i915_drm_client_put(struct i915_drm_client *client) in i915_drm_client_put() 61 kref_put(&client->kref, __i915_drm_client_free); in i915_drm_client_put() 75 static inline void i915_drm_client_add_object(struct i915_drm_client *client, in i915_drm_client_add_object() 80 static inline void 85 static inline void
|
| /linux/drivers/usb/gadget/function/ |
| H A D | u_fs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 56 static inline void ffs_dev_lock(void) in ffs_dev_lock() 61 static inline void ffs_dev_unlock(void) in ffs_dev_unlock() 114 * All endpoints have been closed. This state is also set if 122 * unlinked and all closed so this is not a problem; ep0 is 123 * also closed but ep0 file exists and so open(2) on ep0 must 142 * -EIDRM. This state is only set when adding event. 170 * a race. Is that the case? Or maybe we can use cdev->req 186 * + FFS_NO_SETUP -> FFS_SETUP_PENDING -- P: ev.waitq.lock 188 * + FFS_SETUP_PENDING -> FFS_NO_SETUP -- P: ev.waitq.lock [all …]
|
| /linux/rust/kernel/fs/ |
| H A D | file.rs | 1 // SPDX-License-Identifier: GPL-2.0 30 /// Signal-driven I/O is enabled. 33 /// Close-on-exec flag is set. 117 /// Instances of this type are reference-counted. The reference count is incremented by the 130 /// `fdput`. The idea behind light refcounts is that if the fd is not closed between the calls to 132 /// files_struct` holds a reference until the fd is closed. This means that it's safe to access the 135 /// The requirement that the fd is not closed during a light refcount applies globally across all 136 /// threads - not just on the thread using the light refcount. For this reason, light refcounts are 170 /// * The Rust borrow-checker normally ensures this by enforcing that the `ARef<File>` from which 177 /// files_struct` and create an `&File` from it. The "fd cannot be closed" rule is like the Rust [all …]
|
| /linux/arch/powerpc/include/asm/ |
| H A D | vas.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright 2016-17 IBM Corp. 11 #include <uapi/asm/vas-api.h> 37 /* Window is closed in the hypervisor due to lost credit */ 39 /* Window is closed due to migration */ 46 #define MASK_LSH(m) (__builtin_ffsl(m) - 1) 51 * Co-processor Engine type. 65 * to pid and mm until windows are closed. 100 static inline void put_vas_user_win_ref(struct vas_user_win_ref *ref) in put_vas_user_win_ref() 103 put_pid(ref->pid); in put_vas_user_win_ref() [all …]
|
| /linux/drivers/scsi/csiostor/ |
| H A D | csio_scsi.h | 4 * Copyright (c) 2008-2012 Chelsio Communications, Inc. All rights reserved. 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 66 * 48 (sizeof(struct fw_scsi_write[read]_wr)) - FW WR 67 * + 32 (sizeof(struct fc_fcp_cmnd)) - Immediate FCP_CMD 68 * ------ 70 * ------ 71 * That leaves us with 512 - 96 = 432 bytes for data SGE. Using 73 * - 4 bytes for cmnd_sge. 74 * - 12 bytes for the first SGL. [all …]
|
| /linux/drivers/clk/tegra/ |
| H A D | clk-dfll.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * clk-dfll.c - Tegra DFLL clock source common code 5 * Copyright (C) 2012-2019 NVIDIA Corporation. All rights reserved. 12 * "CL-DVFS". To try to avoid confusion, this code refers to them 18 * DFLL can be operated in either open-loop mode or closed-loop mode. 19 * In open-loop mode, the DFLL generates an output clock appropriate 20 * to the supply voltage. In closed-loop mode, when configured with a 27 * performance-measurement code and any code that relies on the CPU 32 #include <linux/clk-provider.h> 49 #include "clk-dfll.h" [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | fd_array.c | 1 // SPDX-License-Identifier: GPL-2.0 10 static inline int new_map(void) in new_map() 34 .str_off = offsetof(struct btf_blob, str) - offsetof(struct btf_blob, types), in new_btf() 51 FD = -1; \ 79 static inline int bpf_prog_get_map_ids(int prog_fd, __u32 *nr_map_ids, __u32 *map_ids) in bpf_prog_get_map_ids() 91 return -1; in bpf_prog_get_map_ids() 103 BPF_ST_MEM(BPF_DW, BPF_REG_10, -8, 0), in __load_test_prog() 105 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), in __load_test_prog() 153 int prog_fd = -1; in check_fd_array_cnt__no_fd_array() 164 * Load a program, which uses one map, and pass two extra, non-equal, maps in [all …]
|
| /linux/tools/perf/util/ |
| H A D | libdw.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include "dwarf-aux.h" 55 * and closed by the Dwfl. If not, it is not closed. in dso__libdw_dwfl() 85 struct symbol *inline_sym = new_inline_sym(args->dso, args->sym, die_name(die)); in libdw_a2l_cb() 97 if (!list_empty(&args->node->va in libdw_a2l_cb() [all...] |
| H A D | dso.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 12 #include "build-id.h" 25 * enum dso_binary_type - The kind of DSO generally associated with a memory 69 * in /usr/lib/debug/.build-id/. 77 /** @DSO_BINARY_TYPE__SYSTEM_PATH_DSO: A regular executable/shared-object file. */ 92 * @DSO_BINARY_TYPE__OPENEMBEDDED_DEBUGINFO: Openembedded/Yocto -dbg 101 * @DSO_BINARY_TYPE__OOL: out of line code such as kprobe-replaced 122 DSO_DATA_STATUS_ERROR = - [all...] |
| /linux/include/linux/ |
| H A D | watch_queue.h | 1 // SPDX-License-Identifier: GPL-2.0 2 /* User-mappable watch queue 7 * See Documentation/core-api/watch_queue.rst 41 struct pipe_inode_info *pipe; /* Pipe we use as a buffer, NULL if queue closed */ 60 struct hlist_node queue_node; /* Link in queue->watches */ 62 struct hlist_node list_node; /* Link in watch_list->watchers */ 94 static inline void init_watch_list(struct watch_list *wlist, in init_watch_list() 97 INIT_HLIST_HEAD(&wlist->watchers); in init_watch_list() 98 spin_lock_init(&wlist->lock); in init_watch_list() 99 wlist->release_watch = release_watch; in init_watch_list() [all …]
|
| H A D | hdlc.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 1999-2005 Krzysztof Halasa <khc@pm.waw.pl> 40 /* hardware driver must handle this instead of dev->hard_start_xmit */ 69 static inline struct hdlc_device* dev_to_hdlc(struct net_device *dev) in dev_to_hdlc() 78 for (i=0; i < skb->len; i++) { in debug_frame() 83 printk(" %02X", skb->data[i]); in debug_frame() 91 /* Must be called by hardware driver when HDLC device is being closed */ 93 /* Must be pointed to by hw driver's dev->netdev_ops->ndo_start_xmit */ 106 skb->dev = dev; in hdlc_type_trans() 109 if (hdlc->proto->type_trans) in hdlc_type_trans() [all …]
|
| /linux/include/net/ |
| H A D | sock_reuseport.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 18 u16 num_closed_socks; /* closed elements in socks */ 21 * reuse->socks[] group. 47 static inline bool reuseport_has_conns(struct sock *sk) in reuseport_has_conns() 53 reuse = rcu_dereference(sk->sk_reuseport_cb); in reuseport_has_conns() 54 if (reuse && reuse->has_conns) in reuseport_has_conns()
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf_internal.h | 1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ 24 * ([0]), and just returns -EINVAL even if file exists and is accessible. 29 * [0] https://android.googlesource.com/platform/bionic/+/refs/heads/android13-release/libc/bionic/faccessat.cpp#50 30 * [1] https://github.com/libbpf/libbpf-bootstrap/issues/250#issuecomment-1911324250 37 /* make sure libbpf doesn't use kernel-onl [all...] |
| /linux/fs/cachefiles/ |
| H A D | ondemand.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 static inline void cachefiles_req_put(struct cachefiles_req *req) in cachefiles_req_put() 13 if (refcount_dec_and_test(&req->ref)) in cachefiles_req_put() 20 struct cachefiles_object *object = file->private_data; in cachefiles_ondemand_fd_release() 30 info = object->ondemand; in cachefiles_ondemand_fd_release() 31 cache = object->volume->cache; in cachefiles_ondemand_fd_release() 32 xas.xa = &cache->reqs; in cachefiles_ondemand_fd_release() 34 xa_lock(&cache->reqs); in cachefiles_ondemand_fd_release() 35 spin_lock(&info->lock); in cachefiles_ondemand_fd_release() 36 object_id = info->ondemand_id; in cachefiles_ondemand_fd_release() [all …]
|
| /linux/drivers/acpi/ |
| H A D | acpi_dbg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 28 (CIRC_CNT((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 30 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 32 (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 34 (CIRC_SPACE_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 67 static inline bool __acpi_aml_running(void) in __acpi_aml_running() 72 static inline bool __acpi_aml_access_ok(unsigned long flag) in __acpi_aml_access_ok() 75 * The debugger interface is in opened state (OPENED && !CLOSED), in __acpi_aml_access_ok() 91 static inline bool __acpi_aml_readable(struct circ_buf *circ, unsigned long flag) in __acpi_aml_readable() 102 static inline bool __acpi_aml_writable(struct circ_buf *circ, unsigned long flag) in __acpi_aml_writable() [all …]
|
| /linux/arch/powerpc/platforms/pseries/ |
| H A D | vas.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright 2020-21 IBM Corp. 42 * Co-processor feature - GZIP QoS windows or GZIP default windows 96 int nr_close_wins; /* closed windows in the hypervisor for DLPAR */ 148 static inline int vas_migration_handler(int action) in vas_migration_handler() 152 static inline int pseries_vas_dlpar_cpu(void) in pseries_vas_dlpar_cpu()
|
| /linux/include/linux/sunrpc/ |
| H A D | svcauth.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * RPC server-side authentication stuff. 28 * gss-proxy: */ 37 static inline void init_svc_cred(struct svc_cred *cred) in init_svc_cred() 39 cred->cr_group_info = NULL; in init_svc_cred() 40 cred->cr_raw_principal = NULL; in init_svc_cred() 41 cred->cr_principal = NULL; in init_svc_cred() 42 cred->cr_targ_princ = NULL; in init_svc_cred() 43 cred->cr_gss_mech = NULL; in init_svc_cred() 46 static inline void free_svc_cred(struct svc_cred *cred) in free_svc_cred() [all …]
|
| H A D | svc_xprt.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 91 XPT_DEAD, /* transport closed */ 101 XPT_TLS_SESSION, /* transport-layer security established */ 105 * in ->sv_tmpcnt. 113 * Maximum number of "tmp" connections - those without XPT_PEER_VALID - 118 static inline void svc_xprt_set_valid(struct svc_xprt *xpt) in svc_xprt_set_valid() 120 if (test_bit(XPT_TEMP, &xpt->xpt_flags) && in svc_xprt_set_valid() 121 !test_and_set_bit(XPT_PEER_VALID, &xpt->xpt_flags)) { in svc_xprt_set_valid() 122 struct svc_serv *serv = xpt->xpt_server; in svc_xprt_set_valid() 124 spin_lock(&serv->sv_lock); in svc_xprt_set_valid() [all …]
|
| /linux/drivers/net/wireless/realtek/rtw88/ |
| H A D | pci.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 2 /* Copyright(c) 2018-2019 Realtek Corporation 153 /* one element is reserved to know if the ring is closed */ 154 static inline int avail_desc(u32 wp, u32 rp, u32 len) in avail_desc() 157 return rp - wp - 1; in avail_desc() 159 return len - wp + rp - 1; in avail_desc() 240 static inline u32 max_num_of_tx_queue(u8 queue) in max_num_of_tx_queue() 259 static inline struct 265 sizeof(info->status.status_driver_data)); in rtw_pci_get_tx_data() 267 return (struct rtw_pci_tx_data *)info->status.status_driver_data; in rtw_pci_get_tx_data() [all …]
|
| /linux/drivers/watchdog/ |
| H A D | ath79_wdt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Atheros AR71XX/AR724X/AR913X built-in hardware watchdog timer. 5 * Copyright (C) 2008-2011 Gabor Juhos <juhosg@openwrt.org> 36 #define DRIVER_NAME "ath79-wdt" 71 static inline void ath79_wdt_wr(unsigned reg, u32 val) in ath79_wdt_wr() 76 static inline u32 ath79_wdt_rr(unsigned reg) in ath79_wdt_rr() 81 static inline void ath79_wdt_keepalive(void) in ath79_wdt_keepalive() 88 static inline void ath79_wdt_enable(void) in ath79_wdt_enable() 105 static inline void ath79_wdt_disable(void) in ath79_wdt_disable() 115 return -EINVAL; in ath79_wdt_set_timeout() [all …]
|
| /linux/Documentation/process/ |
| H A D | stable-api-nonsense.rst | 8 Greg Kroah-Hartman <greg@kroah.com> 27 ----------------- 38 ----- 41 to worry about the in-kernel interfaces changing. For the majority of 45 First off, I'm not going to address **any** legal issues about closed 59 ----------------------- 64 - Depending on the version of the C compiler you use, different kernel 67 functions inline or not.) The individual function organization 71 - Depending on what kernel build options you select, a wide range of 74 - different structures can contain different fields [all …]
|
| /linux/drivers/iommu/generic_pt/ |
| H A D | pt_defs.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES 24 /* Header self-compile default defines */ 50 * kunit to test the full matrix. SIGN_EXTEND can't co-exist with DYNAMIC_TOP or 84 * An half-open range, e.g. [0,0) refers to no VA. 86 * An inclusive closed range, e.g. [0,0] refers to the VA 0 96 * The inclusive highest level of the table. A two-level table 120 * expressions it can't. So we do it by hand; we want to avoid 64-bit 143 * Similar to xa_state, this records information about an in-progress parse at a 157 #define pt_cur_table(pts, type) ((type *)((pts)->table)) [all …]
|
| /linux/drivers/gpu/drm/vboxvideo/ |
| H A D | vbox_drv.h | 1 /* SPDX-License-Identifier: MIT */ 3 * Copyright (C) 2013-2017 Oracle Corporation 40 #define GUEST_HEAP_OFFSET(vbox) ((vbox)->full_vram_size - \ 43 #define GUEST_HEAP_USABLE_SIZE (VBVA_ADAPTER_INFORMATION_SIZE - \ 71 * Is user-space using an X.Org-style layout of one large frame-buffer 103 * for the emulated USB tablet. This input-mapping may change when 106 * This means that sometimes we must do a modeset on other crtc-s then 107 * the one being changed to update the input-mapping. Including crtc-s 109 * on the host unless closed by the user). 111 * With atomic modesetting the mode-info of disabled crtcs gets zeroed [all …]
|