/Linux-v5.15/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-v5.15/fs/nfsd/ |
D | nfs4idmap.c | 62 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 …]
|
/Linux-v5.15/drivers/scsi/qla2xxx/ |
D | qla_tmpl.c | 123 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.15/arch/powerpc/platforms/powernv/ |
D | memtrace.c | 43 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() 50 struct memtrace_entry *ent = filp->private_data; in memtrace_mmap() local 52 if (ent->size < vma->vm_end - vma->vm_start) in memtrace_mmap() 55 if (vma->vm_pgoff << PAGE_SHIFT >= ent->size) in memtrace_mmap() 59 return remap_pfn_range(vma, vma->vm_start, PHYS_PFN(ent->start) + vma->vm_pgoff, in memtrace_mmap() 190 struct memtrace_entry *ent = &memtrace_array[i]; in memtrace_init_debugfs() local 192 ent->mem = ioremap(ent->start, ent->size); in memtrace_init_debugfs() 194 if (!ent->mem) { in memtrace_init_debugfs() 196 ent->start); in memtrace_init_debugfs() [all …]
|
D | opal-xscom.c | 90 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.15/drivers/net/ethernet/mellanox/mlx5/core/ |
D | cmd.c | 78 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 …]
|
/Linux-v5.15/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-v5.15/fs/ocfs2/ |
D | filecheck.c | 207 ocfs2_filecheck_erase_entries(struct ocfs2_filecheck_sysfs_entry *ent, 210 ocfs2_filecheck_adjust_max(struct ocfs2_filecheck_sysfs_entry *ent, in ocfs2_filecheck_adjust_max() argument 218 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max() 219 if (len < (ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done)) { in ocfs2_filecheck_adjust_max() 223 len, ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done); in ocfs2_filecheck_adjust_max() 226 if (len < ent->fs_fcheck->fc_size) in ocfs2_filecheck_adjust_max() 227 BUG_ON(!ocfs2_filecheck_erase_entries(ent, in ocfs2_filecheck_adjust_max() 228 ent->fs_fcheck->fc_size - len)); in ocfs2_filecheck_adjust_max() 230 ent->fs_fcheck->fc_max = len; in ocfs2_filecheck_adjust_max() 233 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max() [all …]
|
/Linux-v5.15/drivers/scsi/ |
D | esp_scsi.c | 404 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 …]
|
/Linux-v5.15/drivers/infiniband/hw/mlx5/ |
D | mr.c | 125 static void queue_adjust_cache_locked(struct mlx5_cache_ent *ent); 143 struct mlx5_cache_ent *ent = mr->cache_ent; in create_mkey_callback() local 144 struct mlx5_ib_dev *dev = ent->dev; in create_mkey_callback() 150 spin_lock_irqsave(&ent->lock, flags); in create_mkey_callback() 151 ent->pending--; in create_mkey_callback() 153 spin_unlock_irqrestore(&ent->lock, flags); in create_mkey_callback() 165 spin_lock_irqsave(&ent->lock, flags); in create_mkey_callback() 166 list_add_tail(&mr->list, &ent->head); in create_mkey_callback() 167 ent->available_mrs++; in create_mkey_callback() 168 ent->total_mrs++; in create_mkey_callback() [all …]
|
/Linux-v5.15/drivers/soc/qcom/ |
D | cmd-db.c | 114 rsc_offset(const struct rsc_hdr *hdr, const struct entry_header *ent) in rsc_offset() argument 117 u16 loffset = le16_to_cpu(ent->offset); in rsc_offset() 142 const struct entry_header *ent; in cmd_db_get_header() local 158 ent = rsc_to_entry_header(rsc_hdr); in cmd_db_get_header() 159 for (j = 0; j < le16_to_cpu(rsc_hdr->cnt); j++, ent++) { in cmd_db_get_header() 160 if (memcmp(ent->id, query, sizeof(ent->id)) == 0) { in cmd_db_get_header() 162 *eh = ent; in cmd_db_get_header() 186 const struct entry_header *ent; in cmd_db_read_addr() local 188 ret = cmd_db_get_header(id, &ent, NULL); in cmd_db_read_addr() 190 return ret < 0 ? 0 : le32_to_cpu(ent->addr); in cmd_db_read_addr() [all …]
|
/Linux-v5.15/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-v5.15/tools/iio/ |
D | lsiio.c | 43 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 …]
|
/Linux-v5.15/fs/ceph/ |
D | cache.c | 58 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 …]
|
/Linux-v5.15/security/apparmor/ |
D | policy.c | 710 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 …]
|
/Linux-v5.15/fs/proc/ |
D | generic.c | 397 struct proc_dir_entry *ent = NULL; in __proc_create() local 426 ent = kmem_cache_zalloc(proc_dir_entry_cache, GFP_KERNEL); in __proc_create() 427 if (!ent) in __proc_create() 431 ent->name = ent->inline_name; in __proc_create() 433 ent->name = kmalloc(qstr.len + 1, GFP_KERNEL); in __proc_create() 434 if (!ent->name) { in __proc_create() 435 pde_free(ent); in __proc_create() 440 memcpy(ent->name, fn, qstr.len + 1); in __proc_create() 441 ent->namelen = qstr.len; in __proc_create() 442 ent->mode = mode; in __proc_create() [all …]
|
D | kcore.c | 128 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.15/drivers/infiniband/hw/mlx4/ |
D | cm.c | 179 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 …]
|
/Linux-v5.15/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-v5.15/drivers/md/ |
D | md-autodetect.c | 65 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 …]
|
/Linux-v5.15/net/ |
D | sysctl_net.c | 127 struct ctl_table *ent; in ensure_safe_net_sysctl() local 130 for (ent = table; ent->procname; ent++) { in ensure_safe_net_sysctl() 135 ent->procname, ent->mode, ent->proc_handler, ent->data); in ensure_safe_net_sysctl() 138 if ((ent->mode & 0222) == 0) { in ensure_safe_net_sysctl() 144 addr = (unsigned long)ent->data; in ensure_safe_net_sysctl() 156 path, ent->procname, where, ent->data); in ensure_safe_net_sysctl() 159 ent->mode &= ~0222; in ensure_safe_net_sysctl()
|
/Linux-v5.15/drivers/bcma/ |
D | scan.c | 158 u32 ent = readl(*eromptr); in bcma_erom_get_ent() local 160 return ent; in bcma_erom_get_ent() 170 u32 ent = bcma_erom_get_ent(bus, eromptr); in bcma_erom_get_ci() local 171 if (!(ent & SCAN_ER_VALID)) in bcma_erom_get_ci() 173 if ((ent & SCAN_ER_TAG) != SCAN_ER_TAG_CI) in bcma_erom_get_ci() 175 return ent; in bcma_erom_get_ci() 180 u32 ent = bcma_erom_get_ent(bus, eromptr); in bcma_erom_is_end() local 182 return (ent == (SCAN_ER_TAG_END | SCAN_ER_VALID)); in bcma_erom_is_end() 187 u32 ent = bcma_erom_get_ent(bus, eromptr); in bcma_erom_is_bridge() local 189 return (((ent & SCAN_ER_VALID)) && in bcma_erom_is_bridge() [all …]
|
/Linux-v5.15/drivers/nvdimm/ |
D | btt.h | 34 #define ent_lba(ent) (ent & MAP_LBA_MASK) argument 35 #define ent_e_flag(ent) (!!(ent & MAP_ERR_MASK)) argument 36 #define ent_z_flag(ent) (!!(ent & MAP_TRIM_MASK)) argument 37 #define set_e_flag(ent) (ent |= MAP_ERR_MASK) argument 39 #define ent_normal(ent) (ent_e_flag(ent) && ent_z_flag(ent)) argument 92 struct log_entry ent[4]; member
|
/Linux-v5.15/drivers/media/test-drivers/vimc/ |
D | vimc-streamer.c | 25 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 …]
|