Home
last modified time | relevance | path

Searched refs:ei (Results 1 – 25 of 133) sorted by relevance

123456

/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-htc-egpio.c53 static inline void egpio_writew(u16 value, struct egpio_info *ei, int reg) in egpio_writew() argument
55 writew(value, ei->base_addr + (reg << ei->bus_shift)); in egpio_writew()
58 static inline u16 egpio_readw(struct egpio_info *ei, int reg) in egpio_readw() argument
60 return readw(ei->base_addr + (reg << ei->bus_shift)); in egpio_readw()
67 static inline void ack_irqs(struct egpio_info *ei) in ack_irqs() argument
69 egpio_writew(ei->ack_write, ei, ei->ack_register); in ack_irqs()
71 ei->ack_write, ei->ack_register << ei->bus_shift); in ack_irqs()
83 struct egpio_info *ei = irq_data_get_irq_chip_data(data); in egpio_mask() local
84 ei->irqs_enabled &= ~(1 << (data->irq - ei->irq_start)); in egpio_mask()
85 pr_debug("EGPIO mask %d %04x\n", data->irq, ei->irqs_enabled); in egpio_mask()
[all …]
/kernel/linux/linux-5.10/fs/exfat/
Dcache.c77 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_cache_update_lru() local
79 if (ei->cache_lru.next != &cache->cache_list) in exfat_cache_update_lru()
80 list_move(&cache->cache_list, &ei->cache_lru); in exfat_cache_update_lru()
87 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_cache_lookup() local
92 spin_lock(&ei->cache_lru_lock); in exfat_cache_lookup()
93 list_for_each_entry(p, &ei->cache_lru, cache_list) { in exfat_cache_lookup()
108 cid->id = ei->cache_valid_id; in exfat_cache_lookup()
115 spin_unlock(&ei->cache_lru_lock); in exfat_cache_lookup()
123 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_cache_merge() local
126 list_for_each_entry(p, &ei->cache_lru, cache_list) { in exfat_cache_merge()
[all …]
Dinode.c27 struct exfat_inode_info *ei = EXFAT_I(inode); in __exfat_write_inode() local
28 bool is_dir = (ei->type == TYPE_DIR) ? true : false; in __exfat_write_inode()
36 if (ei->dir.dir == DIR_DELETED) in __exfat_write_inode()
39 if (is_dir && ei->dir.dir == sbi->root_dir && ei->entry == -1) in __exfat_write_inode()
45 es = exfat_get_dentry_set(sb, &(ei->dir), ei->entry, ES_ALL_ENTRIES); in __exfat_write_inode()
54 exfat_set_entry_time(sbi, &ei->i_crtime, in __exfat_write_inode()
73 if (ei->start_clu == EXFAT_EOF_CLUSTER) in __exfat_write_inode()
113 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_map_cluster() local
130 *clu = last_clu = ei->start_clu; in exfat_map_cluster()
132 if (ei->flags == ALLOC_NO_FAT_CHAIN) { in exfat_map_cluster()
[all …]
Dfile.c102 struct exfat_inode_info *ei = EXFAT_I(inode); in __exfat_truncate() local
103 int evict = (ei->dir.dir == DIR_DELETED) ? 1 : 0; in __exfat_truncate()
106 if (ei->type != TYPE_FILE && ei->type != TYPE_DIR) in __exfat_truncate()
115 exfat_chain_set(&clu, ei->start_clu, num_clusters_phys, ei->flags); in __exfat_truncate()
143 ei->flags = ALLOC_NO_FAT_CHAIN; in __exfat_truncate()
144 ei->start_clu = EXFAT_EOF_CLUSTER; in __exfat_truncate()
149 if (ei->type == TYPE_FILE) in __exfat_truncate()
150 ei->attr |= ATTR_ARCHIVE; in __exfat_truncate()
159 es = exfat_get_dentry_set(sb, &(ei->dir), ei->entry, in __exfat_truncate()
172 ep->dentry.file.attr = cpu_to_le16(ei->attr); in __exfat_truncate()
[all …]
Dnamei.c315 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_find_empty_entry() local
320 if (ei->hint_femp.eidx != EXFAT_HINT_NONE) { in exfat_find_empty_entry()
321 hint_femp = ei->hint_femp; in exfat_find_empty_entry()
322 ei->hint_femp.eidx = EXFAT_HINT_NONE; in exfat_find_empty_entry()
382 &(ei->dir), ei->entry + 1, &bh, &sector); in exfat_find_empty_entry()
391 if (exfat_update_dir_chksum(inode, &(ei->dir), in exfat_find_empty_entry()
392 ei->entry)) in exfat_find_empty_entry()
419 struct exfat_inode_info *ei = EXFAT_I(inode); in __exfat_resolve_path() local
446 exfat_chain_set(p_dir, ei->start_clu, in __exfat_resolve_path()
447 EXFAT_B_TO_CLU(i_size_read(inode), sbi), ei->flags); in __exfat_resolve_path()
[all …]
Dsuper.c183 struct exfat_inode_info *ei; in exfat_alloc_inode() local
185 ei = kmem_cache_alloc(exfat_inode_cachep, GFP_NOFS); in exfat_alloc_inode()
186 if (!ei) in exfat_alloc_inode()
189 init_rwsem(&ei->truncate_lock); in exfat_alloc_inode()
190 return &ei->vfs_inode; in exfat_alloc_inode()
334 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_read_root() local
338 exfat_chain_set(&ei->dir, sbi->root_dir, 0, ALLOC_FAT_CHAIN); in exfat_read_root()
339 ei->entry = -1; in exfat_read_root()
340 ei->start_clu = sbi->root_dir; in exfat_read_root()
341 ei->flags = ALLOC_FAT_CHAIN; in exfat_read_root()
[all …]
/kernel/linux/linux-5.10/arch/x86/boot/
Dedd.c38 static u32 read_mbr_sig(u8 devno, struct edd_info *ei, u32 *mbrsig) in read_mbr_sig() argument
46 sector_size = ei->params.bytes_per_sector; in read_mbr_sig()
73 static int get_edd_info(u8 devno, struct edd_info *ei) in get_edd_info() argument
77 memset(ei, 0, sizeof(*ei)); in get_edd_info()
93 ei->device = devno; in get_edd_info()
94 ei->version = oreg.ah; /* EDD version number */ in get_edd_info()
95 ei->interface_support = oreg.cx; /* EDD functionality subsets */ in get_edd_info()
99 ei->params.length = sizeof(ei->params); in get_edd_info()
101 ireg.si = (size_t)&ei->params; in get_edd_info()
112 ei->legacy_max_cylinder = oreg.ch + ((oreg.cl & 0xc0) << 2); in get_edd_info()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/boot/
Dmain.c29 struct elf_info ei; in prep_kernel() local
42 if (!parse_elf64(elfheader, &ei) && !parse_elf32(elfheader, &ei)) in prep_kernel()
53 printf("Allocating 0x%lx bytes for kernel...\n\r", ei.memsize); in prep_kernel()
56 addr = platform_ops.vmlinux_alloc(ei.memsize); in prep_kernel()
63 if ((unsigned long)_start < ei.loadsize) in prep_kernel()
66 _start, ei.loadsize); in prep_kernel()
68 if ((unsigned long)_end < ei.memsize) in prep_kernel()
74 memcpy(addr, vmlinuz_addr + ei.elfoffset, ei.loadsize); in prep_kernel()
76 ei.loadsize); in prep_kernel()
85 addr, ei.loadsize, ei.elfoffset); in prep_kernel()
[all …]
/kernel/linux/linux-5.10/fs/f2fs/
Dextent_cache.c236 struct extent_tree *et, struct extent_info *ei, in __attach_extent_node() argument
246 en->ei = *ei; in __attach_extent_node()
318 struct extent_tree *et, struct extent_info *ei) in __init_extent_tree() argument
323 en = __attach_extent_node(sbi, et, ei, NULL, p, true); in __init_extent_tree()
327 et->largest = en->ei; in __init_extent_tree()
367 struct extent_info ei; in __f2fs_init_extent_tree() local
385 get_extent_info(&ei, i_ext); in __f2fs_init_extent_tree()
391 en = __init_extent_tree(sbi, et, &ei); in __f2fs_init_extent_tree()
410 struct extent_info *ei) in f2fs_lookup_extent_tree() argument
425 *ei = et->largest; in f2fs_lookup_extent_tree()
[all …]
/kernel/linux/linux-5.10/fs/ext2/
Dioctl.c24 struct ext2_inode_info *ei = EXT2_I(inode); in ext2_ioctl() local
33 flags = ei->i_flags & EXT2_FL_USER_VISIBLE; in ext2_ioctl()
61 oldflags = ei->i_flags; in ext2_ioctl()
71 ei->i_flags = flags; in ext2_ioctl()
110 && ei->i_block_alloc_info) { in ext2_ioctl()
111 rsv_window_size = ei->i_block_alloc_info->rsv_window_node.rsv_goal_size; in ext2_ioctl()
141 mutex_lock(&ei->truncate_mutex); in ext2_ioctl()
142 if (!ei->i_block_alloc_info) in ext2_ioctl()
145 if (ei->i_block_alloc_info){ in ext2_ioctl()
146 struct ext2_reserve_window_node *rsv = &ei->i_block_alloc_info->rsv_window_node; in ext2_ioctl()
[all …]
Dinode.c296 struct ext2_inode_info *ei = EXT2_I(inode); in ext2_find_near() local
297 __le32 *start = ind->bh ? (__le32 *) ind->bh->b_data : ei->i_data; in ext2_find_near()
315 bg_start = ext2_group_first_block_no(inode->i_sb, ei->i_block_group); in ext2_find_near()
633 struct ext2_inode_info *ei = EXT2_I(inode); in ext2_get_blocks() local
679 mutex_lock(&ei->truncate_mutex); in ext2_get_blocks()
700 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks()
705 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks()
714 if (S_ISREG(inode->i_mode) && (!ei->i_block_alloc_info)) in ext2_get_blocks()
734 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks()
755 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks()
[all …]
/kernel/linux/linux-5.10/arch/x86/mm/
Dnuma_emulation.c46 static int __init emu_setup_memblk(struct numa_meminfo *ei, in emu_setup_memblk() argument
50 struct numa_memblk *eb = &ei->blk[ei->nr_blks]; in emu_setup_memblk()
53 if (ei->nr_blks >= NR_NODE_MEMBLKS) { in emu_setup_memblk()
58 ei->nr_blks++; in emu_setup_memblk()
83 static int __init split_nodes_interleave(struct numa_meminfo *ei, in split_nodes_interleave() argument
173 ret = emu_setup_memblk(ei, pi, nid++ % nr_nodes, in split_nodes_interleave()
216 static int __init split_nodes_size_interleave_uniform(struct numa_meminfo *ei, in split_nodes_size_interleave_uniform() argument
310 ret = emu_setup_memblk(ei, pi, nid++ % MAX_NUMNODES, in split_nodes_size_interleave_uniform()
320 static int __init split_nodes_size_interleave(struct numa_meminfo *ei, in split_nodes_size_interleave() argument
324 return split_nodes_size_interleave_uniform(ei, pi, addr, max_addr, size, in split_nodes_size_interleave()
[all …]
/kernel/linux/linux-5.10/arch/x86/kernel/
Dcrash.c305 struct e820_entry ei; in memmap_entry_callback() local
307 ei.addr = res->start; in memmap_entry_callback()
308 ei.size = resource_size(res); in memmap_entry_callback()
309 ei.type = cmd->type; in memmap_entry_callback()
310 add_e820_entry(params, &ei); in memmap_entry_callback()
336 struct e820_entry ei; in crash_setup_memmap_entries() local
372 ei.addr = crashk_low_res.start; in crash_setup_memmap_entries()
373 ei.size = resource_size(&crashk_low_res); in crash_setup_memmap_entries()
374 ei.type = E820_TYPE_RAM; in crash_setup_memmap_entries()
375 add_e820_entry(params, &ei); in crash_setup_memmap_entries()
[all …]
/kernel/linux/linux-5.10/arch/x86/boot/compressed/
Dacpi.c89 struct efi_info *ei; in kexec_get_rsdp_addr() local
101 ei = &boot_params->efi_info; in kexec_get_rsdp_addr()
102 sig = (char *)&ei->efi_loader_signature; in kexec_get_rsdp_addr()
109 systab = (efi_system_table_64_t *) (ei->efi_systab | ((__u64)ei->efi_systab_hi << 32)); in kexec_get_rsdp_addr()
124 struct efi_info *ei; in efi_get_rsdp_addr() local
128 ei = &boot_params->efi_info; in efi_get_rsdp_addr()
129 sig = (char *)&ei->efi_loader_signature; in efi_get_rsdp_addr()
142 systab = ei->efi_systab | ((__u64)ei->efi_systab_hi << 32); in efi_get_rsdp_addr()
144 if (ei->efi_systab_hi || ei->efi_memmap_hi) { in efi_get_rsdp_addr()
148 systab = ei->efi_systab; in efi_get_rsdp_addr()
/kernel/linux/linux-5.10/scripts/mod/
Dmk_elfconfig.c10 unsigned char ei[EI_NIDENT]; in main() local
13 if (fread(ei, 1, EI_NIDENT, stdin) != EI_NIDENT) { in main()
17 if (memcmp(ei, ELFMAG, SELFMAG) != 0) { in main()
21 switch (ei[EI_CLASS]) { in main()
31 switch (ei[EI_DATA]) { in main()
/kernel/linux/linux-5.10/fs/proc/
Dinode.c37 struct proc_inode *ei = PROC_I(inode); in proc_evict_inode() local
43 if (ei->pid) { in proc_evict_inode()
44 proc_pid_evict_inode(ei); in proc_evict_inode()
45 ei->pid = NULL; in proc_evict_inode()
49 de = ei->pde; in proc_evict_inode()
52 ei->pde = NULL; in proc_evict_inode()
55 head = ei->sysctl; in proc_evict_inode()
57 RCU_INIT_POINTER(ei->sysctl, NULL); in proc_evict_inode()
67 struct proc_inode *ei; in proc_alloc_inode() local
69 ei = kmem_cache_alloc(proc_inode_cachep, GFP_KERNEL); in proc_alloc_inode()
[all …]
/kernel/linux/linux-5.10/fs/coda/
Dinode.c45 struct coda_inode_info *ei; in coda_alloc_inode() local
46 ei = kmem_cache_alloc(coda_inode_cachep, GFP_KERNEL); in coda_alloc_inode()
47 if (!ei) in coda_alloc_inode()
49 memset(&ei->c_fid, 0, sizeof(struct CodaFid)); in coda_alloc_inode()
50 ei->c_flags = 0; in coda_alloc_inode()
51 ei->c_uid = GLOBAL_ROOT_UID; in coda_alloc_inode()
52 ei->c_cached_perm = 0; in coda_alloc_inode()
53 spin_lock_init(&ei->c_lock); in coda_alloc_inode()
54 return &ei->vfs_inode; in coda_alloc_inode()
64 struct coda_inode_info *ei = (struct coda_inode_info *) foo; in init_once() local
[all …]
/kernel/linux/linux-5.10/include/linux/soc/qcom/
Dqmi.h176 struct qmi_elem_info *ei; member
192 struct qmi_elem_info *ei; member
252 struct qmi_elem_info *ei, const void *c_struct);
255 struct qmi_elem_info *ei, const void *c_struct);
257 int msg_id, size_t len, struct qmi_elem_info *ei,
261 unsigned int txn_id, struct qmi_elem_info *ei,
265 struct qmi_elem_info *ei, void *c_struct);
268 struct qmi_elem_info *ei, void *c_struct);
/kernel/linux/linux-5.10/fs/ext4/
Dfast_commit.c140 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_reset_inode() local
142 ei->i_fc_lblk_start = 0; in ext4_fc_reset_inode()
143 ei->i_fc_lblk_len = 0; in ext4_fc_reset_inode()
148 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_init_inode() local
152 INIT_LIST_HEAD(&ei->i_fc_list); in ext4_fc_init_inode()
153 init_waitqueue_head(&ei->i_fc_wait); in ext4_fc_init_inode()
154 atomic_set(&ei->i_fc_updates, 0); in ext4_fc_init_inode()
162 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_wait_committing_inode() local
165 DEFINE_WAIT_BIT(wait, &ei->i_state_flags, in ext4_fc_wait_committing_inode()
167 wq = bit_waitqueue(&ei->i_state_flags, in ext4_fc_wait_committing_inode()
[all …]
Dinode.c52 struct ext4_inode_info *ei) in ext4_inode_csum() argument
60 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)raw, offset); in ext4_inode_csum()
71 if (EXT4_FITS_IN_INODE(raw, ei, i_checksum_hi)) { in ext4_inode_csum()
84 struct ext4_inode_info *ei) in ext4_inode_csum_verify() argument
94 calculated = ext4_inode_csum(inode, raw, ei); in ext4_inode_csum_verify()
96 EXT4_FITS_IN_INODE(raw, ei, i_checksum_hi)) in ext4_inode_csum_verify()
105 struct ext4_inode_info *ei) in ext4_inode_csum_set() argument
114 csum = ext4_inode_csum(inode, raw, ei); in ext4_inode_csum_set()
117 EXT4_FITS_IN_INODE(raw, ei, i_checksum_hi)) in ext4_inode_csum_set()
359 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_da_update_reserve_space() local
[all …]
Dextents_status.c150 static int es_reclaim_extents(struct ext4_inode_info *ei, int *nr_to_scan);
425 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_es_list_add() local
428 if (!list_empty(&ei->i_es_list)) in ext4_es_list_add()
432 if (list_empty(&ei->i_es_list)) { in ext4_es_list_add()
433 list_add_tail(&ei->i_es_list, &sbi->s_es_list); in ext4_es_list_add()
441 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_es_list_del() local
445 if (!list_empty(&ei->i_es_list)) { in ext4_es_list_del()
446 list_del_init(&ei->i_es_list); in ext4_es_list_del()
1469 struct ext4_inode_info *ei; in __es_shrink() local
1488 ei = list_first_entry(&sbi->s_es_list, struct ext4_inode_info, in __es_shrink()
[all …]
Dmigrate.c292 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ext_swap_inode_data() local
303 i_data[0] = ei->i_data[EXT4_IND_BLOCK]; in ext4_ext_swap_inode_data()
304 i_data[1] = ei->i_data[EXT4_DIND_BLOCK]; in ext4_ext_swap_inode_data()
305 i_data[2] = ei->i_data[EXT4_TIND_BLOCK]; in ext4_ext_swap_inode_data()
324 memcpy(ei->i_data, tmp_ei->i_data, sizeof(ei->i_data)); in ext4_ext_swap_inode_data()
393 struct ext4_inode_info *ei = EXT4_I(inode); in free_ext_block() local
394 struct ext4_extent_header *eh = (struct ext4_extent_header *)ei->i_data; in free_ext_block()
416 struct ext4_inode_info *ei; in ext4_ext_migrate() local
467 ei = EXT4_I(inode); in ext4_ext_migrate()
468 EXT4_I(tmp_inode)->i_csum_seed = ei->i_csum_seed; in ext4_ext_migrate()
[all …]
/kernel/linux/linux-5.10/fs/isofs/
Dinode.c72 struct iso_inode_info *ei; in isofs_alloc_inode() local
73 ei = kmem_cache_alloc(isofs_inode_cachep, GFP_KERNEL); in isofs_alloc_inode()
74 if (!ei) in isofs_alloc_inode()
76 return &ei->vfs_inode; in isofs_alloc_inode()
86 struct iso_inode_info *ei = foo; in init_once() local
88 inode_init_once(&ei->vfs_inode); in init_once()
1058 struct iso_inode_info *ei = ISOFS_I(inode); in isofs_get_blocks() local
1069 firstext = ei->i_first_extent; in isofs_get_blocks()
1070 sect_size = ei->i_section_size >> ISOFS_BUFFER_BITS(inode); in isofs_get_blocks()
1071 nextblk = ei->i_next_section_block; in isofs_get_blocks()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/tests/
Dmtd_test.c13 struct erase_info ei; in mtdtest_erase_eraseblock() local
16 memset(&ei, 0, sizeof(struct erase_info)); in mtdtest_erase_eraseblock()
17 ei.addr = addr; in mtdtest_erase_eraseblock()
18 ei.len = mtd->erasesize; in mtdtest_erase_eraseblock()
20 err = mtd_erase(mtd, &ei); in mtdtest_erase_eraseblock()
/kernel/linux/linux-5.10/fs/qnx6/
Dinode.c115 struct qnx6_inode_info *ei = QNX6_I(inode); in qnx6_block_map() local
123 int depth = ei->di_filelevels; in qnx6_block_map()
134 block = qnx6_get_devblock(s, ei->di_block_ptr[levelptr]); in qnx6_block_map()
509 struct qnx6_inode_info *ei = QNX6_I(inode); in qnx6_private_inode() local
512 memcpy(ei->di_block_ptr, p->ptr, sizeof(p->ptr)); in qnx6_private_inode()
513 ei->di_filelevels = p->levels; in qnx6_private_inode()
525 struct qnx6_inode_info *ei; in qnx6_iget() local
536 ei = QNX6_I(inode); in qnx6_iget()
573 memcpy(&ei->di_block_ptr, &raw_inode->di_block_ptr, in qnx6_iget()
575 ei->di_filelevels = raw_inode->di_filelevels; in qnx6_iget()
[all …]

123456