Home
last modified time | relevance | path

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

12345678910>>...25

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
135 struct ent *ent = container_of(ch, struct ent, h); in idtoname_request() local
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
Dmemtrace.c43 struct memtrace_entry *ent = filp->private_data; in memtrace_read() local
45 return simple_read_from_buffer(ubuf, count, ppos, ent->mem, ent->size); in memtrace_read()
200 struct memtrace_entry *ent = &memtrace_array[i]; in memtrace_init_debugfs() local
202 ent->mem = ioremap(ent->start, ent->size); in memtrace_init_debugfs()
204 if (!ent->mem) { in memtrace_init_debugfs()
206 ent->start); in memtrace_init_debugfs()
211 snprintf(ent->name, 16, "%08x", ent->nid); in memtrace_init_debugfs()
212 dir = debugfs_create_dir(ent->name, memtrace_debugfs_dir); in memtrace_init_debugfs()
214 ent->dir = dir; in memtrace_init_debugfs()
215 debugfs_create_file("trace", 0400, dir, ent, &memtrace_fops); 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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Dcmd.c78 struct mlx5_cmd_work_ent *ent; in cmd_alloc_ent() local
80 ent = kzalloc(sizeof(*ent), alloc_flags); in cmd_alloc_ent()
81 if (!ent) in cmd_alloc_ent()
84 ent->idx = -EINVAL; in cmd_alloc_ent()
85 ent->in = in; in cmd_alloc_ent()
86 ent->out = out; in cmd_alloc_ent()
87 ent->uout = uout; in cmd_alloc_ent()
88 ent->uout_size = uout_size; in cmd_alloc_ent()
89 ent->callback = cbk; in cmd_alloc_ent()
90 ent->context = context; in cmd_alloc_ent()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dmr.c112 static void queue_adjust_cache_locked(struct mlx5_cache_ent *ent);
138 struct mlx5_cache_ent *ent = mr->cache_ent; in create_mkey_callback() local
144 spin_lock_irqsave(&ent->lock, flags); in create_mkey_callback()
145 ent->pending--; in create_mkey_callback()
147 spin_unlock_irqrestore(&ent->lock, flags); in create_mkey_callback()
158 spin_lock_irqsave(&ent->lock, flags); in create_mkey_callback()
159 list_add_tail(&mr->list, &ent->head); in create_mkey_callback()
160 ent->available_mrs++; in create_mkey_callback()
161 ent->total_mrs++; in create_mkey_callback()
163 queue_adjust_cache_locked(ent); in create_mkey_callback()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/
Desp_scsi.c404 static dma_addr_t esp_cur_dma_addr(struct esp_cmd_entry *ent, in esp_cur_dma_addr() argument
409 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_cur_dma_addr()
410 return ent->sense_dma + in esp_cur_dma_addr()
411 (ent->sense_ptr - cmd->sense_buffer); in esp_cur_dma_addr()
419 static unsigned int esp_cur_dma_len(struct esp_cmd_entry *ent, in esp_cur_dma_len() argument
424 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_cur_dma_len()
426 (ent->sense_ptr - cmd->sense_buffer); in esp_cur_dma_len()
431 static void esp_advance_dma(struct esp *esp, struct esp_cmd_entry *ent, in esp_advance_dma() argument
436 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_advance_dma()
437 ent->sense_ptr += len; in esp_advance_dma()
[all …]
/kernel/linux/linux-5.10/drivers/soc/qcom/
Dcmd-db.c113 rsc_offset(const struct rsc_hdr *hdr, const struct entry_header *ent) in rsc_offset() argument
116 u16 loffset = le16_to_cpu(ent->offset); in rsc_offset()
141 const struct entry_header *ent; in cmd_db_get_header() local
157 ent = rsc_to_entry_header(rsc_hdr); in cmd_db_get_header()
158 for (j = 0; j < le16_to_cpu(rsc_hdr->cnt); j++, ent++) { in cmd_db_get_header()
159 if (memcmp(ent->id, query, sizeof(ent->id)) == 0) { in cmd_db_get_header()
161 *eh = ent; in cmd_db_get_header()
185 const struct entry_header *ent; in cmd_db_read_addr() local
187 ret = cmd_db_get_header(id, &ent, NULL); in cmd_db_read_addr()
189 return ret < 0 ? 0 : le32_to_cpu(ent->addr); in cmd_db_read_addr()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/security/apparmor/
Dpolicy.c710 struct aa_load_ent *ent; in __list_lookup_parent() local
717 list_for_each_entry(ent, lh, list) { in __list_lookup_parent()
718 if (ent->new == profile) in __list_lookup_parent()
720 if (strncmp(ent->new->base.hname, profile->base.hname, len) == in __list_lookup_parent()
721 0 && ent->new->base.hname[len] == 0) in __list_lookup_parent()
722 return ent->new; in __list_lookup_parent()
862 struct aa_load_ent *ent, *tmp; in aa_replace_profiles() local
881 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles()
883 if (ent->ns_name && in aa_replace_profiles()
884 strcmp(ent->ns_name, ns_name) != 0) { in aa_replace_profiles()
[all …]
/kernel/linux/linux-5.10/fs/proc/
Dgeneric.c402 struct proc_dir_entry *ent = NULL; in __proc_create() local
431 ent = kmem_cache_zalloc(proc_dir_entry_cache, GFP_KERNEL); in __proc_create()
432 if (!ent) in __proc_create()
436 ent->name = ent->inline_name; in __proc_create()
438 ent->name = kmalloc(qstr.len + 1, GFP_KERNEL); in __proc_create()
439 if (!ent->name) { in __proc_create()
440 pde_free(ent); in __proc_create()
445 memcpy(ent->name, fn, qstr.len + 1); in __proc_create()
446 ent->namelen = qstr.len; in __proc_create()
447 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 …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dcm.c179 struct id_map_entry *ent = container_of(delay, struct id_map_entry, timeout); in id_map_ent_timeout() local
181 struct mlx4_ib_dev *dev = ent->dev; in id_map_ent_timeout()
186 if (!xa_erase(&sriov->pv_id_table, ent->pv_cm_id)) in id_map_ent_timeout()
188 found_ent = id_map_find_by_sl_id(&dev->ib_dev, ent->slave_id, ent->sl_cm_id); in id_map_ent_timeout()
189 if (found_ent && found_ent == ent) in id_map_ent_timeout()
193 list_del(&ent->list); in id_map_ent_timeout()
195 kfree(ent); in id_map_ent_timeout()
202 struct id_map_entry *ent; in sl_id_map_add() local
206 ent = id_map_find_by_sl_id(ibdev, slave_id, sl_cm_id); in sl_id_map_add()
207 if (ent) { in sl_id_map_add()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/md/
Dmd-autodetect.c65 int ent; in md_setup() local
76 for (ent=0 ; ent< md_setup_ents ; ent++) in md_setup()
77 if (md_setup_args[ent].minor == minor && in md_setup()
78 md_setup_args[ent].partitioned == partitioned) { in md_setup()
83 if (ent >= ARRAY_SIZE(md_setup_args)) { in md_setup()
87 if (ent >= md_setup_ents) in md_setup()
97 md_setup_args[ent].level = level; in md_setup()
98 md_setup_args[ent].chunk = 1 << (factor+12); in md_setup()
110 md_setup_args[ent].level = LEVEL_NONE; in md_setup()
116 md_setup_args[ent].device_names = str; in md_setup()
[all …]
/kernel/linux/linux-5.10/fs/ceph/
Dcache.c58 struct ceph_fscache_entry *ent; in ceph_fscache_register_fs() local
62 list_for_each_entry(ent, &ceph_fscache_list, list) { in ceph_fscache_register_fs()
63 if (memcmp(&ent->fsid, fsid, sizeof(*fsid))) in ceph_fscache_register_fs()
65 if (ent->uniq_len != uniq_len) in ceph_fscache_register_fs()
67 if (uniq_len && memcmp(ent->uniquifier, fscache_uniq, uniq_len)) in ceph_fscache_register_fs()
76 ent = kzalloc(sizeof(*ent) + uniq_len, GFP_KERNEL); in ceph_fscache_register_fs()
77 if (!ent) { in ceph_fscache_register_fs()
82 memcpy(&ent->fsid, fsid, sizeof(*fsid)); in ceph_fscache_register_fs()
84 memcpy(&ent->uniquifier, fscache_uniq, uniq_len); in ceph_fscache_register_fs()
85 ent->uniq_len = uniq_len; in ceph_fscache_register_fs()
[all …]
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/media/test-drivers/vimc/
Dvimc-streamer.c25 static struct media_entity *vimc_get_source_entity(struct media_entity *ent) in vimc_get_source_entity() argument
30 for (i = 0; i < ent->num_pads; i++) { in vimc_get_source_entity()
31 if (ent->pads[i].flags & MEDIA_PAD_FL_SOURCE) in vimc_get_source_entity()
33 pad = media_entity_remote_pad(&ent->pads[i]); in vimc_get_source_entity()
58 if (!is_media_entity_v4l2_subdev(ved->ent)) in vimc_streamer_pipeline_terminate()
61 sd = media_entity_to_v4l2_subdev(ved->ent); in vimc_streamer_pipeline_terminate()
95 if (is_media_entity_v4l2_subdev(ved->ent)) { in vimc_streamer_pipeline_init()
96 sd = media_entity_to_v4l2_subdev(ved->ent); in vimc_streamer_pipeline_init()
100 ved->ent->name); in vimc_streamer_pipeline_init()
106 entity = vimc_get_source_entity(ved->ent); in vimc_streamer_pipeline_init()
[all …]

12345678910>>...25