Home
last modified time | relevance | path

Searched refs:ent (Results 1 – 25 of 602) sorted by relevance

12345678910>>...25

/Linux-v5.4/drivers/nubus/
Dnubus.c242 struct nubus_dirent ent; in nubus_get_board_dir() local
250 if (nubus_readdir(dir, &ent) == -1) in nubus_get_board_dir()
252 if (nubus_get_subdir(&ent, dir) == -1) in nubus_get_board_dir()
258 int nubus_get_subdir(const struct nubus_dirent *ent, in nubus_get_subdir() argument
261 dir->ptr = dir->base = nubus_dirptr(ent); in nubus_get_subdir()
263 dir->mask = ent->mask; in nubus_get_subdir()
268 int nubus_readdir(struct nubus_dir *nd, struct nubus_dirent *ent) in nubus_readdir() argument
276 ent->base = nd->ptr; in nubus_readdir()
289 ent->type = resid >> 24; in nubus_readdir()
291 ent->data = resid & 0xffffff; in nubus_readdir()
[all …]
Dproc.c69 const struct nubus_dirent *ent, in nubus_proc_add_rsrc_dir() argument
77 snprintf(name, sizeof(name), "%x", ent->type); in nubus_proc_add_rsrc_dir()
121 struct nubus_dirent ent; in nubus_proc_rsrc_show() local
126 ent.mask = lanes; in nubus_proc_rsrc_show()
127 ent.base = pde_data->res_ptr; in nubus_proc_rsrc_show()
128 ent.data = 0; in nubus_proc_rsrc_show()
129 nubus_seq_write_rsrc_mem(m, &ent, pde_data->res_size); in nubus_proc_rsrc_show()
141 const struct nubus_dirent *ent, in nubus_proc_add_rsrc_mem() argument
150 snprintf(name, sizeof(name), "%x", ent->type); in nubus_proc_add_rsrc_mem()
152 pde_data = nubus_proc_alloc_pde_data(nubus_dirptr(ent), size); in nubus_proc_add_rsrc_mem()
[all …]
/Linux-v5.4/fs/nfsd/
Dnfs4idmap.c62 struct ent { struct
79 struct ent *new = container_of(cnew, struct ent, h); in ent_init() argument
80 struct ent *itm = container_of(citm, struct ent, h); in ent_init()
92 struct ent *map = container_of(ref, struct ent, h.ref); in ent_put()
99 struct ent *e = kmalloc(sizeof(*e), GFP_KERNEL); in ent_alloc()
111 idtoname_hash(struct ent *ent) in idtoname_hash() argument
115 hash = hash_str(ent->authname, ENT_HASHBITS); in idtoname_hash()
116 hash = hash_long(hash ^ ent->id, ENT_HASHBITS); in idtoname_hash()
119 if (ent->type == IDMAP_TYPE_GROUP) in idtoname_hash()
129 struct ent *ent = container_of(ch, struct ent, h); in idtoname_request() local
[all …]
/Linux-v5.4/drivers/scsi/qla2xxx/
Dqla_tmpl.c123 qla27xx_skip_entry(struct qla27xx_fwdt_entry *ent, void *buf) in qla27xx_skip_entry() argument
126 ent->hdr.driver_flags |= DRIVER_FLAG_SKIP_ENTRY; in qla27xx_skip_entry()
130 qla27xx_next_entry(struct qla27xx_fwdt_entry *ent) in qla27xx_next_entry() argument
132 return (void *)ent + le32_to_cpu(ent->hdr.size); in qla27xx_next_entry()
137 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t0() argument
141 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t0()
143 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t0()
148 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t255() argument
152 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t255()
160 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t256() argument
[all …]
/Linux-v5.4/arch/powerpc/platforms/powernv/
Dmemtrace.c42 struct memtrace_entry *ent = filp->private_data; in memtrace_read() local
44 return simple_read_from_buffer(ubuf, count, ppos, ent->mem, ent->size); in memtrace_read()
177 struct memtrace_entry *ent = &memtrace_array[i]; in memtrace_init_debugfs() local
179 ent->mem = ioremap(ent->start, ent->size); in memtrace_init_debugfs()
181 if (!ent->mem) { in memtrace_init_debugfs()
183 ent->start); in memtrace_init_debugfs()
188 snprintf(ent->name, 16, "%08x", ent->nid); in memtrace_init_debugfs()
189 dir = debugfs_create_dir(ent->name, memtrace_debugfs_dir); in memtrace_init_debugfs()
192 ent->nid); in memtrace_init_debugfs()
196 ent->dir = dir; in memtrace_init_debugfs()
[all …]
Dopal-xscom.c90 struct scom_debug_entry *ent = filp->private_data; in scom_debug_read() local
103 rc = opal_scom_read(ent->chip, reg_base, reg, &val); in scom_debug_read()
121 struct scom_debug_entry *ent = filp->private_data; in scom_debug_write() local
136 rc = opal_scom_write(ent->chip, reg_base, reg, val); in scom_debug_write()
158 struct scom_debug_entry *ent; in scom_debug_init_one() local
161 ent = kzalloc(sizeof(*ent), GFP_KERNEL); in scom_debug_init_one()
162 if (!ent) in scom_debug_init_one()
165 ent->chip = chip; in scom_debug_init_one()
166 snprintf(ent->name, 16, "%08x", chip); in scom_debug_init_one()
167 ent->path.data = (void *)kasprintf(GFP_KERNEL, "%pOF", dn); in scom_debug_init_one()
[all …]
/Linux-v5.4/lib/
Derror-inject.c25 struct ei_entry *ent; in within_error_injection_list() local
29 list_for_each_entry(ent, &error_injection_list, list) { in within_error_injection_list()
30 if (addr >= ent->start_addr && addr < ent->end_addr) { in within_error_injection_list()
41 struct ei_entry *ent; in get_injectable_error_type() local
43 list_for_each_entry(ent, &error_injection_list, list) { in get_injectable_error_type()
44 if (addr >= ent->start_addr && addr < ent->end_addr) in get_injectable_error_type()
45 return ent->etype; in get_injectable_error_type()
62 struct ei_entry *ent; in populate_error_injection_list() local
76 ent = kmalloc(sizeof(*ent), GFP_KERNEL); in populate_error_injection_list()
77 if (!ent) in populate_error_injection_list()
[all …]
/Linux-v5.4/fs/ocfs2/
Dfilecheck.c209 ocfs2_filecheck_erase_entries(struct ocfs2_filecheck_sysfs_entry *ent,
212 ocfs2_filecheck_adjust_max(struct ocfs2_filecheck_sysfs_entry *ent, in ocfs2_filecheck_adjust_max() argument
220 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max()
221 if (len < (ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done)) { in ocfs2_filecheck_adjust_max()
225 len, ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done); in ocfs2_filecheck_adjust_max()
228 if (len < ent->fs_fcheck->fc_size) in ocfs2_filecheck_adjust_max()
229 BUG_ON(!ocfs2_filecheck_erase_entries(ent, in ocfs2_filecheck_adjust_max()
230 ent->fs_fcheck->fc_size - len)); in ocfs2_filecheck_adjust_max()
232 ent->fs_fcheck->fc_max = len; in ocfs2_filecheck_adjust_max()
235 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max()
[all …]
/Linux-v5.4/drivers/infiniband/hw/mlx4/
Dcm.c170 struct id_map_entry *ent = container_of(delay, struct id_map_entry, timeout); in id_map_ent_timeout() local
172 struct mlx4_ib_dev *dev = ent->dev; in id_map_ent_timeout()
177 if (!xa_erase(&sriov->pv_id_table, ent->pv_cm_id)) in id_map_ent_timeout()
179 found_ent = id_map_find_by_sl_id(&dev->ib_dev, ent->slave_id, ent->sl_cm_id); in id_map_ent_timeout()
180 if (found_ent && found_ent == ent) in id_map_ent_timeout()
184 list_del(&ent->list); in id_map_ent_timeout()
186 kfree(ent); in id_map_ent_timeout()
193 struct id_map_entry *ent, *found_ent; in id_map_find_del() local
196 ent = xa_erase(&sriov->pv_id_table, pv_cm_id); in id_map_find_del()
197 if (!ent) in id_map_find_del()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Dcmd.c80 struct mlx5_cmd_work_ent *ent; in alloc_cmd() local
82 ent = kzalloc(sizeof(*ent), alloc_flags); in alloc_cmd()
83 if (!ent) in alloc_cmd()
86 ent->in = in; in alloc_cmd()
87 ent->out = out; in alloc_cmd()
88 ent->uout = uout; in alloc_cmd()
89 ent->uout_size = uout_size; in alloc_cmd()
90 ent->callback = cbk; in alloc_cmd()
91 ent->context = context; in alloc_cmd()
92 ent->cmd = cmd; in alloc_cmd()
[all …]
/Linux-v5.4/drivers/scsi/
Desp_scsi.c401 static dma_addr_t esp_cur_dma_addr(struct esp_cmd_entry *ent, in esp_cur_dma_addr() argument
406 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_cur_dma_addr()
407 return ent->sense_dma + in esp_cur_dma_addr()
408 (ent->sense_ptr - cmd->sense_buffer); in esp_cur_dma_addr()
416 static unsigned int esp_cur_dma_len(struct esp_cmd_entry *ent, in esp_cur_dma_len() argument
421 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_cur_dma_len()
423 (ent->sense_ptr - cmd->sense_buffer); in esp_cur_dma_len()
428 static void esp_advance_dma(struct esp *esp, struct esp_cmd_entry *ent, in esp_advance_dma() argument
433 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_advance_dma()
434 ent->sense_ptr += len; in esp_advance_dma()
[all …]
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Di2c.c75 u16 ent = dcb_i2c_entry(bios, idx, &ver, &len); in dcb_i2c_parse() local
76 if (ent) { in dcb_i2c_parse()
78 u32 ent_value = nvbios_rd32(bios, ent); in dcb_i2c_parse()
88 info->type = nvbios_rd08(bios, ent + 0x03); in dcb_i2c_parse()
90 info->type = nvbios_rd08(bios, ent + 0x03) & 0x07; in dcb_i2c_parse()
102 info->drive = nvbios_rd08(bios, ent + 0); in dcb_i2c_parse()
103 info->sense = nvbios_rd08(bios, ent + 1); in dcb_i2c_parse()
106 info->drive = nvbios_rd08(bios, ent + 1); in dcb_i2c_parse()
109 info->drive = nvbios_rd08(bios, ent + 0) & 0x0f; in dcb_i2c_parse()
110 if (nvbios_rd08(bios, ent + 1) & 0x01) in dcb_i2c_parse()
[all …]
/Linux-v5.4/init/
Ddo_mounts_md.c59 int ent; in md_setup() local
70 for (ent=0 ; ent< md_setup_ents ; ent++) in md_setup()
71 if (md_setup_args[ent].minor == minor && in md_setup()
72 md_setup_args[ent].partitioned == partitioned) { in md_setup()
77 if (ent >= ARRAY_SIZE(md_setup_args)) { in md_setup()
81 if (ent >= md_setup_ents) in md_setup()
91 md_setup_args[ent].level = level; in md_setup()
92 md_setup_args[ent].chunk = 1 << (factor+12); in md_setup()
104 md_setup_args[ent].level = LEVEL_NONE; in md_setup()
110 md_setup_args[ent].device_names = str; in md_setup()
[all …]
/Linux-v5.4/tools/iio/
Dlsiio.c43 const struct dirent *ent; in dump_channels() local
49 while (ent = readdir(dp), ent) in dump_channels()
50 if (check_prefix(ent->d_name, "in_") && in dump_channels()
51 (check_postfix(ent->d_name, "_raw") || in dump_channels()
52 check_postfix(ent->d_name, "_input"))) in dump_channels()
53 printf(" %-10s\n", ent->d_name); in dump_channels()
103 const struct dirent *ent; in dump_devices() local
113 while (ent = readdir(dp), ent) { in dump_devices()
114 if (check_prefix(ent->d_name, type_device)) { in dump_devices()
118 ent->d_name) < 0) { in dump_devices()
[all …]
Diio_utils.c96 const struct dirent *ent; in iioutils_get_type() local
120 while (ent = readdir(dp), ent) in iioutils_get_type()
121 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_type()
122 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_type()
124 "%s/%s", scan_el_dir, ent->d_name); in iioutils_get_type()
179 if (strcmp(builtname, ent->d_name) == 0) in iioutils_get_type()
225 const struct dirent *ent; in iioutils_get_param_float() local
245 while (ent = readdir(dp), ent) in iioutils_get_param_float()
246 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_param_float()
247 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_param_float()
[all …]
/Linux-v5.4/drivers/soc/qcom/
Dcmd-db.c112 rsc_offset(const struct rsc_hdr *hdr, const struct entry_header *ent) in rsc_offset() argument
115 u16 loffset = le16_to_cpu(ent->offset); in rsc_offset()
140 const struct entry_header *ent; in cmd_db_get_header() local
156 ent = rsc_to_entry_header(rsc_hdr); in cmd_db_get_header()
157 for (j = 0; j < le16_to_cpu(rsc_hdr->cnt); j++, ent++) { in cmd_db_get_header()
158 if (memcmp(ent->id, query, sizeof(ent->id)) == 0) { in cmd_db_get_header()
160 *eh = ent; in cmd_db_get_header()
184 const struct entry_header *ent; in cmd_db_read_addr() local
186 ret = cmd_db_get_header(id, &ent, NULL); in cmd_db_read_addr()
188 return ret < 0 ? 0 : le32_to_cpu(ent->addr); in cmd_db_read_addr()
[all …]
/Linux-v5.4/fs/proc/
Dgeneric.c380 struct proc_dir_entry *ent = NULL; in __proc_create() local
409 ent = kmem_cache_zalloc(proc_dir_entry_cache, GFP_KERNEL); in __proc_create()
410 if (!ent) in __proc_create()
414 ent->name = ent->inline_name; in __proc_create()
416 ent->name = kmalloc(qstr.len + 1, GFP_KERNEL); in __proc_create()
417 if (!ent->name) { in __proc_create()
418 pde_free(ent); in __proc_create()
423 memcpy(ent->name, fn, qstr.len + 1); in __proc_create()
424 ent->namelen = qstr.len; in __proc_create()
425 ent->mode = mode; in __proc_create()
[all …]
Dkcore.c128 struct kcore_list *ent; in kcore_ram_list() local
130 ent = kmalloc(sizeof(*ent), GFP_KERNEL); in kcore_ram_list()
131 if (!ent) in kcore_ram_list()
133 ent->addr = (unsigned long)__va(0); in kcore_ram_list()
134 ent->size = max_low_pfn << PAGE_SHIFT; in kcore_ram_list()
135 ent->type = KCORE_RAM; in kcore_ram_list()
136 list_add(&ent->list, head); in kcore_ram_list()
145 get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head) in get_sparsemem_vmemmap_info() argument
147 unsigned long pfn = __pa(ent->addr) >> PAGE_SHIFT; in get_sparsemem_vmemmap_info()
148 unsigned long nr_pages = ent->size >> PAGE_SHIFT; in get_sparsemem_vmemmap_info()
[all …]
/Linux-v5.4/security/apparmor/
Dpolicy.c709 struct aa_load_ent *ent; in __list_lookup_parent() local
716 list_for_each_entry(ent, lh, list) { in __list_lookup_parent()
717 if (ent->new == profile) in __list_lookup_parent()
719 if (strncmp(ent->new->base.hname, profile->base.hname, len) == in __list_lookup_parent()
720 0 && ent->new->base.hname[len] == 0) in __list_lookup_parent()
721 return ent->new; in __list_lookup_parent()
861 struct aa_load_ent *ent, *tmp; in aa_replace_profiles() local
880 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles()
882 if (ent->ns_name && in aa_replace_profiles()
883 strcmp(ent->ns_name, ns_name) != 0) { in aa_replace_profiles()
[all …]
/Linux-v5.4/drivers/infiniband/hw/mlx5/
Dmr.c75 if (order < cache->ent[0].order) in order2idx()
78 return order - cache->ent[0].order; in order2idx()
94 struct mlx5_cache_ent *ent = &cache->ent[c]; in reg_mr_callback() local
100 spin_lock_irqsave(&ent->lock, flags); in reg_mr_callback()
101 ent->pending--; in reg_mr_callback()
102 spin_unlock_irqrestore(&ent->lock, flags); in reg_mr_callback()
119 spin_lock_irqsave(&ent->lock, flags); in reg_mr_callback()
120 list_add_tail(&mr->list, &ent->head); in reg_mr_callback()
121 ent->cur++; in reg_mr_callback()
122 ent->size++; in reg_mr_callback()
[all …]
/Linux-v5.4/tools/testing/selftests/vm/
Dtranshuge-stress.c25 #define PAGEMAP_PRESENT(ent) (((ent) & (1ull << 63)) != 0) argument
26 #define PAGEMAP_PFN(ent) ((ent) & ((1ull << 55) - 1)) argument
32 uint64_t ent[2]; in allocate_transhuge() local
46 if (pread(pagemap_fd, ent, sizeof(ent), in allocate_transhuge()
47 (uintptr_t)ptr >> (PAGE_SHIFT - 3)) != sizeof(ent)) in allocate_transhuge()
50 if (PAGEMAP_PRESENT(ent[0]) && PAGEMAP_PRESENT(ent[1]) && in allocate_transhuge()
51 PAGEMAP_PFN(ent[0]) + 1 == PAGEMAP_PFN(ent[1]) && in allocate_transhuge()
52 !(PAGEMAP_PFN(ent[0]) & ((1 << (HPAGE_SHIFT - PAGE_SHIFT)) - 1))) in allocate_transhuge()
53 return PAGEMAP_PFN(ent[0]); in allocate_transhuge()
/Linux-v5.4/drivers/bcma/
Dscan.c159 u32 ent = readl(*eromptr); in bcma_erom_get_ent() local
161 return ent; in bcma_erom_get_ent()
171 u32 ent = bcma_erom_get_ent(bus, eromptr); in bcma_erom_get_ci() local
172 if (!(ent & SCAN_ER_VALID)) in bcma_erom_get_ci()
174 if ((ent & SCAN_ER_TAG) != SCAN_ER_TAG_CI) in bcma_erom_get_ci()
176 return ent; in bcma_erom_get_ci()
181 u32 ent = bcma_erom_get_ent(bus, eromptr); in bcma_erom_is_end() local
183 return (ent == (SCAN_ER_TAG_END | SCAN_ER_VALID)); in bcma_erom_is_end()
188 u32 ent = bcma_erom_get_ent(bus, eromptr); in bcma_erom_is_bridge() local
190 return (((ent & SCAN_ER_VALID)) && in bcma_erom_is_bridge()
[all …]
/Linux-v5.4/fs/ceph/
Dcache.c57 struct ceph_fscache_entry *ent; in ceph_fscache_register_fs() local
61 list_for_each_entry(ent, &ceph_fscache_list, list) { in ceph_fscache_register_fs()
62 if (memcmp(&ent->fsid, fsid, sizeof(*fsid))) in ceph_fscache_register_fs()
64 if (ent->uniq_len != uniq_len) in ceph_fscache_register_fs()
66 if (uniq_len && memcmp(ent->uniquifier, fscache_uniq, uniq_len)) in ceph_fscache_register_fs()
75 ent = kzalloc(sizeof(*ent) + uniq_len, GFP_KERNEL); in ceph_fscache_register_fs()
76 if (!ent) { in ceph_fscache_register_fs()
81 memcpy(&ent->fsid, fsid, sizeof(*fsid)); in ceph_fscache_register_fs()
83 memcpy(&ent->uniquifier, fscache_uniq, uniq_len); in ceph_fscache_register_fs()
84 ent->uniq_len = uniq_len; in ceph_fscache_register_fs()
[all …]
/Linux-v5.4/drivers/nvdimm/
Dbtt.h35 #define ent_lba(ent) (ent & MAP_LBA_MASK) argument
36 #define ent_e_flag(ent) (!!(ent & MAP_ERR_MASK)) argument
37 #define ent_z_flag(ent) (!!(ent & MAP_TRIM_MASK)) argument
38 #define set_e_flag(ent) (ent |= MAP_ERR_MASK) argument
40 #define ent_normal(ent) (ent_e_flag(ent) && ent_z_flag(ent)) argument
93 struct log_entry ent[4]; member
/Linux-v5.4/tools/perf/util/
Dgenelf_debug.c293 static ubyte get_special_opcode(struct debug_entry *ent, in get_special_opcode() argument
303 temp = (ent->lineno - last_line) - default_debug_line_header.line_base; in get_special_opcode()
311 delta_addr = (ent->addr - last_vma) / default_debug_line_header.minimum_instruction_length; in get_special_opcode()
328 struct debug_entry *ent, size_t nr_entry, in emit_lineno_info() argument
352 for (i = 0; i < nr_entry; i++, ent = debug_entry_next(ent)) { in emit_lineno_info()
359 if (!cur_filename || strcmp(cur_filename, ent->name)) { in emit_lineno_info()
360 emit_lne_define_filename(be, ent->name); in emit_lineno_info()
361 cur_filename = ent->name; in emit_lineno_info()
366 special_opcode = get_special_opcode(ent, last_line, last_vma); in emit_lineno_info()
368 last_line = ent->lineno; in emit_lineno_info()
[all …]

12345678910>>...25