/linux/drivers/nubus/ |
H A 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 …]
|
H A 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/fs/nfsd/ |
H A 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/drivers/scsi/qla2xxx/ |
H A 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/arch/powerpc/platforms/powernv/ |
H A 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() 171 struct memtrace_entry *ent = &memtrace_array[i]; in memtrace_init_regions_runtime() 173 ent->mem = ioremap(ent in memtrace_init_regions_runtime() 190 struct memtrace_entry *ent = &memtrace_array[i]; memtrace_init_debugfs() local 239 struct memtrace_entry *ent; memtrace_free_regions() local [all...] |
H A 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/drivers/net/ethernet/mellanox/mlx5/core/ |
H A 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/lib/ |
H A 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/fs/ocfs2/ |
H A 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/drivers/infiniband/hw/mlx5/ |
H A 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/drivers/scsi/ |
H A 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/drivers/soc/qcom/ |
H A 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/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A 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/tools/iio/ |
H A 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 …]
|
H A 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/fs/proc/ |
H A D | generic.c | 398 struct proc_dir_entry *ent = NULL; in __proc_create() local 427 ent = kmem_cache_zalloc(proc_dir_entry_cache, GFP_KERNEL); in __proc_create() 428 if (!ent) in __proc_create() 432 ent->name = ent->inline_name; in __proc_create() 434 ent->name = kmalloc(qstr.len + 1, GFP_KERNEL); in __proc_create() 435 if (!ent->name) { in __proc_create() 436 pde_free(ent); in __proc_create() 441 memcpy(ent->name, fn, qstr.len + 1); in __proc_create() 442 ent->namelen = qstr.len; in __proc_create() 443 ent->mode = mode; in __proc_create() [all …]
|
H A D | kcore.c | 144 struct kcore_list *ent; in kcore_ram_list() local 146 ent = kmalloc(sizeof(*ent), GFP_KERNEL); in kcore_ram_list() 147 if (!ent) in kcore_ram_list() 149 ent->addr = (unsigned long)__va(0); in kcore_ram_list() 150 ent->size = max_low_pfn << PAGE_SHIFT; in kcore_ram_list() 151 ent->type = KCORE_RAM; in kcore_ram_list() 152 list_add(&ent->list, head); in kcore_ram_list() 161 get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head) in get_sparsemem_vmemmap_info() argument 163 unsigned long pfn = __pa(ent->addr) >> PAGE_SHIFT; in get_sparsemem_vmemmap_info() 164 unsigned long nr_pages = ent->size >> PAGE_SHIFT; in get_sparsemem_vmemmap_info() [all …]
|
/linux/drivers/infiniband/hw/mlx4/ |
H A 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/drivers/media/pci/intel/ipu6/ |
H A D | ipu6-cpd.c | 55 const struct ipu6_cpd_ent *ent; in ipu6_cpd_get_entry() local 57 ent = (const struct ipu6_cpd_ent *)((const u8 *)cpd + cpd_hdr->hdr_len); in ipu6_cpd_get_entry() 58 return ent + idx; in ipu6_cpd_get_entry() 165 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/drivers/bcma/ |
H A 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/drivers/nvdimm/ |
H A 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/net/ |
H A 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/tools/perf/util/ |
H A D | genelf_debug.c | 300 static ubyte get_special_opcode(struct debug_entry *ent, in get_special_opcode() argument 310 temp = (ent->lineno - last_line) - default_debug_line_header.line_base; in get_special_opcode() 318 delta_addr = (ent->addr - last_vma) / default_debug_line_header.minimum_instruction_length; in get_special_opcode() 335 struct debug_entry *ent, size_t nr_entry, in emit_lineno_info() argument 362 for (i = 0; i < nr_entry; i++, ent = debug_entry_next(ent)) { in emit_lineno_info() 369 if ((!cur_filename || strcmp(cur_filename, ent->name)) && in emit_lineno_info() 370 strcmp(repeated_name_marker, ent->name)) { in emit_lineno_info() 371 emit_lne_define_filename(be, ent->name); in emit_lineno_info() 372 cur_filename = ent->name; in emit_lineno_info() 377 special_opcode = get_special_opcode(ent, last_line, last_vma); in emit_lineno_info() [all …]
|
/linux/drivers/media/test-drivers/vimc/ |
H A 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 …]
|
/linux/drivers/w1/ |
H A D | w1_family.c | 23 struct list_head *ent, *n; in w1_register_family() local 28 list_for_each_safe(ent, n, &w1_families) { in w1_register_family() 29 f = list_entry(ent, struct w1_family, family_entry); in w1_register_family() 56 struct list_head *ent, *n; in w1_unregister_family() local 60 list_for_each_safe(ent, n, &w1_families) { in w1_unregister_family() 61 f = list_entry(ent, struct w1_family, family_entry); in w1_unregister_family() 88 struct list_head *ent, *n; in w1_family_registered() local 92 list_for_each_safe(ent, n, &w1_families) { in w1_family_registered() 93 f = list_entry(ent, struct w1_family, family_entry); in w1_family_registered()
|