/Linux-v6.1/sound/core/ |
D | info.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 54 struct snd_info_entry *entry; member 59 static void snd_info_disconnect(struct snd_info_entry *entry); 73 static int alloc_info_private(struct snd_info_entry *entry, in alloc_info_private() argument 78 if (!entry || !entry->p) in alloc_info_private() 79 return -ENODEV; in alloc_info_private() 80 if (!try_module_get(entry->module)) in alloc_info_private() 81 return -EFAULT; in alloc_info_private() 84 module_put(entry->module); in alloc_info_private() 85 return -ENOMEM; in alloc_info_private() [all …]
|
/Linux-v6.1/drivers/isdn/mISDN/ |
D | dsp_pipeline.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 44 for (i = 0; i < elem->num_args; i++) in attr_show_args() 45 p += sprintf(p, "Name: %s\n%s%s%sDescription: %s\n\n", in attr_show_args() 46 elem->args[i].name, in attr_show_args() 47 elem->args[i].def ? "Default: " : "", in attr_show_args() 48 elem->args[i].def ? elem->args[i].def : "", in attr_show_args() 49 elem->args[i].def ? "\n" : "", in attr_show_args() 50 elem->args[i].desc); in attr_show_args() 52 return p - buf; in attr_show_args() 62 struct dsp_element_entry *entry = in mISDN_dsp_dev_release() local [all …]
|
/Linux-v6.1/arch/x86/include/asm/ |
D | idtentry.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 #include <linux/entry-common.h> 17 * DECLARE_IDTENTRY - Declare functions for simple IDT entry points 20 * @func: Function name of the entry point 23 * - The ASM entry point: asm_##func 24 * - The XEN PV trap entry point: xen_##func (maybe unused) 25 * - The C handler called from the ASM entry point 27 * Note: This is the C variant of DECLARE_IDTENTRY(). As the name says it 28 * declares the entry points for usage in C code. There is an ASM variant 29 * as well which is used to emit the entry stubs in entry_32/64.S. [all …]
|
/Linux-v6.1/fs/nfs/ |
D | nfs42xattr.c | 1 // SPDX-License-Identifier: GPL-2.0 25 * to a special-cased entry for the listxattr cache. 51 * You can certainly add a lot more - but you get what you ask for 111 INIT_HLIST_HEAD(&cache->buckets[i].hlist); in nfs4_xattr_hash_init() 112 spin_lock_init(&cache->buckets[i].lock); in nfs4_xattr_hash_init() 113 cache->buckets[i].cache = cache; in nfs4_xattr_hash_init() 114 cache->buckets[i].draining = false; in nfs4_xattr_hash_init() 125 * Wrapper functions to add a cache entry to the right LRU. 128 nfs4_xattr_entry_lru_add(struct nfs4_xattr_entry *entry) in nfs4_xattr_entry_lru_add() argument 132 lru = (entry->flags & NFS4_XATTR_ENTRY_EXTVAL) ? in nfs4_xattr_entry_lru_add() [all …]
|
/Linux-v6.1/net/atm/ |
D | mpc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 68 /* mpc_daemon -> kernel */ 87 static void purge_egress_shortcut(struct atm_vcc *vcc, eg_cache_entry *entry); 134 if (mpc->dev_num == itf) in find_mpc_by_itfnum() 136 mpc = mpc->next; in find_mpc_by_itfnum() 148 if (mpc->mpoad_vcc == vcc) in find_mpc_by_vcc() 150 mpc = mpc->next; in find_mpc_by_vcc() 162 if (mpc->dev == dev) in find_mpc_by_lec() 164 mpc = mpc->next; in find_mpc_by_lec() 175 * Overwrites the old entry or makes a new one. [all …]
|
/Linux-v6.1/fs/efivarfs/ |
D | super.c | 1 // SPDX-License-Identifier: GPL-2.0-only 37 * 1. A case-sensitive variable name 38 * 2. A case-insensitive GUID 40 * So we need to perform a case-sensitive match on part 1 and a 41 * case-insensitive match on part 2. 45 const struct qstr *name) in efivarfs_d_compare() argument 47 int guid = len - EFI_VARIABLE_GUID_LEN; in efivarfs_d_compare() 49 if (name->len != len) in efivarfs_d_compare() 52 /* Case-sensitive compare for the variable name */ in efivarfs_d_compare() 53 if (memcmp(str, name->name, guid)) in efivarfs_d_compare() [all …]
|
D | vars.c | 1 // SPDX-License-Identifier: GPL-2.0+ 39 while (offset <= len - sizeof(*node) && in validate_device_path() 40 node->length >= sizeof(*node) && in validate_device_path() 41 node->length <= len - offset) { in validate_device_path() 42 offset += node->length; in validate_device_path() 44 if ((node->type == EFI_DEV_END_PATH || in validate_device_path() 45 node->type == EFI_DEV_END_PATH2) && in validate_device_path() 46 node->sub_type == EFI_DEV_END_ENTIRE) in validate_device_path() 53 * If we're here then either node->length pointed past the end in validate_device_path() 64 /* An array of 16-bit integers */ in validate_boot_order() [all …]
|
/Linux-v6.1/scripts/mod/ |
D | list.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 12 * container_of - cast a member of a structure out to the containing structure 15 * @member: the name of the member within the struct. 20 _Static_assert(__same_type(*(ptr), ((type *)0)->member) || \ 23 ((type *)(__mptr - offsetof(type, member))); }) 35 * using the generic single-entry routines. 42 #define LIST_HEAD_INIT(name) { &(name), &(name) } argument 44 #define LIST_HEAD(name) \ argument 45 struct list_head name = LIST_HEAD_INIT(name) 48 * INIT_LIST_HEAD - Initialize a list_head structure [all …]
|
/Linux-v6.1/include/sound/ |
D | info.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 30 void (*read)(struct snd_info_entry *entry, 32 void (*write)(struct snd_info_entry *entry, 37 int (*open)(struct snd_info_entry *entry, 39 int (*release)(struct snd_info_entry *entry, 41 ssize_t (*read)(struct snd_info_entry *entry, void *file_private_data, 44 ssize_t (*write)(struct snd_info_entry *entry, void *file_private_data, 47 loff_t (*llseek)(struct snd_info_entry *entry, 50 __poll_t (*poll)(struct snd_info_entry *entry, 53 int (*ioctl)(struct snd_info_entry *entry, void *file_private_data, [all …]
|
/Linux-v6.1/fs/f2fs/ |
D | xattr.c | 1 // SPDX-License-Identifier: GPL-2.0 10 * Copyright (C) 2001-2003 Andreas Gruenbacher <agruen@suse.de> 28 if (likely(size == sbi->inline_xattr_slab_size)) { in xattr_alloc() 30 return f2fs_kmem_cache_alloc(sbi->inline_xattr_slab, in xattr_alloc() 41 kmem_cache_free(sbi->inline_xattr_slab, xattr_addr); in xattr_free() 48 const char *name, void *buffer, size_t size) in f2fs_xattr_generic_get() argument 50 struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb); in f2fs_xattr_generic_get() 52 switch (handler->flags) { in f2fs_xattr_generic_get() 55 return -EOPNOTSUPP; in f2fs_xattr_generic_get() 61 return -EINVAL; in f2fs_xattr_generic_get() [all …]
|
/Linux-v6.1/drivers/firmware/broadcom/ |
D | bcm47xx_sprom.c | 6 * Copyright (C) 2010-2012 Hauke Mehrtens <hauke@hauke-m.de> 37 const char *name, char *buf, int len) in create_key() argument 40 snprintf(buf, len, "%s%s%s", prefix, name, postfix); in create_key() 42 snprintf(buf, len, "%s%s", prefix, name); in create_key() 44 snprintf(buf, len, "%s%s", name, postfix); in create_key() 46 snprintf(buf, len, "%s", name); in create_key() 50 const char *name, char *buf, int len, bool fallback) in get_nvram_var() argument 55 create_key(prefix, postfix, name, key, sizeof(key)); in get_nvram_var() 58 if (fallback && err == -ENOENT && prefix) { in get_nvram_var() 59 create_key(NULL, postfix, name, key, sizeof(key)); in get_nvram_var() [all …]
|
/Linux-v6.1/tools/usb/usbip/libsrc/ |
D | list.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 * using the generic single-entry routines. 23 #define LIST_HEAD_INIT(name) { &(name), &(name) } argument 25 #define LIST_HEAD(name) \ argument 26 struct list_head name = LIST_HEAD_INIT(name) 30 list->next = list; in INIT_LIST_HEAD() 31 list->prev = list; in INIT_LIST_HEAD() 35 * Insert a new entry between two known consecutive entries. 44 next->prev = new; in __list_add() 45 new->next = next; in __list_add() [all …]
|
/Linux-v6.1/security/tomoyo/ |
D | domain.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2005-2011 NTT DATA CORPORATION 20 * tomoyo_update_policy - Update an entry for exception policy. 25 * @check_duplicate: Callback function to find duplicated entry. 38 int error = param->is_delete ? -ENOENT : -ENOMEM; in tomoyo_update_policy() 39 struct tomoyo_acl_head *entry; in tomoyo_update_policy() local 40 struct list_head *list = param->list; in tomoyo_update_policy() 43 return -ENOMEM; in tomoyo_update_policy() 44 list_for_each_entry_rcu(entry, list, list, in tomoyo_update_policy() 46 if (entry->is_deleted == TOMOYO_GC_IN_PROGRESS) in tomoyo_update_policy() [all …]
|
/Linux-v6.1/scripts/kconfig/ |
D | list.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) 13 * container_of - cast a member of a structure out to the containing structure 16 * @member: the name of the member within the struct. 20 const typeof( ((type *)0)->member ) *__mptr = (ptr); \ 21 (type *)( (char *)__mptr - offsetof(type,member) );}) 29 #define LIST_HEAD_INIT(name) { &(name), &(name) } argument 31 #define LIST_HEAD(name) \ argument 32 struct list_head name = LIST_HEAD_INIT(name) 35 * list_entry - get the struct for this entry [all …]
|
/Linux-v6.1/fs/squashfs/ |
D | cache.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Squashfs - a compressed read only filesystem for Linux 23 * are decompressed and cached in the page-cache in the normal way. The 29 * have been packed with it, these because of locality-of-reference may be read 49 * Look-up block in cache, and increment usage count. If not in cache, read 56 struct squashfs_cache_entry *entry; in squashfs_cache_get() local 58 spin_lock(&cache->lock); in squashfs_cache_get() 61 for (i = cache->curr_blk, n = 0; n < cache->entries; n++) { in squashfs_cache_get() 62 if (cache->entry[i].block == block) { in squashfs_cache_get() 63 cache->curr_blk = i; in squashfs_cache_get() [all …]
|
/Linux-v6.1/sound/soc/intel/avs/ |
D | utils.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // Copyright(c) 2021-2022 Intel Corporation. All rights reserved. 15 /* Caller responsible for holding adev->modres_mutex. */ 20 for (i = 0; i < adev->mods_info->count; i++) { in avs_module_entry_index() 23 module = &adev->mods_info->entries[i]; in avs_module_entry_index() 24 if (guid_equal(&module->uuid, uuid)) in avs_module_entry_index() 28 return -ENOENT; in avs_module_entry_index() 31 /* Caller responsible for holding adev->modres_mutex. */ 36 for (i = 0; i < adev->mods_info->count; i++) { in avs_module_id_entry_index() 39 module = &adev->mods_info->entries[i]; in avs_module_id_entry_index() [all …]
|
/Linux-v6.1/include/linux/ |
D | list.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 20 * using the generic single-entry routines. 23 #define LIST_HEAD_INIT(name) { &(name), &(name) } argument 25 #define LIST_HEAD(name) \ argument 26 struct list_head name = LIST_HEAD_INIT(name) 29 * INIT_LIST_HEAD - Initialize a list_head structure 37 WRITE_ONCE(list->next, list); in INIT_LIST_HEAD() 38 WRITE_ONCE(list->prev, list); in INIT_LIST_HEAD() 45 extern bool __list_del_entry_valid(struct list_head *entry); 53 static inline bool __list_del_entry_valid(struct list_head *entry) in __list_del_entry_valid() argument [all …]
|
D | jump_label.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 * Copyright (C) 2009-2012 Jason Baron <jbaron@redhat.com> 9 * Copyright (C) 2011-2012 Red Hat, Inc., Peter Zijlstra 31 * self-modifying code. Assuming toolchain and architecture support, if we 34 * (which defaults to false - and the true block is placed out of line). 38 * unconditional branch to the out-of-line true branch. Keys that are 45 * these calls then we run-time modify the branch target via a 46 * no-op -> jump or jump -> no-op conversion. For example, for an 49 * to the out-of-line of true branch. 61 * to the out-of-line block. [all …]
|
/Linux-v6.1/tools/include/linux/ |
D | list.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 17 * using the generic single-entry routines. 20 #define LIST_HEAD_INIT(name) { &(name), &(name) } argument 22 #define LIST_HEAD(name) \ argument 23 struct list_head name = LIST_HEAD_INIT(name) 27 list->next = list; in INIT_LIST_HEAD() 28 list->prev = list; in INIT_LIST_HEAD() 32 * Insert a new entry between two known consecutive entries. 42 next->prev = new; in __list_add() 43 new->next = next; in __list_add() [all …]
|
/Linux-v6.1/Documentation/ABI/testing/ |
D | sysfs-firmware-sgi_uv | 8 Under that directory are a number of read-only attributes:: 17 The archtype entry contains the UV architecture type that 18 is used to select arch-dependent addresses and features. 20 UVsystab entry both passed from UV BIOS. 22 The hub_type entry is used to select the type of hub which is 26 The hubless entry basically is present and set only if there 27 is no hub. In this case the hub_type entry is not present. 29 The partition_id entry contains the partition id. 35 The coherence_id entry contains the coherence id. 40 The uv_type entry contains the hub revision number. [all …]
|
/Linux-v6.1/Documentation/filesystems/ext4/ |
D | directory.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 ----------------- 9 that reference the same inode number--these are known as hard links, and 12 associated with a directory file for the particular directory entry that 18 By default, each directory lists its entries in an “almost-linear” 23 entries. The end of each per-block array is signified by reaching the 24 end of the block; the last entry in the block has a record length that 32 The original directory entry format is ``struct ext4_dir_entry``, which 36 .. list-table:: 38 :header-rows: 1 [all …]
|
/Linux-v6.1/fs/proc/ |
D | proc_sysctl.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <linux/bpf-cgroup.h> 22 #define list_for_each_table_entry(entry, table) \ argument 23 for ((entry) = (table); (entry)->procname; (entry)++) 38 * register_sysctl_mount_point() - registers a sysctl mount point 53 return head->ctl_table[0].child == sysctl_mount_point; in is_empty_dir() 58 dir->header.ctl_table[0].child = sysctl_mount_point; in set_empty_dir() 64 dir->header.ctl_table[0].child = NULL; in clear_empty_dir() 72 atomic_inc(&poll->event); in proc_sys_poll_notify() 73 wake_up_interruptible(&poll->wait); in proc_sys_poll_notify() [all …]
|
/Linux-v6.1/sound/isa/gus/ |
D | gus_mem_proc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 static ssize_t snd_gf1_mem_proc_dump(struct snd_info_entry *entry, in snd_gf1_mem_proc_dump() argument 24 struct gus_proc_private *priv = entry->private_data; in snd_gf1_mem_proc_dump() 25 struct snd_gus_card *gus = priv->gus; in snd_gf1_mem_proc_dump() 28 err = snd_gus_dram_read(gus, buf, pos, count, priv->rom); in snd_gf1_mem_proc_dump() 34 static void snd_gf1_mem_proc_free(struct snd_info_entry *entry) in snd_gf1_mem_proc_free() argument 36 struct gus_proc_private *priv = entry->private_data; in snd_gf1_mem_proc_free() 47 char name[16]; in snd_gf1_mem_proc_init() local 49 struct snd_info_entry *entry; in snd_gf1_mem_proc_init() local 52 if (gus->gf1.mem_alloc.banks_8[idx].size > 0) { in snd_gf1_mem_proc_init() [all …]
|
/Linux-v6.1/drivers/soc/qcom/ |
D | smp2p.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. 25 * of a single 32-bit value between two processors. Each value has a single 32 * processor. By using two separate SMEM items that are single-reader and 33 * single-writer, SMP2P does not require any remote locking mechanisms. 36 * GPIO for each outbound entry and a virtual interrupt controller for each 37 * inbound entry. 51 * struct smp2p_smem_item - in memory communication structure 53 * @version: version - must be 1 54 * @features: features flag - currently unused [all …]
|
/Linux-v6.1/drivers/net/wireless/intersil/hostap/ |
D | hostap_hw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (c) 2001-2002, SSH Communications Security Corp and Jouni Malinen 8 * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi> 11 * - there is currently no way of associating TX packets to correct wds device 24 * host and card memories. BAP0 accesses are protected with local->baplock 82 MODULE_PARM_DESC(dev_template, "Prefix for network device name (default: " 88 /* check WTERR events (Wait Time-out) in development versions */ 153 regs->cmd = HFA384X_INW(HFA384X_CMD_OFF); in hfa384x_read_regs() 154 regs->evstat = HFA384X_INW(HFA384X_EVSTAT_OFF); in hfa384x_read_regs() 155 regs->offset0 = HFA384X_INW(HFA384X_OFFSET0_OFF); in hfa384x_read_regs() [all …]
|