Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 25 of 639) sorted by relevance

12345678910>>...26

/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dfifo.c62 fifonode_t *fn = xmalloc(sizeof (fifonode_t)); in fifo_add() local
64 fn->fn_data = data; in fifo_add()
65 fn->fn_next = NULL; in fifo_add()
68 f->f_head = f->f_tail = fn; in fifo_add()
70 f->f_tail->fn_next = fn; in fifo_add()
71 f->f_tail = fn; in fifo_add()
79 fifonode_t *fn; in fifo_remove() local
82 if ((fn = f->f_head) == NULL) in fifo_remove()
85 data = fn->fn_data; in fifo_remove()
86 if ((f->f_head = fn->fn_next) == NULL) in fifo_remove()
[all …]
/freebsd/lib/msun/src/
H A De_scalbf.c21 scalbf(float x, int fn) in scalbf() argument
24 scalbf(float x, float fn) in scalbf()
28 return scalbnf(x,fn); in scalbf()
30 if ((isnanf)(x)||(isnanf)(fn)) return x*fn; in scalbf()
31 if (!finitef(fn)) { in scalbf()
32 if(fn>(float)0.0) return x*fn; in scalbf()
33 else return x/(-fn); in scalbf()
35 if (rintf(fn)!=fn) return (fn-fn)/(fn-fn); in scalbf()
36 if ( fn > (float)65000.0) return scalbnf(x, 65000); in scalbf()
37 if (-fn > (float)65000.0) return scalbnf(x,-65000); in scalbf()
[all …]
H A De_scalb.c24 scalb(double x, int fn) in scalb() argument
27 scalb(double x, double fn) in scalb()
31 return scalbn(x,fn); in scalb()
33 if (isnan(x)||isnan(fn)) return x*fn; in scalb()
34 if (!finite(fn)) { in scalb()
35 if(fn>0.0) return x*fn; in scalb()
36 else return x/(-fn); in scalb()
38 if (rint(fn)!=fn) return (fn-fn)/(fn-fn); in scalb()
39 if ( fn > 65000.0) return scalbn(x, 65000); in scalb()
40 if (-fn > 65000.0) return scalbn(x,-65000); in scalb()
[all …]
/freebsd/include/
H A Dtgmath.h65 #define __tg_generic(x, cfnl, cfn, cfnf, fnl, fn, fnf) \ argument
71 default: fn, \
77 #define __tg_impl_simple(x, y, z, fnl, fn, fnf, ...) \ argument
80 fnl, fn, fnf, fnl, fn, fnf)(__VA_ARGS__)
81 #define __tg_impl_full(x, y, cfnl, cfn, cfnf, fnl, fn, fnf, ...) \ argument
84 cfnl, cfn, cfnf, fnl, fn, fnf)(__VA_ARGS__)
86 #define __tg_generic_simple(x, fnl, fn, fnf) \ argument
88 __generic(x, double _Complex, fn, \
91 __generic(x, float, fnf, fn)))))
92 #define __tg_impl_simple(x, y, z, fnl, fn, fnf, ...) \ argument
[all …]
/freebsd/lib/libc/stdlib/
H A Datexit.c128 struct atexit_fn fn; in atexit() local
131 fn.fn_type = ATEXIT_FN_STD; in atexit()
132 fn.fn_ptr.std_func = func; in atexit()
133 fn.fn_arg = NULL; in atexit()
134 fn.fn_dso = NULL; in atexit()
136 error = atexit_register(&fn); in atexit()
147 struct atexit_fn fn; in atexit_b() local
157 fn.fn_type = ATEXIT_FN_CXA; in atexit_b()
158 fn.fn_ptr.cxa_func = (void(*)(void*))GET_BLOCK_FUNCTION(func); in atexit_b()
159 fn.fn_arg = func; in atexit_b()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/regex/
H A Dsplit.c51 int fn; in split() local
74 fn = nfields; in split()
77 fn--; in split()
78 if (fn == 0) in split()
82 return(nfields - fn); in split()
86 fn = nfields; in split()
90 return(fn); in split()
91 fn++; in split()
98 fn = nfields; in split()
101 fn--; in split()
[all …]
/freebsd/lib/libc/regex/grot/
H A Dsplit.c20 int fn; in split() local
43 fn = nfields; in split()
46 fn--; in split()
47 if (fn == 0) in split()
51 return(nfields - fn); in split()
55 fn = nfields; in split()
59 return(fn); in split()
60 fn++; in split()
67 fn = nfields; in split()
70 fn--; in split()
[all …]
/freebsd/lib/libutil/tests/
H A Dflopen_test.c47 const char *fn = "test_flopen_create"; in test_flopen_create() local
51 unlink(fn); in test_flopen_create()
52 fd = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_create()
58 unlink(fn); in test_flopen_create()
68 const char *fn = "test_flopen_open"; in test_flopen_open() local
72 fd = open(fn, O_RDWR|O_CREAT, 0640); in test_flopen_open()
77 fd = flopen(fn, O_RDWR); in test_flopen_open()
84 unlink(fn); in test_flopen_open()
94 const char *fn = "test_flopen_lock_self"; in test_flopen_lock_self() local
98 unlink(fn); in test_flopen_lock_self()
[all …]
H A Dpidfile_test.c60 const char *fn = "test_pidfile_uncontested"; in test_pidfile_uncontested() local
64 unlink(fn); in test_pidfile_uncontested()
65 pf = pidfile_open(fn, 0600, &other); in test_pidfile_uncontested()
72 unlink(fn); in test_pidfile_uncontested()
76 unlink(fn); in test_pidfile_uncontested()
86 const char *fn = "test_pidfile_self"; in test_pidfile_self() local
91 unlink(fn); in test_pidfile_self()
92 pf1 = pidfile_open(fn, 0600, &other); in test_pidfile_self()
100 unlink(fn); in test_pidfile_self()
104 pf2 = pidfile_open(fn, 0600, &other); in test_pidfile_self()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dmodule.h89 void (*fn)(void);
101 fn = arg;
102 fn();
105 #define module_init(fn) \
106 SYSINIT(fn, SI_SUB_OFED_MODINIT, SI_ORDER_FIRST, _module_run, (fn))
108 #define module_exit(fn) \
109 SYSUNINIT(fn, SI_SUB_OFED_MODINIT, SI_ORDER_SECOND, _module_run, (fn))
115 #define module_init_order(fn, orde
68 void (*fn)(void); _module_run() local
84 module_init(fn) global() argument
87 module_exit(fn) global() argument
94 module_init_order(fn,order) global() argument
97 module_exit_order(fn,order) global() argument
104 postcore_initcall(fn) global() argument
[all...]
/freebsd/sys/contrib/openzfs/include/os/linux/kernel/linux/
H A Dxattr_compat.h43 #define ZPL_XATTR_LIST_WRAPPER(fn) \ argument
45 fn(struct dentry *dentry) \
47 return (!!__ ## fn(dentry->d_inode, NULL, 0, NULL, 0)); \
55 #define ZPL_XATTR_GET_WRAPPER(fn) \ argument
57 fn(const struct xattr_handler *handler, struct dentry *dentry, \
61 return (__ ## fn(inode, name, buffer, size)); \
64 #define ZPL_XATTR_GET_WRAPPER(fn) \ argument
66 fn(const struct xattr_handler *handler, struct dentry *dentry, \
69 return (__ ## fn(inode, name, buffer, size)); \
80 #define ZPL_XATTR_SET_WRAPPER(fn) \ argument
[all …]
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dzzz_fw_ports_fwget.sh127 fn=$(echo "${lx}" | wc -w | awk '{ print $1 }')
131 if test ${fn} -gt 0; then
136 awk -v fn=$fn -v fwg=${flav} -v drv=${DRIVER} '{
146 fn=$(echo "${lx}" | wc -w | awk '{ print $1 }')
148 if test ${fn} -gt 0; then
152 awk -v fn=$fn -v fwg=${flav} -v drv=${DRIVER} '{
169 fn=$(echo "${fwsl}" | wc -w | awk '{ print $1 }')
171 if test ${fn} -gt 0; then
179 awk -v fn=$fn '{
190 awk -v fn=$fn '{
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_win_dll_thunk.h94 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \
95 fn(); \
102 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \
103 fn(arg); \
110 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \
111 fn(arg1, arg2); \
118 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \
119 fn(arg1, arg2, arg3); \
126 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \
127 return fn(); \
[all …]
/freebsd/sys/dev/sdio/
H A Dsdiob.c141 sdiob_rw_direct_sc(struct sdiob_softc *sc, uint8_t fn, uint32_t addr, bool wr, in sdiob_rw_direct_sc() argument
155 ("%s(fn=%d, addr=%#02x, wr=%d, *val=%#02x)\n", __func__, in sdiob_rw_direct_sc()
156 fn, addr, wr, *val)); in sdiob_rw_direct_sc()
159 arg = SD_IO_RW_FUNC(fn) | SD_IO_RW_ADR(addr); in sdiob_rw_direct_sc()
171 /*timeout*/ sc->cardinfo.f[fn].timeout); in sdiob_rw_direct_sc()
194 sdio_rw_direct(device_t dev, uint8_t fn, uint32_t addr, bool wr, in sdio_rw_direct() argument
202 error = sdiob_rw_direct_sc(sc, fn, addr, wr, val); in sdio_rw_direct()
208 sdiob_read_direct(device_t dev, uint8_t fn, uint32_t addr, uint8_t *val) in sdiob_read_direct() argument
213 error = sdio_rw_direct(dev, fn, addr, false, &v); in sdiob_read_direct()
221 sdiob_write_direct(device_t dev, uint8_t fn, uint32_ argument
242 sdiob_rw_extended_cam(struct sdiob_softc * sc,uint8_t fn,uint32_t addr,bool wr,uint8_t * buffer,bool incaddr,uint32_t b_count,uint16_t blksz) sdiob_rw_extended_cam() argument
373 sdiob_rw_extended_sc(struct sdiob_softc * sc,uint8_t fn,uint32_t addr,bool wr,uint32_t size,uint8_t * buffer,bool incaddr) sdiob_rw_extended_sc() argument
428 sdiob_rw_extended(device_t dev,uint8_t fn,uint32_t addr,bool wr,uint32_t size,uint8_t * buffer,bool incaddr) sdiob_rw_extended() argument
442 sdiob_read_extended(device_t dev,uint8_t fn,uint32_t addr,uint32_t size,uint8_t * buffer,bool incaddr) sdiob_read_extended() argument
450 sdiob_write_extended(device_t dev,uint8_t fn,uint32_t addr,uint32_t size,uint8_t * buffer,bool incaddr) sdiob_write_extended() argument
649 sdio_read_direct_sc(struct sdiob_softc * sc,uint8_t fn,uint32_t addr,uint8_t * val) sdio_read_direct_sc() argument
662 sdio_func_read_cis(struct sdiob_softc * sc,uint8_t fn,uint32_t cis_addr) sdio_func_read_cis() argument
820 int fn, error; sdiob_get_card_info() local
[all...]
/freebsd/sys/contrib/dev/athk/ath12k/
H A Dzzz_fw_ports_fwget.sh147 fn=$(echo "${lx}" | wc -w | awk '{ print $1 }')
151 if test ${fn} -gt 0; then
156 awk -v fn=$fn -v fwg=${flav} -v drv=${DRIVER} '{
167 fn=$(echo "${lx}" | wc -w | awk '{ print $1 }')
169 if test ${fn} -gt 0; then
173 awk -v fn=$fn -v fwg=${flav} -v drv=${DRIVER} '{
193 fn=$(echo "${fwsl}" | wc -w | awk '{ print $1 }')
195 if test ${fn} -gt 0; then
203 awk -v fn=$fn '{
214 awk -v fn=$fn '{
[all …]
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dzzz_fw_ports_fwget.sh154 fn=$(echo "${lx}" | wc -w | awk '{ print $1 }')
158 if test ${fn} -gt 0; then
163 awk -v fn=$fn -v fwg=${flav} -v drv=${DRIVER} '{
174 fn=$(echo "${lx}" | wc -w | awk '{ print $1 }')
176 if test ${fn} -gt 0; then
180 awk -v fn=$fn -v fwg=${flav} -v drv=${DRIVER} '{
200 fn=$(echo "${fwsl}" | wc -w | awk '{ print $1 }')
202 if test ${fn} -gt 0; then
210 awk -v fn=$fn '{
221 awk -v fn=$fn '{
[all …]
/freebsd/contrib/netbsd-tests/lib/libm/
H A Dt_libm.h10 #define T_LIBM_CHECK(subtest, fn, arg, expect_, epsilon_) do { \ argument
13 long double r = fn(arg); \
17 "subtest %u: " #fn "(%g) is %Lg (%.14La) " \
24 #define T_LIBM_CHECK_NAN(subtest, fn, arg) do { \ argument
25 double r = fn(arg); \
27 atf_tc_fail_nonfatal("subtest %u: " #fn "(%g) is %g not NaN", \
32 #define T_LIBM_CHECK_NAN(subtest, fn, arg) (void)(arg) argument
36 #define T_LIBM_CHECK_PLUS_ZERO(subtest, fn, arg) do { \ argument
37 double r = fn(arg); \
39 atf_tc_fail_nonfatal("subtest %u: " #fn "(%g) is %g not +0.0", \
[all …]
/freebsd/crypto/heimdal/lib/roken/
H A Dtest-readenv.c60 write_file(const char *fn, const char *s) in write_file() argument
63 f = fopen(fn, "w"); in write_file()
65 unlink(fn); in write_file()
71 unlink(fn); in write_file()
81 char fn[MAXPATHLEN]; in main() local
84 make_file(fn, sizeof(fn)); in main()
86 write_file(fn, s1); in main()
87 count = read_environment(fn, &env); in main()
93 write_file(fn, s2); in main()
94 count = read_environment(fn, &env); in main()
[all …]
/freebsd/tools/build/
H A Dfreebsd-yeet.pl17 my $fn = $_[0];
19 if ($fn =~ m=^./contrib/=) {
22 if ($fn =~ m=^./sys/contrib/=) {
25 if ($fn =~ m=^./cddl/contrib/=) {
28 if ($fn =~ m=^./crypto/=) {
31 if ($fn =~ m=^./.git/=) {
34 if ($fn =~ m=~$=) {
60 my $fn="$File::Find::name";
61 return if skip_list($fn);
62 open my $fh, '<', $_ or die "Can't open $fn: $!\n";
[all …]
/freebsd/tools/tools/ansify/
H A Dansify.pl40 my $fn = shift;
64 warn("[$fn:$line] $func(): can't parse argument list\n");
76 warn("[$fn:$line] $func(): unknown type for '$arg' argument\n");
96 warn("[$fn:$line] $func(): too many arguments\n");
104 warn("[$fn:$line] $func(): definition exceeds 80 characters\n")
116 my $fn = shift;
118 my $tfn = "$fn.ansify";
122 if (open(IN, "<", $fn)) {
124 ansify(*IN{IO}, *OUT{IO}, $fn);
125 if (!rename($tfn, $fn)) {
[all …]
/freebsd/tools/tools/hcomp/
H A Dhcomp.pl39 my $fn = shift;
44 warn("$fn\n")
47 open(FILE, "<", $fn)
48 or die("$fn: $!\n");
69 open(FILE, ">", "$fn.new")
70 or die("$fn.new: $!\n");
74 rename($fn, "$fn.$opt_b")
76 rename("$fn.new", $fn);
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dmod_os.h116 #define module_init(fn) \ argument
118 wrap_ ## fn(void *dummy __unused) \
120 fn(); \
122 SYSINIT(zfs_ ## fn, SI_SUB_LAST, SI_ORDER_FIRST, wrap_ ## fn, NULL)
124 #define module_init_early(fn) \ argument
126 wrap_ ## fn(void *dummy __unused) \
128 fn(); \
130 SYSINIT(zfs_ ## fn, SI_SUB_INT_CONFIG_HOOKS, SI_ORDER_FIRST, wrap_ ## fn, NULL)
132 #define module_exit(fn) \ argument
134 wrap_ ## fn(void *dummy __unused) \
[all …]
/freebsd/usr.bin/cksum/
H A Dprint.c40 pcrc(char *fn, uint32_t val, off_t len) in pcrc() argument
43 if (fn != NULL) in pcrc()
44 (void)printf(" %s", fn); in pcrc()
49 psum1(char *fn, uint32_t val, off_t len) in psum1() argument
52 if (fn != NULL) in psum1()
53 (void)printf(" %s", fn); in psum1()
58 psum2(char *fn, uint32_t val, off_t len) in psum2() argument
61 if (fn != NULL) in psum2()
62 (void)printf(" %s", fn); in psum2()
/freebsd/lib/libc/csu/
H A Dlibc_start1.c83 void (*fn)(void); in finalizer() local
88 fn = __fini_array_start[n - 1]; in finalizer()
89 if ((uintptr_t)fn != 0 && (uintptr_t)fn != 1) in finalizer()
90 (fn)(); in finalizer()
100 void (*fn)(int, char **, char **); in handle_static_init() local
110 fn = __preinit_array_start[n]; in handle_static_init()
111 if ((uintptr_t)fn != 0 && (uintptr_t)fn != 1) in handle_static_init()
112 fn(argc, argv, env); in handle_static_init()
117 fn = __init_array_start[n]; in handle_static_init()
118 if ((uintptr_t)fn != 0 && (uintptr_t)fn != 1) in handle_static_init()
[all …]
/freebsd/stand/kboot/kboot/
H A Dhostdisk.c166 char fn[1024]; in hostdisk_add_parts() local
168 snprintf(fn, sizeof(fn), "%s/%s", SYSBLK, hd_name(hd)); in hostdisk_add_parts()
169 foreach_file(fn, hostdisk_one_part, hd, 0); in hostdisk_add_parts()
177 char fn[1024]; in hostdisk_add_drive() local
188 snprintf(fn, sizeof(fn), "%s/%s/queue/hw_sector_size", in hostdisk_add_drive()
190 if (!file2u64(fn, &hd->hd_sectorsize)) in hostdisk_add_drive()
211 hostdisk_find(const char *fn) in hostdisk_find() argument
216 if (strcmp(hd->hd_dev, fn) == 0) in hostdisk_find()
219 if (strcmp(md->hd_dev, fn) == 0) in hostdisk_find()
335 const char *fn; in hostdisk_open() local
[all …]

12345678910>>...26