/Linux-v5.10/net/atm/ |
D | mpoa_caches.c | 38 in_cache_entry *entry; in in_cache_get() local 41 entry = client->in_cache; in in_cache_get() 42 while (entry != NULL) { in in_cache_get() 43 if (entry->ctrl_info.in_dst_ip == dst_ip) { in in_cache_get() 44 refcount_inc(&entry->use); in in_cache_get() 46 return entry; in in_cache_get() 48 entry = entry->next; in in_cache_get() 59 in_cache_entry *entry; in in_cache_get_with_mask() local 62 entry = client->in_cache; in in_cache_get_with_mask() 63 while (entry != NULL) { in in_cache_get_with_mask() [all …]
|
D | lec.c | 106 static inline void lec_arp_hold(struct lec_arp_table *entry) in lec_arp_hold() argument 108 refcount_inc(&entry->usage); in lec_arp_hold() 111 static inline void lec_arp_put(struct lec_arp_table *entry) in lec_arp_put() argument 113 if (refcount_dec_and_test(&entry->usage)) in lec_arp_put() 114 kfree(entry); in lec_arp_put() 211 struct lec_arp_table *entry; in lec_start_xmit() local 282 entry = NULL; in lec_start_xmit() 283 vcc = lec_arp_resolve(priv, dst, is_rdesc, &entry); in lec_start_xmit() 284 pr_debug("%s:vcc:%p vcc_flags:%lx, entry:%p\n", in lec_start_xmit() 285 dev->name, vcc, vcc ? vcc->flags : 0, entry); in lec_start_xmit() [all …]
|
/Linux-v5.10/sound/core/ |
D | info.c | 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() 81 if (!try_module_get(entry->module)) in alloc_info_private() 85 module_put(entry->module); in alloc_info_private() 88 data->entry = entry; in alloc_info_private() 108 struct snd_info_entry *entry; in snd_info_entry_llseek() local 112 entry = data->entry; in snd_info_entry_llseek() 113 mutex_lock(&entry->access); in snd_info_entry_llseek() [all …]
|
/Linux-v5.10/fs/ |
D | mbcache.c | 21 * identifies a cache entry. 24 * and a special "delete entry with given key-value pair" operation. Fixed 63 * mb_cache_entry_create - create entry in cache 64 * @cache - cache where the entry should be created 65 * @mask - gfp mask with which the entry should be allocated 66 * @key - key of the entry 67 * @value - value of the entry 68 * @reusable - is the entry reusable by others? 70 * Creates entry in @cache with key @key and value @value. The function returns 71 * -EBUSY if entry with the same key and value already exists in cache. [all …]
|
D | dax.c | 52 /* The order of a PMD entry */ 69 * for pages. We use one bit for locking, one bit for the entry size (PMD) 70 * and two more to tell us if the entry is a zero page or an empty entry that 73 * If the PMD bit isn't set the entry has size PAGE_SIZE, and if the ZERO_PAGE 74 * and EMPTY bits aren't set the entry is a normal DAX entry with a filesystem 83 static unsigned long dax_to_pfn(void *entry) in dax_to_pfn() argument 85 return xa_to_value(entry) >> DAX_SHIFT; in dax_to_pfn() 93 static bool dax_is_locked(void *entry) in dax_is_locked() argument 95 return xa_to_value(entry) & DAX_LOCKED; in dax_is_locked() 98 static unsigned int dax_entry_order(void *entry) in dax_entry_order() argument [all …]
|
/Linux-v5.10/drivers/firmware/ |
D | memmap.c | 22 * Firmware map entry. Because firmware memory maps are flat and not 34 struct list_head list; /* entry for the linked list */ 35 struct kobject kobj; /* kobject for each entry */ 43 static ssize_t start_show(struct firmware_map_entry *entry, char *buf); 44 static ssize_t end_show(struct firmware_map_entry *entry, char *buf); 45 static ssize_t type_show(struct firmware_map_entry *entry, char *buf); 56 ssize_t (*show)(struct firmware_map_entry *entry, char *buf); 64 * These are default attributes that are added for every memmap entry. 84 * map entry is allocated by bootmem, we need to remember the storage and 99 struct firmware_map_entry *entry = to_memmap_entry(kobj); in release_firmware_map_entry() local [all …]
|
/Linux-v5.10/drivers/staging/media/tegra-vde/ |
D | dmabuf-cache.c | 29 static void tegra_vde_release_entry(struct tegra_vde_cache_entry *entry) in tegra_vde_release_entry() argument 31 struct dma_buf *dmabuf = entry->a->dmabuf; in tegra_vde_release_entry() 33 WARN_ON_ONCE(entry->refcnt); in tegra_vde_release_entry() 35 if (entry->vde->domain) in tegra_vde_release_entry() 36 tegra_vde_iommu_unmap(entry->vde, entry->iova); in tegra_vde_release_entry() 38 dma_buf_unmap_attachment(entry->a, entry->sgt, entry->dma_dir); in tegra_vde_release_entry() 39 dma_buf_detach(dmabuf, entry->a); in tegra_vde_release_entry() 42 list_del(&entry->list); in tegra_vde_release_entry() 43 kfree(entry); in tegra_vde_release_entry() 48 struct tegra_vde_cache_entry *entry; in tegra_vde_delayed_unmap() local [all …]
|
/Linux-v5.10/drivers/staging/media/atomisp/pci/base/refcount/src/ |
D | refcount.c | 58 /* for new entry */ in refcount_find_entry() 63 /* found entry */ in refcount_find_entry() 98 struct ia_css_refcount_entry *entry; in ia_css_refcount_uninit() local 102 "%s() entry\n", __func__); in ia_css_refcount_uninit() 108 entry = myrefcount.items + i; in ia_css_refcount_uninit() 109 if (entry->data != mmgr_NULL) { in ia_css_refcount_uninit() 112 entry->data);*/ in ia_css_refcount_uninit() 113 hmm_free(entry->data); in ia_css_refcount_uninit() 114 entry->data = mmgr_NULL; in ia_css_refcount_uninit() 115 entry->count = 0; in ia_css_refcount_uninit() [all …]
|
/Linux-v5.10/arch/x86/kernel/ |
D | asm-offsets_64.c | 31 #define ENTRY(entry) OFFSET(pt_regs_ ## entry, pt_regs, entry) in main() argument 32 ENTRY(bx); in main() 33 ENTRY(cx); in main() 34 ENTRY(dx); in main() 35 ENTRY(sp); in main() 36 ENTRY(bp); in main() 37 ENTRY(si); in main() 38 ENTRY(di); in main() 39 ENTRY(r8); in main() 40 ENTRY(r9); in main() [all …]
|
/Linux-v5.10/include/linux/ |
D | xarray.h | 22 * The bottom two bits of the entry determine how the XArray interprets 25 * 00: Pointer entry 26 * 10: Internal entry 27 * x1: Value entry or tagged pointer 35 * 256: Retry entry 36 * 257: Zero entry 46 * xa_mk_value() - Create an XArray entry from an integer. 50 * Return: An entry suitable for storing in the XArray. 59 * xa_to_value() - Get value stored in an XArray entry. 60 * @entry: XArray entry. [all …]
|
/Linux-v5.10/drivers/firmware/broadcom/ |
D | bcm47xx_sprom.c | 175 #define ENTRY(_revmask, _type, _prefix, _name, _val, _allset, _fallback) \ macro 195 ENTRY(0xfffffffe, u16, pre, "devid", dev_id, 0, fallback); in bcm47xx_sprom_fill_auto() 197 ENTRY(0xfffffffe, u16, pre, "boardrev", board_rev, 0, true); in bcm47xx_sprom_fill_auto() 198 ENTRY(0xfffffffe, u32, pre, "boardflags", boardflags, 0, fb); in bcm47xx_sprom_fill_auto() 199 ENTRY(0xfffffff0, u32, pre, "boardflags2", boardflags2, 0, fb); in bcm47xx_sprom_fill_auto() 200 ENTRY(0xfffff800, u32, pre, "boardflags3", boardflags3, 0, fb); in bcm47xx_sprom_fill_auto() 201 ENTRY(0x00000002, u16, pre, "boardflags", boardflags_lo, 0, fb); in bcm47xx_sprom_fill_auto() 202 ENTRY(0xfffffffc, u16, pre, "boardtype", board_type, 0, true); in bcm47xx_sprom_fill_auto() 203 ENTRY(0xfffffffe, u16, pre, "boardnum", board_num, 0, fb); in bcm47xx_sprom_fill_auto() 204 ENTRY(0x00000002, u8, pre, "cc", country_code, 0, fb); in bcm47xx_sprom_fill_auto() [all …]
|
/Linux-v5.10/drivers/acpi/ |
D | nvs.c | 95 struct nvs_page *entry, *next; in suspend_nvs_register() local 103 entry = kzalloc(sizeof(struct nvs_page), GFP_KERNEL); in suspend_nvs_register() 104 if (!entry) in suspend_nvs_register() 107 list_add_tail(&entry->node, &nvs_list); in suspend_nvs_register() 108 entry->phys_start = start; in suspend_nvs_register() 110 entry->size = (size < nr_bytes) ? size : nr_bytes; in suspend_nvs_register() 112 start += entry->size; in suspend_nvs_register() 113 size -= entry->size; in suspend_nvs_register() 118 list_for_each_entry_safe(entry, next, &nvs_list, node) { in suspend_nvs_register() 119 list_del(&entry->node); in suspend_nvs_register() [all …]
|
/Linux-v5.10/fs/squashfs/ |
D | cache.c | 56 struct squashfs_cache_entry *entry; in squashfs_cache_get() local 62 if (cache->entry[i].block == block) { in squashfs_cache_get() 84 * At least one unused cache entry. A simple in squashfs_cache_get() 85 * round-robin strategy is used to choose the entry to in squashfs_cache_get() 90 if (cache->entry[i].refcount == 0) in squashfs_cache_get() 96 entry = &cache->entry[i]; in squashfs_cache_get() 99 * Initialise chosen cache entry, and fill it in from in squashfs_cache_get() 103 entry->block = block; in squashfs_cache_get() 104 entry->refcount = 1; in squashfs_cache_get() 105 entry->pending = 1; in squashfs_cache_get() [all …]
|
/Linux-v5.10/arch/sparc/lib/ |
D | Memcpy_utils.S | 8 ENTRY(__restore_asi_fp) 14 ENTRY(__restore_asi) 19 ENTRY(memcpy_retl_o2) 23 ENTRY(memcpy_retl_o2_plus_1) 27 ENTRY(memcpy_retl_o2_plus_3) 31 ENTRY(memcpy_retl_o2_plus_4) 35 ENTRY(memcpy_retl_o2_plus_5) 39 ENTRY(memcpy_retl_o2_plus_6) 43 ENTRY(memcpy_retl_o2_plus_7) 47 ENTRY(memcpy_retl_o2_plus_8) [all …]
|
/Linux-v5.10/tools/perf/util/ |
D | block-range.c | 23 struct block_range *entry = rb_entry(rb, struct block_range, node); in block_range__debug() local 25 assert(old < entry->start); in block_range__debug() 26 assert(entry->start <= entry->end); /* single instruction block; jump to a jump */ in block_range__debug() 28 old = entry->end; in block_range__debug() 37 struct block_range *entry; in block_range__find() local 41 entry = rb_entry(parent, struct block_range, node); in block_range__find() 43 if (addr < entry->start) in block_range__find() 45 else if (addr > entry->end) in block_range__find() 48 return entry; in block_range__find() 85 struct block_range *next, *entry = NULL; in block_range__create() local [all …]
|
/Linux-v5.10/arch/s390/include/asm/ |
D | pci_dma.h | 100 static inline void set_pt_pfaa(unsigned long *entry, void *pfaa) in set_pt_pfaa() argument 102 *entry &= ZPCI_PTE_FLAG_MASK; in set_pt_pfaa() 103 *entry |= ((unsigned long) pfaa & ZPCI_PTE_ADDR_MASK); in set_pt_pfaa() 106 static inline void set_rt_sto(unsigned long *entry, void *sto) in set_rt_sto() argument 108 *entry &= ZPCI_RTE_FLAG_MASK; in set_rt_sto() 109 *entry |= ((unsigned long) sto & ZPCI_RTE_ADDR_MASK); in set_rt_sto() 110 *entry |= ZPCI_TABLE_TYPE_RTX; in set_rt_sto() 113 static inline void set_st_pto(unsigned long *entry, void *pto) in set_st_pto() argument 115 *entry &= ZPCI_STE_FLAG_MASK; in set_st_pto() 116 *entry |= ((unsigned long) pto & ZPCI_STE_ADDR_MASK); in set_st_pto() [all …]
|
/Linux-v5.10/drivers/net/dsa/mv88e6xxx/ |
D | global1_vtu.c | 20 struct mv88e6xxx_vtu_entry *entry) in mv88e6xxx_g1_vtu_fid_read() argument 29 entry->fid = val & MV88E6352_G1_VTU_FID_MASK; in mv88e6xxx_g1_vtu_fid_read() 35 struct mv88e6xxx_vtu_entry *entry) in mv88e6xxx_g1_vtu_fid_write() argument 37 u16 val = entry->fid & MV88E6352_G1_VTU_FID_MASK; in mv88e6xxx_g1_vtu_fid_write() 45 struct mv88e6xxx_vtu_entry *entry) in mv88e6xxx_g1_vtu_sid_read() argument 54 entry->sid = val & MV88E6352_G1_VTU_SID_MASK; in mv88e6xxx_g1_vtu_sid_read() 60 struct mv88e6xxx_vtu_entry *entry) in mv88e6xxx_g1_vtu_sid_write() argument 62 u16 val = entry->sid & MV88E6352_G1_VTU_SID_MASK; in mv88e6xxx_g1_vtu_sid_write() 91 struct mv88e6xxx_vtu_entry *entry) in mv88e6xxx_g1_vtu_vid_read() argument 100 entry->vid = val & 0xfff; in mv88e6xxx_g1_vtu_vid_read() [all …]
|
/Linux-v5.10/net/netlabel/ |
D | netlabel_domainhash.c | 55 * netlbl_domhsh_free_entry - Frees a domain hash table entry 56 * @entry: the entry's RCU field 60 * function so that the memory allocated to a hash table entry can be released 64 static void netlbl_domhsh_free_entry(struct rcu_head *entry) in netlbl_domhsh_free_entry() argument 74 ptr = container_of(entry, struct netlbl_dom_map, rcu); in netlbl_domhsh_free_entry() 125 * netlbl_domhsh_search - Search for a domain entry 131 * entry if found, otherwise NULL is returned. @family may be %AF_UNSPEC 159 * netlbl_domhsh_search_def - Search for a domain entry 165 * entry if an exact match is found, if an exact match is not present in the 166 * hash table then the default entry is returned if valid otherwise NULL is [all …]
|
/Linux-v5.10/lib/ |
D | xarray.c | 22 * @index is the index of the entry being operated on 28 * @entry refers to something stored in a slot in the xarray 118 * xas_squash_marks() - Merge all marks to the first entry 121 * Set a mark on the first entry if any entry has it set. Clear marks on 181 void *entry; in xas_start() local 188 entry = xa_head(xas->xa); in xas_start() 189 if (!xa_is_node(entry)) { in xas_start() 193 if ((xas->xa_index >> xa_to_node(entry)->shift) > XA_CHUNK_MASK) in xas_start() 198 return entry; in xas_start() 204 void *entry = xa_entry(xas->xa, node, offset); in xas_descend() local [all …]
|
/Linux-v5.10/drivers/infiniband/core/ |
D | ib_core_uverbs.c | 16 * @entry: entry into the mmap_xa that needs to be linked with 32 struct rdma_user_mmap_entry *entry) in rdma_umap_priv_init() argument 37 if (entry) { in rdma_umap_priv_init() 38 kref_get(&entry->ref); in rdma_umap_priv_init() 39 priv->entry = entry; in rdma_umap_priv_init() 58 * @entry: mmap_entry retrieved from rdma_user_mmap_entry_get(), or NULL 69 struct rdma_user_mmap_entry *entry) in rdma_user_mmap_io() argument 96 rdma_umap_priv_init(priv, vma, entry); in rdma_user_mmap_io() 102 * rdma_user_mmap_entry_get_pgoff() - Get an entry from the mmap_xa 111 * entry so that it won't be deleted from the xarray in the meantime. [all …]
|
/Linux-v5.10/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
D | vega10_smumgr.c | 46 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega10_copy_table_from_smc() 48 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega10_copy_table_from_smc() 52 upper_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega10_copy_table_from_smc() 56 lower_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega10_copy_table_from_smc() 60 priv->smu_tables.entry[table_id].table_id, in vega10_copy_table_from_smc() 66 memcpy(table, priv->smu_tables.entry[table_id].table, in vega10_copy_table_from_smc() 67 priv->smu_tables.entry[table_id].size); in vega10_copy_table_from_smc() 86 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega10_copy_table_to_smc() 88 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega10_copy_table_to_smc() 91 memcpy(priv->smu_tables.entry[table_id].table, table, in vega10_copy_table_to_smc() [all …]
|
D | vega12_smumgr.c | 49 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega12_copy_table_from_smc() 51 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega12_copy_table_from_smc() 55 upper_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega12_copy_table_from_smc() 60 lower_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega12_copy_table_from_smc() 74 memcpy(table, priv->smu_tables.entry[table_id].table, in vega12_copy_table_from_smc() 75 priv->smu_tables.entry[table_id].size); in vega12_copy_table_from_smc() 94 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega12_copy_table_to_smc() 96 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega12_copy_table_to_smc() 99 memcpy(priv->smu_tables.entry[table_id].table, table, in vega12_copy_table_to_smc() 100 priv->smu_tables.entry[table_id].size); in vega12_copy_table_to_smc() [all …]
|
/Linux-v5.10/drivers/gpu/drm/ |
D | drm_scatter.c | 46 static void drm_sg_cleanup(struct drm_sg_mem * entry) in drm_sg_cleanup() argument 51 for (i = 0; i < entry->pages; i++) { in drm_sg_cleanup() 52 page = entry->pagelist[i]; in drm_sg_cleanup() 57 vfree(entry->virtual); in drm_sg_cleanup() 59 kfree(entry->busaddr); in drm_sg_cleanup() 60 kfree(entry->pagelist); in drm_sg_cleanup() 61 kfree(entry); in drm_sg_cleanup() 82 struct drm_sg_mem *entry; in drm_legacy_sg_alloc() local 99 entry = kzalloc(sizeof(*entry), GFP_KERNEL); in drm_legacy_sg_alloc() 100 if (!entry) in drm_legacy_sg_alloc() [all …]
|
/Linux-v5.10/security/integrity/ima/ |
D | ima_policy.c | 326 static void ima_lsm_free_rule(struct ima_rule_entry *entry) in ima_lsm_free_rule() argument 331 ima_filter_rule_free(entry->lsm[i].rule); in ima_lsm_free_rule() 332 kfree(entry->lsm[i].args_p); in ima_lsm_free_rule() 336 static void ima_free_rule(struct ima_rule_entry *entry) in ima_free_rule() argument 338 if (!entry) in ima_free_rule() 342 * entry->template->fields may be allocated in ima_parse_rule() but that in ima_free_rule() 346 kfree(entry->fsname); in ima_free_rule() 347 ima_free_rule_opt_list(entry->keyrings); in ima_free_rule() 348 ima_lsm_free_rule(entry); in ima_free_rule() 349 kfree(entry); in ima_free_rule() [all …]
|
/Linux-v5.10/kernel/dma/ |
D | debug.c | 166 static inline void dump_entry_trace(struct dma_debug_entry *entry) in dump_entry_trace() argument 169 if (entry) { in dump_entry_trace() 171 stack_trace_print(entry->stack_entries, entry->stack_len, 0); in dump_entry_trace() 217 #define err_printk(dev, entry, format, arg...) do { \ argument 224 dump_entry_trace(entry); \ 236 static int hash_fn(struct dma_debug_entry *entry) in hash_fn() argument 242 return (entry->dev_addr >> HASH_FN_SHIFT) & HASH_FN_MASK; in hash_fn() 248 static struct hash_bucket *get_hash_bucket(struct dma_debug_entry *entry, in get_hash_bucket() argument 252 int idx = hash_fn(entry); in get_hash_bucket() 290 * Search a given entry in the hash bucket list [all …]
|