| /OK3568_Linux_fs/kernel/drivers/nubus/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/fs/nfsd/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4/ |
| H A D | docbook-xml-update-catalog.xml.patch | 198 - uri="ent/iso-dia.ent"/> 201 - uri="ent/iso-num.ent"/> 204 - uri="ent/iso-pub.ent"/> 207 - uri="ent/iso-tech.ent"/> 210 - uri="ent/iso-lat1.ent"/> 213 - uri="ent/iso-lat2.ent"/> 216 - uri="ent/iso-grk1.ent"/> 219 - uri="ent/iso-grk2.ent"/> 222 - uri="ent/iso-grk3.ent"/> 225 - uri="ent/iso-grk4.ent"/> [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/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() 200 struct memtrace_entry *ent = &memtrace_array[i]; in memtrace_init_debugfs() local 202 ent->mem = ioremap(ent->start, ent->size); in memtrace_init_debugfs() 204 if (!ent->mem) { in memtrace_init_debugfs() 206 ent->start); in memtrace_init_debugfs() 211 snprintf(ent->name, 16, "%08x", ent->nid); in memtrace_init_debugfs() 212 dir = debugfs_create_dir(ent->name, memtrace_debugfs_dir); in memtrace_init_debugfs() 214 ent->dir = dir; in memtrace_init_debugfs() 215 debugfs_create_file("trace", 0400, dir, ent, &memtrace_fops); in memtrace_init_debugfs() [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 …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/mlx5/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/fs/ocfs2/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/drivers/soc/qcom/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bs/core/ |
| H A D | rtw_rf.c | 690 const struct country_chplan *ent = NULL; in rtw_def_module_get_chplan_from_country() local 733 ent = &hal_map[i]; in rtw_def_module_get_chplan_from_country() 739 return ent; in rtw_def_module_get_chplan_from_country() 984 const struct country_chplan *ent = NULL; in rtw_get_chplan_from_country() local 994 ent = rtw_def_module_get_chplan_from_country(code); in rtw_get_chplan_from_country() 995 if (ent != NULL) in rtw_get_chplan_from_country() 1009 ent = &map[i]; in rtw_get_chplan_from_country() 1016 if (ent && !(COUNTRY_CHPLAN_DEF_MODULE_FALGS(ent) & RTW_DEF_MODULE_REGULATORY_CERT)) in rtw_get_chplan_from_country() 1017 ent = NULL; in rtw_get_chplan_from_country() 1020 return ent; in rtw_get_chplan_from_country() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188fu/core/ |
| H A D | rtw_rf.c | 584 struct regd_exc_ent *ent; in _dump_regd_exc_list() local 600 ent = LIST_CONTAINOR(cur, struct regd_exc_ent, list); in _dump_regd_exc_list() 602 has_country = (ent->country[0] == '\0' && ent->country[1] == '\0') ? 0 : 1; in _dump_regd_exc_list() 605 , has_country ? ent->country[0] : '0' in _dump_regd_exc_list() 606 , has_country ? ent->country[1] : '0' in _dump_regd_exc_list() 607 , ent->domain in _dump_regd_exc_list() 608 , ent->regd_name in _dump_regd_exc_list() 627 struct regd_exc_ent *ent; in rtw_regd_exc_add_with_nlen() local 635 ent = (struct regd_exc_ent *)rtw_zmalloc(sizeof(struct regd_exc_ent) + nlen + 1); in rtw_regd_exc_add_with_nlen() 636 if (!ent) in rtw_regd_exc_add_with_nlen() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189fs/core/ |
| H A D | rtw_rf.c | 583 struct regd_exc_ent *ent; in _dump_regd_exc_list() local 599 ent = LIST_CONTAINOR(cur, struct regd_exc_ent, list); in _dump_regd_exc_list() 601 has_country = (ent->country[0] == '\0' && ent->country[1] == '\0') ? 0 : 1; in _dump_regd_exc_list() 604 , has_country ? ent->country[0] : '0' in _dump_regd_exc_list() 605 , has_country ? ent->country[1] : '0' in _dump_regd_exc_list() 606 , ent->domain in _dump_regd_exc_list() 607 , ent->regd_name in _dump_regd_exc_list() 626 struct regd_exc_ent *ent; in rtw_regd_exc_add_with_nlen() local 634 ent = (struct regd_exc_ent *)rtw_zmalloc(sizeof(struct regd_exc_ent) + nlen + 1); in rtw_regd_exc_add_with_nlen() 635 if (!ent) in rtw_regd_exc_add_with_nlen() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188eu/core/ |
| H A D | rtw_rf.c | 584 struct regd_exc_ent *ent; in _dump_regd_exc_list() local 600 ent = LIST_CONTAINOR(cur, struct regd_exc_ent, list); in _dump_regd_exc_list() 602 has_country = (ent->country[0] == '\0' && ent->country[1] == '\0') ? 0 : 1; in _dump_regd_exc_list() 605 , has_country ? ent->country[0] : '0' in _dump_regd_exc_list() 606 , has_country ? ent->country[1] : '0' in _dump_regd_exc_list() 607 , ent->domain in _dump_regd_exc_list() 608 , ent->regd_name in _dump_regd_exc_list() 627 struct regd_exc_ent *ent; in rtw_regd_exc_add_with_nlen() local 635 ent = (struct regd_exc_ent *)rtw_zmalloc(sizeof(struct regd_exc_ent) + nlen + 1); in rtw_regd_exc_add_with_nlen() 636 if (!ent) in rtw_regd_exc_add_with_nlen() [all …]
|
| /OK3568_Linux_fs/kernel/security/apparmor/ |
| H A 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 …]
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/squashfs-tools/squashfs-tools/ |
| H A D | CVE-2021-41072-requisite-3.patch | 35 + struct dir_ent *ent, *cur_ent = NULL; 60 + ent = malloc(sizeof(struct dir_ent)); 61 + if(ent == NULL) 69 + ent->name = strdup(dire->name); 70 + ent->start_block = dirh.start_block; 71 + ent->offset = dire->offset; 72 + ent->type = dire->type; 73 + ent->next = NULL; 75 + dir->dirs = ent; 77 + cur_ent->next = ent; [all …]
|
| /OK3568_Linux_fs/kernel/fs/proc/ |
| H A D | generic.c | 402 struct proc_dir_entry *ent = NULL; in __proc_create() local 431 ent = kmem_cache_zalloc(proc_dir_entry_cache, GFP_KERNEL); in __proc_create() 432 if (!ent) in __proc_create() 436 ent->name = ent->inline_name; in __proc_create() 438 ent->name = kmalloc(qstr.len + 1, GFP_KERNEL); in __proc_create() 439 if (!ent->name) { in __proc_create() 440 pde_free(ent); in __proc_create() 445 memcpy(ent->name, fn, qstr.len + 1); in __proc_create() 446 ent->namelen = qstr.len; in __proc_create() 447 ent->mode = mode; in __proc_create() [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/mlx4/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/core/ |
| H A D | rtw_rf.c | 850 struct regd_exc_ent *ent; in _dump_regd_exc_list() local 866 ent = LIST_CONTAINOR(cur, struct regd_exc_ent, list); in _dump_regd_exc_list() 868 has_country = (ent->country[0] == '\0' && ent->country[1] == '\0') ? 0 : 1; in _dump_regd_exc_list() 871 , has_country ? ent->country[0] : '0' in _dump_regd_exc_list() 872 , has_country ? ent->country[1] : '0' in _dump_regd_exc_list() 873 , ent->domain in _dump_regd_exc_list() 874 , ent->regd_name in _dump_regd_exc_list() 893 struct regd_exc_ent *ent; in rtw_regd_exc_add_with_nlen() local 901 ent = (struct regd_exc_ent *)rtw_zmalloc(sizeof(struct regd_exc_ent) + nlen + 1); in rtw_regd_exc_add_with_nlen() 902 if (!ent) in rtw_regd_exc_add_with_nlen() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/md/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/vm/ |
| H A 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()
|