| /linux/sound/core/ |
| H A D | info.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 54 struct snd_info_entry *entry; member 59 static void snd_info_clear_entries(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 in alloc_info_private() 107 struct snd_info_entry *entry; snd_info_entry_llseek() local 145 struct snd_info_entry *entry = data->entry; snd_info_entry_read() local 167 struct snd_info_entry *entry = data->entry; snd_info_entry_write() local 188 struct snd_info_entry *entry = data->entry; snd_info_entry_poll() local 206 struct snd_info_entry *entry = data->entry; snd_info_entry_ioctl() local 218 struct snd_info_entry *entry; snd_info_entry_mmap() local 232 struct snd_info_entry *entry = pde_data(inode); snd_info_entry_open() local 266 struct snd_info_entry *entry = data->entry; snd_info_entry_release() local 297 struct snd_info_entry *entry = data->entry; snd_info_text_entry_write() local 336 struct snd_info_entry *entry = data->entry; snd_info_seq_show() local 349 struct snd_info_entry *entry = pde_data(inode); snd_info_text_entry_open() local 383 struct snd_info_entry *entry = data->entry; snd_info_text_entry_release() local 410 create_subdir(struct module * mod,const char * name) create_subdir() argument 412 struct snd_info_entry *entry; create_subdir() local 467 snd_card_id_read(struct snd_info_entry * entry,struct snd_info_buffer * buffer) snd_card_id_read() argument 482 struct snd_info_entry *entry; snd_info_card_create() local 662 snd_info_create_entry(const char * name,struct snd_info_entry * parent,struct module * module) snd_info_create_entry() argument 665 struct snd_info_entry *entry; snd_info_create_entry() local 699 snd_info_create_module_entry(struct module * module,const char * name,struct snd_info_entry * parent) snd_info_create_module_entry() argument 719 snd_info_create_card_entry(struct snd_card * card,const char * name,struct snd_info_entry * parent) snd_info_create_card_entry() argument 728 snd_info_clear_entries(struct snd_info_entry * entry) snd_info_clear_entries() argument 745 snd_info_free_entry(struct snd_info_entry * entry) snd_info_free_entry() argument 773 __snd_info_register(struct snd_info_entry * entry) __snd_info_register() argument 812 snd_info_register(struct snd_info_entry * entry) snd_info_register() argument 846 snd_card_rw_proc_new(struct snd_card * card,const char * name,void * private_data,void (* read)(struct snd_info_entry *,struct snd_info_buffer *),void (* write)(struct snd_info_entry * entry,struct snd_info_buffer * buffer)) snd_card_rw_proc_new() argument 850 snd_card_rw_proc_new(struct snd_card * card,const char * name,void * private_data,void (* read)(struct snd_info_entry *,struct snd_info_buffer *),void (* write)(struct snd_info_entry * entry,struct snd_info_buffer * buffer)) snd_card_rw_proc_new() argument 853 struct snd_info_entry *entry; snd_card_rw_proc_new() local 871 snd_info_version_read(struct snd_info_entry * entry,struct snd_info_buffer * buffer) snd_info_version_read() argument 880 struct snd_info_entry *entry; snd_info_version_init() local [all...] |
| /linux/rust/kernel/debugfs/ |
| H A D | entry.rs | 1 // SPDX-License-Identifier: GPL-2.0 16 /// Owning handle to a DebugFS entry. field 21 pub(crate) struct Entry<'a> { 22 entry: *mut bindings::dentry, 23 // If we were created with an owning parent, this is the keep-alive argument 24 _parent: Option<Arc<Entry<'static>>>, 25 // If we were created with a non-owning parent, this prevents us from outliving it implementation 29 // SAFETY: [`Entry`] i 15 pub(crate) struct Entry<'a> { global() struct 18 _parentEntry global() argument 28 unsafe impl Sync for Entry<'_> {} global() implementation 30 impl Entry<'static> { global() implementation 40 let entry = unsafe { bindings::debugfs_create_dir(name.as_char_ptr(), parent_ptr) }; dynamic_dir() localVariable 64 let entry = unsafe { dynamic_file() localVariable 83 impl<'a> Entry<'a> { global() implementation 94 let entry = unsafe { bindings::debugfs_create_dir(name.as_char_ptr(), parent_ptr) }; dir() localVariable 117 let entry = unsafe { file() localVariable 136 impl Entry<'_> { global() implementation 158 impl Drop for Entry<'_> { global() implementation [all...] |
| /linux/tools/lib/python/kdoc/ |
| H A D | kdoc_parser.py | 2 # SPDX-License-Identifier: GPL-2.0 22 # Regular expressions used to parse kernel-doc markups at KernelDoc class. 42 # @{section-name}: 60 type_param = KernRe(r"@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)", cache=False) 70 r'(\w+)\s*(?:\(\w*\))?\s*' + # name and optional "(...)" 71 r'(?:[-:].*)?$', # description (not captured) 100 NAME = 1 #: Looking for function name. variable in state 110 name = [ variable in state 112 "NAME", 127 Encapsulates a Kernel documentation entry. [all …]
|
| /linux/scripts/gendwarfksyms/ |
| H A D | types.c | 1 // SPDX-License-Identifier: GPL-2.0 29 struct type_list_entry *entry; in type_list_free() local 32 list_for_each_entry_safe(entry, tmp, list, list) { in type_list_free() 33 if (entry->owned) in type_list_free() 34 free(entry->owned); in type_list_free() 35 free(entry); in type_list_free() 43 struct type_list_entry *entry; in type_list_append() local 48 entry = xmalloc(sizeof(*entry)); in type_list_append() 49 entry->str = s; in type_list_append() 50 entry->owned = owned; in type_list_append() [all …]
|
| /linux/security/tomoyo/ |
| H A 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/include/sound/ |
| H A 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/scripts/include/ |
| H A D | list.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 * container_of - cast a member of a structure out to the containing structure 16 * @member: the name of the member within the struct. 21 _Static_assert(__same_type(*(ptr), ((type *)0)->member) || \ 24 ((type *)(__mptr - offsetof(type, member))); }) 36 * using the generic single-entry routines. 39 #define LIST_HEAD_INIT(name) { &(name), &(name) } argument 41 #define LIST_HEAD(name) \ argument 42 struct list_head name = LIST_HEAD_INIT(name) 45 * INIT_LIST_HEAD - Initialize a list_head structure [all …]
|
| /linux/sound/soc/intel/avs/ |
| H A D | utils.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // Copyright(c) 2021-2022 Intel Corporation 16 /* Caller responsible for holding adev->modres_mutex. */ in avs_module_entry_index() 21 for (i = 0; i < adev->mods_info->count; i++) { in avs_module_entry_index() 24 module = &adev->mods_info->entrie in avs_module_entry_index() 47 avs_get_module_entry(struct avs_dev * adev,const guid_t * uuid,struct avs_module_entry * entry) avs_get_module_entry() argument 61 avs_get_module_id_entry(struct avs_dev * adev,u32 module_id,struct avs_module_entry * entry) avs_get_module_id_entry() argument 235 avs_request_firmware(struct avs_dev * adev,const struct firmware ** fw_p,const char * name) avs_request_firmware() argument 237 struct avs_fw_entry *entry; avs_request_firmware() local 279 struct avs_fw_entry *entry; avs_release_last_firmware() local 294 struct avs_fw_entry *entry, *tmp; avs_release_firmwares() local [all...] |
| /linux/tools/testing/selftests/net/forwarding/ |
| H A D | bridge_mdb.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # +------- [all...] |
| /linux/tools/include/linux/ |
| H A 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/tools/usb/usbip/libsrc/ |
| H A 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/fs/f2fs/ |
| H A D | xattr.c | 1 // SPDX-License-Identifier: GPL-2.0 10 * Copyright (C) 2001-2003 Andreas Gruenbacher <agruen@suse.de> 50 const char *name, void *buffer, size_t size) in f2fs_xattr_generic_get() argument 52 struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb); in f2fs_xattr_generic_get() 54 switch (handler->flags) { in f2fs_xattr_generic_get() 57 return -EOPNOTSUPP; in f2fs_xattr_generic_get() 63 return -EINVAL; in f2fs_xattr_generic_get() 65 return f2fs_getxattr(inode, handler->flags, name, in f2fs_xattr_generic_get() 72 const char *name, const void *value, in f2fs_xattr_generic_set() argument 75 struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb); in f2fs_xattr_generic_set() [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpiolib-shared.c | 1 // SPDX-License-Identifier: GPL-2.0-only 28 #include "gpiolib-shared.h" 71 struct gpio_shared_entry *entry; in gpio_shared_find_entry() local 73 list_for_each_entry(entry, &gpio_shared_list, list) { in gpio_shared_find_entry() 74 if (entry->fwnode == controller_node && entry->offset == offset) in gpio_shared_find_entry() 75 return entry; in gpio_shared_find_entry() 97 ref->dev_id = ida_alloc(&gpio_shared_ida, GFP_KERNEL); in gpio_shared_make_ref() 98 if (ref->dev_id < 0) in gpio_shared_make_ref() 101 ref->flags = flags; in gpio_shared_make_ref() 102 ref->con_id = no_free_ptr(con_id_cpy); in gpio_shared_make_ref() [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A 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/tools/testing/selftests/net/ |
| H A D | test_neigh.sh | 2 # SPDX-License-Identifier: GPL-2.0 27 if [ "$VERBOSE" -eq 1 ] && [ -n "$out" ]; then 39 set -e 43 ip -n "$ns1" link add veth0 type veth peer name veth1 netns "$ns2" 44 ip -n "$ns1" link set dev veth0 up 45 ip -n "$ns2" link set dev veth1 up 47 ip -n "$ns1" address add 192.0.2.1/24 dev veth0 48 ip -n "$ns1" address add 2001:db8:1::1/64 dev veth0 nodad 49 ip -n "$ns2" address add 192.0.2.2/24 dev veth1 50 ip -n "$ns2" address add 2001:db8:1::2/64 dev veth1 nodad [all …]
|
| /linux/rust/kernel/ |
| H A D | debugfs.rs | 1 // SPDX-License-Identifier: GPL-2.0 58 mod entry; in create() 60 use entry::Entry; in create() 66 // If we have a parent, we hold a reference to it in the `Entry`. This prevents the `dentry` in create() 67 // we point to from being cleaned up if our parent `Dir`/`Entry` is dropped before us. in create() 73 pub struct Dir(#[cfg(CONFIG_DEBUG_FS)] Option<Arc<Entry<'static>>>); 77 fn create(name in create_file() 34 mod entry; global() module 499 entry: ManuallyDrop<Entry<'dir>>, global() field [all...] |
| /linux/sound/isa/gus/ |
| H A 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/Documentation/filesystems/ext4/ |
| H A 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/drivers/clk/bcm/ |
| H A D | clk-bcm63268-timer.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/clk-provider.h> 14 #include <linux/reset-controller.h> 17 #include <dt-bindings/clock/bcm63268-clock.h> 31 const char * const name; member 37 .name = "ephy1", 40 .name = "ephy2", 43 .name = "ephy3", 46 .name = "gphy1", 49 .name = "dsl", [all …]
|
| /linux/tools/testing/selftests/tc-testing/tc-tests/actions/ |
| H A D | gate.json | 4 "name": "Add gate action with priority and sched-entry", string 20 … "cmdUnderTest": "$TC action add action gate priority 1 sched-entry close 100000000ns index 100", 23 "matchPattern": "action order [0-9]*: .*priority 1.*index 100 ref", 31 "name": "Add gate action with base-time", string 47 …"cmdUnderTest": "$TC action add action gate base-time 200000000000ns sched-entry close 100000000ns… 50 "matchPattern": "action order [0-9]*: .*base-time 200s.*index 10 ref", 58 "name": "Add gate action with cycle-time", string 74 …"cmdUnderTest": "$TC action add action gate cycle-time 200000000000ns sched-entry close 100000000n… 77 "matchPattern": "action order [0-9]*: .*cycle-time 200s.*index 1000 ref", 85 "name": "Add gate action with cycle-time-ext", string [all …]
|
| /linux/security/integrity/ima/ |
| H A D | ima_template.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * TORSEC group -- https://security.polito.it 20 {.name = IMA_TEMPLATE_IMA_NAME, .fmt = IMA_TEMPLATE_IMA_FMT}, 21 {.name = "ima-ng", .fmt = "d-ng|n-ng"}, 22 {.name = "ima-sig", .fmt = "d-ng|n-ng|sig"}, 23 {.name = "ima-ngv2", .fmt = "d-ngv2|n-ng"}, 24 {.name = "ima-sigv2", .fmt = "d-ngv2|n-ng|sig"}, 25 {.name = "ima-buf", .fmt = "d-ng|n-ng|buf"}, 26 {.name = "ima-modsig", .fmt = "d-ng|n-ng|sig|d-modsig|modsig"}, 27 {.name = "evm-sig", [all …]
|
| /linux/drivers/md/dm-vdo/indexer/ |
| H A D | volume-index.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 11 #include "thread-utils.h" 14 #include "delta-index.h" 18 * The volume index is the primary top-level index for UDS. It contains records which map a record 19 * name to the chapter where a record with that name is stored. This mapping can definitively say 20 * when no record exists. However, because we only use a subset of the name for this index, it 21 * cannot definitively say that a record for the entry does exist. It can only say that if a record 25 * If the volume_index_record does not actually match the record name, the index can store a more 26 * specific collision record to disambiguate the new entry from the existing one. Index entries are 103 * The volume_index_record structure is used to facilitate processing of a record name. A client [all …]
|
| /linux/drivers/pmdomain/bcm/ |
| H A D | bcm63xx-power.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 #include <dt-bindings/soc/bcm6318-pm.h> 9 #include <dt-bindings/soc/bcm6328-pm.h> 10 #include <dt-bindings/soc/bcm6362-pm.h> 11 #include <dt-bindings/soc/bcm63268-pm.h> 33 const char * const name; member 40 struct bcm63xx_power *power = pmd->power; in bcm63xx_power_get_state() 42 if (!pmd->mask) { in bcm63xx_power_get_state() 44 return -EINVAL; in bcm63xx_power_get_state() 47 *is_on = !(__raw_readl(power->base) & pmd->mask); in bcm63xx_power_get_state() [all …]
|
| /linux/arch/s390/include/asm/ |
| H A D | debug.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 19 #define DEBUG_OFF_LEVEL -1 /* level where debug is switched off */ 20 #define DEBUG_FLUSH_ALL -1 /* parameter to flush all areas */ 22 #define DEBUG_MAX_NAME_LEN 64 /* max length for a debugfs file name */ 25 #define DEBUG_DIR_ROOT "s390dbf" /* name of debug root directory in proc fs */ 27 #define DEBUG_DATA(entry) (char *)(entry + 1) /* data is stored behind */ argument 28 /* the entry information */ 61 char name[DEBUG_MAX_NAME_LEN]; member 68 debug_entry_t *entry, 85 int area, debug_entry_t *entry, [all …]
|
| /linux/drivers/firmware/ |
| H A D | qemu_fw_cfg.c | 7 * sysfs (read-only, under "/sys/firmware/qemu_fw_cfg/..."). 45 /* fw_cfg revision attribute, in /sys/firmware/qemu_fw_cfg top-level dir. */ 79 u32 ctrl = be32_to_cpu(READ_ONCE(d->control)); in fw_cfg_wait_for_control() 81 /* do not reorder the read to d->control */ in fw_cfg_wait_for_control() 98 ret = -ENOMEM; in fw_cfg_dma_transfer() 118 if (be32_to_cpu(READ_ONCE(d->control)) & FW_CFG_DMA_CTL_ERROR) { in fw_cfg_dma_transfer() 119 ret = -EIO; in fw_cfg_dma_transfer() 129 /* read chunk of given fw_cfg blob (caller responsible for sanity-check) */ 133 u32 glk = -1U; in fw_cfg_read_blob() 144 return -EINVAL; in fw_cfg_read_blob() [all …]
|