/linux-6.6.21/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 …]
|
/linux-6.6.21/sound/core/ |
D | info.c | 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() 80 if (!try_module_get(entry->module)) in alloc_info_private() 84 module_put(entry->module); in alloc_info_private() 87 data->entry = entry; in alloc_info_private() 107 struct snd_info_entry *entry; in snd_info_entry_llseek() local 111 entry = data->entry; in snd_info_entry_llseek() 112 mutex_lock(&entry->access); in snd_info_entry_llseek() [all …]
|
/linux-6.6.21/drivers/acpi/ |
D | nvs.c | 97 struct nvs_page *entry, *next; in suspend_nvs_register() local 105 entry = kzalloc(sizeof(struct nvs_page), GFP_KERNEL); in suspend_nvs_register() 106 if (!entry) in suspend_nvs_register() 109 list_add_tail(&entry->node, &nvs_list); in suspend_nvs_register() 110 entry->phys_start = start; in suspend_nvs_register() 112 entry->size = (size < nr_bytes) ? size : nr_bytes; in suspend_nvs_register() 114 start += entry->size; in suspend_nvs_register() 115 size -= entry->size; in suspend_nvs_register() 120 list_for_each_entry_safe(entry, next, &nvs_list, node) { in suspend_nvs_register() 121 list_del(&entry->node); in suspend_nvs_register() [all …]
|
D | pci_irq.c | 108 static void do_prt_fixups(struct acpi_prt_entry *entry, in do_prt_fixups() argument 119 entry->id.segment == quirk->segment && in do_prt_fixups() 120 entry->id.bus == quirk->bus && in do_prt_fixups() 121 entry->id.device == quirk->device && in do_prt_fixups() 122 entry->pin == quirk->pin && in do_prt_fixups() 128 entry->id.segment, entry->id.bus, in do_prt_fixups() 129 entry->id.device, pin_name(entry->pin), in do_prt_fixups() 143 struct acpi_prt_entry *entry; in acpi_pci_irq_check_entry() local 149 entry = kzalloc(sizeof(struct acpi_prt_entry), GFP_KERNEL); in acpi_pci_irq_check_entry() 150 if (!entry) in acpi_pci_irq_check_entry() [all …]
|
/linux-6.6.21/drivers/staging/media/atomisp/pci/base/refcount/src/ |
D | refcount.c | 98 struct ia_css_refcount_entry *entry; in ia_css_refcount_uninit() local 108 entry = myrefcount.items + i; in ia_css_refcount_uninit() 109 if (entry->data != mmgr_NULL) { 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() 116 entry->id = 0; in ia_css_refcount_uninit() 128 struct ia_css_refcount_entry *entry; in ia_css_refcount_increment() local 133 entry = refcount_find_entry(ptr, false); in ia_css_refcount_increment() 138 if (!entry) { in ia_css_refcount_increment() [all …]
|
/linux-6.6.21/include/linux/ |
D | swapops.h | 69 static inline bool is_pfn_swap_entry(swp_entry_t entry); 98 static inline unsigned swp_type(swp_entry_t entry) in swp_type() argument 100 return (entry.val >> SWP_TYPE_SHIFT); in swp_type() 107 static inline pgoff_t swp_offset(swp_entry_t entry) in swp_offset() argument 109 return entry.val & SWP_OFFSET_MASK; in swp_offset() 117 static inline unsigned long swp_offset_pfn(swp_entry_t entry) in swp_offset_pfn() argument 119 VM_BUG_ON(!is_pfn_swap_entry(entry)); in swp_offset_pfn() 120 return swp_offset(entry) & SWP_PFN_MASK; in swp_offset_pfn() 146 static inline pte_t swp_entry_to_pte(swp_entry_t entry) in swp_entry_to_pte() argument 150 arch_entry = __swp_entry(swp_type(entry), swp_offset(entry)); in swp_entry_to_pte() [all …]
|
D | bpf_mprog.h | 115 #define bpf_mprog_foreach_tuple(entry, fp, cp, t) \ argument 116 for (fp = &entry->fp_items[0], cp = &entry->parent->cp_items[0];\ 124 #define bpf_mprog_foreach_prog(entry, fp, p) \ argument 125 for (fp = &entry->fp_items[0]; \ 159 bpf_mprog_peer(const struct bpf_mprog_entry *entry) in bpf_mprog_peer() argument 161 if (entry == &entry->parent->a) in bpf_mprog_peer() 162 return &entry->parent->b; in bpf_mprog_peer() 164 return &entry->parent->a; in bpf_mprog_peer() 179 static inline void bpf_mprog_inc(struct bpf_mprog_entry *entry) in bpf_mprog_inc() argument 181 entry->parent->count++; in bpf_mprog_inc() [all …]
|
/linux-6.6.21/drivers/firmware/ |
D | memmap.c | 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); 100 struct firmware_map_entry *entry = to_memmap_entry(kobj); in release_firmware_map_entry() local 102 if (PageReserved(virt_to_page(entry))) { in release_firmware_map_entry() 110 list_add(&entry->list, &map_entries_bootmem); in release_firmware_map_entry() 116 kfree(entry); in release_firmware_map_entry() 144 struct firmware_map_entry *entry) in firmware_map_add_entry() argument 148 entry->start = start; in firmware_map_add_entry() [all …]
|
/linux-6.6.21/arch/s390/include/asm/ |
D | pci_dma.h | 100 static inline void set_pt_pfaa(unsigned long *entry, phys_addr_t pfaa) in set_pt_pfaa() argument 102 *entry &= ZPCI_PTE_FLAG_MASK; in set_pt_pfaa() 103 *entry |= (pfaa & ZPCI_PTE_ADDR_MASK); in set_pt_pfaa() 106 static inline void set_rt_sto(unsigned long *entry, phys_addr_t sto) in set_rt_sto() argument 108 *entry &= ZPCI_RTE_FLAG_MASK; in set_rt_sto() 109 *entry |= (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, phys_addr_t pto) in set_st_pto() argument 115 *entry &= ZPCI_STE_FLAG_MASK; in set_st_pto() 116 *entry |= (pto & ZPCI_STE_ADDR_MASK); in set_st_pto() [all …]
|
/linux-6.6.21/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-6.6.21/drivers/media/platform/nvidia/tegra-vde/ |
D | dmabuf-cache.c | 32 static void tegra_vde_release_entry(struct tegra_vde_cache_entry *entry) in tegra_vde_release_entry() argument 34 struct dma_buf *dmabuf = entry->a->dmabuf; in tegra_vde_release_entry() 36 WARN_ON_ONCE(entry->refcnt); in tegra_vde_release_entry() 38 if (entry->vde->domain) in tegra_vde_release_entry() 39 tegra_vde_iommu_unmap(entry->vde, entry->iova); in tegra_vde_release_entry() 41 dma_buf_unmap_attachment_unlocked(entry->a, entry->sgt, entry->dma_dir); in tegra_vde_release_entry() 42 dma_buf_detach(dmabuf, entry->a); in tegra_vde_release_entry() 45 list_del(&entry->list); in tegra_vde_release_entry() 46 kfree(entry); in tegra_vde_release_entry() 51 struct tegra_vde_cache_entry *entry; in tegra_vde_delayed_unmap() local [all …]
|
/linux-6.6.21/kernel/dma/ |
D | debug.c | 167 static inline void dump_entry_trace(struct dma_debug_entry *entry) in dump_entry_trace() argument 170 if (entry) { in dump_entry_trace() 172 stack_trace_print(entry->stack_entries, entry->stack_len, 0); in dump_entry_trace() 218 #define err_printk(dev, entry, format, arg...) do { \ argument 225 dump_entry_trace(entry); \ 237 static int hash_fn(struct dma_debug_entry *entry) in hash_fn() argument 243 return (entry->dev_addr >> HASH_FN_SHIFT) & HASH_FN_MASK; in hash_fn() 249 static struct hash_bucket *get_hash_bucket(struct dma_debug_entry *entry, in get_hash_bucket() argument 253 int idx = hash_fn(entry); in get_hash_bucket() 297 struct dma_debug_entry *entry, *ret = NULL; in __hash_bucket_find() local [all …]
|
/linux-6.6.21/tools/perf/util/ |
D | block-range.c | 19 struct block_range *entry = rb_entry(rb, struct block_range, node); in block_range__debug() local 21 assert(old < entry->start); in block_range__debug() 22 assert(entry->start <= entry->end); /* single instruction block; jump to a jump */ in block_range__debug() 24 old = entry->end; in block_range__debug() 33 struct block_range *entry; in block_range__find() local 37 entry = rb_entry(parent, struct block_range, node); in block_range__find() 39 if (addr < entry->start) in block_range__find() 41 else if (addr > entry->end) in block_range__find() 44 return entry; in block_range__find() 81 struct block_range *next, *entry = NULL; in block_range__create() local [all …]
|
/linux-6.6.21/drivers/net/dsa/sja1105/ |
D | sja1105_static_config.c | 98 struct sja1105_avb_params_entry *entry = entry_ptr; in sja1105et_avb_params_entry_packing() local 100 sja1105_packing(buf, &entry->destmeta, 95, 48, size, op); in sja1105et_avb_params_entry_packing() 101 sja1105_packing(buf, &entry->srcmeta, 47, 0, size, op); in sja1105et_avb_params_entry_packing() 109 struct sja1105_avb_params_entry *entry = entry_ptr; in sja1105pqrs_avb_params_entry_packing() local 111 sja1105_packing(buf, &entry->cas_master, 126, 126, size, op); in sja1105pqrs_avb_params_entry_packing() 112 sja1105_packing(buf, &entry->destmeta, 125, 78, size, op); in sja1105pqrs_avb_params_entry_packing() 113 sja1105_packing(buf, &entry->srcmeta, 77, 30, size, op); in sja1105pqrs_avb_params_entry_packing() 121 struct sja1105_general_params_entry *entry = entry_ptr; in sja1105et_general_params_entry_packing() local 123 sja1105_packing(buf, &entry->vllupformat, 319, 319, size, op); in sja1105et_general_params_entry_packing() 124 sja1105_packing(buf, &entry->mirr_ptacu, 318, 318, size, op); in sja1105et_general_params_entry_packing() [all …]
|
/linux-6.6.21/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() 90 if (cache->entry[i].refcount == 0) in squashfs_cache_get() 96 entry = &cache->entry[i]; 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() 106 entry->num_waiters = 0; in squashfs_cache_get() 107 entry->error = 0; in squashfs_cache_get() 110 entry->length = squashfs_read_data(sb, block, length, in squashfs_cache_get() [all …]
|
/linux-6.6.21/drivers/scsi/libfc/ |
D | fc_encode.h | 166 static inline void fc_ct_ms_fill_attr(struct fc_fdmi_attr_entry *entry, in fc_ct_ms_fill_attr() argument 171 copied = strscpy(entry->value, in, len); in fc_ct_ms_fill_attr() 173 memset(entry->value + copied + 1, 0, len - copied - 1); in fc_ct_ms_fill_attr() 192 struct fc_fdmi_attr_entry *entry; in fc_ct_ms_fill() local 241 entry = (struct fc_fdmi_attr_entry *)hba_attrs->attr; in fc_ct_ms_fill() 246 &entry->type); in fc_ct_ms_fill() 247 put_unaligned_be16(len, &entry->len); in fc_ct_ms_fill() 249 (__be64 *)&entry->value); in fc_ct_ms_fill() 252 entry = (struct fc_fdmi_attr_entry *)((char *)entry->value + in fc_ct_ms_fill() 257 &entry->type); in fc_ct_ms_fill() [all …]
|
/linux-6.6.21/fs/ |
D | mbcache.c | 77 struct mb_cache_entry *entry, *dup; in mb_cache_entry_create() local 88 entry = kmem_cache_alloc(mb_entry_cache, mask); in mb_cache_entry_create() 89 if (!entry) in mb_cache_entry_create() 92 INIT_LIST_HEAD(&entry->e_list); in mb_cache_entry_create() 100 atomic_set(&entry->e_refcnt, 2); in mb_cache_entry_create() 101 entry->e_key = key; in mb_cache_entry_create() 102 entry->e_value = value; in mb_cache_entry_create() 103 entry->e_flags = 0; in mb_cache_entry_create() 105 set_bit(MBE_REUSABLE_B, &entry->e_flags); in mb_cache_entry_create() 111 kmem_cache_free(mb_entry_cache, entry); in mb_cache_entry_create() [all …]
|
/linux-6.6.21/security/integrity/ima/ |
D | ima_policy.c | 378 static void ima_lsm_free_rule(struct ima_rule_entry *entry) in ima_lsm_free_rule() argument 383 ima_filter_rule_free(entry->lsm[i].rule); in ima_lsm_free_rule() 384 kfree(entry->lsm[i].args_p); in ima_lsm_free_rule() 388 static void ima_free_rule(struct ima_rule_entry *entry) in ima_free_rule() argument 390 if (!entry) in ima_free_rule() 398 kfree(entry->fsname); in ima_free_rule() 399 ima_free_rule_opt_list(entry->keyrings); in ima_free_rule() 400 ima_lsm_free_rule(entry); in ima_free_rule() 401 kfree(entry); in ima_free_rule() 404 static struct ima_rule_entry *ima_lsm_copy_rule(struct ima_rule_entry *entry) in ima_lsm_copy_rule() argument [all …]
|
D | ima_queue_keys.c | 58 static void ima_free_key_entry(struct ima_key_entry *entry) in ima_free_key_entry() argument 60 if (entry) { in ima_free_key_entry() 61 kfree(entry->payload); in ima_free_key_entry() 62 kfree(entry->keyring_name); in ima_free_key_entry() 63 kfree(entry); in ima_free_key_entry() 73 struct ima_key_entry *entry; in ima_alloc_key_entry() local 75 entry = kzalloc(sizeof(*entry), GFP_KERNEL); in ima_alloc_key_entry() 76 if (entry) { in ima_alloc_key_entry() 77 entry->payload = kmemdup(payload, payload_len, GFP_KERNEL); in ima_alloc_key_entry() 78 entry->keyring_name = kstrdup(keyring->description, in ima_alloc_key_entry() [all …]
|
/linux-6.6.21/arch/x86/kvm/ |
D | cpuid.c | 196 struct kvm_cpuid_entry2 *entry; in kvm_get_hypervisor_cpuid() local 200 entry = kvm_find_cpuid_entry(vcpu, base); in kvm_get_hypervisor_cpuid() 202 if (entry) { in kvm_get_hypervisor_cpuid() 205 signature[0] = entry->ebx; in kvm_get_hypervisor_cpuid() 206 signature[1] = entry->ecx; in kvm_get_hypervisor_cpuid() 207 signature[2] = entry->edx; in kvm_get_hypervisor_cpuid() 211 cpuid.limit = entry->eax; in kvm_get_hypervisor_cpuid() 317 struct kvm_cpuid_entry2 *entry; in kvm_cpuid_has_hyperv() local 319 entry = cpuid_entry2_find(entries, nent, HYPERV_CPUID_INTERFACE, in kvm_cpuid_has_hyperv() 321 return entry && entry->eax == HYPERV_CPUID_SIGNATURE_EAX; in kvm_cpuid_has_hyperv() [all …]
|
/linux-6.6.21/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_cmdbuf_res.c | 106 struct vmw_cmdbuf_res *entry) in vmw_cmdbuf_res_free() argument 108 list_del(&entry->head); in vmw_cmdbuf_res_free() 109 hash_del_rcu(&entry->hash.head); in vmw_cmdbuf_res_free() 110 vmw_resource_unreference(&entry->res); in vmw_cmdbuf_res_free() 111 kfree(entry); in vmw_cmdbuf_res_free() 126 struct vmw_cmdbuf_res *entry, *next; in vmw_cmdbuf_res_commit() local 128 list_for_each_entry_safe(entry, next, list, head) { in vmw_cmdbuf_res_commit() 129 list_del(&entry->head); in vmw_cmdbuf_res_commit() 130 if (entry->res->func->commit_notify) in vmw_cmdbuf_res_commit() 131 entry->res->func->commit_notify(entry->res, in vmw_cmdbuf_res_commit() [all …]
|
/linux-6.6.21/drivers/platform/x86/intel/pmt/ |
D | class.c | 69 struct intel_pmt_entry *entry = container_of(attr, in intel_pmt_read() local 76 if (off >= entry->size) in intel_pmt_read() 79 if (count > entry->size - off) in intel_pmt_read() 80 count = entry->size - off; in intel_pmt_read() 82 if (entry->guid == GUID_SPR_PUNIT) in intel_pmt_read() 84 count = pmt_memcpy64_fromio(buf, entry->base + off, count); in intel_pmt_read() 86 memcpy_fromio(buf, entry->base + off, count); in intel_pmt_read() 95 struct intel_pmt_entry *entry = container_of(attr, in intel_pmt_mmap() local 100 unsigned long phys = entry->base_addr; in intel_pmt_mmap() 107 psize = (PFN_UP(entry->base_addr + entry->size) - pfn) * PAGE_SIZE; in intel_pmt_mmap() [all …]
|
/linux-6.6.21/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() 65 memcpy(table, priv->smu_tables.entry[table_id].table, in vega10_copy_table_from_smc() 66 priv->smu_tables.entry[table_id].size); in vega10_copy_table_from_smc() 85 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega10_copy_table_to_smc() 87 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega10_copy_table_to_smc() 90 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() 73 memcpy(table, priv->smu_tables.entry[table_id].table, in vega12_copy_table_from_smc() 74 priv->smu_tables.entry[table_id].size); in vega12_copy_table_from_smc() 93 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega12_copy_table_to_smc() 95 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega12_copy_table_to_smc() 98 memcpy(priv->smu_tables.entry[table_id].table, table, in vega12_copy_table_to_smc() 99 priv->smu_tables.entry[table_id].size); in vega12_copy_table_to_smc() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/amdkfd/ |
D | soc15_int.h | 37 #define SOC15_CLIENT_ID_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[0]) & 0xff) argument 38 #define SOC15_SOURCE_ID_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[0]) >> 8 & 0xff) argument 39 #define SOC15_RING_ID_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[0]) >> 16 & 0xff) argument 40 #define SOC15_VMID_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[0]) >> 24 & 0xf) argument 41 #define SOC15_VMID_TYPE_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[0]) >> 31 & 0x1) argument 42 #define SOC15_PASID_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[3]) & 0xffff) argument 43 #define SOC15_NODEID_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[3]) >> 16 & 0xff) argument 44 #define SOC15_CONTEXT_ID0_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[4])) argument 45 #define SOC15_CONTEXT_ID1_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[5])) argument 46 #define SOC15_CONTEXT_ID2_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[6])) argument [all …]
|