| /freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| D | dsl_scan.c | 122 static void scan_ds_queue_clear(dsl_scan_t *scn); 123 static boolean_t scan_ds_queue_contains(dsl_scan_t *scn, uint64_t dsobj, 125 static void scan_ds_queue_insert(dsl_scan_t *scn, uint64_t dsobj, uint64_t txg); 126 static void scan_ds_queue_remove(dsl_scan_t *scn, uint64_t dsobj); 127 static void scan_ds_queue_sync(dsl_scan_t *scn, dmu_tx_t *tx); 223 #define DSL_SCAN_IS_SCRUB_RESILVER(scn) \ argument 224 ((scn)->scn_phys.scn_func == POOL_SCAN_SCRUB || \ 225 (scn)->scn_phys.scn_func == POOL_SCAN_RESILVER) 335 static void scan_io_queues_destroy(dsl_scan_t *scn); 363 dsl_scan_is_running(const dsl_scan_t *scn) in dsl_scan_is_running() argument [all …]
|
| /freebsd-12-stable/contrib/elftoolchain/libelf/ |
| D | libelf_extended.c | 51 Elf_Scn *scn; in _libelf_setshnum() local 54 if ((scn = _libelf_getscn0(e)) == NULL) in _libelf_setshnum() 57 assert(scn->s_ndx == SHN_UNDEF); in _libelf_setshnum() 60 scn->s_shdr.s_shdr32.sh_size = (Elf32_Word) shnum; in _libelf_setshnum() 62 scn->s_shdr.s_shdr64.sh_size = shnum; in _libelf_setshnum() 64 (void) elf_flagshdr(scn, ELF_C_SET, ELF_F_DIRTY); in _libelf_setshnum() 81 Elf_Scn *scn; in _libelf_setshstrndx() local 84 if ((scn = _libelf_getscn0(e)) == NULL) in _libelf_setshstrndx() 87 assert(scn->s_ndx == SHN_UNDEF); in _libelf_setshstrndx() 90 scn->s_shdr.s_shdr32.sh_link = (Elf32_Word) shstrndx; in _libelf_setshstrndx() [all …]
|
| D | elf_scn.c | 60 Elf_Scn *scn; in _libelf_load_section_headers() local 121 if ((scn = _libelf_allocate_scn(e, i)) == NULL) in _libelf_load_section_headers() 124 (*xlator)((unsigned char *) &scn->s_shdr, sizeof(scn->s_shdr), in _libelf_load_section_headers() 128 scn->s_offset = scn->s_rawoff = in _libelf_load_section_headers() 129 scn->s_shdr.s_shdr32.sh_offset; in _libelf_load_section_headers() 130 scn->s_size = scn->s_shdr.s_shdr32.sh_size; in _libelf_load_section_headers() 132 scn->s_offset = scn->s_rawoff = in _libelf_load_section_headers() 133 scn->s_shdr.s_shdr64.sh_offset; in _libelf_load_section_headers() 134 scn->s_size = scn->s_shdr.s_shdr64.sh_size; in _libelf_load_section_headers() 194 Elf_Scn *scn; in elf_newscn() local [all …]
|
| D | gelf_symshndx.c | 41 Elf_Scn *scn; in gelf_getsymshndx() local 51 if (lid == NULL || (scn = lid->d_scn) == NULL || in gelf_getsymshndx() 52 (e = scn->s_elf) == NULL || (e != ld->d_scn->s_elf) || in gelf_getsymshndx() 62 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getsymshndx() 64 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getsymshndx() 94 Elf_Scn *scn; in gelf_update_symshndx() local 104 if (lid == NULL || (scn = lid->d_scn) == NULL || in gelf_update_symshndx() 105 (e = scn->s_elf) == NULL || (e != ld->d_scn->s_elf)) { in gelf_update_symshndx() 114 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_symshndx() 116 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_symshndx()
|
| D | gelf_syminfo.c | 40 Elf_Scn *scn; in gelf_getsyminfo() local 49 (scn = d->d_scn) == NULL || in gelf_getsyminfo() 50 (e = scn->s_elf) == NULL) { in gelf_getsyminfo() 59 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getsyminfo() 61 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getsyminfo() 101 Elf_Scn *scn; in gelf_update_syminfo() local 110 (scn = d->d_scn) == NULL || in gelf_update_syminfo() 111 (e = scn->s_elf) == NULL) { in gelf_update_syminfo() 120 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_syminfo() 122 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_syminfo()
|
| D | gelf_cap.c | 42 Elf_Scn *scn; in gelf_getcap() local 51 (scn = d->d_scn) == NULL || in gelf_getcap() 52 (e = scn->s_elf) == NULL) { in gelf_getcap() 61 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getcap() 63 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getcap() 101 Elf_Scn *scn; in gelf_update_cap() local 110 (scn = d->d_scn) == NULL || in gelf_update_cap() 111 (e = scn->s_elf) == NULL) { in gelf_update_cap() 120 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_cap() 122 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_cap()
|
| D | gelf_dyn.c | 42 Elf_Scn *scn; in gelf_getdyn() local 51 (scn = d->d_scn) == NULL || in gelf_getdyn() 52 (e = scn->s_elf) == NULL) { in gelf_getdyn() 61 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getdyn() 63 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getdyn() 102 Elf_Scn *scn; in gelf_update_dyn() local 111 (scn = d->d_scn) == NULL || in gelf_update_dyn() 112 (e = scn->s_elf) == NULL) { in gelf_update_dyn() 121 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_dyn() 123 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_dyn()
|
| D | gelf_move.c | 42 Elf_Scn *scn; in gelf_getmove() local 51 (scn = d->d_scn) == NULL || in gelf_getmove() 52 (e = scn->s_elf) == NULL) { in gelf_getmove() 61 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getmove() 63 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getmove() 105 Elf_Scn *scn; in gelf_update_move() local 114 (scn = d->d_scn) == NULL || in gelf_update_move() 115 (e = scn->s_elf) == NULL) { in gelf_update_move() 124 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_move() 126 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_move()
|
| D | gelf_rel.c | 42 Elf_Scn *scn; in gelf_getrel() local 51 (scn = d->d_scn) == NULL || in gelf_getrel() 52 (e = scn->s_elf) == NULL) { in gelf_getrel() 61 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getrel() 63 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getrel() 107 Elf_Scn *scn; in gelf_update_rel() local 116 (scn = d->d_scn) == NULL || in gelf_update_rel() 117 (e = scn->s_elf) == NULL) { in gelf_update_rel() 126 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_rel() 128 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_rel()
|
| D | gelf_sym.c | 42 Elf_Scn *scn; in gelf_getsym() local 51 (scn = d->d_scn) == NULL || in gelf_getsym() 52 (e = scn->s_elf) == NULL) { in gelf_getsym() 61 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getsym() 63 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getsym() 104 Elf_Scn *scn; in gelf_update_sym() local 113 (scn = d->d_scn) == NULL || in gelf_update_sym() 114 (e = scn->s_elf) == NULL) { in gelf_update_sym() 123 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_sym() 125 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_sym()
|
| D | gelf_rela.c | 42 Elf_Scn *scn; in gelf_getrela() local 51 (scn = d->d_scn) == NULL || in gelf_getrela() 52 (e = scn->s_elf) == NULL) { in gelf_getrela() 61 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getrela() 63 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getrela() 109 Elf_Scn *scn; in gelf_update_rela() local 118 (scn = d->d_scn) == NULL || in gelf_update_rela() 119 (e = scn->s_elf) == NULL) { in gelf_update_rela() 128 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_rela() 130 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_rela()
|
| D | gelf_shdr.c | 90 gelf_update_shdr(Elf_Scn *scn, GElf_Shdr *s) in gelf_update_shdr() argument 97 if (s == NULL || scn == NULL || (e = scn->s_elf) == NULL || in gelf_update_shdr() 109 (void) elf_flagscn(scn, ELF_C_SET, ELF_F_DIRTY); in gelf_update_shdr() 112 scn->s_shdr.s_shdr64 = *s; in gelf_update_shdr() 116 sh32 = &scn->s_shdr.s_shdr32; in gelf_update_shdr()
|
| D | elf_end.c | 43 Elf_Scn *scn, *tscn; in elf_end() local 69 RB_FOREACH_SAFE(scn, scntree, &e->e_u.e_elf.e_scn, tscn) in elf_end() 70 scn = _libelf_release_scn(scn); in elf_end()
|
| D | libelf_checksum.c | 49 Elf_Scn *scn; in _libelf_checksum() local 79 if ((scn = elf_getscn(e, shn)) == NULL) in _libelf_checksum() 81 if (gelf_getshdr(scn, &shdr) == NULL) in _libelf_checksum() 89 while ((d = elf_rawdata(scn, d)) != NULL) in _libelf_checksum()
|
| /freebsd-12-stable/contrib/elftoolchain/libdwarf/ |
| D | libdwarf_elf_init.c | 136 Elf_Scn *scn; in _dwarf_elf_relocate() local 148 scn = NULL; in _dwarf_elf_relocate() 150 while ((scn = elf_nextscn(elf, scn)) != NULL) { in _dwarf_elf_relocate() 151 if (gelf_getshdr(scn, &sh) == NULL) { in _dwarf_elf_relocate() 161 if ((rel = elf_getdata(scn, NULL)) == NULL) { in _dwarf_elf_relocate() 206 Elf_Scn *scn; in _dwarf_elf_init() local 254 scn = NULL; in _dwarf_elf_init() 256 while ((scn = elf_nextscn(elf, scn)) != NULL) { in _dwarf_elf_init() 257 if (gelf_getshdr(scn, &sh) == NULL) { in _dwarf_elf_init() 274 symtab_ndx = elf_ndxscn(scn); in _dwarf_elf_init() [all …]
|
| /freebsd-12-stable/contrib/file/src/ |
| D | readcdf.c | 371 const cdf_stream_t *sst, const cdf_dir_t *dir, cdf_stream_t *scn) in cdf_file_catalog_info() argument 376 dir, "Catalog", scn)) == -1) in cdf_file_catalog_info() 379 cdf_dump_catalog(h, scn); in cdf_file_catalog_info() 381 if ((i = cdf_file_catalog(ms, h, scn)) == -1) in cdf_file_catalog_info() 389 const cdf_stream_t *sst, const cdf_dir_t *dir, cdf_stream_t *scn, in cdf_check_summary_info() argument 399 cdf_dump_summary_info(h, scn); in cdf_check_summary_info() 401 if ((i = cdf_file_summary_info(ms, h, scn, root_storage)) < 0) { in cdf_check_summary_info() 429 dir, scn); in cdf_check_summary_info() 549 cdf_stream_t sst, scn; in file_trycdf() local 555 scn.sst_tab = NULL; in file_trycdf() [all …]
|
| D | cdf.c | 332 cdf_zero_stream(cdf_stream_t *scn) in cdf_zero_stream() argument 334 scn->sst_len = 0; in cdf_zero_stream() 335 scn->sst_dirlen = 0; in cdf_zero_stream() 336 scn->sst_ss = 0; in cdf_zero_stream() 337 free(scn->sst_tab); in cdf_zero_stream() 338 scn->sst_tab = NULL; in cdf_zero_stream() 598 const cdf_sat_t *sat, cdf_secid_t sid, size_t len, cdf_stream_t *scn) in cdf_read_long_sector_chain() argument 602 scn->sst_tab = NULL; in cdf_read_long_sector_chain() 603 scn->sst_len = cdf_count_chain(sat, sid, ss); in cdf_read_long_sector_chain() 604 scn->sst_dirlen = MAX(h->h_min_size_standard_stream, len); in cdf_read_long_sector_chain() [all …]
|
| /freebsd-12-stable/sys/fs/msdosfs/ |
| D | msdosfs_lookup.c | 128 u_long scn; /* starting cluster number */ in msdosfs_lookup_() local 168 scn = MSDOSFSROOT; in msdosfs_lookup_() 432 scn = getushort(dep->deStartCluster); in msdosfs_lookup_() 434 scn |= getushort(dep->deHighClust) << 16; in msdosfs_lookup_() 435 if (scn == pmp->pm_rootdirblk) { in msdosfs_lookup_() 440 scn = MSDOSFSROOT; in msdosfs_lookup_() 445 cluster = scn; in msdosfs_lookup_() 467 if (FAT32(pmp) && scn == MSDOSFSROOT) in msdosfs_lookup_() 468 scn = pmp->pm_rootdirblk; in msdosfs_lookup_() 471 *dd_inum = (uint64_t)pmp->pm_bpcluster * scn + blkoff; in msdosfs_lookup_() [all …]
|
| /freebsd-12-stable/contrib/elftoolchain/elfcopy/ |
| D | binary.c | 50 Elf_Scn *scn; in create_binary() local 70 scn = NULL; in create_binary() 71 while ((scn = elf_nextscn(e, scn)) != NULL) { in create_binary() 72 if (gelf_getshdr(scn, &sh) == NULL) { in create_binary() 96 scn = NULL; in create_binary() 97 while ((scn = elf_nextscn(e, scn)) != NULL) { in create_binary() 98 if (gelf_getshdr(scn, &sh) == NULL) { in create_binary() 108 if ((d = elf_rawdata(scn, NULL)) == NULL) { in create_binary()
|
| D | ascii.c | 62 static void srec_write_symtab(int ofd, const char *ofn, Elf *e, Elf_Scn *scn, 81 Elf_Scn *scn; in create_srec() local 96 scn = NULL; in create_srec() 97 while ((scn = elf_nextscn(e, scn)) != NULL) { in create_srec() 98 if (gelf_getshdr(scn, &sh) == NULL) { in create_srec() 106 srec_write_symtab(ofd, ofn, e, scn, &sh); in create_srec() 118 scn = NULL; in create_srec() 119 while ((scn = elf_nextscn(e, scn)) != NULL) { in create_srec() 120 if (gelf_getshdr(scn, &sh) == NULL) { in create_srec() 160 scn = NULL; in create_srec() [all …]
|
| D | pe.c | 44 Elf_Scn *scn; in create_pe() local 115 scn = NULL; in create_pe() 116 while ((scn = elf_nextscn(e, scn)) != NULL) { in create_pe() 122 if (gelf_getshdr(scn, &sh) == NULL) { in create_pe() 140 if ((d = elf_getdata(scn, NULL)) == NULL) { in create_pe()
|
| /freebsd-12-stable/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| D | util.c | 66 Elf_Scn *scn = NULL; in findelfsecidx() local 73 while ((scn = elf_nextscn(elf, scn)) != NULL) { in findelfsecidx() 76 if (gelf_getshdr(scn, &shdr) == NULL) { in findelfsecidx() 79 elf_ndxscn(scn)); in findelfsecidx() 86 elf_ndxscn(scn)); in findelfsecidx() 90 return (elf_ndxscn(scn)); in findelfsecidx()
|
| /freebsd-12-stable/cddl/contrib/opensolaris/cmd/lockstat/ |
| D | sym.c | 170 Elf_Scn *scn = NULL; in symtab_init() local 196 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) { in symtab_init() 197 Shdr *shdr = elf_getshdr(scn); in symtab_init() 199 symtab = (Sym *)elf_getdata(scn, NULL)->d_buf; in symtab_init() 205 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) { in symtab_init() 207 strtab = (char *)elf_getdata(scn, NULL)->d_buf; in symtab_init()
|
| /freebsd-12-stable/lib/libproc/ |
| D | proc_sym.c | 166 Elf_Scn *scn; in load_symtab() local 172 scn = NULL; in load_symtab() 173 while ((scn = elf_nextscn(e, scn)) != NULL) { in load_symtab() 174 (void)gelf_getshdr(scn, &shdr); in load_symtab() 178 if (scn == NULL) in load_symtab() 185 if ((symtab->data = elf_getdata(scn, NULL)) == NULL) in load_symtab() 248 Elf_Scn *scn; in open_object() local 276 scn = NULL; in open_object() 277 while ((scn = elf_nextscn(e, scn)) != NULL) { in open_object() 278 if (gelf_getshdr(scn, &shdr) != &shdr) { in open_object() [all …]
|
| /freebsd-12-stable/contrib/libexecinfo/ |
| D | symtab.c | 88 Elf_Scn *scn = NULL; in symtab_create() local 107 while ((scn = elf_nextscn(elf, scn)) != NULL) { in symtab_create() 113 gelf_getshdr(scn, &shdr); in symtab_create() 117 edata = elf_getdata(scn, NULL); in symtab_create()
|