Home
last modified time | relevance | path

Searched refs:entry (Results 1 – 25 of 2829) sorted by relevance

12345678910>>...114

/Linux-v5.4/net/atm/
Dmpoa_caches.c38 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 …]
Dlec.c106 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()
285 dev->name, vcc, vcc ? vcc->flags : 0, entry); in lec_start_xmit()
287 if (entry && (entry->tx_wait.qlen < LEC_UNRES_QUE_LEN)) { in lec_start_xmit()
[all …]
/Linux-v5.4/arch/s390/include/asm/
Dpci_dma.h100 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.4/drivers/acpi/
Dnvs.c95 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 …]
Dpci_irq.c112 static void do_prt_fixups(struct acpi_prt_entry *entry, in do_prt_fixups() argument
123 entry->id.segment == quirk->segment && in do_prt_fixups()
124 entry->id.bus == quirk->bus && in do_prt_fixups()
125 entry->id.device == quirk->device && in do_prt_fixups()
126 entry->pin == quirk->pin && in do_prt_fixups()
132 entry->id.segment, entry->id.bus, in do_prt_fixups()
133 entry->id.device, pin_name(entry->pin), in do_prt_fixups()
147 struct acpi_prt_entry *entry; in acpi_pci_irq_check_entry() local
153 entry = kzalloc(sizeof(struct acpi_prt_entry), GFP_KERNEL); in acpi_pci_irq_check_entry()
154 if (!entry) in acpi_pci_irq_check_entry()
[all …]
/Linux-v5.4/sound/core/
Dinfo.c55 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.4/drivers/firmware/
Dmemmap.c43 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);
99 struct firmware_map_entry *entry = to_memmap_entry(kobj); in release_firmware_map_entry() local
101 if (PageReserved(virt_to_page(entry))) { in release_firmware_map_entry()
109 list_add(&entry->list, &map_entries_bootmem); in release_firmware_map_entry()
115 kfree(entry); in release_firmware_map_entry()
143 struct firmware_map_entry *entry) in firmware_map_add_entry() argument
147 entry->start = start; in firmware_map_add_entry()
[all …]
/Linux-v5.4/drivers/gpu/drm/
Ddrm_scatter.c55 static void drm_sg_cleanup(struct drm_sg_mem * entry) in drm_sg_cleanup() argument
60 for (i = 0; i < entry->pages; i++) { in drm_sg_cleanup()
61 page = entry->pagelist[i]; in drm_sg_cleanup()
66 vfree(entry->virtual); in drm_sg_cleanup()
68 kfree(entry->busaddr); in drm_sg_cleanup()
69 kfree(entry->pagelist); in drm_sg_cleanup()
70 kfree(entry); in drm_sg_cleanup()
91 struct drm_sg_mem *entry; in drm_legacy_sg_alloc() local
105 entry = kzalloc(sizeof(*entry), GFP_KERNEL); in drm_legacy_sg_alloc()
106 if (!entry) in drm_legacy_sg_alloc()
[all …]
/Linux-v5.4/drivers/staging/media/tegra-vde/
Ddmabuf-cache.c29 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.4/tools/perf/util/
Dblock-range.c23 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.4/kernel/dma/
Ddebug.c160 static inline void dump_entry_trace(struct dma_debug_entry *entry) in dump_entry_trace() argument
163 if (entry) { in dump_entry_trace()
165 stack_trace_print(entry->stack_entries, entry->stack_len, 0); in dump_entry_trace()
211 #define err_printk(dev, entry, format, arg...) do { \ argument
218 dump_entry_trace(entry); \
230 static int hash_fn(struct dma_debug_entry *entry) in hash_fn() argument
236 return (entry->dev_addr >> HASH_FN_SHIFT) & HASH_FN_MASK; in hash_fn()
242 static struct hash_bucket *get_hash_bucket(struct dma_debug_entry *entry, in get_hash_bucket() argument
246 int idx = hash_fn(entry); in get_hash_bucket()
292 struct dma_debug_entry *entry, *ret = NULL; in __hash_bucket_find() local
[all …]
/Linux-v5.4/fs/
Dmbcache.c77 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()
94 atomic_set(&entry->e_refcnt, 1); in mb_cache_entry_create()
95 entry->e_key = key; in mb_cache_entry_create()
96 entry->e_value = value; in mb_cache_entry_create()
97 entry->e_reusable = reusable; in mb_cache_entry_create()
98 entry->e_referenced = 0; in mb_cache_entry_create()
104 kmem_cache_free(mb_entry_cache, entry); in mb_cache_entry_create()
[all …]
/Linux-v5.4/fs/squashfs/
Dcache.c56 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-v5.4/drivers/gpu/drm/amd/powerplay/smumgr/
Dvega10_smumgr.c46 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()
55 lower_32_bits(priv->smu_tables.entry[table_id].mc_addr)); in vega10_copy_table_from_smc()
58 priv->smu_tables.entry[table_id].table_id); in vega10_copy_table_from_smc()
63 memcpy(table, priv->smu_tables.entry[table_id].table, in vega10_copy_table_from_smc()
64 priv->smu_tables.entry[table_id].size); in vega10_copy_table_from_smc()
76 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega10_copy_table_to_smc()
78 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega10_copy_table_to_smc()
81 memcpy(priv->smu_tables.entry[table_id].table, table, in vega10_copy_table_to_smc()
[all …]
Dvega12_smumgr.c49 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)) == 0, in vega12_copy_table_from_smc()
59 lower_32_bits(priv->smu_tables.entry[table_id].mc_addr)) == 0, in vega12_copy_table_from_smc()
71 memcpy(table, priv->smu_tables.entry[table_id].table, in vega12_copy_table_from_smc()
72 priv->smu_tables.entry[table_id].size); in vega12_copy_table_from_smc()
90 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega12_copy_table_to_smc()
92 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega12_copy_table_to_smc()
95 memcpy(priv->smu_tables.entry[table_id].table, table, in vega12_copy_table_to_smc()
96 priv->smu_tables.entry[table_id].size); in vega12_copy_table_to_smc()
[all …]
/Linux-v5.4/security/integrity/ima/
Dima_policy.c252 static void ima_lsm_free_rule(struct ima_rule_entry *entry) in ima_lsm_free_rule() argument
257 kfree(entry->lsm[i].rule); in ima_lsm_free_rule()
258 kfree(entry->lsm[i].args_p); in ima_lsm_free_rule()
260 kfree(entry); in ima_lsm_free_rule()
263 static struct ima_rule_entry *ima_lsm_copy_rule(struct ima_rule_entry *entry) in ima_lsm_copy_rule() argument
276 memcpy(nentry, entry, sizeof(*nentry)); in ima_lsm_copy_rule()
280 if (!entry->lsm[i].rule) in ima_lsm_copy_rule()
283 nentry->lsm[i].type = entry->lsm[i].type; in ima_lsm_copy_rule()
284 nentry->lsm[i].args_p = kstrdup(entry->lsm[i].args_p, in ima_lsm_copy_rule()
295 entry->lsm[i].type); in ima_lsm_copy_rule()
[all …]
/Linux-v5.4/include/linux/
Dswapops.h41 static inline unsigned swp_type(swp_entry_t entry) in swp_type() argument
43 return (entry.val >> SWP_TYPE_SHIFT); in swp_type()
50 static inline pgoff_t swp_offset(swp_entry_t entry) in swp_offset() argument
52 return entry.val & SWP_OFFSET_MASK; in swp_offset()
79 static inline pte_t swp_entry_to_pte(swp_entry_t entry) in swp_entry_to_pte() argument
83 arch_entry = __swp_entry(swp_type(entry), swp_offset(entry)); in swp_entry_to_pte()
89 swp_entry_t entry; in radix_to_swp_entry() local
91 entry.val = xa_to_value(arg); in radix_to_swp_entry()
92 return entry; in radix_to_swp_entry()
95 static inline void *swp_to_radix_entry(swp_entry_t entry) in swp_to_radix_entry() argument
[all …]
/Linux-v5.4/drivers/net/dsa/mv88e6xxx/
Dglobal1_vtu.c20 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.4/arch/sparc/include/asm/
Dspitfire.h119 static inline unsigned long spitfire_get_dtlb_data(int entry) in spitfire_get_dtlb_data() argument
125 : "r" (entry << 3), "i" (ASI_DTLB_DATA_ACCESS)); in spitfire_get_dtlb_data()
133 static inline unsigned long spitfire_get_dtlb_tag(int entry) in spitfire_get_dtlb_tag() argument
139 : "r" (entry << 3), "i" (ASI_DTLB_TAG_READ)); in spitfire_get_dtlb_tag()
143 static inline void spitfire_put_dtlb_data(int entry, unsigned long data) in spitfire_put_dtlb_data() argument
148 : "r" (data), "r" (entry << 3), in spitfire_put_dtlb_data()
152 static inline unsigned long spitfire_get_itlb_data(int entry) in spitfire_get_itlb_data() argument
158 : "r" (entry << 3), "i" (ASI_ITLB_DATA_ACCESS)); in spitfire_get_itlb_data()
166 static inline unsigned long spitfire_get_itlb_tag(int entry) in spitfire_get_itlb_tag() argument
172 : "r" (entry << 3), "i" (ASI_ITLB_TAG_READ)); in spitfire_get_itlb_tag()
[all …]
/Linux-v5.4/drivers/gpu/drm/vmwgfx/
Dvmwgfx_cmdbuf_res.c105 struct vmw_cmdbuf_res *entry) in vmw_cmdbuf_res_free() argument
107 list_del(&entry->head); in vmw_cmdbuf_res_free()
108 WARN_ON(drm_ht_remove_item(&man->resources, &entry->hash)); in vmw_cmdbuf_res_free()
109 vmw_resource_unreference(&entry->res); in vmw_cmdbuf_res_free()
110 kfree(entry); in vmw_cmdbuf_res_free()
125 struct vmw_cmdbuf_res *entry, *next; in vmw_cmdbuf_res_commit() local
127 list_for_each_entry_safe(entry, next, list, head) { in vmw_cmdbuf_res_commit()
128 list_del(&entry->head); in vmw_cmdbuf_res_commit()
129 if (entry->res->func->commit_notify) in vmw_cmdbuf_res_commit()
130 entry->res->func->commit_notify(entry->res, in vmw_cmdbuf_res_commit()
[all …]
/Linux-v5.4/arch/x86/kvm/
Dcpuid.c166 struct kvm_cpuid_entry2 *e, *entry; in cpuid_fix_nx_cap() local
168 entry = NULL; in cpuid_fix_nx_cap()
172 entry = e; in cpuid_fix_nx_cap()
176 if (entry && (entry->edx & F(NX)) && !is_efer_nx()) { in cpuid_fix_nx_cap()
177 entry->edx &= ~F(NX); in cpuid_fix_nx_cap()
289 static void do_host_cpuid(struct kvm_cpuid_entry2 *entry, u32 function, in do_host_cpuid() argument
292 entry->function = function; in do_host_cpuid()
293 entry->index = index; in do_host_cpuid()
294 entry->flags = 0; in do_host_cpuid()
296 cpuid_count(entry->function, entry->index, in do_host_cpuid()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/amdkfd/
Dsoc15_int.h35 #define SOC15_CLIENT_ID_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[0]) & 0xff) argument
36 #define SOC15_SOURCE_ID_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[0]) >> 8 & 0xff) argument
37 #define SOC15_RING_ID_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[0]) >> 16 & 0xff) argument
38 #define SOC15_VMID_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[0]) >> 24 & 0xf) argument
39 #define SOC15_VMID_TYPE_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[0]) >> 31 & 0x1) argument
40 #define SOC15_PASID_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[3]) & 0xffff) argument
41 #define SOC15_CONTEXT_ID0_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[4])) argument
42 #define SOC15_CONTEXT_ID1_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[5])) argument
43 #define SOC15_CONTEXT_ID2_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[6])) argument
44 #define SOC15_CONTEXT_ID3_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[7])) argument
/Linux-v5.4/fs/btrfs/
Dordered-data.c21 static u64 entry_end(struct btrfs_ordered_extent *entry) in entry_end() argument
23 if (entry->file_offset + entry->len < entry->file_offset) in entry_end()
25 return entry->file_offset + entry->len; in entry_end()
36 struct btrfs_ordered_extent *entry; in tree_insert() local
40 entry = rb_entry(parent, struct btrfs_ordered_extent, rb_node); in tree_insert()
42 if (file_offset < entry->file_offset) in tree_insert()
44 else if (file_offset >= entry_end(entry)) in tree_insert()
73 struct btrfs_ordered_extent *entry; in __tree_search() local
77 entry = rb_entry(n, struct btrfs_ordered_extent, rb_node); in __tree_search()
79 prev_entry = entry; in __tree_search()
[all …]
/Linux-v5.4/drivers/net/dsa/sja1105/
Dsja1105_static_config.c98 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->destmeta, 125, 78, size, op); in sja1105pqrs_avb_params_entry_packing()
112 sja1105_packing(buf, &entry->srcmeta, 77, 30, size, op); in sja1105pqrs_avb_params_entry_packing()
120 struct sja1105_general_params_entry *entry = entry_ptr; in sja1105et_general_params_entry_packing() local
122 sja1105_packing(buf, &entry->vllupformat, 319, 319, size, op); in sja1105et_general_params_entry_packing()
123 sja1105_packing(buf, &entry->mirr_ptacu, 318, 318, size, op); in sja1105et_general_params_entry_packing()
124 sja1105_packing(buf, &entry->switchid, 317, 315, size, op); in sja1105et_general_params_entry_packing()
[all …]
/Linux-v5.4/net/netlabel/
Dnetlabel_domainhash.c64 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()
173 struct netlbl_dom_map *entry; in netlbl_domhsh_search_def() local
175 entry = netlbl_domhsh_search(domain, family); in netlbl_domhsh_search_def()
176 if (entry != NULL) in netlbl_domhsh_search_def()
177 return entry; in netlbl_domhsh_search_def()
179 entry = netlbl_domhsh_rcu_deref(netlbl_domhsh_def_ipv4); in netlbl_domhsh_search_def()
180 if (entry != NULL && entry->valid) in netlbl_domhsh_search_def()
181 return entry; in netlbl_domhsh_search_def()
184 entry = netlbl_domhsh_rcu_deref(netlbl_domhsh_def_ipv6); in netlbl_domhsh_search_def()
[all …]

12345678910>>...114