| /OK3568_Linux_fs/external/xserver/hw/xwayland/ |
| H A D | drm.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <protocol name="drm"> 5 Copyright © 2008-2011 Kristian Høgsberg 6 Copyright © 2010-2011 Intel Corporation 12 notice appear in supporting documentation, and that the name of 30 <!-- drm support. This object is created by the server and published 31 using the display's global event. --> 32 <interface name="wl_drm" version="2"> 33 <enum name="error"> 34 <entry name="authenticate_fail" value="0"/> [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/base/ |
| H A D | mpp_enc_cfg.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 50 * +----------+ 52 * +----------+ 56 * +----------+ 60 * +----------+ 68 static MppCfgInfoNode *mpp_enc_cfg_find(MppEncCfgInfo *info, const char *name) in mpp_enc_cfg_find() argument 72 if (NULL == info || NULL == name) in mpp_enc_cfg_find() 75 node = mpp_trie_get_node(info->trie_node, name); in mpp_enc_cfg_find() 79 return (MppCfgInfoNode *)(((char *)info->trie_node) + node->id); in mpp_enc_cfg_find() 102 MppCfgInfoNode *get_info(const char *name) { return mpp_enc_cfg_find(mInfo, name); }; in get_info() argument [all …]
|
| H A D | mpp_dec_cfg.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 52 static MppCfgInfoNode *mpp_dec_cfg_find(MppDecCfgInfo *info, const char *name) in mpp_dec_cfg_find() argument 56 if (NULL == info || NULL == name) in mpp_dec_cfg_find() 59 node = mpp_trie_get_node(info->trie_node, name); in mpp_dec_cfg_find() 63 return (MppCfgInfoNode *)(((char *)info->trie_node) + node->id); in mpp_dec_cfg_find() 86 MppCfgInfoNode *get_info(const char *name) { return mpp_dec_cfg_find(mInfo, name); }; in get_info() argument 89 RK_S32 get_node_count() { return mInfo ? mInfo->head.node_count : 0; }; in get_node_count() 90 RK_S32 get_info_count() { return mInfo ? mInfo->head.info_count : 0; }; in get_info_count() 91 RK_S32 get_info_size() { return mInfo ? mInfo->head.info_size : 0; }; in get_info_size() 95 #define EXPAND_AS_API(base, name, cfg_type, in_type, flag, field_change, field_data) \ argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/firmware/efi/ |
| H A D | efi-pstore.c | 1 // SPDX-License-Identifier: GPL-2.0+ 28 psi->data = NULL; in efi_pstore_open() 34 psi->data = NULL; in efi_pstore_close() 43 static int efi_pstore_read_func(struct efivar_entry *entry, in efi_pstore_read_func() argument 47 char name[DUMP_NAME_LEN], data_type; in efi_pstore_read_func() local 54 if (efi_guidcmp(entry->var.VendorGuid, vendor)) in efi_pstore_read_func() 58 name[i] = entry->var.VariableName[i]; in efi_pstore_read_func() 60 if (sscanf(name, "dump-type%u-%u-%d-%llu-%c", in efi_pstore_read_func() 61 &record->type, &part, &cnt, &time, &data_type) == 5) { in efi_pstore_read_func() 62 record->id = generic_id(time, part, cnt); in efi_pstore_read_func() [all …]
|
| H A D | vars.c | 1 // SPDX-License-Identifier: GPL-2.0+ 30 * 2) ->ops calls 47 while (offset <= len - sizeof(*node) && in validate_device_path() 48 node->length >= sizeof(*node) && in validate_device_path() 49 node->length <= len - offset) { in validate_device_path() 50 offset += node->length; in validate_device_path() 52 if ((node->type == EFI_DEV_END_PATH || in validate_device_path() 53 node->type == EFI_DEV_END_PATH2) && in validate_device_path() 54 node->sub_type == EFI_DEV_END_ENTIRE) in validate_device_path() 61 * If we're here then either node->length pointed past the end in validate_device_path() [all …]
|
| H A D | efivars.c | 1 // SPDX-License-Identifier: GPL-2.0+ 19 #define EFIVARS_DATE "2004-May-17" 44 ssize_t (*show) (struct efivar_entry *entry, char *buf); 45 ssize_t (*store)(struct efivar_entry *entry, const char *buf, size_t count); 50 .attr = {.name = __stringify(_name), .mode = _mode}, \ 65 efivar_guid_read(struct efivar_entry *entry, char *buf) in efivar_guid_read() argument 67 struct efi_variable *var = &entry->var; in efivar_guid_read() 70 if (!entry || !buf) in efivar_guid_read() 73 efi_guid_to_str(&var->VendorGuid, str); in efivar_guid_read() 77 return str - buf; in efivar_guid_read() [all …]
|
| /OK3568_Linux_fs/kernel/sound/core/ |
| H A D | info.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 55 struct snd_info_entry *entry; member 60 static void snd_info_disconnect(struct snd_info_entry *entry); 74 static int alloc_info_private(struct snd_info_entry *entry, in alloc_info_private() argument 79 if (!entry || !entry->p) in alloc_info_private() 80 return -ENODEV; in alloc_info_private() 81 if (!try_module_get(entry->module)) in alloc_info_private() 82 return -EFAULT; in alloc_info_private() 85 module_put(entry->module); in alloc_info_private() 86 return -ENOMEM; in alloc_info_private() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/core/ |
| H A D | lists.c | 7 * SPDX-License-Identifier: GPL-2.0+ 13 #include <dm/device-internal.h> 21 struct driver *lists_driver_lookup_name(const char *name) in lists_driver_lookup_name() argument 26 struct driver *entry; in lists_driver_lookup_name() local 28 for (entry = drv; entry != drv + n_ents; entry++) { in lists_driver_lookup_name() 29 if (!strcmp(name, entry->name)) in lists_driver_lookup_name() 30 return entry; in lists_driver_lookup_name() 42 struct uclass_driver *entry; in lists_uclass_lookup() local 44 for (entry = uclass; entry != uclass + n_ents; entry++) { in lists_uclass_lookup() 45 if (entry->id == id) in lists_uclass_lookup() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/isdn/mISDN/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | linker_lists.h | 4 * Implementation of linker-generated arrays 8 * SPDX-License-Identifier: GPL-2.0+ 25 * sections, each containing one entry of the list. Each input section 26 * contains a constant initialized variable which holds the entry's 28 * and entry names, plus a prefix which allows grouping all lists 29 * together. Assuming _list and _entry are the list and entry names, 30 * then the corresponding input section name is 34 * and the C variable name is 38 * This ensures uniqueness for both input section and C variable name. 47 * Entry variables need never be referred to directly. [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/include/asm/ |
| H A D | idtentry.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 #include <linux/entry-common.h> 15 * DECLARE_IDTENTRY - Declare functions for simple IDT entry points 18 * @func: Function name of the entry point 21 * - The ASM entry point: asm_##func 22 * - The XEN PV trap entry point: xen_##func (maybe unused) 23 * - The C handler called from the ASM entry point 25 * Note: This is the C variant of DECLARE_IDTENTRY(). As the name says it 26 * declares the entry points for usage in C code. There is an ASM variant 27 * as well which is used to emit the entry stubs in entry_32/64.S. [all …]
|
| /OK3568_Linux_fs/kernel/fs/nfs/ |
| H A 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 …]
|
| /OK3568_Linux_fs/u-boot/tools/binman/ |
| H A D | image.py | 4 # SPDX-License-Identifier: GPL-2.0+ 12 import entry 13 from entry import Entry 27 _name: Image name 30 _pad_before: Number of bytes before the first entry starts. This 31 effectively changes the place where entry position 0 starts 32 _pad_after: Number of bytes after the last entry ends. The last 33 entry will finish on or before this boundary 34 _pad_byte: Byte to use to pad the image where there is no entry 37 must be in-order in the device tree description [all …]
|
| /OK3568_Linux_fs/kernel/drivers/soc/rockchip/minidump/ |
| H A D | rk_minidump.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved. 38 * @entry : array of HLOS regions requested 46 struct md_region entry[MAX_NUM_ENTRIES]; member 88 static inline unsigned int set_section_name(const char *name) in set_section_name() argument 94 if ((strtab == NULL) || (name == NULL)) in set_section_name() 98 idx += strscpy((strtab + idx), name, MAX_REGION_NAME_LENGTH); in set_section_name() 104 struct md_region *md_get_region(char *name) in md_get_region() argument 110 mdr = &minidump_table.entry[i]; in md_get_region() 111 if (!strcmp(mdr->name, name)) in md_get_region() [all …]
|
| /OK3568_Linux_fs/u-boot/env/ |
| H A D | attr.c | 5 * SPDX-License-Identifier: GPL-2.0+ 26 * entry = name[:attributes] 27 * list = entry[,list] 30 int (*callback)(const char *name, const char *attributes, void *priv), in env_attr_walk() argument 33 const char *entry, *entry_end; in env_attr_walk() local 34 char *name, *attributes; in env_attr_walk() local 40 entry = attr_list; in env_attr_walk() 44 entry_end = strchr(entry, ENV_ATTR_LIST_DELIM); in env_attr_walk() 45 /* check if this is the last entry in the list */ in env_attr_walk() 47 int entry_len = strlen(entry); in env_attr_walk() [all …]
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/tools/iq_check/src/ |
| H A D | parser.c | 29 j2s_list *entry = malloc(sizeof(j2s_list)); in j2s_list_add() local 30 DASSERT(entry, exit(-1)); in j2s_list_add() 32 entry->data = data; in j2s_list_add() 34 entry->prev = head->prev; in j2s_list_add() 35 entry->next = head; in j2s_list_add() 36 ((j2s_list *)head->prev)->next = entry; in j2s_list_add() 37 head->prev = entry; in j2s_list_add() 40 void j2s_list_del(j2s_list *entry) { in j2s_list_del() argument 41 ((j2s_list *)entry->prev)->next = entry->next; in j2s_list_del() 42 ((j2s_list *)entry->next)->prev = entry->prev; in j2s_list_del() [all …]
|
| /OK3568_Linux_fs/kernel/fs/efivarfs/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/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 kmem_cache_zalloc(sbi->inline_xattr_slab, GFP_NOFS); in xattr_alloc() 40 kmem_cache_free(sbi->inline_xattr_slab, xattr_addr); in xattr_free() 47 const char *name, void *buffer, size_t size, int flags) in f2fs_xattr_generic_get() argument 49 struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb); in f2fs_xattr_generic_get() 51 switch (handler->flags) { in f2fs_xattr_generic_get() 54 return -EOPNOTSUPP; in f2fs_xattr_generic_get() 60 return -EINVAL; in f2fs_xattr_generic_get() [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/include/sound/ |
| H A D | info.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 31 void (*read)(struct snd_info_entry *entry, 33 void (*write)(struct snd_info_entry *entry, 38 int (*open)(struct snd_info_entry *entry, 40 int (*release)(struct snd_info_entry *entry, 42 ssize_t (*read)(struct snd_info_entry *entry, void *file_private_data, 45 ssize_t (*write)(struct snd_info_entry *entry, void *file_private_data, 48 loff_t (*llseek)(struct snd_info_entry *entry, 51 __poll_t (*poll)(struct snd_info_entry *entry, 54 int (*ioctl)(struct snd_info_entry *entry, void *file_private_data, [all …]
|
| /OK3568_Linux_fs/external/security/librkcrypto/include/ |
| H A D | rk_list.h | 25 * into some well-recognized area such as 0xdead000000000000, 26 * that is also not mappable by user-space exploits: 35 * These are non-NULL pointers that will result in page faults 37 * non-initialized list entries. 47 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) 52 * container_of - cast a member of a structure out to the containing structure 55 * @member: the name of the member within the struct. 59 const typeof(((type *)0)->member) *__mptr = (ptr); \ 60 (type *)((char *)__mptr - offsetof(type, member)); }) 69 * using the generic single-entry routines. [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | list.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 18 * using the generic single-entry routines. 21 #define LIST_HEAD_INIT(name) { &(name), &(name) } argument 23 #define LIST_HEAD(name) \ argument 24 struct list_head name = LIST_HEAD_INIT(name) 27 * INIT_LIST_HEAD - Initialize a list_head structure 35 WRITE_ONCE(list->next, list); in INIT_LIST_HEAD() 36 list->prev = list; in INIT_LIST_HEAD() 43 extern bool __list_del_entry_valid(struct list_head *entry); 51 static inline bool __list_del_entry_valid(struct list_head *entry) in __list_del_entry_valid() argument [all …]
|
| /OK3568_Linux_fs/kernel/fs/proc/ |
| H A D | proc_sysctl.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <linux/bpf-cgroup.h> 39 return head->ctl_table[0].child == sysctl_mount_point; in is_empty_dir() 44 dir->header.ctl_table[0].child = sysctl_mount_point; in set_empty_dir() 50 dir->header.ctl_table[0].child = NULL; in clear_empty_dir() 58 atomic_inc(&poll->event); in proc_sys_poll_notify() 59 wake_up_interruptible(&poll->wait); in proc_sys_poll_notify() 90 if (dir->header.parent) in sysctl_print_dir() 91 sysctl_print_dir(dir->header.parent); in sysctl_print_dir() 92 pr_cont("%s/", dir->header.ctl_table[0].procname); in sysctl_print_dir() [all …]
|