/linux-6.12.1/drivers/nubus/ |
D | nubus.c | 249 struct nubus_dirent ent; in nubus_get_board_dir() local 257 if (nubus_readdir(dir, &ent) == -1) in nubus_get_board_dir() 259 if (nubus_get_subdir(&ent, dir) == -1) in nubus_get_board_dir() 265 int nubus_get_subdir(const struct nubus_dirent *ent, in nubus_get_subdir() argument 268 dir->ptr = dir->base = nubus_dirptr(ent); in nubus_get_subdir() 270 dir->mask = ent->mask; in nubus_get_subdir() 275 int nubus_readdir(struct nubus_dir *nd, struct nubus_dirent *ent) in nubus_readdir() argument 283 ent->base = nd->ptr; in nubus_readdir() 296 ent->type = resid >> 24; in nubus_readdir() 298 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() 122 struct nubus_dirent ent; in nubus_proc_rsrc_show() local 127 ent.mask = lanes; in nubus_proc_rsrc_show() 128 ent.base = pded->res_ptr; in nubus_proc_rsrc_show() 129 ent.data = 0; in nubus_proc_rsrc_show() 130 nubus_seq_write_rsrc_mem(m, &ent, pded->res_size); in nubus_proc_rsrc_show() 154 const struct nubus_dirent *ent, in nubus_proc_add_rsrc_mem() argument 163 snprintf(name, sizeof(name), "%x", ent->type); in nubus_proc_add_rsrc_mem() 165 pded = nubus_proc_alloc_pde_data(nubus_dirptr(ent), size); in nubus_proc_add_rsrc_mem() [all …]
|
/linux-6.12.1/fs/nfsd/ |
D | nfs4idmap.c | 63 struct ent { struct 80 struct ent *new = container_of(cnew, struct ent, h); in ent_init() argument 81 struct ent *itm = container_of(citm, struct ent, h); in ent_init() 93 struct ent *map = container_of(ref, struct ent, h.ref); in ent_put() 100 struct ent *e = kmalloc(sizeof(*e), GFP_KERNEL); in ent_alloc() 112 idtoname_hash(struct ent *ent) in idtoname_hash() argument 116 hash = hash_str(ent->authname, ENT_HASHBITS); in idtoname_hash() 117 hash = hash_long(hash ^ ent->id, ENT_HASHBITS); in idtoname_hash() 120 if (ent->type == IDMAP_TYPE_GROUP) in idtoname_hash() 136 struct ent *ent = container_of(ch, struct ent, h); in idtoname_request() local [all …]
|
/linux-6.12.1/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-6.12.1/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-6.12.1/lib/ |
D | error-inject.c | 26 struct ei_entry *ent; in within_error_injection_list() local 30 list_for_each_entry(ent, &error_injection_list, list) { in within_error_injection_list() 31 if (addr >= ent->start_addr && addr < ent->end_addr) { in within_error_injection_list() 42 struct ei_entry *ent; in get_injectable_error_type() local 46 list_for_each_entry(ent, &error_injection_list, list) { in get_injectable_error_type() 47 if (addr >= ent->start_addr && addr < ent->end_addr) { in get_injectable_error_type() 48 ei_type = ent->etype; in get_injectable_error_type() 69 struct ei_entry *ent; in populate_error_injection_list() local 83 ent = kmalloc(sizeof(*ent), GFP_KERNEL); in populate_error_injection_list() 84 if (!ent) in populate_error_injection_list() [all …]
|
/linux-6.12.1/fs/ocfs2/ |
D | filecheck.c | 208 ocfs2_filecheck_erase_entries(struct ocfs2_filecheck_sysfs_entry *ent, 211 ocfs2_filecheck_adjust_max(struct ocfs2_filecheck_sysfs_entry *ent, in ocfs2_filecheck_adjust_max() argument 219 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max() 220 if (len < (ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done)) { in ocfs2_filecheck_adjust_max() 224 len, ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done); in ocfs2_filecheck_adjust_max() 227 if (len < ent->fs_fcheck->fc_size) in ocfs2_filecheck_adjust_max() 228 BUG_ON(!ocfs2_filecheck_erase_entries(ent, in ocfs2_filecheck_adjust_max() 229 ent->fs_fcheck->fc_size - len)); in ocfs2_filecheck_adjust_max() 231 ent->fs_fcheck->fc_max = len; in ocfs2_filecheck_adjust_max() 234 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max() [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | cmd.c | 119 struct mlx5_cmd_work_ent *ent; in cmd_alloc_ent() local 121 ent = kzalloc(sizeof(*ent), alloc_flags); in cmd_alloc_ent() 122 if (!ent) in cmd_alloc_ent() 125 ent->idx = -EINVAL; in cmd_alloc_ent() 126 ent->in = in; in cmd_alloc_ent() 127 ent->out = out; in cmd_alloc_ent() 128 ent->uout = uout; in cmd_alloc_ent() 129 ent->uout_size = uout_size; in cmd_alloc_ent() 130 ent->callback = cbk; in cmd_alloc_ent() 131 ent->context = context; in cmd_alloc_ent() [all …]
|
/linux-6.12.1/drivers/infiniband/hw/mlx5/ |
D | mr.c | 115 struct mlx5_ib_dev *dev = async_create->ent->dev; in mlx5_ib_create_mkey_cb() 128 static void queue_adjust_cache_locked(struct mlx5_cache_ent *ent); 150 static int push_mkey_locked(struct mlx5_cache_ent *ent, u32 mkey) in push_mkey_locked() argument 152 unsigned long tmp = ent->mkeys_queue.ci % NUM_MKEYS_PER_PAGE; in push_mkey_locked() 155 lockdep_assert_held(&ent->mkeys_queue.lock); in push_mkey_locked() 156 if (ent->mkeys_queue.ci >= in push_mkey_locked() 157 ent->mkeys_queue.num_pages * NUM_MKEYS_PER_PAGE) { in push_mkey_locked() 161 ent->mkeys_queue.num_pages++; in push_mkey_locked() 162 list_add_tail(&page->list, &ent->mkeys_queue.pages_list); in push_mkey_locked() 164 page = list_last_entry(&ent->mkeys_queue.pages_list, in push_mkey_locked() [all …]
|
/linux-6.12.1/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-6.12.1/drivers/soc/qcom/ |
D | cmd-db.c | 120 rsc_offset(const struct rsc_hdr *hdr, const struct entry_header *ent) in rsc_offset() argument 123 u16 loffset = le16_to_cpu(ent->offset); in rsc_offset() 148 const struct entry_header *ent; in cmd_db_get_header() local 150 u8 query[sizeof(ent->id)] __nonstring; in cmd_db_get_header() 163 ent = rsc_to_entry_header(rsc_hdr); in cmd_db_get_header() 164 for (j = 0; j < le16_to_cpu(rsc_hdr->cnt); j++, ent++) { in cmd_db_get_header() 165 if (memcmp(ent->id, query, sizeof(ent->id)) == 0) { in cmd_db_get_header() 167 *eh = ent; in cmd_db_get_header() 191 const struct entry_header *ent; in cmd_db_read_addr() local 193 ret = cmd_db_get_header(id, &ent, NULL); in cmd_db_read_addr() [all …]
|
/linux-6.12.1/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-6.12.1/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 …]
|
D | iio_utils.c | 98 const struct dirent *ent; in iioutils_get_type() local 122 while (ent = readdir(dp), ent) in iioutils_get_type() 123 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_type() 124 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_type() 126 "%s/%s", scan_el_dir, ent->d_name); in iioutils_get_type() 181 if (strcmp(builtname, ent->d_name) == 0) in iioutils_get_type() 227 const struct dirent *ent; in iioutils_get_param_float() local 247 while (ent = readdir(dp), ent) in iioutils_get_param_float() 248 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_param_float() 249 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_param_float() [all …]
|
/linux-6.12.1/fs/proc/ |
D | generic.c | 396 struct proc_dir_entry *ent = NULL; in __proc_create() local 425 ent = kmem_cache_zalloc(proc_dir_entry_cache, GFP_KERNEL); in __proc_create() 426 if (!ent) in __proc_create() 430 ent->name = ent->inline_name; in __proc_create() 432 ent->name = kmalloc(qstr.len + 1, GFP_KERNEL); in __proc_create() 433 if (!ent->name) { in __proc_create() 434 pde_free(ent); in __proc_create() 439 memcpy(ent->name, fn, qstr.len + 1); in __proc_create() 440 ent->namelen = qstr.len; in __proc_create() 441 ent->mode = mode; in __proc_create() [all …]
|
/linux-6.12.1/drivers/md/ |
D | md-autodetect.c | 64 int ent; in md_setup() local 75 for (ent=0 ; ent< md_setup_ents ; ent++) in md_setup() 76 if (md_setup_args[ent].minor == minor && in md_setup() 77 md_setup_args[ent].partitioned == partitioned) { in md_setup() 82 if (ent >= ARRAY_SIZE(md_setup_args)) { in md_setup() 86 if (ent >= md_setup_ents) in md_setup() 96 md_setup_args[ent].level = level; in md_setup() 97 md_setup_args[ent].chunk = 1 << (factor+12); in md_setup() 106 md_setup_args[ent].level = LEVEL_NONE; in md_setup() 112 md_setup_args[ent].device_names = str; in md_setup() [all …]
|
/linux-6.12.1/drivers/infiniband/hw/mlx4/ |
D | cm.c | 180 struct id_map_entry *ent = container_of(delay, struct id_map_entry, timeout); in id_map_ent_timeout() local 182 struct mlx4_ib_dev *dev = ent->dev; in id_map_ent_timeout() 187 if (!xa_erase(&sriov->pv_id_table, ent->pv_cm_id)) in id_map_ent_timeout() 189 found_ent = id_map_find_by_sl_id(&dev->ib_dev, ent->slave_id, ent->sl_cm_id); in id_map_ent_timeout() 190 if (found_ent && found_ent == ent) in id_map_ent_timeout() 194 list_del(&ent->list); in id_map_ent_timeout() 196 kfree(ent); in id_map_ent_timeout() 203 struct id_map_entry *ent; in sl_id_map_add() local 207 ent = id_map_find_by_sl_id(ibdev, slave_id, sl_cm_id); in sl_id_map_add() 208 if (ent) { in sl_id_map_add() [all …]
|
/linux-6.12.1/drivers/media/pci/intel/ipu6/ |
D | ipu6-cpd.c | 54 const struct ipu6_cpd_ent *ent; in ipu6_cpd_get_entry() local 56 ent = (const struct ipu6_cpd_ent *)((const u8 *)cpd + cpd_hdr->hdr_len); in ipu6_cpd_get_entry() 57 return ent + idx; in ipu6_cpd_get_entry() 164 const struct ipu6_cpd_ent *ent, *man_ent, *met_ent; in ipu6_cpd_create_pkg_dir() local 193 ent = ipu6_cpd_get_moduledata(src); in ipu6_cpd_create_pkg_dir() 195 ret = ipu6_cpd_parse_module_data(isp, src + ent->offset, in ipu6_cpd_create_pkg_dir() 196 ent->len, dma_addr_src + ent->offset, in ipu6_cpd_create_pkg_dir() 233 const struct ipu6_cpd_ent *ent; in ipu6_cpd_validate_cpd() local 246 if ((cpd_size - len) / sizeof(*ent) < cpd_hdr->ent_cnt) { in ipu6_cpd_validate_cpd() 252 ent = (const struct ipu6_cpd_ent *)(((const u8 *)cpd_hdr) + len); in ipu6_cpd_validate_cpd() [all …]
|
/linux-6.12.1/security/apparmor/ |
D | policy.c | 911 struct aa_load_ent *ent; in __list_lookup_parent() local 918 list_for_each_entry(ent, lh, list) { in __list_lookup_parent() 919 if (ent->new == profile) in __list_lookup_parent() 921 if (strncmp(ent->new->base.hname, profile->base.hname, len) == in __list_lookup_parent() 922 0 && ent->new->base.hname[len] == 0) in __list_lookup_parent() 923 return ent->new; in __list_lookup_parent() 1062 struct aa_load_ent *ent, *tmp; in aa_replace_profiles() local 1081 list_for_each_entry(ent, &lh, list) { in aa_replace_profiles() 1083 if (ent->ns_name && in aa_replace_profiles() 1084 strcmp(ent->ns_name, ns_name) != 0) { in aa_replace_profiles() [all …]
|
/linux-6.12.1/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-6.12.1/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-6.12.1/net/ |
D | sysctl_net.c | 126 struct ctl_table *ent; in ensure_safe_net_sysctl() local 129 ent = table; in ensure_safe_net_sysctl() 130 for (size_t i = 0; i < table_size; ent++, i++) { 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-6.12.1/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-6.12.1/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_pad_remote_pad_first(&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 …]
|