| /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->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/drivers/isdn/mISDN/ |
| H A D | dsp_pipeline.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 35 .name = "dsp_pipeline", 46 for (i = 0; i < elem->num_args; i++) in attr_show_args() 47 p += sprintf(p, "Name: %s\n%s%s%sDescription: %s\n\n", in attr_show_args() 48 elem->args[i].name, in attr_show_args() 49 elem->args[i].def ? "Default: " : "", in attr_show_args() 50 elem->args[i].def ? elem->args[i].def : "", in attr_show_args() 51 elem->args[i].def ? "\n" : "", in attr_show_args() 52 elem->args[i].desc); in attr_show_args() 54 return p - buf; in attr_show_args() [all …]
|
| /linux/arch/x86/include/asm/ |
| H A D | idtentry.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 #include <linux/entry-common.h> 19 * DECLARE_IDTENTRY - Declare functions for simple IDT entry points 22 * @func: Function name of the entry point 25 * - The ASM entry point: asm_##func 26 * - The XEN PV trap entry point: xen_##func (maybe unused) 27 * - The C handler called from the FRED event dispatcher (maybe unused) 28 * - The C handler called from the ASM entry point 30 * Note: This is the C variant of DECLARE_IDTENTRY(). As the name says it 31 * declares the entry points for usage in C code. There is an ASM variant [all …]
|
| /linux/scripts/lib/kdoc/ |
| H A D | kdoc_parser.py | 2 # SPDX-License-Identifier: GPL-2.0 23 # Regular expressions used to parse kernel-doc markups at KernelDoc class. 43 # @{section-name}: 61 type_param = KernRe(r"@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)", cache=False) 71 r'(\w+)\s*(?:\(\w*\))?\s*' + # name and optional "(...)" 72 r'(?:[-:].*)?$', # description (not captured) 83 (KernRe(r"__attribute__\s*\(\([a-z 70 NAME = 1 # looking for function name global() variable in state 78 name = [ global() variable in state 251 output_declaration(self, dtype, name, **args) global() argument [all...] |
| /linux/net/atm/ |
| H A 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/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/drivers/md/dm-vdo/indexer/ |
| H A D | chapter-index.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include "chapter-index.h" 10 #include "memory-alloc.h" 13 #include "hash-utils.h" 31 memory_size = ((geometry->index_pages_per_chapter + 1) * geometry->bytes_per_page); in uds_make_open_chapter_index() 32 index->geometry = geometry; in uds_make_open_chapter_index() 33 index->volume_nonce = volume_nonce; in uds_make_open_chapter_index() 34 result = uds_initialize_delta_index(&index->delta_index, 1, in uds_make_open_chapter_index() 35 geometry->delta_lists_per_chapter, in uds_make_open_chapter_index() 36 geometry->chapter_mean_delta, in uds_make_open_chapter_index() [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 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/tools/testing/selftests/net/forwarding/ |
| H A D | bridge_mdb.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # +-----------------------+ +------------------------+ 15 # +----|------------------+ +----|-------------------+ 17 # +----|--------------------------------------------------|-------------------+ 19 # | +--|--------------------------------------------------|-----------------+ | 24 # | +-----------------------------------------------------------------------+ | 25 # +---------------------------------------------------------------------------+ 67 ip link add name br0 type bridge vlan_filtering 1 vlan_default_pvid 0 \ 138 local name=$1; shift 149 check_err $? "Failed to add $name host entry" [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/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/include/linux/ |
| H A 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/fs/f2fs/ |
| H A 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/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/fs/proc/ |
| H A D | proc_sysctl.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <linux/bpf-cgroup.h> 23 #define list_for_each_table_entry(entry, header) \ argument 24 entry = header->ctl_table; \ 25 for (size_t i = 0 ; i < header->ctl_table_size; ++i, entry++) 35 * Must be non-empty to avoid sharing an address with other tables. 42 * register_sysctl_mount_point() - registers a sysctl mount point 56 (hptr->type == SYSCTL_TABLE_TYPE_PERMANENTLY_EMPTY) 58 (hptr->type = SYSCTL_TABLE_TYPE_PERMANENTLY_EMPTY) 60 (hptr->type = SYSCTL_TABLE_TYPE_DEFAULT) [all …]
|
| /linux/fs/squashfs/ |
| H A 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/drivers/soc/qcom/ |
| H A D | smp2p.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. 26 * of a single 32-bit value between two processors. Each value has a single 33 * processor. By using two separate SMEM items that are single-reader and 34 * single-writer, SMP2P does not require any remote locking mechanisms. 37 * GPIO for each outbound entry and a virtual interrupt controller for each 38 * inbound entry. 52 * struct smp2p_smem_item - in memory communication structure 54 * @version: version - must be 1 55 * @features: features flag - currently unused [all …]
|
| /linux/fs/hfsplus/ |
| H A D | catalog.c | 1 // SPDX-License-Identifier: GPL-2.0 21 k1p = k1->cat.parent; in hfsplus_cat_case_cmp_key() 22 k2p = k2->cat.parent; in hfsplus_cat_case_cmp_key() 24 return be32_to_cpu(k1p) < be32_to_cpu(k2p) ? -1 : 1; in hfsplus_cat_case_cmp_key() 26 return hfsplus_strcasecmp(&k1->cat.name, &k2->cat.name); in hfsplus_cat_case_cmp_key() 34 k1p = k1->cat.parent; in hfsplus_cat_bin_cmp_key() 35 k2p = k2->cat.parent; in hfsplus_cat_bin_cmp_key() 37 return be32_to_cpu(k1p) < be32_to_cpu(k2p) ? -1 : 1; in hfsplus_cat_bin_cmp_key() 39 return hfsplus_strcmp(&k1->cat.name, &k2->cat.name); in hfsplus_cat_bin_cmp_key() 48 key->cat.parent = cpu_to_be32(parent); in hfsplus_cat_build_key() [all …]
|
| /linux/fs/efivarfs/ |
| H A 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/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 …]
|