/Linux-v5.10/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.10/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.10/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.10/drivers/infiniband/hw/mlx5/ |
D | mr.c | 112 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 …]
|
/Linux-v5.10/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.10/fs/ocfs2/ |
D | filecheck.c | 209 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.10/arch/powerpc/platforms/powernv/ |
D | memtrace.c | 42 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() 191 ent->dir = dir; in memtrace_init_debugfs() 192 debugfs_create_file("trace", 0400, dir, ent, &memtrace_fops); 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.10/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.10/drivers/scsi/ |
D | esp_scsi.c | 190 "ent[%d] %s val[%02x] sreg[%02x] seqreg[%02x] " in esp_dump_cmd_log() 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() [all …]
|
/Linux-v5.10/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.10/Documentation/userspace-api/media/mediactl/ |
D | media-types.rst | 11 .. _MEDIA-ENT-F-UNKNOWN: 12 .. _MEDIA-ENT-F-V4L2-SUBDEV-UNKNOWN: 13 .. _MEDIA-ENT-F-IO-V4L: 14 .. _MEDIA-ENT-F-IO-VBI: 15 .. _MEDIA-ENT-F-IO-SWRADIO: 16 .. _MEDIA-ENT-F-IO-DTV: 17 .. _MEDIA-ENT-F-DTV-DEMOD: 18 .. _MEDIA-ENT-F-TS-DEMUX: 19 .. _MEDIA-ENT-F-DTV-CA: 20 .. _MEDIA-ENT-F-DTV-NET-DECAP: [all …]
|
/Linux-v5.10/drivers/soc/qcom/ |
D | cmd-db.c | 113 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 …]
|
/Linux-v5.10/fs/proc/ |
D | generic.c | 392 struct proc_dir_entry *ent = NULL; in __proc_create() local 421 ent = kmem_cache_zalloc(proc_dir_entry_cache, GFP_KERNEL); in __proc_create() 422 if (!ent) in __proc_create() 426 ent->name = ent->inline_name; in __proc_create() 428 ent->name = kmalloc(qstr.len + 1, GFP_KERNEL); in __proc_create() 429 if (!ent->name) { in __proc_create() 430 pde_free(ent); in __proc_create() 435 memcpy(ent->name, fn, qstr.len + 1); in __proc_create() 436 ent->namelen = qstr.len; in __proc_create() 437 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.10/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.10/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.10/drivers/nvdimm/ |
D | btt.h | 35 #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 61 * | ent[0] | ent[1] | 65 * | ent[2] | ent[3] | 72 * | ent[0] | ent[1] | 76 * | ent[2] | ent[3] | 93 struct log_entry ent[4]; member
|
/Linux-v5.10/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.10/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.10/net/netfilter/ |
D | xt_hashlimit.c | 177 static inline bool dst_cmp(const struct dsthash_ent *ent, in dst_cmp() argument 180 return !memcmp(&ent->dst, b, sizeof(ent->dst)); in dst_cmp() 202 struct dsthash_ent *ent; in dsthash_find() local 206 hlist_for_each_entry_rcu(ent, &ht->hash[hash], node) in dsthash_find() 207 if (dst_cmp(ent, dst)) { in dsthash_find() 208 spin_lock(&ent->lock); in dsthash_find() 209 return ent; in dsthash_find() 220 struct dsthash_ent *ent; in dsthash_alloc_init() local 227 ent = dsthash_find(ht, dst); in dsthash_alloc_init() 228 if (ent != NULL) { in dsthash_alloc_init() [all …]
|
/Linux-v5.10/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 878 * fail. Sort ent list and take ns locks in hierarchy order in aa_replace_profiles() 881 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles() 883 if (ent->ns_name && in aa_replace_profiles() [all …]
|
/Linux-v5.10/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-v5.10/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 …]
|