| /freebsd-12-stable/sys/netpfil/ipfw/ |
| D | dn_aqm_pie.c | 208 struct pie_status *pst = (struct pie_status *) x; in calculate_drop_prob() local 211 pprms = pst->parms; in calculate_drop_prob() 212 prob = pst->drop_prob; in calculate_drop_prob() 219 pst->current_qdelay = ((uint64_t)pst->pq->ni.len_bytes * in calculate_drop_prob() 220 pst->avg_dq_time) >> PIE_DQ_THRESHOLD_BITS; in calculate_drop_prob() 222 if (!pst->pq->ni.len_bytes) in calculate_drop_prob() 223 pst->current_qdelay = 0; in calculate_drop_prob() 227 ((int64_t)pst->current_qdelay - (int64_t)pprms->qdelay_ref); in calculate_drop_prob() 229 ((int64_t)pst->current_qdelay - (int64_t)pst->qdelay_old); in calculate_drop_prob() 290 if (pst->current_qdelay == 0 && pst->qdelay_old == 0) { in calculate_drop_prob() [all …]
|
| D | dn_sched_fq_pie.c | 116 struct pie_status pst; /* pie status variables */ member 379 struct pie_status *pst = &q->pst; in fq_calculate_drop_prob() local 386 pprms = pst->parms; in fq_calculate_drop_prob() 387 prob = pst->drop_prob; in fq_calculate_drop_prob() 394 pst->current_qdelay = ((uint64_t)q->stats.len_bytes * pst->avg_dq_time) in fq_calculate_drop_prob() 398 pst->current_qdelay = 0; in fq_calculate_drop_prob() 402 ((int64_t)pst->current_qdelay - (int64_t)pprms->qdelay_ref); in fq_calculate_drop_prob() 404 ((int64_t)pst->current_qdelay - (int64_t)pst->qdelay_old); in fq_calculate_drop_prob() 465 if (pst->current_qdelay == 0 && pst->qdelay_old == 0) { in fq_calculate_drop_prob() 475 pst->drop_prob = prob; in fq_calculate_drop_prob() [all …]
|
| D | dn_aqm_pie.h | 110 drop_early(struct pie_status *pst, uint32_t qlen) in drop_early() argument 114 pprms = pst->parms; in drop_early() 118 if ((pst->qdelay_old < (pprms->qdelay_ref >> 1) in drop_early() 119 && pst->drop_prob < PIE_MAX_PROB / 5 ) in drop_early() 124 if (pst->drop_prob == 0) in drop_early() 125 pst->accu_prob = 0; in drop_early() 129 pst->accu_prob += pst->drop_prob; in drop_early() 139 if(pst->accu_prob < (uint64_t) (PIE_MAX_PROB * 17 / 20)) in drop_early() 141 if( pst->accu_prob >= (uint64_t) (PIE_MAX_PROB * 17 / 2)) in drop_early() 145 if (random() < pst->drop_prob) { in drop_early() [all …]
|
| /freebsd-12-stable/contrib/gdb/gdb/ |
| D | dbxread.c | 240 struct partial_symtab *pst; /* Partial symtab that has the member 901 add_bincl_to_list (struct partial_symtab *pst, char *name, int instance) in add_bincl_to_list() argument 908 xmrealloc (pst->objfile->md, (char *) bincl_list, in add_bincl_to_list() 912 next_bincl->pst = pst; in add_bincl_to_list() 929 return bincl->pst; in find_corresponding_bincl_psymtab() 1196 struct partial_symtab *pst; in read_dbx_symtab() local 1217 pst = (struct partial_symtab *) 0; in read_dbx_symtab() 1367 if (past_first_source_file && pst in read_dbx_symtab() 1370 && nlist.n_value >= pst->textlow) in read_dbx_symtab() 1372 end_psymtab (pst, psymtab_include_list, includes_used, in read_dbx_symtab() [all …]
|
| D | xcoffread.c | 905 read_xcoff_symtab (struct partial_symtab *pst) in read_xcoff_symtab() argument 907 struct objfile *objfile = pst->objfile; in read_xcoff_symtab() 939 this_symtab_psymtab = pst; in read_xcoff_symtab() 952 symnum = ((struct symloc *) pst->read_symtab_private)->first_symnum; in read_xcoff_symtab() 954 symnum + ((struct symloc *) pst->read_symtab_private)->numsyms; in read_xcoff_symtab() 1038 pst->symtab = in read_xcoff_symtab() 1418 if (pst->symtab == NULL) in read_xcoff_symtab() 1419 pst->symtab = s; in read_xcoff_symtab() 1727 xcoff_psymtab_to_symtab_1 (struct partial_symtab *pst) in xcoff_psymtab_to_symtab_1() argument 1732 if (!pst) in xcoff_psymtab_to_symtab_1() [all …]
|
| D | mdebugread.c | 345 mdebug_psymtab_to_symtab (struct partial_symtab *pst) in mdebug_psymtab_to_symtab() argument 348 if (!pst) in mdebug_psymtab_to_symtab() 353 printf_filtered ("Reading in symbols for %s...", pst->filename); in mdebug_psymtab_to_symtab() 359 psymtab_to_symtab_1 (pst, pst->filename); in mdebug_psymtab_to_symtab() 363 scan_file_globals (pst->objfile); in mdebug_psymtab_to_symtab() 463 struct partial_symtab *pst; /* the psymtab proper */ member 1871 struct partial_symtab *pst) in parse_procedure() argument 2140 struct partial_symtab *pst, CORE_ADDR lowest_pdr_addr) in parse_lines() argument 2171 adr = pst->textlow + pr->adr - lowest_pdr_addr; in parse_lines() 2234 struct partial_symtab *pst; in parse_partial_symbols() local [all …]
|
| D | hpread.c | 721 CORE_ADDR start_adr, CORE_ADDR end_adr, struct partial_symtab *pst, in scan_procs() argument 847 struct partial_symtab *pst; in hpread_quick_traverse() local 881 pst = (struct partial_symtab *) 0; in hpread_quick_traverse() 1054 pst = hpread_start_psymtab (objfile, in hpread_quick_traverse() 1062 pst = hpread_end_psymtab (pst, in hpread_quick_traverse() 1155 pst = hpread_start_psymtab (objfile, in hpread_quick_traverse() 1171 start_adr, end_adr, pst, vt_bits, objfile); in hpread_quick_traverse() 1217 pst = hpread_end_psymtab (pst, in hpread_quick_traverse() 1230 if (NULL == pst) in hpread_quick_traverse() 1383 pst = hpread_start_psymtab (objfile, in hpread_quick_traverse() [all …]
|
| D | dwarfread.c | 2251 read_ofile_symtab (struct partial_symtab *pst) in read_ofile_symtab() argument 2259 abfd = pst->objfile->obfd; in read_ofile_symtab() 2260 current_objfile = pst->objfile; in read_ofile_symtab() 2266 dbsize = DBLENGTH (pst); in read_ofile_symtab() 2268 dbroff = DBROFF (pst); in read_ofile_symtab() 2269 foffset = DBFOFF (pst) + dbroff; in read_ofile_symtab() 2270 base_section_offsets = pst->section_offsets; in read_ofile_symtab() 2271 baseaddr = ANOFFSET (pst->section_offsets, 0); in read_ofile_symtab() 2286 if (LNFOFF (pst)) in read_ofile_symtab() 2288 if (bfd_seek (abfd, LNFOFF (pst), SEEK_SET) || in read_ofile_symtab() [all …]
|
| D | symtab.c | 245 struct partial_symtab *pst; in lookup_partial_symtab() local 260 ALL_PSYMTABS (objfile, pst) in lookup_partial_symtab() 262 if (FILENAME_CMP (name, pst->filename) == 0) in lookup_partial_symtab() 264 return (pst); in lookup_partial_symtab() 271 if (pst->fullname == NULL) in lookup_partial_symtab() 272 source_full_path_of (pst->filename, &pst->fullname); in lookup_partial_symtab() 273 if (pst->fullname != NULL in lookup_partial_symtab() 274 && FILENAME_CMP (full_path, pst->fullname) == 0) in lookup_partial_symtab() 276 return pst; in lookup_partial_symtab() 283 if (pst->fullname == NULL) in lookup_partial_symtab() [all …]
|
| D | blockframe.c | 350 struct partial_symtab *pst; in find_pc_sect_partial_function() local 377 pst = find_pc_sect_psymtab (mapped_pc, section); in find_pc_sect_partial_function() 378 if (pst) in find_pc_sect_partial_function() 381 if (endaddr != NULL && !pst->readin) in find_pc_sect_partial_function() 386 PSYMTAB_TO_SYMTAB (pst); in find_pc_sect_partial_function() 389 if (pst->readin) in find_pc_sect_partial_function() 411 psb = find_pc_sect_psymbol (pst, mapped_pc, section); in find_pc_sect_partial_function()
|
| D | symfile.c | 216 sort_pst_symbols (struct partial_symtab *pst) in sort_pst_symbols() argument 220 qsort (pst->objfile->global_psymbols.list + pst->globals_offset, in sort_pst_symbols() 221 pst->n_global_syms, sizeof (struct partial_symbol *), in sort_pst_symbols() 279 psymtab_to_symtab (struct partial_symtab *pst) in psymtab_to_symtab() argument 282 if (pst->symtab) in psymtab_to_symtab() 283 return pst->symtab; in psymtab_to_symtab() 286 if (!pst->readin) in psymtab_to_symtab() 290 (*pst->read_symtab) (pst); in psymtab_to_symtab() 294 return pst->symtab; in psymtab_to_symtab() 1190 struct partial_symtab *pst; in set_initial_language() local [all …]
|
| D | dwarf2read.c | 1157 struct partial_symtab *pst; in dwarf2_build_psymtabs_hard() local 1257 pst = start_psymtab_common (objfile, objfile->section_offsets, in dwarf2_build_psymtabs_hard() 1263 pst->read_symtab_private = (char *) in dwarf2_build_psymtabs_hard() 1265 DWARF_INFO_BUFFER (pst) = dwarf_info_buffer; in dwarf2_build_psymtabs_hard() 1266 DWARF_INFO_OFFSET (pst) = beg_of_comp_unit - dwarf_info_buffer; in dwarf2_build_psymtabs_hard() 1267 DWARF_ABBREV_BUFFER (pst) = dwarf_abbrev_buffer; in dwarf2_build_psymtabs_hard() 1268 DWARF_ABBREV_SIZE (pst) = dwarf_abbrev_size; in dwarf2_build_psymtabs_hard() 1269 DWARF_LINE_BUFFER (pst) = dwarf_line_buffer; in dwarf2_build_psymtabs_hard() 1270 DWARF_LINE_SIZE (pst) = dwarf_line_size; in dwarf2_build_psymtabs_hard() 1271 DWARF_STR_BUFFER (pst) = dwarf_str_buffer; in dwarf2_build_psymtabs_hard() [all …]
|
| D | elfread.c | 702 elfstab_offset_sections (struct objfile *objfile, struct partial_symtab *pst) in elfstab_offset_sections() argument 704 char *filename = pst->filename; in elfstab_offset_sections() 743 pst->section_offsets = (struct section_offsets *) in elfstab_offset_sections() 747 (pst->section_offsets)->offsets[i] = maybe->sections[i]; in elfstab_offset_sections()
|
| D | symtab.h | 950 #define PSYMTAB_TO_SYMTAB(pst) \ argument 951 ((pst) -> symtab != NULL ? (pst) -> symtab : psymtab_to_symtab (pst))
|
| /freebsd-12-stable/contrib/libarchive/libarchive/test/ |
| D | test_entry.c | 61 const struct stat *pst; in DEFINE_TEST() local 806 assert((pst = archive_entry_stat(e)) != NULL); in DEFINE_TEST() 807 if (pst == NULL) in DEFINE_TEST() 810 assertEqualInt(pst->st_atime, 456789); in DEFINE_TEST() 811 assertEqualInt(pst->st_ctime, 345678); in DEFINE_TEST() 812 assertEqualInt(pst->st_dev, 123); in DEFINE_TEST() 813 assertEqualInt(pst->st_gid, 34); in DEFINE_TEST() 814 assertEqualInt(pst->st_ino, 234); in DEFINE_TEST() 815 assertEqualInt(pst->st_mode, 012345); in DEFINE_TEST() 816 assertEqualInt(pst->st_mtime, 234567); in DEFINE_TEST() [all …]
|
| /freebsd-12-stable/sys/modules/pst/ |
| D | Makefile | 3 .PATH: ${SRCTOP}/sys/dev/pst 5 KMOD= pst 6 SRCS= pst-pci.c pst-iop.c pst-raid.c
|
| /freebsd-12-stable/contrib/xz/src/common/ |
| D | tuklib_cpucores.c | 103 struct pst_dynamic pst; in tuklib_cpucores() local 104 if (pstat_getdynamic(&pst, sizeof(pst), 1, 0) != -1) in tuklib_cpucores() 105 ret = (uint32_t)pst.psd_proc_cnt; in tuklib_cpucores()
|
| D | tuklib_physmem.c | 190 struct pst_static pst; in tuklib_physmem() local 191 if (pstat_getstatic(&pst, sizeof(pst), 1, 0) != -1) in tuklib_physmem() 192 ret = (uint64_t)pst.physical_memory * (uint64_t)pst.page_size; in tuklib_physmem()
|
| /freebsd-12-stable/contrib/ntp/libntp/ |
| D | statestr.c | 289 static const char * peer_st_flags(u_char pst); 408 u_char pst in peer_st_flags() argument 411 return decode_bitflags(pst, ", ", peer_st_bits, in peer_st_flags() 458 u_char pst; in statustoa() local 473 pst = (u_char)CTL_PEER_STATVAL(st); in statustoa() 475 peer_st_flags(pst), in statustoa() 476 getcode(pst & 0x7, select_codes), in statustoa()
|
| /freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/Process/NetBSD/ |
| D | NativeProcessNetBSD.cpp | 267 ptrace_state_t pst; in MonitorSIGTRAP() local 268 Status error = PtraceWrapper(PT_GET_PROCESS_STATE, pid, &pst, sizeof(pst)); in MonitorSIGTRAP() 275 if (pst.pe_report_event == PTRACE_VFORK_DONE) { in MonitorSIGTRAP() 286 assert(pst.pe_report_event == PTRACE_FORK || in MonitorSIGTRAP() 287 pst.pe_report_event == PTRACE_VFORK); in MonitorSIGTRAP() 288 MonitorClone(pst.pe_other_pid, pst.pe_report_event == PTRACE_VFORK, in MonitorSIGTRAP() 294 ptrace_state_t pst; in MonitorSIGTRAP() local 295 Status error = PtraceWrapper(PT_GET_PROCESS_STATE, pid, &pst, sizeof(pst)); in MonitorSIGTRAP() 301 switch (pst.pe_report_event) { in MonitorSIGTRAP() 304 pst.pe_lwp); in MonitorSIGTRAP() [all …]
|
| /freebsd-12-stable/release/picobsd/tinyware/sps/ |
| D | sps.c | 47 char buf[MAXPATHLEN], vty[5], pst[5], wmesg[10]; in main() local 107 sprintf(pst, "%c", p_stat[ki->ki_stat]); in main() 115 pst, in main()
|
| /freebsd-12-stable/crypto/openssh/openbsd-compat/ |
| D | setproctitle.c | 133 union pstun pst; in setproctitle() local 157 pst.pst_command = ptitle; in setproctitle() 158 pstat(PSTAT_SETCMD, pst, strlen(ptitle), 0, 0); in setproctitle()
|
| /freebsd-12-stable/sys/x86/cpufreq/ |
| D | powernow.c | 688 struct pst_header *pst; in pn_decode_pst() local 730 pst = (struct pst_header*) p; in pn_decode_pst() 735 struct pst_header *pst = (struct pst_header*) p; in pn_decode_pst() local 737 if (cpuid == pst->cpuid && in pn_decode_pst() 738 maxfid == pst->maxfid && in pn_decode_pst() 739 startvid == pst->startvid) { in pn_decode_pst() 740 sc->powernow_max_states = pst->numpstates; in pn_decode_pst() 743 if (abs(sc->fsb - pst->fsb) > 5) in pn_decode_pst() 754 p += sizeof(struct pst_header) + (2 * pst->numpstates); in pn_decode_pst() 755 } while (cpuid_is_k7(pst->cpuid) && maxpst--); in pn_decode_pst()
|
| /freebsd-12-stable/sys/i386/conf/ |
| D | PAE | 20 makeoptions WITHOUT_MODULES+="ncr pst" 22 nodevice pst
|
| /freebsd-12-stable/usr.bin/script/ |
| D | script.c | 461 struct stat pst; in playback() local 468 if (fstat(fileno(fp), &pst) == -1) in playback() 471 reg = S_ISREG(pst.st_mode); in playback() 473 for (nread = 0; !reg || nread < pst.st_size; nread += save_len) { in playback() 484 (uint64_t)(pst.st_size - save_len) - nread) in playback()
|