/Linux-v4.19/drivers/nubus/ |
D | nubus.c | 242 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 …]
|
D | proc.c | 69 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-v4.19/fs/nfsd/ |
D | nfs4idmap.c | 62 struct ent { struct 78 struct ent *new = container_of(cnew, struct ent, h); in ent_init() argument 79 struct ent *itm = container_of(citm, struct ent, h); in ent_init() 91 struct ent *map = container_of(ref, struct ent, h.ref); in ent_put() 98 struct ent *e = kmalloc(sizeof(*e), GFP_KERNEL); in ent_alloc() 110 idtoname_hash(struct ent *ent) in idtoname_hash() argument 114 hash = hash_str(ent->authname, ENT_HASHBITS); in idtoname_hash() 115 hash = hash_long(hash ^ ent->id, ENT_HASHBITS); in idtoname_hash() 118 if (ent->type == IDMAP_TYPE_GROUP) in idtoname_hash() 128 struct ent *ent = container_of(ch, struct ent, h); in idtoname_request() local [all …]
|
/Linux-v4.19/drivers/scsi/qla2xxx/ |
D | qla_tmpl.c | 218 qla27xx_skip_entry(struct qla27xx_fwdt_entry *ent, void *buf) in qla27xx_skip_entry() argument 221 ent->hdr.driver_flags |= DRIVER_FLAG_SKIP_ENTRY; in qla27xx_skip_entry() 226 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t0() argument 230 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t0() 237 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t255() argument 241 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t255() 249 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t256() argument 255 qla27xx_read_window(reg, ent->t256.base_addr, ent->t256.pci_offset, in qla27xx_fwdt_entry_t256() 256 ent->t256.reg_count, ent->t256.reg_width, buf, len); in qla27xx_fwdt_entry_t256() 263 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t257() argument [all …]
|
/Linux-v4.19/arch/powerpc/platforms/powernv/ |
D | memtrace.c | 45 struct memtrace_entry *ent = filp->private_data; in memtrace_read() local 47 return simple_read_from_buffer(ubuf, count, ppos, ent->mem, ent->size); in memtrace_read() 167 struct memtrace_entry *ent = &memtrace_array[i]; in memtrace_init_debugfs() local 169 ent->mem = ioremap(ent->start, ent->size); in memtrace_init_debugfs() 171 if (!ent->mem) { in memtrace_init_debugfs() 173 ent->start); in memtrace_init_debugfs() 178 snprintf(ent->name, 16, "%08x", ent->nid); in memtrace_init_debugfs() 179 dir = debugfs_create_dir(ent->name, memtrace_debugfs_dir); in memtrace_init_debugfs() 182 ent->nid); in memtrace_init_debugfs() 186 ent->dir = dir; in memtrace_init_debugfs() [all …]
|
/Linux-v4.19/lib/ |
D | error-inject.c | 25 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-v4.19/fs/ocfs2/ |
D | filecheck.c | 216 ocfs2_filecheck_erase_entries(struct ocfs2_filecheck_sysfs_entry *ent, 219 ocfs2_filecheck_adjust_max(struct ocfs2_filecheck_sysfs_entry *ent, in ocfs2_filecheck_adjust_max() argument 227 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max() 228 if (len < (ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done)) { in ocfs2_filecheck_adjust_max() 232 len, ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done); in ocfs2_filecheck_adjust_max() 235 if (len < ent->fs_fcheck->fc_size) in ocfs2_filecheck_adjust_max() 236 BUG_ON(!ocfs2_filecheck_erase_entries(ent, in ocfs2_filecheck_adjust_max() 237 ent->fs_fcheck->fc_size - len)); in ocfs2_filecheck_adjust_max() 239 ent->fs_fcheck->fc_max = len; in ocfs2_filecheck_adjust_max() 242 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max() [all …]
|
/Linux-v4.19/drivers/scsi/ |
D | esp_scsi.c | 388 static dma_addr_t esp_cur_dma_addr(struct esp_cmd_entry *ent, in esp_cur_dma_addr() argument 393 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_cur_dma_addr() 394 return ent->sense_dma + in esp_cur_dma_addr() 395 (ent->sense_ptr - cmd->sense_buffer); in esp_cur_dma_addr() 403 static unsigned int esp_cur_dma_len(struct esp_cmd_entry *ent, in esp_cur_dma_len() argument 408 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_cur_dma_len() 410 (ent->sense_ptr - cmd->sense_buffer); in esp_cur_dma_len() 415 static void esp_advance_dma(struct esp *esp, struct esp_cmd_entry *ent, in esp_advance_dma() argument 420 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_advance_dma() 421 ent->sense_ptr += len; in esp_advance_dma() [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | cmd.c | 78 struct mlx5_cmd_work_ent *ent; in alloc_cmd() local 80 ent = kzalloc(sizeof(*ent), alloc_flags); in alloc_cmd() 81 if (!ent) in alloc_cmd() 84 ent->in = in; in alloc_cmd() 85 ent->out = out; in alloc_cmd() 86 ent->uout = uout; in alloc_cmd() 87 ent->uout_size = uout_size; in alloc_cmd() 88 ent->callback = cbk; in alloc_cmd() 89 ent->context = context; in alloc_cmd() 90 ent->cmd = cmd; in alloc_cmd() [all …]
|
/Linux-v4.19/drivers/infiniband/hw/mlx4/ |
D | cm.c | 170 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() 175 int pv_id = (int) ent->pv_cm_id; in id_map_ent_timeout() 181 found_ent = id_map_find_by_sl_id(&dev->ib_dev, ent->slave_id, ent->sl_cm_id); in id_map_ent_timeout() 182 if (found_ent && found_ent == ent) in id_map_ent_timeout() 187 list_del(&ent->list); in id_map_ent_timeout() 189 kfree(ent); in id_map_ent_timeout() 196 struct id_map_entry *ent, *found_ent; in id_map_find_del() local 199 ent = (struct id_map_entry *)idr_find(&sriov->pv_id_table, pv_cm_id); in id_map_find_del() 200 if (!ent) in id_map_find_del() [all …]
|
/Linux-v4.19/drivers/infiniband/hw/mlx5/ |
D | mr.c | 86 if (order < cache->ent[0].order) in order2idx() 89 return order - cache->ent[0].order; in order2idx() 132 struct mlx5_cache_ent *ent = &cache->ent[c]; in reg_mr_callback() local 138 spin_lock_irqsave(&ent->lock, flags); in reg_mr_callback() 139 ent->pending--; in reg_mr_callback() 140 spin_unlock_irqrestore(&ent->lock, flags); in reg_mr_callback() 157 spin_lock_irqsave(&ent->lock, flags); in reg_mr_callback() 158 list_add_tail(&mr->list, &ent->head); in reg_mr_callback() 159 ent->cur++; in reg_mr_callback() 160 ent->size++; in reg_mr_callback() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | i2c.c | 75 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-v4.19/drivers/soc/qcom/ |
D | cmd-db.c | 113 rsc_offset(struct rsc_hdr *hdr, struct entry_header *ent) in rsc_offset() argument 116 u16 loffset = le16_to_cpu(ent->offset); in rsc_offset() 141 struct entry_header *ent; in cmd_db_get_header() local 160 ent = rsc_to_entry_header(rsc_hdr); in cmd_db_get_header() 161 for (j = 0; j < le16_to_cpu(rsc_hdr->cnt); j++, ent++) { in cmd_db_get_header() 162 if (memcmp(ent->id, query, sizeof(ent->id)) == 0) in cmd_db_get_header() 167 memcpy(eh, ent, sizeof(*ent)); in cmd_db_get_header() 189 struct entry_header ent; in cmd_db_read_addr() local 192 ret = cmd_db_get_header(id, &ent, &rsc_hdr); in cmd_db_read_addr() 194 return ret < 0 ? 0 : le32_to_cpu(ent.addr); in cmd_db_read_addr() [all …]
|
/Linux-v4.19/init/ |
D | do_mounts_md.c | 59 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-v4.19/tools/iio/ |
D | lsiio.c | 46 const struct dirent *ent; in dump_channels() local 52 while (ent = readdir(dp), ent) in dump_channels() 53 if (check_prefix(ent->d_name, "in_") && in dump_channels() 54 (check_postfix(ent->d_name, "_raw") || in dump_channels() 55 check_postfix(ent->d_name, "_input"))) in dump_channels() 56 printf(" %-10s\n", ent->d_name); in dump_channels() 106 const struct dirent *ent; in dump_devices() local 116 while (ent = readdir(dp), ent) { in dump_devices() 117 if (check_prefix(ent->d_name, type_device)) { in dump_devices() 121 ent->d_name) < 0) { in dump_devices() [all …]
|
D | iio_utils.c | 99 const struct dirent *ent; in iioutils_get_type() local 123 while (ent = readdir(dp), ent) in iioutils_get_type() 124 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_type() 125 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_type() 127 "%s/%s", scan_el_dir, ent->d_name); in iioutils_get_type() 182 if (strcmp(builtname, ent->d_name) == 0) in iioutils_get_type() 228 const struct dirent *ent; in iioutils_get_param_float() local 248 while (ent = readdir(dp), ent) in iioutils_get_param_float() 249 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_param_float() 250 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_param_float() [all …]
|
/Linux-v4.19/security/apparmor/ |
D | policy.c | 711 struct aa_load_ent *ent; in __list_lookup_parent() local 718 list_for_each_entry(ent, lh, list) { in __list_lookup_parent() 719 if (ent->new == profile) in __list_lookup_parent() 721 if (strncmp(ent->new->base.hname, profile->base.hname, len) == in __list_lookup_parent() 722 0 && ent->new->base.hname[len] == 0) in __list_lookup_parent() 723 return ent->new; in __list_lookup_parent() 863 struct aa_load_ent *ent, *tmp; in aa_replace_profiles() local 882 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles() 884 if (ent->ns_name && in aa_replace_profiles() 885 strcmp(ent->ns_name, ns_name) != 0) { in aa_replace_profiles() [all …]
|
/Linux-v4.19/fs/proc/ |
D | generic.c | 379 struct proc_dir_entry *ent = NULL; in __proc_create() local 408 ent = kmem_cache_zalloc(proc_dir_entry_cache, GFP_KERNEL); in __proc_create() 409 if (!ent) in __proc_create() 413 ent->name = ent->inline_name; in __proc_create() 415 ent->name = kmalloc(qstr.len + 1, GFP_KERNEL); in __proc_create() 416 if (!ent->name) { in __proc_create() 417 pde_free(ent); in __proc_create() 422 memcpy(ent->name, fn, qstr.len + 1); in __proc_create() 423 ent->namelen = qstr.len; in __proc_create() 424 ent->mode = mode; in __proc_create() [all …]
|
D | kcore.c | 105 struct kcore_list *ent; in kcore_ram_list() local 107 ent = kmalloc(sizeof(*ent), GFP_KERNEL); in kcore_ram_list() 108 if (!ent) in kcore_ram_list() 110 ent->addr = (unsigned long)__va(0); in kcore_ram_list() 111 ent->size = max_low_pfn << PAGE_SHIFT; in kcore_ram_list() 112 ent->type = KCORE_RAM; in kcore_ram_list() 113 list_add(&ent->list, head); in kcore_ram_list() 122 get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head) in get_sparsemem_vmemmap_info() argument 124 unsigned long pfn = __pa(ent->addr) >> PAGE_SHIFT; in get_sparsemem_vmemmap_info() 125 unsigned long nr_pages = ent->size >> PAGE_SHIFT; in get_sparsemem_vmemmap_info() [all …]
|
/Linux-v4.19/tools/testing/selftests/vm/ |
D | transhuge-stress.c | 25 #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-v4.19/arch/powerpc/sysdev/ |
D | scom.c | 108 struct scom_debug_entry *ent = filp->private_data; in scom_debug_read() local 121 map = scom_map(ent->dn, reg, reg_cnt); in scom_debug_read() 145 struct scom_debug_entry *ent = filp->private_data; in scom_debug_write() local 158 map = scom_map(ent->dn, reg, reg_cnt); in scom_debug_write() 188 struct scom_debug_entry *ent; in scom_debug_init_one() local 191 ent = kzalloc(sizeof(*ent), GFP_KERNEL); in scom_debug_init_one() 192 if (!ent) in scom_debug_init_one() 195 ent->dn = of_node_get(dn); in scom_debug_init_one() 196 snprintf(ent->name, 16, "%08x", i); in scom_debug_init_one() 197 ent->path.data = (void*)kasprintf(GFP_KERNEL, "%pOF", dn); in scom_debug_init_one() [all …]
|
/Linux-v4.19/drivers/bcma/ |
D | scan.c | 159 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-v4.19/fs/ceph/ |
D | cache.c | 70 struct ceph_fscache_entry *ent; in ceph_fscache_register_fs() local 74 list_for_each_entry(ent, &ceph_fscache_list, list) { in ceph_fscache_register_fs() 75 if (memcmp(&ent->fsid, fsid, sizeof(*fsid))) in ceph_fscache_register_fs() 77 if (ent->uniq_len != uniq_len) in ceph_fscache_register_fs() 79 if (uniq_len && memcmp(ent->uniquifier, fscache_uniq, uniq_len)) in ceph_fscache_register_fs() 88 ent = kzalloc(sizeof(*ent) + uniq_len, GFP_KERNEL); in ceph_fscache_register_fs() 89 if (!ent) { in ceph_fscache_register_fs() 94 memcpy(&ent->fsid, fsid, sizeof(*fsid)); in ceph_fscache_register_fs() 96 memcpy(&ent->uniquifier, fscache_uniq, uniq_len); in ceph_fscache_register_fs() 97 ent->uniq_len = uniq_len; in ceph_fscache_register_fs() [all …]
|
/Linux-v4.19/net/netfilter/ |
D | xt_hashlimit.c | 170 static inline bool dst_cmp(const struct dsthash_ent *ent, in dst_cmp() argument 173 return !memcmp(&ent->dst, b, sizeof(ent->dst)); in dst_cmp() 195 struct dsthash_ent *ent; in dsthash_find() local 199 hlist_for_each_entry_rcu(ent, &ht->hash[hash], node) in dsthash_find() 200 if (dst_cmp(ent, dst)) { in dsthash_find() 201 spin_lock(&ent->lock); in dsthash_find() 202 return ent; in dsthash_find() 213 struct dsthash_ent *ent; in dsthash_alloc_init() local 220 ent = dsthash_find(ht, dst); in dsthash_alloc_init() 221 if (ent != NULL) { in dsthash_alloc_init() [all …]
|
/Linux-v4.19/tools/perf/util/ |
D | genelf_debug.c | 295 static ubyte get_special_opcode(struct debug_entry *ent, in get_special_opcode() argument 305 temp = (ent->lineno - last_line) - default_debug_line_header.line_base; in get_special_opcode() 313 delta_addr = (ent->addr - last_vma) / default_debug_line_header.minimum_instruction_length; in get_special_opcode() 330 struct debug_entry *ent, size_t nr_entry, in emit_lineno_info() argument 354 for (i = 0; i < nr_entry; i++, ent = debug_entry_next(ent)) { in emit_lineno_info() 361 if (!cur_filename || strcmp(cur_filename, ent->name)) { in emit_lineno_info() 362 emit_lne_define_filename(be, ent->name); in emit_lineno_info() 363 cur_filename = ent->name; in emit_lineno_info() 368 special_opcode = get_special_opcode(ent, last_line, last_vma); in emit_lineno_info() 370 last_line = ent->lineno; in emit_lineno_info() [all …]
|