Home
last modified time | relevance | path

Searched refs:sf (Results 1 – 25 of 243) sorted by relevance

12345678910

/freebsd/sys/netinet/tcp_stacks/
H A Dsack_filter.c100 #define sack_blk_used(sf, i) ((1 << i) & sf->sf_bits)
101 #define sack_blk_set(sf, i) ((1 << i) | sf->sf_bits)
102 #define sack_blk_clr(sf, i) (~(1 << i) & sf->sf_bits) in sack_filter_clear() argument
115 sack_filter_clear(struct sack_filter *sf, tcp_seq seq) in sack_filter_prune() argument
117 sf->sf_ack = seq; in sack_filter_prune()
118 sf->sf_bits = 0; in sack_filter_prune()
119 sf in sack_filter_prune()
94 sack_blk_used(sf,i) global() argument
95 sack_blk_set(sf,i) global() argument
96 sack_blk_clr(sf,i) global() argument
146 is_sack_on_board(struct sack_filter * sf,struct sackblk * b) is_sack_on_board() argument
248 sack_filter_old(struct sack_filter * sf,struct sackblk * in,int numblks) sack_filter_old() argument
288 sack_move_to_empty(struct sack_filter * sf,uint32_t idx) sack_move_to_empty() argument
306 sack_filter_new(struct sack_filter * sf,struct sackblk * in,int numblks,tcp_seq th_ack) sack_filter_new() argument
371 sack_blocks_overlap_or_meet(struct sack_filter * sf,struct sackblk * sb,uint32_t skip) sack_blocks_overlap_or_meet() argument
423 sack_collapse(struct sack_filter * sf,int32_t src,int32_t into) sack_collapse() argument
438 sack_board_collapse(struct sack_filter * sf) sack_board_collapse() argument
479 sack_filter_dump(FILE * out,struct sack_filter * sf) sack_filter_dump() argument
500 sack_filter_blks(struct sack_filter * sf,struct sackblk * in,int numblks,tcp_seq th_ack) sack_filter_blks() argument
562 sack_filter_reject(struct sack_filter * sf,struct sackblk * in) sack_filter_reject() argument
629 struct sack_filter sf; main() local
[all...]
H A Dsack_filter.h91 * data is now un-acknowledged). You can also pass in sack_filter_blks(tp, sf, NULL, 0, th_ack) to
92 * advance the cum-ack point. You can use sack_filter_blks_used(sf) to determine if you have filter blocks as
95 * if (sack_filter_blks_used(sf))
96 * sack_filter_blks(tp, sf, NULL, 0, th_ack);
100 * sack_filter_rject(sf, in) passing in the list of blocks to be "removed" from the sack-filter.
115 void sack_filter_clear(struct sack_filter *sf, tcp_seq seq);
116 int sack_filter_blks(struct tcpcb *tp, struct sack_filter *sf, struct sackblk *in, int numblks,
118 void sack_filter_reject(struct sack_filter *sf, struct sackblk *in);
119 static inline uint8_t sack_filter_blks_used(struct sack_filter *sf)
121 return (sf
54 sack_filter_blks_used(struct sack_filter * sf) sack_filter_blks_used() argument
[all...]
/freebsd/lib/libbsdstat/
H A Dbsdstat.c38 bsdstat_setfmt(struct bsdstat *sf, const char *fmt0) in bsdstat_setfmt() argument
48 for (i = 0; i < sf->nstats; i++) in bsdstat_setfmt()
49 if (strcasecmp(tok, sf->stats[i].name) == 0) in bsdstat_setfmt()
51 if (i >= sf->nstats) { in bsdstat_setfmt()
53 "skipped\n", sf->name, tok); in bsdstat_setfmt()
56 if (j+4 > (int) sizeof(sf->fmts)) { in bsdstat_setfmt()
58 "stopped at %s\n", sf->name, tok); in bsdstat_setfmt()
62 sf->fmts[j++] = ' '; in bsdstat_setfmt()
63 sf->fmts[j++] = FMTS_IS_STAT; in bsdstat_setfmt()
64 sf->fmts[j++] = i & 0xff; in bsdstat_setfmt()
[all …]
/freebsd/stand/libsa/
H A Dsplitfs.c44 static int split_openfile(struct split_file *sf);
63 split_file_destroy(struct split_file *sf) in split_file_destroy() argument
67 if (sf->filesc > 0) { in split_file_destroy()
68 for (i = 0; i < sf->filesc; i++) { in split_file_destroy()
69 free(sf->filesv[i]); in split_file_destroy()
70 free(sf->descsv[i]); in split_file_destroy()
72 free(sf->filesv); in split_file_destroy()
73 free(sf->descsv); in split_file_destroy()
75 free(sf); in split_file_destroy()
79 split_openfile(struct split_file *sf) in split_openfile() argument
[all …]
/freebsd/sys/kern/
H A Dsubr_sfbuf.c114 struct sf_buf *sf; in sf_buf_alloc() local
124 LIST_FOREACH(sf, hash_list, list_entry) { in sf_buf_alloc()
125 if (sf->m == m) { in sf_buf_alloc()
126 sf->ref_count++; in sf_buf_alloc()
127 if (sf->ref_count == 1) { in sf_buf_alloc()
128 TAILQ_REMOVE(&sf_buf_freelist, sf, free_entry); in sf_buf_alloc()
133 sf_buf_shootdown(sf, flags); in sf_buf_alloc()
138 while ((sf = TAILQ_FIRST(&sf_buf_freelist)) == NULL) { in sf_buf_alloc()
153 TAILQ_REMOVE(&sf_buf_freelist, sf, free_entry); in sf_buf_alloc()
154 if (sf->m != NULL) in sf_buf_alloc()
[all …]
/freebsd/sys/amd64/ia32/
H A Dia32_signal.c339 struct ia32_osigframe sf, *fp; in ia32_osendsig() local
360 td->td_sigstk.ss_size - sizeof(sf)); in ia32_osendsig()
366 sf.sf_signum = sig; in ia32_osendsig()
367 sf.sf_scp = (register_t)&fp->sf_siginfo.si_sc; in ia32_osendsig()
368 bzero(&sf.sf_siginfo, sizeof(sf.sf_siginfo)); in ia32_osendsig()
371 sf.sf_arg2 = (register_t)&fp->sf_siginfo; in ia32_osendsig()
372 sf.sf_siginfo.si_signo = sig; in ia32_osendsig()
373 sf.sf_siginfo.si_code = ksi->ksi_code; in ia32_osendsig()
374 sf.sf_ah = (uintptr_t)catcher; in ia32_osendsig()
375 sf.sf_addr = 0; in ia32_osendsig()
[all …]
/freebsd/sys/i386/i386/
H A Dexec_machdep.c130 struct osigframe sf, *fp; in osendsig() local
159 sf.sf_signum = sig; in osendsig()
160 sf.sf_scp = (register_t)&fp->sf_siginfo.si_sc; in osendsig()
161 bzero(&sf.sf_siginfo, sizeof(sf.sf_siginfo)); in osendsig()
164 sf.sf_arg2 = (register_t)&fp->sf_siginfo; in osendsig()
165 sf.sf_siginfo.si_signo = sig; in osendsig()
166 sf.sf_siginfo.si_code = ksi->ksi_code; in osendsig()
167 sf.sf_ahu.sf_action = (__osiginfohandler_t *)catcher; in osendsig()
168 sf.sf_addr = 0; in osendsig()
171 sf.sf_arg2 = ksi->ksi_code; in osendsig()
[all …]
H A Dvm_machdep.c122 struct savefpu_ymm *sf; in alloc_fpusave() local
126 sf = (struct savefpu_ymm *)res; in alloc_fpusave()
127 bzero(&sf->sv_xstate.sx_hd, sizeof(sf->sv_xstate.sx_hd)); in alloc_fpusave()
128 sf->sv_xstate.sx_hd.xstate_bv = xsave_mask; in alloc_fpusave()
565 sf_buf_map(struct sf_buf *sf, int flags) in kvtop()
568 pmap_sf_buf_map(sf); in kvtop()
570 sf_buf_shootdown(sf, flags);
582 sf_buf_shootdown(struct sf_buf *sf, int flags) in sf_buf_map()
589 if (!CPU_ISSET(cpuid, &sf in sf_buf_shootdown_curcpu_cb()
575 sf_buf_map(struct sf_buf * sf,int flags) sf_buf_map() argument
592 sf_buf_shootdown(struct sf_buf * sf,int flags) sf_buf_shootdown() argument
621 sf_buf_unmap(struct sf_buf * sf) sf_buf_unmap() argument
628 sf_buf_invalidate(struct sf_buf * sf) sf_buf_invalidate() argument
[all...]
/freebsd/sys/sys/
H A Dsf_buf.h114 sf_buf_kva(struct sf_buf *sf) in sf_buf_kva() argument
117 return (PHYS_TO_DMAP(VM_PAGE_TO_PHYS((vm_page_t)sf))); in sf_buf_kva()
119 return (sf->kva); in sf_buf_kva()
123 sf_buf_page(struct sf_buf *sf) in sf_buf_page() argument
126 return ((vm_page_t)sf); in sf_buf_page()
128 return (sf->m); in sf_buf_page()
135 sf_buf_map(struct sf_buf *sf, int flags) in sf_buf_map() argument
138 pmap_qenter(sf->kva, &sf->m, 1); in sf_buf_map()
142 sf_buf_unmap(struct sf_buf *sf) in sf_buf_unmap() argument
167 sf_buf_free(struct sf_buf *sf) in sf_buf_free() argument
[all …]
/freebsd/sys/x86/iommu/
H A Damd_idpgtbl.c72 struct sf_buf **sf, struct iommu_map_entry *entry, bool free_sf);
129 int lvl, int flags, vm_pindex_t *idxp, struct sf_buf **sf) in amdiommu_pgtbl_map_pte() argument
137 if (*sf != NULL && idx == *idxp) { in amdiommu_pgtbl_map_pte()
138 pte = (iommu_pte_t *)sf_buf_kva(*sf); in amdiommu_pgtbl_map_pte()
140 if (*sf != NULL) in amdiommu_pgtbl_map_pte()
141 iommu_unmap_pgtbl(*sf); in amdiommu_pgtbl_map_pte()
144 pte = iommu_map_pgtbl(domain->pgtbl_obj, idx, flags, sf); in amdiommu_pgtbl_map_pte()
191 struct sf_buf *sf; in amdiommu_map_buf_locked() local
201 sf = NULL; in amdiommu_map_buf_locked()
209 flags, &idx, &sf); in amdiommu_map_buf_locked()
[all …]
H A Dintel_idpgtbl.c116 struct sf_buf *sf; in dmar_idmap_nextlvl() local
133 pte = iommu_map_pgtbl(tbl->pgtbl_obj, idx, IOMMU_PGF_WAITOK, &sf); in dmar_idmap_nextlvl()
153 iommu_unmap_pgtbl(sf); in dmar_idmap_nextlvl()
327 int flags, vm_pindex_t *idxp, struct sf_buf **sf) in dmar_pgtbl_map_pte() argument
338 if (*sf != NULL && idx == *idxp) { in dmar_pgtbl_map_pte()
339 pte = (iommu_pte_t *)sf_buf_kva(*sf); in dmar_pgtbl_map_pte()
341 if (*sf != NULL) in dmar_pgtbl_map_pte()
342 iommu_unmap_pgtbl(*sf); in dmar_pgtbl_map_pte()
345 pte = iommu_map_pgtbl(domain->pgtbl_obj, idx, flags, sf); in dmar_pgtbl_map_pte()
399 struct sf_buf *sf; in dmar_map_buf_locked() local
[all …]
/freebsd/sys/arm64/linux/
H A Dlinux_sysvec.c253 struct l_rt_sigframe *sf; in linux_rt_sigreturn() local
259 sf = malloc(sizeof(*sf), M_LINUX, M_WAITOK | M_ZERO); in linux_rt_sigreturn()
263 error = copyin((void *)&frame->sf, sf, sizeof(*sf)); in linux_rt_sigreturn()
265 free(sf, M_LINUX); in linux_rt_sigreturn()
269 memcpy(tf->tf_x, sf->sf_uc.uc_sc.regs, sizeof(tf->tf_x)); in linux_rt_sigreturn()
270 tf->tf_lr = sf->sf_uc.uc_sc.regs[30]; in linux_rt_sigreturn()
271 tf->tf_sp = sf->sf_uc.uc_sc.sp; in linux_rt_sigreturn()
272 tf->tf_elr = sf->sf_uc.uc_sc.pc; in linux_rt_sigreturn()
274 if ((sf->sf_uc.uc_sc.pstate & PSR_M_MASK) != PSR_M_EL0t || in linux_rt_sigreturn()
275 (sf->sf_uc.uc_sc.pstate & PSR_AARCH32) != 0 || in linux_rt_sigreturn()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dhighmem.h61 struct sf_buf *sf; in kmap()
67 sf = sf_buf_alloc(page, SFB_NOWAIT | SFB_CPUPRIVATE); in kmap()
68 if (sf == NULL) { in kmap()
72 return ((void *)sf_buf_kva(sf)); in kmap()
113 struct sf_buf *sf; in kunmap()
117 sf = sf_buf_alloc(page, SFB_NOWAIT | SFB_CPUPRIVATE); in kunmap()
120 sf_buf_free(sf);
121 sf_buf_free(sf); in kunmap_atomic()
60 struct sf_buf *sf; kmap() local
106 struct sf_buf *sf; kunmap() local
/freebsd/contrib/netbsd-tests/bin/df/
H A Dgetmntinfo.c70 struct statvfs *sf; in other_variants() local
75 sf = getnewstatvfs(); in other_variants()
76 *sf = *tmpl; in other_variants()
77 total = (int64_t)(u_long)sf->f_blocks * sf->f_bsize; in other_variants()
79 sf->f_bfree = (total - used) / sf->f_bsize; in other_variants()
80 sf->f_bavail = (total * (100 - minfree[i]) / 100 - in other_variants()
81 used) / (int)sf->f_bsize; in other_variants()
82 sf->f_bresvd = sf->f_bfree - sf->f_bavail; in other_variants()
/freebsd/sys/amd64/linux/
H A Dlinux_sysvec.c359 struct l_rt_sigframe sf; in linux_rt_sigreturn() local
368 error = copyin((void *)regs->tf_rbx, &sf, sizeof(sf)); in linux_rt_sigreturn()
373 context = &sf.sf_uc.uc_mcontext; in linux_rt_sigreturn()
412 linux_to_bsd_sigset(&sf.sf_uc.uc_sigmask, &bmask); in linux_rt_sigreturn()
436 error = linux_copyin_fpstate(td, &sf.sf_uc); in linux_rt_sigreturn()
520 struct l_rt_sigframe sf, *sfp; in linux_rt_sendsig() local
543 bzero(&sf, sizeof(sf)); in linux_rt_sendsig()
544 sf.sf_uc.uc_stack.ss_sp = PTROUT(td->td_sigstk.ss_sp); in linux_rt_sendsig()
545 sf.sf_uc.uc_stack.ss_size = td->td_sigstk.ss_size; in linux_rt_sendsig()
546 sf.sf_uc.uc_stack.ss_flags = (td->td_pflags & TDP_ALTSTACK) in linux_rt_sendsig()
[all …]
/freebsd/sys/arm64/arm64/
H A Ddisassem.c432 arm64_disasm_reg_extend(int sf, int option, int rd, int rn, int amount) in arm64_disasm_reg_extend() argument
437 lsl_preferred_uxtw = sf == 0 && option == 2; in arm64_disasm_reg_extend()
438 lsl_preferred_uxtx = sf == 1 && option == 3; in arm64_disasm_reg_extend()
495 int shift, rm, rt, rd, rn, imm, sf, idx, option, scale, amount; in disasm() local
512 sf = 1; in disasm()
531 sf = 0; in disasm()
534 arm64_disasm_read_token(i_ptr, insn, "SF", &sf); in disasm()
536 sf = 1 - sf; in disasm()
590 di->di_printf("%s, %s", arm64_reg(sf, rd, rd_sp), in disasm()
591 arm64_reg(sf, rn, rn_sp)); in disasm()
[all …]
/freebsd/sys/arm/include/
H A Dsf_buf.h33 sf_buf_map(struct sf_buf *sf, int flags) in sf_buf_map() argument
36 pmap_qenter(sf->kva, &(sf->m), 1); in sf_buf_map()
40 sf_buf_unmap(struct sf_buf *sf) in sf_buf_unmap() argument
43 pmap_qremove(sf->kva, 1); in sf_buf_unmap()
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dcmath.cppm
H A Dcmath.inc265 // [sf.cmath], mathematical special functions
267 // [sf.cmath.assoc.laguerre], associated Laguerre polynomials
272 // [sf.cmath.assoc.legendre], associated Legendre functions
277 // [sf.cmath.beta], beta function
282 // [sf.cmath.comp.ellint.1], complete elliptic integral of the first kind
287 // [sf.cmath.comp.ellint.2], complete elliptic integral of the second kind
292 // [sf.cmath.comp.ellint.3], complete elliptic integral of the third kind
297 // [sf.cmath.cyl.bessel.i], regular modified cylindrical Bessel functions
302 // [sf.cmath.cyl.bessel.j], cylindrical Bessel functions of the first kind
307 // [sf.cmath.cyl.bessel.k], irregular modified cylindrical Bessel functions
[all …]
/freebsd/tools/tools/ath/athaggrstats/
H A Dathaggrstats.c187 ath_collect_cur(struct bsdstat *sf) in ath_collect_cur() argument
189 struct athaggrstatfoo_p *wf = (struct athaggrstatfoo_p *) sf; in ath_collect_cur()
195 ath_collect_tot(struct bsdstat *sf) in ath_collect_tot() argument
197 struct athaggrstatfoo_p *wf = (struct athaggrstatfoo_p *) sf; in ath_collect_tot()
203 ath_update_tot(struct bsdstat *sf) in ath_update_tot() argument
205 struct athaggrstatfoo_p *wf = (struct athaggrstatfoo_p *) sf; in ath_update_tot()
222 ath_get_curstat(struct bsdstat *sf, int s, char b[], size_t bs) in ath_get_curstat() argument
224 struct athaggrstatfoo_p *wf = (struct athaggrstatfoo_p *) sf; in ath_get_curstat()
278 ath_get_totstat(struct bsdstat *sf, int s, char b[], size_t bs) in ath_get_totstat() argument
280 struct athaggrstatfoo_p *wf = (struct athaggrstatfoo_p *) sf; in ath_get_totstat()
[all …]
/freebsd/sys/riscv/include/
H A Dsf_buf.h37 sf_buf_kva(struct sf_buf *sf) in sf_buf_kva() argument
40 return (PHYS_TO_DMAP(VM_PAGE_TO_PHYS((vm_page_t)sf))); in sf_buf_kva()
44 sf_buf_page(struct sf_buf *sf) in sf_buf_page() argument
47 return ((vm_page_t)sf); in sf_buf_page()
/freebsd/sys/arm64/include/
H A Dsf_buf.h41 sf_buf_kva(struct sf_buf *sf) in sf_buf_kva() argument
44 return (PHYS_TO_DMAP(VM_PAGE_TO_PHYS((vm_page_t)sf))); in sf_buf_kva()
48 sf_buf_page(struct sf_buf *sf) in sf_buf_page() argument
51 return ((vm_page_t)sf); in sf_buf_page()
/freebsd/sys/amd64/include/
H A Dsf_buf.h40 sf_buf_kva(struct sf_buf *sf) in sf_buf_kva() argument
43 return (PHYS_TO_DMAP(VM_PAGE_TO_PHYS((vm_page_t)sf))); in sf_buf_kva()
47 sf_buf_page(struct sf_buf *sf) in sf_buf_page() argument
50 return ((vm_page_t)sf); in sf_buf_page()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Ddmu_os.c70 struct sf_buf *sf; in dmu_write_pages() local
105 va = zfs_map_page(*ma, &sf); in dmu_write_pages()
107 zfs_unmap_page(sf); in dmu_write_pages()
126 struct sf_buf *sf; in dmu_read_pages() local
174 va = zfs_map_page(m, &sf); in dmu_read_pages()
176 zfs_unmap_page(sf); in dmu_read_pages()
196 va = zfs_map_page(m, &sf); in dmu_read_pages()
222 zfs_unmap_page(sf); in dmu_read_pages()
272 zfs_unmap_page(sf); in dmu_read_pages()
292 va = zfs_map_page(m, &sf); in dmu_read_pages()
[all …]
/freebsd/tools/tools/npe/npestats/
H A Dnpestats.c152 npe_collect_cur(struct bsdstat *sf) in npe_collect_cur() argument
154 struct npestatfoo_p *wf = (struct npestatfoo_p *) sf; in npe_collect_cur()
160 npe_collect_tot(struct bsdstat *sf) in npe_collect_tot() argument
162 struct npestatfoo_p *wf = (struct npestatfoo_p *) sf; in npe_collect_tot()
168 npe_update_tot(struct bsdstat *sf) in npe_update_tot() argument
170 struct npestatfoo_p *wf = (struct npestatfoo_p *) sf; in npe_update_tot()
176 npe_get_curstat(struct bsdstat *sf, int s, char b[], size_t bs) in npe_get_curstat() argument
178 struct npestatfoo_p *wf = (struct npestatfoo_p *) sf; in npe_get_curstat()
212 npe_get_totstat(struct bsdstat *sf, int s, char b[], size_t bs) in npe_get_totstat() argument
214 struct npestatfoo_p *wf = (struct npestatfoo_p *) sf; in npe_get_totstat()

12345678910