Home
last modified time | relevance | path

Searched refs:shp (Results 1 – 12 of 12) sorted by relevance

/freebsd/sys/contrib/openzfs/cmd/zed/agents/
H A Dfmd_serd.c131 fmd_serd_hash_create(fmd_serd_hash_t *shp) in fmd_serd_hash_create() argument
133 shp->sh_hashlen = FMD_STR_BUCKETS; in fmd_serd_hash_create()
134 shp->sh_hash = calloc(shp->sh_hashlen, sizeof (void *)); in fmd_serd_hash_create()
135 shp->sh_count = 0; in fmd_serd_hash_create()
137 if (shp->sh_hash == NULL) { in fmd_serd_hash_create()
145 fmd_serd_hash_destroy(fmd_serd_hash_t *shp) in fmd_serd_hash_destroy() argument
150 for (i = 0; i < shp->sh_hashlen; i++) { in fmd_serd_hash_destroy()
151 for (sgp = shp->sh_hash[i]; sgp != NULL; sgp = ngp) { in fmd_serd_hash_destroy()
157 free(shp->sh_hash); in fmd_serd_hash_destroy()
158 memset(shp, 0, sizeof (fmd_serd_hash_t)); in fmd_serd_hash_destroy()
[all …]
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_link.c471 Elf32_Shdr *shp; in dump_elf32() local
535 shp = &elf_file.shdr[ESHDR_SHSTRTAB]; in dump_elf32()
536 shp->sh_name = 1; /* DTRACE_SHSTRTAB32[1] = ".shstrtab" */ in dump_elf32()
537 shp->sh_type = SHT_STRTAB; in dump_elf32()
538 shp->sh_offset = off; in dump_elf32()
539 shp->sh_size = sizeof (DTRACE_SHSTRTAB32); in dump_elf32()
540 shp->sh_addralign = sizeof (char); in dump_elf32()
541 off = roundup2(shp->sh_offset + shp->sh_size, 8); in dump_elf32()
543 shp = &elf_file.shdr[ESHDR_DOF]; in dump_elf32()
544 shp->sh_name = 11; /* DTRACE_SHSTRTAB32[11] = ".SUNW_dof" */ in dump_elf32()
[all …]
/freebsd/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c388 const GElf_Shdr *shp = &sp[i]; in ctf_fdopen() local
389 const GElf_Shdr *lhp = &sp[shp->sh_link]; in ctf_fdopen()
391 if (shp->sh_link >= shnum) in ctf_fdopen()
394 if (shp->sh_name >= sp[shstrndx].sh_size || in ctf_fdopen()
398 if (shp->sh_type == SHT_PROGBITS && in ctf_fdopen()
399 strcmp(strs + shp->sh_name, _CTF_SECTION) == 0) { in ctf_fdopen()
400 ctfsect.cts_name = strs + shp->sh_name; in ctf_fdopen()
401 ctfsect.cts_type = shp->sh_type; in ctf_fdopen()
402 ctfsect.cts_flags = shp->sh_flags; in ctf_fdopen()
403 ctfsect.cts_size = shp->sh_size; in ctf_fdopen()
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-decnet.c816 const struct seghdr *shp = (const struct seghdr *)nspp; in print_nsp() local
822 ack = GET_LE_U_2(shp->sh_seq[0]); in print_nsp()
831 ack = GET_LE_U_2(shp->sh_seq[1]); in print_nsp()
840 ack = GET_LE_U_2(shp->sh_seq[2]); in print_nsp()
849 const struct seghdr *shp = (const struct seghdr *)nspp; in print_nsp() local
855 ack = GET_LE_U_2(shp->sh_seq[0]); in print_nsp()
864 ack = GET_LE_U_2(shp->sh_seq[1]); in print_nsp()
873 ack = GET_LE_U_2(shp->sh_seq[2]); in print_nsp()
882 const struct seghdr *shp = (const struct seghdr *)nspp; in print_nsp() local
890 ack = GET_LE_U_2(shp->sh_seq[0]); in print_nsp()
[all …]
/freebsd/sys/contrib/dev/broadcom/brcm80211/brcmsmac/phy/
H A Dphy_cmn.c332 struct shared_phy *wlc_phy_shared_attach(struct shared_phy_params *shp) in wlc_phy_shared_attach() argument
340 sh->physhim = shp->physhim; in wlc_phy_shared_attach()
341 sh->unit = shp->unit; in wlc_phy_shared_attach()
342 sh->corerev = shp->corerev; in wlc_phy_shared_attach()
344 sh->vid = shp->vid; in wlc_phy_shared_attach()
345 sh->did = shp->did; in wlc_phy_shared_attach()
346 sh->chip = shp->chip; in wlc_phy_shared_attach()
347 sh->chiprev = shp->chiprev; in wlc_phy_shared_attach()
348 sh->chippkg = shp->chippkg; in wlc_phy_shared_attach()
349 sh->sromrev = shp->sromrev; in wlc_phy_shared_attach()
[all …]
H A Dphy_hal.h166 struct shared_phy *wlc_phy_shared_attach(struct shared_phy_params *shp);
/freebsd/contrib/tcsh/
H A Dsh.dir.c127 struct stat swd, shp; in dinit() local
134 if (swd_ok && hp && *hp && stat(short2str(hp), &shp) != -1 && in dinit()
135 DEV_DEV_COMPARE(swd.st_dev, shp.st_dev) && in dinit()
136 swd.st_ino == shp.st_ino) in dinit()
145 if (stat(cwd, &shp) != -1 && in dinit()
146 DEV_DEV_COMPARE(swd.st_dev, shp.st_dev) && in dinit()
147 swd.st_ino == shp.st_ino) { in dinit()
/freebsd/contrib/file/magic/Magdir/
H A Desri4 # ESRI Shapefile format (.shp .shx .dbf=DBaseIII)
/freebsd/sys/fs/nfsserver/
H A Dnfs_nfsdstate.c669 struct nfssessionhash *shp; in nfsrv_getclient() local
731 shp = NFSSESSIONHASH(nd->nd_sessionid); in nfsrv_getclient()
732 NFSLOCKSESSION(shp); in nfsrv_getclient()
736 NFSUNLOCKSESSION(shp); in nfsrv_getclient()
851 shp = NFSSESSIONHASH(nsep->sess_sessionid); in nfsrv_getclient()
854 NFSLOCKSESSION(shp); in nfsrv_getclient()
855 LIST_INSERT_HEAD(&shp->list, nsep, sess_hash); in nfsrv_getclient()
858 NFSUNLOCKSESSION(shp); in nfsrv_getclient()
6090 struct nfssessionhash *shp; in nfsrv_checksequence() local
6093 shp = NFSSESSIONHASH(nd->nd_sessionid); in nfsrv_checksequence()
[all …]
/freebsd/contrib/file/src/
H A Dcdf.c994 const cdf_section_header_t *shp; in cdf_read_property_info() local
1004 shp = CAST(const cdf_section_header_t *, in cdf_read_property_info()
1006 if (cdf_check_stream_offset(sst, h, shp, sizeof(*shp), __LINE__) == -1) in cdf_read_property_info()
1008 sh.sh_len = CDF_TOLE4(shp->sh_len); in cdf_read_property_info()
1014 if (cdf_check_stream_offset(sst, h, shp, sh.sh_len, __LINE__) == -1) in cdf_read_property_info()
1017 sh.sh_properties = CDF_TOLE4(shp->sh_properties); in cdf_read_property_info()
1028 e = CAST(const uint8_t *, cdf_offset(shp, sh.sh_len)); in cdf_read_property_info()
/freebsd/sys/kern/
H A Dkern_sharedpage.c133 SYSINIT(shp, SI_SUB_EXEC, SI_ORDER_FIRST, shared_page_init, NULL);
/freebsd/sys/contrib/openzfs/cmd/zdb/
H A Dzdb.c956 spa_history_phys_t *shp = data; in dump_history_offsets() local
958 if (shp == NULL) in dump_history_offsets()
962 (u_longlong_t)shp->sh_pool_create_len); in dump_history_offsets()
964 (u_longlong_t)shp->sh_phys_max_off); in dump_history_offsets()
966 (u_longlong_t)shp->sh_bof); in dump_history_offsets()
968 (u_longlong_t)shp->sh_eof); in dump_history_offsets()
970 (u_longlong_t)shp->sh_records_lost); in dump_history_offsets()