Home
last modified time | relevance | path

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

12345678910>>...14

/linux-4.19.296/fs/
Dmbcache.c76 struct mb_cache_entry *entry, *dup; in mb_cache_entry_create() local
87 entry = kmem_cache_alloc(mb_entry_cache, mask); in mb_cache_entry_create()
88 if (!entry) in mb_cache_entry_create()
91 INIT_LIST_HEAD(&entry->e_list); in mb_cache_entry_create()
99 atomic_set(&entry->e_refcnt, 2); in mb_cache_entry_create()
100 entry->e_key = key; in mb_cache_entry_create()
101 entry->e_value = value; in mb_cache_entry_create()
102 entry->e_flags = 0; in mb_cache_entry_create()
104 set_bit(MBE_REUSABLE_B, &entry->e_flags); in mb_cache_entry_create()
110 kmem_cache_free(mb_entry_cache, entry); in mb_cache_entry_create()
[all …]
Ddax.c76 static unsigned long dax_radix_pfn(void *entry) in dax_radix_pfn() argument
78 return (unsigned long)entry >> RADIX_DAX_SHIFT; in dax_radix_pfn()
87 static unsigned int dax_radix_order(void *entry) in dax_radix_order() argument
89 if ((unsigned long)entry & RADIX_DAX_PMD) in dax_radix_order()
94 static int dax_is_pmd_entry(void *entry) in dax_is_pmd_entry() argument
96 return (unsigned long)entry & RADIX_DAX_PMD; in dax_is_pmd_entry()
99 static int dax_is_pte_entry(void *entry) in dax_is_pte_entry() argument
101 return !((unsigned long)entry & RADIX_DAX_PMD); in dax_is_pte_entry()
104 static int dax_is_zero_entry(void *entry) in dax_is_zero_entry() argument
106 return (unsigned long)entry & RADIX_DAX_ZERO_PAGE; in dax_is_zero_entry()
[all …]
/linux-4.19.296/fs/squashfs/
Dcache.c69 struct squashfs_cache_entry *entry; in squashfs_cache_get() local
75 if (cache->entry[i].block == block) { in squashfs_cache_get()
103 if (cache->entry[i].refcount == 0) in squashfs_cache_get()
109 entry = &cache->entry[i]; in squashfs_cache_get()
116 entry->block = block; in squashfs_cache_get()
117 entry->refcount = 1; in squashfs_cache_get()
118 entry->pending = 1; in squashfs_cache_get()
119 entry->num_waiters = 0; in squashfs_cache_get()
120 entry->error = 0; in squashfs_cache_get()
123 entry->length = squashfs_read_data(sb, block, length, in squashfs_cache_get()
[all …]
/linux-4.19.296/include/linux/
Dswapops.h41 static inline unsigned swp_type(swp_entry_t entry) in swp_type() argument
43 return (entry.val >> SWP_TYPE_SHIFT(entry)); 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(entry); in swp_offset()
81 static inline pte_t swp_entry_to_pte(swp_entry_t entry) in swp_entry_to_pte() argument
85 arch_entry = __swp_entry(swp_type(entry), swp_offset(entry)); in swp_entry_to_pte()
91 swp_entry_t entry; in radix_to_swp_entry() local
93 entry.val = (unsigned long)arg >> RADIX_TREE_EXCEPTIONAL_SHIFT; in radix_to_swp_entry()
94 return entry; in radix_to_swp_entry()
97 static inline void *swp_to_radix_entry(swp_entry_t entry) in swp_to_radix_entry() argument
[all …]
Dresource_ext.h42 static inline void resource_list_add(struct resource_entry *entry, in resource_list_add() argument
45 list_add(&entry->node, head); in resource_list_add()
48 static inline void resource_list_add_tail(struct resource_entry *entry, in resource_list_add_tail() argument
51 list_add_tail(&entry->node, head); in resource_list_add_tail()
54 static inline void resource_list_del(struct resource_entry *entry) in resource_list_del() argument
56 list_del(&entry->node); in resource_list_del()
59 static inline void resource_list_free_entry(struct resource_entry *entry) in resource_list_free_entry() argument
61 kfree(entry); in resource_list_free_entry()
65 resource_list_destroy_entry(struct resource_entry *entry) in resource_list_destroy_entry() argument
67 resource_list_del(entry); in resource_list_destroy_entry()
[all …]
/linux-4.19.296/fs/btrfs/
Dordered-data.c18 static u64 entry_end(struct btrfs_ordered_extent *entry) in entry_end() argument
20 if (entry->file_offset + entry->len < entry->file_offset) in entry_end()
22 return entry->file_offset + entry->len; in entry_end()
33 struct btrfs_ordered_extent *entry; in tree_insert() local
37 entry = rb_entry(parent, struct btrfs_ordered_extent, rb_node); in tree_insert()
39 if (file_offset < entry->file_offset) in tree_insert()
41 else if (file_offset >= entry_end(entry)) in tree_insert()
70 struct btrfs_ordered_extent *entry; in __tree_search() local
74 entry = rb_entry(n, struct btrfs_ordered_extent, rb_node); in __tree_search()
76 prev_entry = entry; in __tree_search()
[all …]
Dfree-space-cache.c518 struct btrfs_free_space_entry *entry; in io_ctl_add_entry() local
523 entry = io_ctl->cur; in io_ctl_add_entry()
524 entry->offset = cpu_to_le64(offset); in io_ctl_add_entry()
525 entry->bytes = cpu_to_le64(bytes); in io_ctl_add_entry()
526 entry->type = (bitmap) ? BTRFS_FREE_SPACE_BITMAP : in io_ctl_add_entry()
586 struct btrfs_free_space *entry, u8 *type) in io_ctl_read_entry() argument
598 entry->offset = le64_to_cpu(e->offset); in io_ctl_read_entry()
599 entry->bytes = le64_to_cpu(e->bytes); in io_ctl_read_entry()
613 struct btrfs_free_space *entry) in io_ctl_read_bitmap() argument
621 copy_page(entry->bitmap, io_ctl->cur); in io_ctl_read_bitmap()
[all …]
/linux-4.19.296/drivers/isdn/mISDN/
Ddsp_pipeline.c82 struct dsp_element_entry *entry = in mISDN_dsp_dev_release() local
84 list_del(&entry->list); in mISDN_dsp_dev_release()
85 kfree(entry); in mISDN_dsp_dev_release()
90 struct dsp_element_entry *entry; in mISDN_dsp_element_register() local
96 entry = kzalloc(sizeof(struct dsp_element_entry), GFP_ATOMIC); in mISDN_dsp_element_register()
97 if (!entry) in mISDN_dsp_element_register()
100 INIT_LIST_HEAD(&entry->list); in mISDN_dsp_element_register()
101 entry->elem = elem; in mISDN_dsp_element_register()
103 entry->dev.class = elements_class; in mISDN_dsp_element_register()
104 entry->dev.release = mISDN_dsp_dev_release; in mISDN_dsp_element_register()
[all …]
/linux-4.19.296/drivers/sh/intc/
Dvirq.c27 #define for_each_virq(entry, head) \ argument
28 for (entry = head; entry; entry = entry->next)
86 struct intc_virq_list *entry; in add_virq_to_pirq() local
90 for_each_virq(entry, irq_get_handler_data(irq)) { in add_virq_to_pirq()
91 if (entry->irq == virq) in add_virq_to_pirq()
93 last = &entry->next; in add_virq_to_pirq()
96 entry = kzalloc(sizeof(struct intc_virq_list), GFP_ATOMIC); in add_virq_to_pirq()
97 if (!entry) in add_virq_to_pirq()
100 entry->irq = virq; in add_virq_to_pirq()
103 *last = entry; in add_virq_to_pirq()
[all …]
/linux-4.19.296/drivers/misc/vmw_vmci/
Dvmci_queue_pair.c818 struct qp_entry *entry; in qp_list_find() local
823 list_for_each_entry(entry, &qp_list->head, list_item) { in qp_list_find()
824 if (vmci_handle_is_equal(entry->handle, handle)) in qp_list_find()
825 return entry; in qp_list_find()
837 struct qp_guest_endpoint *entry; in qp_guest_handle_to_entry() local
840 entry = qp ? container_of( in qp_guest_handle_to_entry()
842 return entry; in qp_guest_handle_to_entry()
851 struct qp_broker_entry *entry; in qp_broker_handle_to_entry() local
854 entry = qp ? container_of( in qp_broker_handle_to_entry()
856 return entry; in qp_broker_handle_to_entry()
[all …]
Dvmci_doorbell.c99 struct dbell_entry *entry; in vmci_dbell_get_priv_flags() local
107 entry = container_of(resource, struct dbell_entry, resource); in vmci_dbell_get_priv_flags()
108 *priv_flags = entry->priv_flags; in vmci_dbell_get_priv_flags()
145 static void dbell_index_table_add(struct dbell_entry *entry) in dbell_index_table_add() argument
150 vmci_resource_get(&entry->resource); in dbell_index_table_add()
194 entry->idx = new_notify_idx; in dbell_index_table_add()
195 bucket = VMCI_DOORBELL_HASH(entry->idx); in dbell_index_table_add()
196 hlist_add_head(&entry->node, &vmci_doorbell_it.entries[bucket]); in dbell_index_table_add()
205 static void dbell_index_table_remove(struct dbell_entry *entry) in dbell_index_table_remove() argument
209 hlist_del_init(&entry->node); in dbell_index_table_remove()
[all …]
/linux-4.19.296/drivers/hid/
Dhid-lg4ff.c310 struct lg4ff_device_entry *entry = drv_data->device_props; in lg4ff_adjust_input_event() local
313 if (!entry) { in lg4ff_adjust_input_event()
318 switch (entry->wdata.product_id) { in lg4ff_adjust_input_event()
322 new_value = lg4ff_adjust_dfp_x_axis(value, entry->wdata.range); in lg4ff_adjust_input_event()
337 struct lg4ff_device_entry *entry = drv_data->device_props; in lg4ff_raw_event() local
339 if (!entry) in lg4ff_raw_event()
343 if (entry->wdata.combine) { in lg4ff_raw_event()
344 switch (entry->wdata.product_id) { in lg4ff_raw_event()
415 struct lg4ff_device_entry *entry; in lg4ff_play() local
427 entry = drv_data->device_props; in lg4ff_play()
[all …]
/linux-4.19.296/drivers/oprofile/
Dcpu_buffer.c144 *op_cpu_buffer_write_reserve(struct op_entry *entry, unsigned long size) in op_cpu_buffer_write_reserve() argument
146 entry->event = ring_buffer_lock_reserve in op_cpu_buffer_write_reserve()
148 size * sizeof(entry->sample->data[0])); in op_cpu_buffer_write_reserve()
149 if (!entry->event) in op_cpu_buffer_write_reserve()
151 entry->sample = ring_buffer_event_data(entry->event); in op_cpu_buffer_write_reserve()
152 entry->size = size; in op_cpu_buffer_write_reserve()
153 entry->data = entry->sample->data; in op_cpu_buffer_write_reserve()
155 return entry->sample; in op_cpu_buffer_write_reserve()
158 int op_cpu_buffer_write_commit(struct op_entry *entry) in op_cpu_buffer_write_commit() argument
160 return ring_buffer_unlock_commit(op_ring_buffer, entry->event); in op_cpu_buffer_write_commit()
[all …]
Dcpu_buffer.h78 *op_cpu_buffer_write_reserve(struct op_entry *entry, unsigned long size);
79 int op_cpu_buffer_write_commit(struct op_entry *entry);
80 struct op_sample *op_cpu_buffer_read_entry(struct op_entry *entry, int cpu);
85 int op_cpu_buffer_add_data(struct op_entry *entry, unsigned long val) in op_cpu_buffer_add_data() argument
87 if (!entry->size) in op_cpu_buffer_add_data()
89 *entry->data = val; in op_cpu_buffer_add_data()
90 entry->size--; in op_cpu_buffer_add_data()
91 entry->data++; in op_cpu_buffer_add_data()
92 return entry->size; in op_cpu_buffer_add_data()
97 int op_cpu_buffer_get_size(struct op_entry *entry) in op_cpu_buffer_get_size() argument
[all …]
/linux-4.19.296/drivers/parisc/
Dpdc_stable.c111 ssize_t (*show)(struct pdcspath_entry *entry, char *buf);
112 ssize_t (*store)(struct pdcspath_entry *entry, const char *buf, size_t count);
152 pdcspath_fetch(struct pdcspath_entry *entry) in pdcspath_fetch() argument
156 if (!entry) in pdcspath_fetch()
159 devpath = &entry->devpath; in pdcspath_fetch()
162 entry, devpath, entry->addr); in pdcspath_fetch()
165 if (pdc_stable_read(entry->addr, devpath, sizeof(*devpath)) != PDC_OK) in pdcspath_fetch()
171 entry->dev = hwpath_to_device((struct hardware_path *)devpath); in pdcspath_fetch()
173 entry->ready = 1; in pdcspath_fetch()
175 DPRINTK("%s: device: 0x%p\n", __func__, entry->dev); in pdcspath_fetch()
[all …]
/linux-4.19.296/drivers/pci/
Dmsi.c93 struct msi_desc *entry; in arch_setup_msi_irqs() local
105 for_each_pci_msi_entry(entry, dev) { in arch_setup_msi_irqs()
106 ret = arch_setup_msi_irq(dev, entry); in arch_setup_msi_irqs()
123 struct msi_desc *entry; in default_teardown_msi_irqs() local
125 for_each_pci_msi_entry(entry, dev) in default_teardown_msi_irqs()
126 if (entry->irq) in default_teardown_msi_irqs()
127 for (i = 0; i < entry->nvec_used; i++) in default_teardown_msi_irqs()
128 arch_teardown_msi_irq(entry->irq + i); in default_teardown_msi_irqs()
138 struct msi_desc *entry; in default_restore_msi_irq() local
140 entry = NULL; in default_restore_msi_irq()
[all …]
/linux-4.19.296/include/scsi/
Dfc_encode.h222 struct fc_fdmi_attr_entry *entry; in fc_ct_ms_fill() local
257 entry = (struct fc_fdmi_attr_entry *)hba_attrs->attr; in fc_ct_ms_fill()
262 &entry->type); in fc_ct_ms_fill()
263 put_unaligned_be16(len, &entry->len); in fc_ct_ms_fill()
265 (__be64 *)&entry->value[0]); in fc_ct_ms_fill()
268 entry = (struct fc_fdmi_attr_entry *)((char *)entry->value + in fc_ct_ms_fill()
273 &entry->type); in fc_ct_ms_fill()
274 put_unaligned_be16(len, &entry->len); in fc_ct_ms_fill()
275 strncpy((char *)&entry->value, in fc_ct_ms_fill()
280 entry = (struct fc_fdmi_attr_entry *)((char *)entry->value + in fc_ct_ms_fill()
[all …]
/linux-4.19.296/drivers/ntb/
Dntb_transport.c103 struct list_head entry; member
122 unsigned int entry; member
202 struct list_head entry; member
208 struct list_head entry; member
261 struct ntb_queue_entry *entry);
262 static void ntb_memcpy_tx(struct ntb_queue_entry *entry, void __iomem *offset);
263 static int ntb_async_rx_submit(struct ntb_queue_entry *entry, void *offset);
264 static void ntb_memcpy_rx(struct ntb_queue_entry *entry, void *offset);
311 list_add_tail(&nt->entry, &ntb_transport_list); in ntb_bus_init()
319 list_for_each_entry_safe(client_dev, cd, &nt->client_devs, entry) { in ntb_bus_remove()
[all …]
/linux-4.19.296/fs/nilfs2/
Ddat.c78 struct nilfs_dat_entry *entry; in nilfs_dat_commit_alloc() local
82 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, in nilfs_dat_commit_alloc()
84 entry->de_start = cpu_to_le64(NILFS_CNO_MIN); in nilfs_dat_commit_alloc()
85 entry->de_end = cpu_to_le64(NILFS_CNO_MAX); in nilfs_dat_commit_alloc()
86 entry->de_blocknr = cpu_to_le64(0); in nilfs_dat_commit_alloc()
102 struct nilfs_dat_entry *entry; in nilfs_dat_commit_free() local
106 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, in nilfs_dat_commit_free()
108 entry->de_start = cpu_to_le64(NILFS_CNO_MIN); in nilfs_dat_commit_free()
109 entry->de_end = cpu_to_le64(NILFS_CNO_MIN); in nilfs_dat_commit_free()
110 entry->de_blocknr = cpu_to_le64(0); in nilfs_dat_commit_free()
[all …]
/linux-4.19.296/include/sound/
Dinfo.h45 void (*read)(struct snd_info_entry *entry,
47 void (*write)(struct snd_info_entry *entry,
52 int (*open)(struct snd_info_entry *entry,
54 int (*release)(struct snd_info_entry *entry,
56 ssize_t (*read)(struct snd_info_entry *entry, void *file_private_data,
59 ssize_t (*write)(struct snd_info_entry *entry, void *file_private_data,
62 loff_t (*llseek)(struct snd_info_entry *entry,
65 __poll_t (*poll)(struct snd_info_entry *entry,
68 int (*ioctl)(struct snd_info_entry *entry, void *file_private_data,
70 int (*mmap)(struct snd_info_entry *entry, void *file_private_data,
[all …]
/linux-4.19.296/lib/
Dlist_debug.c42 bool __list_del_entry_valid(struct list_head *entry) in __list_del_entry_valid() argument
46 prev = entry->prev; in __list_del_entry_valid()
47 next = entry->next; in __list_del_entry_valid()
50 "list_del corruption, %px->next is NULL\n", entry) || in __list_del_entry_valid()
52 "list_del corruption, %px->prev is NULL\n", entry) || in __list_del_entry_valid()
55 entry, LIST_POISON1) || in __list_del_entry_valid()
58 entry, LIST_POISON2) || in __list_del_entry_valid()
59 CHECK_DATA_CORRUPTION(prev->next != entry, in __list_del_entry_valid()
61 entry, prev->next) || in __list_del_entry_valid()
62 CHECK_DATA_CORRUPTION(next->prev != entry, in __list_del_entry_valid()
[all …]
/linux-4.19.296/fs/ocfs2/
Dfilecheck.c110 struct ocfs2_filecheck_sysfs_entry *entry = container_of(kobj, in ocfs2_filecheck_release() local
113 complete(&entry->fs_kobj_unregister); in ocfs2_filecheck_release()
157 ocfs2_filecheck_sysfs_free(struct ocfs2_filecheck_sysfs_entry *entry) in ocfs2_filecheck_sysfs_free() argument
161 spin_lock(&entry->fs_fcheck->fc_lock); in ocfs2_filecheck_sysfs_free()
162 while (!list_empty(&entry->fs_fcheck->fc_head)) { in ocfs2_filecheck_sysfs_free()
163 p = list_first_entry(&entry->fs_fcheck->fc_head, in ocfs2_filecheck_sysfs_free()
169 spin_unlock(&entry->fs_fcheck->fc_lock); in ocfs2_filecheck_sysfs_free()
171 kfree(entry->fs_fcheck); in ocfs2_filecheck_sysfs_free()
172 entry->fs_fcheck = NULL; in ocfs2_filecheck_sysfs_free()
179 struct ocfs2_filecheck_sysfs_entry *entry = &osb->osb_fc_ent; in ocfs2_filecheck_create_sysfs() local
[all …]
/linux-4.19.296/fs/ext4/
Dblock_validity.c57 struct ext4_system_zone *entry, *n; in release_system_zone() local
59 rbtree_postorder_for_each_entry_safe(entry, n, in release_system_zone()
61 kmem_cache_free(ext4_system_zone_cachep, entry); in release_system_zone()
73 struct ext4_system_zone *new_entry, *entry; in add_system_zone() local
79 entry = rb_entry(parent, struct ext4_system_zone, node); in add_system_zone()
80 if (start_blk < entry->start_blk) in add_system_zone()
82 else if (start_blk >= (entry->start_blk + entry->count)) in add_system_zone()
103 entry = rb_entry(node, struct ext4_system_zone, node); in add_system_zone()
104 if (can_merge(entry, new_entry)) { in add_system_zone()
105 new_entry->start_blk = entry->start_blk; in add_system_zone()
[all …]
/linux-4.19.296/fs/f2fs/
Dxattr.h63 #define ENTRY_SIZE(entry) (XATTR_ALIGN(sizeof(struct f2fs_xattr_entry) + \ argument
64 (entry)->e_name_len + le16_to_cpu((entry)->e_value_size)))
66 #define XATTR_NEXT_ENTRY(entry) ((struct f2fs_xattr_entry *)((char *)(entry) +\ argument
67 ENTRY_SIZE(entry)))
69 #define IS_XATTR_LAST_ENTRY(entry) (*(__u32 *)(entry) == 0) argument
71 #define list_for_each_xattr(entry, addr) \ argument
72 for (entry = XATTR_FIRST_ENTRY(addr);\
73 !IS_XATTR_LAST_ENTRY(entry);\
74 entry = XATTR_NEXT_ENTRY(entry))
/linux-4.19.296/fs/proc/
Dproc_sysctl.c109 struct ctl_table *entry; in find_entry() local
120 entry = &head->ctl_table[ctl_node - head->node]; in find_entry()
121 procname = entry->procname; in find_entry()
130 return entry; in find_entry()
136 static int insert_entry(struct ctl_table_header *head, struct ctl_table *entry) in insert_entry() argument
138 struct rb_node *node = &head->node[entry - head->ctl_table].node; in insert_entry()
141 const char *name = entry->procname; in insert_entry()
165 pr_cont("/%s\n", entry->procname); in insert_entry()
175 static void erase_entry(struct ctl_table_header *head, struct ctl_table *entry) in erase_entry() argument
177 struct rb_node *node = &head->node[entry - head->ctl_table].node; in erase_entry()
[all …]

12345678910>>...14