/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | dsl_scan.c | 467 dsl_scan_t *scn; in dsl_scan_init() local 577 scn->scn_issued_before_pass = scn->scn_phys.scn_examined - in dsl_scan_init() 615 memcpy(&scn->scn_phys_cached, &scn->scn_phys, sizeof (scn->scn_phys)); in dsl_scan_init() 818 memcpy(&scn->scn_phys_cached, &scn->scn_phys, in dsl_scan_sync_state() 861 memset(&scn->scn_phys, 0, sizeof (scn->scn_phys)); in dsl_scan_setup_sync() 952 memcpy(&scn->scn_phys_cached, &scn->scn_phys, sizeof (scn->scn_phys)); in dsl_scan_setup_sync() 2403 scn->scn_prefetch_bookmark = scn->scn_phys.scn_bookmark; in dsl_scan_visit_rootbp() 2964 scan_funcs[scn->scn_phys.scn_func](scn->scn_dp, &bp, &zb); in dsl_scan_ddt_entry() 3323 if (!scn->scn_checkpointing && !scn->scn_clearing) in scan_io_queue_fetch_ext() 4312 if (!scn->scn_async_stalled && !dsl_scan_active(scn)) in dsl_scan_sync() [all …]
|
/freebsd/contrib/elftoolchain/libelf/ |
H A 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() 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() 110 Elf_Scn *scn; in _libelf_setphnum() local 113 if ((scn = _libelf_getscn0(e)) == NULL) in _libelf_setphnum() [all …]
|
H A 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 …]
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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/contrib/elftoolchain/libdwarf/ |
H A D | libdwarf_elf_init.c | 137 Elf_Scn *scn; in _dwarf_elf_relocate() local 149 scn = NULL; in _dwarf_elf_relocate() 151 while ((scn = elf_nextscn(elf, scn)) != NULL) { in _dwarf_elf_relocate() 152 if (gelf_getshdr(scn, &sh) == NULL) { in _dwarf_elf_relocate() 259 Elf_Scn *scn; in _dwarf_elf_init() local 307 scn = NULL; in _dwarf_elf_init() 309 while ((scn = elf_nextscn(elf, scn)) != NULL) { in _dwarf_elf_init() 310 if (gelf_getshdr(scn, &sh) == NULL) { in _dwarf_elf_init() 327 symtab_ndx = elf_ndxscn(scn); in _dwarf_elf_init() 363 scn = NULL; in _dwarf_elf_init() [all …]
|
/freebsd/usr.sbin/kldxref/ |
H A D | elf.c | 314 Elf_Scn *scn; in elf_read_shdrs() local 327 if (scn == NULL) { in elf_read_shdrs() 350 Elf_Scn *scn; in elf_read_dynamic() local 356 if (scn == NULL) in elf_read_dynamic() 360 data = elf_getdata(scn, NULL); in elf_read_dynamic() 386 Elf_Scn *scn; in elf_read_symbols() local 392 if (scn == NULL) in elf_read_symbols() 438 Elf_Scn *scn; in elf_read_rel() local 444 if (scn == NULL) in elf_read_rel() 474 Elf_Scn *scn; in elf_read_rela() local [all …]
|
/freebsd/contrib/file/src/ |
H A D | readcdf.c | 376 dir, "Catalog", scn)) == -1) in cdf_file_catalog_info() 379 cdf_dump_catalog(h, scn); in cdf_file_catalog_info() 399 cdf_dump_summary_info(h, scn); 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() 611 if (scn.sst_len * scn.sst_ss >= sizeof(HWP5_SIGNATURE) - 1 in file_trycdf() 625 cdf_zero_stream(&scn); in file_trycdf() 630 &scn)) == -1) { in file_trycdf() 637 cdf_zero_stream(&scn); in file_trycdf() [all …]
|
H A D | cdf.c | 334 scn->sst_len = 0; in cdf_zero_stream() 336 scn->sst_ss = 0; in cdf_zero_stream() 337 free(scn->sst_tab); in cdf_zero_stream() 605 scn->sst_ss = ss; in cdf_read_long_sector_chain() 613 scn->sst_tab = CDF_CALLOC(scn->sst_len, ss); in cdf_read_long_sector_chain() 654 scn->sst_ss = ss; in cdf_read_short_sector_chain() 659 scn->sst_tab = CDF_CALLOC(scn->sst_len, ss); in cdf_read_short_sector_chain() 695 scn); in cdf_read_sector_chain() 869 memset(scn, 0, sizeof(*scn)); in cdf_read_user_stream() 1430 cdf_stream_t scn; in cdf_dump_dir() local [all …]
|
/freebsd/sys/fs/msdosfs/ |
H A D | msdosfs_lookup.c | 189 scn = MSDOSFSROOT; in msdosfs_lookup_ino() 452 if (scn == pmp->pm_rootdirblk) { in msdosfs_lookup_ino() 457 scn = MSDOSFSROOT; in msdosfs_lookup_ino() 462 cluster = scn; in msdosfs_lookup_ino() 485 scn = pmp->pm_rootdirblk; in msdosfs_lookup_ino() 588 scn = pmp->pm_rootdirblk; in msdosfs_lookup_ino() 589 inode1 = DETOI(pmp, scn, blkoff); in msdosfs_lookup_ino() 836 daddr_t scn; in doscheckpath() local 868 scn = dep->de_StartCluster; in doscheckpath() 891 if (scn == MSDOSFSROOT) in doscheckpath() [all …]
|
/freebsd/contrib/elftoolchain/elfcopy/ |
H A 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()
|
H A D | ascii.c | 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() 118 scn = NULL; in create_srec() 119 while ((scn = elf_nextscn(e, scn)) != NULL) { in create_srec() 160 scn = NULL; in create_srec() 161 while ((scn = elf_nextscn(e, scn)) != NULL) { in create_srec() 162 if (gelf_getshdr(scn, &sh) == NULL) { in create_srec() 413 Elf_Scn *scn; in create_ihex() local 425 scn = NULL; in create_ihex() [all …]
|
H A 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/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | util.c | 67 Elf_Scn *scn = NULL; in findelfsecidx() local 74 while ((scn = elf_nextscn(elf, scn)) != NULL) { in findelfsecidx() 77 if (gelf_getshdr(scn, &shdr) == NULL) { in findelfsecidx() 80 elf_ndxscn(scn)); in findelfsecidx() 87 elf_ndxscn(scn)); in findelfsecidx() 91 return (elf_ndxscn(scn)); in findelfsecidx()
|
/freebsd/cddl/contrib/opensolaris/cmd/lockstat/ |
H A D | sym.c | 171 Elf_Scn *scn = NULL; in symtab_init() local 196 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) { in symtab_init() 198 (void) gelf_getshdr(scn, &shdr); in symtab_init() 200 symtab = (GElf_Sym *)elf_getdata(scn, NULL)->d_buf; in symtab_init() 206 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) { in symtab_init() 208 strtab = (char *)elf_getdata(scn, NULL)->d_buf; in symtab_init()
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | dsl_scan.h | 196 boolean_t dsl_errorscrub_active(dsl_scan_t *scn); 204 void dsl_scan_ddt_entry(dsl_scan_t *scn, enum zio_checksum checksum, 210 boolean_t dsl_scan_active(dsl_scan_t *scn); 211 boolean_t dsl_scan_is_paused_scrub(const dsl_scan_t *scn); 212 boolean_t dsl_errorscrub_is_paused(const dsl_scan_t *scn);
|