| /f-stack/freebsd/contrib/openzfs/lib/libnvpair/ |
| H A D | libnvpair_json.c | 55 FPRINTF(fp, "\""); in nvlist_print_json_string() 62 FPRINTF(fp, "\\n"); in nvlist_print_json_string() 65 FPRINTF(fp, "\\r"); in nvlist_print_json_string() 71 FPRINTF(fp, "\\f"); in nvlist_print_json_string() 74 FPRINTF(fp, "\\t"); in nvlist_print_json_string() 108 FPRINTF(fp, "\""); in nvlist_print_json_string() 123 FPRINTF(fp, "{"); in nvlist_print_json() 130 FPRINTF(fp, ","); in nvlist_print_json() 136 FPRINTF(fp, ":"); in nvlist_print_json() 229 FPRINTF(fp, "["); in nvlist_print_json() [all …]
|
| /f-stack/freebsd/sys/ |
| H A D | file.h | 362 return ((*fp->f_ops->fo_poll)(fp, events, active_cred, td)); in fo_poll() 370 return ((*fp->f_ops->fo_stat)(fp, sb, active_cred, td)); in fo_stat() 377 return ((*fp->f_ops->fo_close)(fp, td)); in fo_close() 384 return ((*fp->f_ops->fo_kqfilter)(fp, kn)); in fo_kqfilter() 392 return ((*fp->f_ops->fo_chmod)(fp, mode, active_cred, td)); in fo_chmod() 417 return ((*fp->f_ops->fo_seek)(fp, offset, whence, td)); in fo_seek() 424 return ((*fp->f_ops->fo_fill_kinfo)(fp, kif, fdp)); in fo_fill_kinfo() 443 return ((*fp->f_ops->fo_aio_queue)(fp, job)); in fo_aio_queue() 452 return ((*fp->f_ops->fo_add_seals)(fp, seals)); in fo_add_seals() 461 return ((*fp->f_ops->fo_get_seals)(fp, seals)); in fo_get_seals() [all …]
|
| H A D | fail.h | 98 #define FAIL_POINT_IS_OFF(fp) (__predict_true((fp)->fp_setting == NULL) || \ argument 99 __predict_true(fail_point_is_off(fp))) 120 bool fail_point_is_off(struct fail_point *fp); 130 fp->fp_pre_sleep_fn = sleep_fn; in fail_point_sleep_set_pre_func() 136 fp->fp_pre_sleep_arg = sleep_arg; in fail_point_sleep_set_pre_arg() 146 fp->fp_post_sleep_fn = sleep_fn; in fail_point_sleep_set_post_func() 152 fp->fp_post_sleep_arg = sleep_arg; in fail_point_sleep_set_post_arg() 172 fail_point_alloc_callout(fp); in fail_point_use_timeout_path() 173 fp->fp_flags |= FAIL_POINT_USE_TIMEOUT_PATH; in fail_point_use_timeout_path() 178 fp->fp_post_sleep_fn = post_sleep_fn; in fail_point_use_timeout_path() [all …]
|
| /f-stack/freebsd/contrib/ipfilter/netinet/ |
| H A D | ip_rules.c | 110 frentry_t *fp; in ipfrule_add_out_() local 115 fp->fr_next = NULL; in ipfrule_add_out_() 117 if (strncmp(fp->fr_names + fp->fr_group, in ipfrule_add_out_() 130 fp = &ipfrule_out_; in ipfrule_add_out_() 131 bzero((char *)fp, sizeof(*fp)); in ipfrule_add_out_() 147 frentry_t *fp; in ipfrule_remove_out_() local 179 frentry_t *fp; in ipfrule_add_in_() local 186 if (strncmp(fp->fr_names + fp->fr_group, in ipfrule_add_in_() 199 fp = &ipfrule_in_; in ipfrule_add_in_() 200 bzero((char *)fp, sizeof(*fp)); in ipfrule_add_in_() [all …]
|
| /f-stack/dpdk/lib/librte_ip_frag/ |
| H A D | ip_frag_internal.c | 110 } else if ((idx = fp->last_idx) < RTE_DIM(fp->frags)) { in ip_frag_process() 128 fp, fp->key.src_dst[0], fp->key.id, in ip_frag_process() 129 fp->total_size, fp->frag_size, fp->last_idx, in ip_frag_process() 141 fp, IPv6_KEY_BYTES(fp->key.src_dst), fp->key.id, in ip_frag_process() 142 fp->total_size, fp->frag_size, fp->last_idx, in ip_frag_process() 163 if (likely (fp->frag_size < fp->total_size)) { in ip_frag_process() 167 } else if (fp->frag_size == fp->total_size && in ip_frag_process() 186 fp, fp->key.src_dst[0], fp->key.id, in ip_frag_process() 187 fp->total_size, fp->frag_size, fp->last_idx, in ip_frag_process() 199 fp, IPv6_KEY_BYTES(fp->key.src_dst), fp->key.id, in ip_frag_process() [all …]
|
| H A D | rte_ipv4_reassembly.c | 23 n = fp->last_idx - 1; in ipv4_frag_reassemble() 37 if(fp->frags[i].ofs + fp->frags[i].len == ofs) { in ipv4_frag_reassemble() 51 m = fp->frags[i].mb; in ipv4_frag_reassemble() 52 ofs = fp->frags[i].ofs; in ipv4_frag_reassemble() 65 fp->frags[curr_idx].mb = NULL; in ipv4_frag_reassemble() 102 struct ip_frag_pkt *fp; in rte_ipv4_frag_reassemble_packet() local 149 fp, fp->key.src_dst[0], fp->key.id, fp->start, in rte_ipv4_frag_reassemble_packet() 150 fp->total_size, fp->frag_size, fp->last_idx); in rte_ipv4_frag_reassemble_packet() 155 ip_frag_inuse(tbl, fp); in rte_ipv4_frag_reassemble_packet() 164 fp, fp->key.src_dst[0], fp->key.id, fp->start, in rte_ipv4_frag_reassemble_packet() [all …]
|
| H A D | ip_frag_common.h | 97 fp->frags[i].mb = NULL; in ip_frag_free() 101 fp->last_idx = 0; in ip_frag_free() 115 __func__, __LINE__, fp->frags[i].mb, fp->start, in ip_frag_free_immediate() 116 fp->key.src_dst[0], fp->key.id); in ip_frag_free_immediate() 118 fp->frags[i].mb = NULL; in ip_frag_free_immediate() 122 fp->last_idx = 0; in ip_frag_free_immediate() 145 fp->start = tms; in ip_frag_reset() 146 fp->total_size = UINT32_MAX; in ip_frag_reset() 147 fp->frag_size = 0; in ip_frag_reset() 156 struct ip_frag_pkt *fp) in ip_frag_tbl_del() argument [all …]
|
| H A D | rte_ipv6_reassembly.c | 43 n = fp->last_idx - 1; in ipv6_frag_reassemble() 60 if (fp->frags[i].ofs + fp->frags[i].len == ofs) { in ipv6_frag_reassemble() 74 m = fp->frags[i].mb; in ipv6_frag_reassemble() 75 ofs = fp->frags[i].ofs; in ipv6_frag_reassemble() 141 struct ip_frag_pkt *fp; in rte_ipv6_frag_reassemble_packet() local 182 if (fp == NULL) { in rte_ipv6_frag_reassemble_packet() 193 fp, IPv6_KEY_BYTES(fp->key.src_dst), fp->key.id, fp->start, in rte_ipv6_frag_reassemble_packet() 194 fp->total_size, fp->frag_size, fp->last_idx); in rte_ipv6_frag_reassemble_packet() 200 ip_frag_inuse(tbl, fp); in rte_ipv6_frag_reassemble_packet() 209 fp, IPv6_KEY_BYTES(fp->key.src_dst), fp->key.id, fp->start, in rte_ipv6_frag_reassemble_packet() [all …]
|
| /f-stack/freebsd/kern/ |
| H A D | kern_fail.c | 94 #define FP_SLEEP_CHANNEL(fp) (void*)(fp) argument 417 fp->fp_pre_sleep_fn(fp->fp_pre_sleep_arg); in fail_point_pause() 422 fp->fp_post_sleep_fn(fp->fp_post_sleep_arg); in fail_point_pause() 437 fp->fp_pre_sleep_fn(fp->fp_pre_sleep_arg); in fail_point_sleep() 442 fp->fp_post_sleep_fn(fp->fp_post_sleep_arg); in fail_point_sleep() 445 fp->fp_pre_sleep_fn(fp->fp_pre_sleep_arg); in fail_point_sleep() 448 fp->fp_post_sleep_fn, fp->fp_post_sleep_arg); in fail_point_sleep() 852 fp->fp_name, fp->fp_location, buf); in fail_point_set() 855 fp->fp_name, fp->fp_location, buf); in fail_point_set() 877 fp = arg1; in fail_point_sysctl() [all …]
|
| H A D | subr_firmware.c | 154 if (fp->fw.name != NULL && strcasecmp(name, fp->fw.name) == 0) in lookup() 157 return (fp); in lookup() 265 if (fp == NULL || fp->file != NULL) { in loadimage() 296 if (fp != NULL) in firmware_get_flags() 334 if (fp->refcnt == 0 && fp->parent != NULL) in firmware_get_flags() 336 fp->refcnt++; in firmware_get_flags() 338 return &fp->fw; in firmware_get_flags() 363 fp->refcnt--; in firmware_put() 369 if (fp->file) in firmware_put() 420 if (fp->file == NULL || fp->refcnt != 0 || in unloadentry() [all …]
|
| H A D | kern_descrip.c | 2036 bzero(fp, sizeof(*fp)); in _falloc_noinstall() 2466 if (fp == NULL || fp->f_type != DTYPE_VNODE || in fdclearlocks() 2660 if (fp != NULL && is_unsafe(fp)) { in fdsetugidsafety() 2713 if (fp != NULL && (fp->f_type == DTYPE_MQUEUE || in fdcloseexec() 2938 *fpp = fp; in fget_cap() 3123 *fpp = fp; in fget_unlocked_seq() 3185 *fpp = fp; in fget_unlocked() 3228 *fpp = fp; in fget_only_user() 3248 *fpp = fp; in fget_only_user() 4812 fp, file_type_to_name(fp->f_type), XPTRWIDTH, fp->f_data, in db_print_file() [all …]
|
| H A D | tty_pts.c | 117 struct tty *tp = fp->f_data; in ptsdev_read() 191 struct tty *tp = fp->f_data; in ptsdev_write() 264 struct tty *tp = fp->f_data; in ptsdev_ioctl() 396 struct tty *tp = fp->f_data; in ptsdev_poll() 450 struct file *fp = kn->kn_fp; in pts_kqops_read_detach() local 589 if (fp->f_vnode != NULL) in ptsdev_close() 601 tp = fp->f_data; in ptsdev_fill_kinfo() 842 struct file *fp; in sys_posix_openpt() local 858 fdclose(td, fp, fd); in sys_posix_openpt() 859 fdrop(fp, td); in sys_posix_openpt() [all …]
|
| H A D | vfs_vnops.c | 176 struct file *fp; member 340 if (fp->f_type != DTYPE_NONE && fp->f_type != DTYPE_VNODE) in vn_open_vnode_advlock() 428 fp->f_vnode = vp; in vn_open_vnode() 853 if (fp->f_advice == NULL || fp->f_vnode->v_type != VREG) in get_advice() 988 vp = fp->f_vnode; in vn_read() 1060 vp = fp->f_vnode; in vn_write() 1379 vp = fp->f_vnode; in vn_io_fault() 1401 args.args.fop_args.fp = fp; in vn_io_fault() 1566 fp->f_cred); in vn_truncate() 1761 ref= (fp->f_flag & FHASLOCK) != 0 && fp->f_type == DTYPE_VNODE; in vn_closefile() [all …]
|
| H A D | sys_procdesc.c | 128 struct file *fp; in procdesc_find() local 138 pd = fp->f_data; in procdesc_find() 147 fdrop(fp, td); in procdesc_find() 173 struct file *fp; in kern_pdgetpid() local 185 fdrop(fp, td); in kern_pdgetpid() 358 pd = fp->f_data; in procdesc_close() 360 fp->f_data = NULL; in procdesc_close() 431 pd = fp->f_data; in procdesc_poll() 498 pd = fp->f_data; in procdesc_kqfilter() 523 pd = fp->f_data; in procdesc_stat() [all …]
|
| H A D | uipc_sem.c | 172 ks = fp->f_data; in ksem_stat() 207 ks = fp->f_data; in ksem_chmod() 501 fdrop(fp, td); in ksem_create() 586 fdrop(fp, td); in ksem_create() 611 *fpp = fp; in ksem_get() 709 fdrop(fp, td); in sys_ksem_close() 750 fdrop(fp, td); in sys_ksem_post() 821 &fp); in kern_sem_wait() 868 fdrop(fp, td); in kern_sem_wait() 907 fdrop(fp, td); in sys_ksem_getvalue() [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/os/linux/zfs/ |
| H A D | zfs_file_os.c | 69 filp_close(fp, 0); in zfs_file_close() 113 fp->f_pos = off; in zfs_file_write() 194 fp->f_pos = off; in zfs_file_read() 355 error = fp->f_op->fallocate(fp, mode, offset, len); in zfs_file_fallocate() 415 zfs_file_t *fp; in zfs_file_get() local 417 fp = fget(fd); in zfs_file_get() 418 if (fp == NULL) in zfs_file_get() 421 *fpp = fp; in zfs_file_get() 434 struct file *fp; in zfs_file_put() local 437 fput(fp); in zfs_file_put() [all …]
|
| /f-stack/freebsd/netinet/ |
| H A D | ip_reass.c | 187 struct ipq *fp; in ip_reass() local 292 if (fp == NULL) { in ip_reass() 295 if (fp == NULL) in ip_reass() 297 if (fp == NULL) in ip_reass() 302 fp = NULL; in ip_reass() 334 fp = NULL; in ip_reass() 547 if (fp != NULL) { in ip_reass() 687 struct ipq *fp; in ipreass_drain_tomax() local 787 struct ipq *fp; in ipq_reuse() local 797 if (fp) { in ipq_reuse() [all …]
|
| /f-stack/freebsd/netpfil/pf/ |
| H A D | pf_osfp.c | 115 memset(&fp, 0, sizeof(fp)); in pf_osfp_fingerprint_hdr() 144 fp.fp_optcnt++; in pf_osfp_fingerprint_hdr() 146 fp.fp_tcpopts = (fp.fp_tcpopts << PF_OSFP_TCPOPT_BITS) | in pf_osfp_fingerprint_hdr() 160 fp.fp_tcpopts = (fp.fp_tcpopts << in pf_osfp_fingerprint_hdr() 169 fp.fp_tcpopts = (fp.fp_tcpopts << in pf_osfp_fingerprint_hdr() 174 fp.fp_tcpopts = (fp.fp_tcpopts << in pf_osfp_fingerprint_hdr() 184 fp.fp_tcpopts = (fp.fp_tcpopts << in pf_osfp_fingerprint_hdr() 197 fp.fp_wsize, fp.fp_ttl, (fp.fp_flags & PF_OSFP_DF) != 0, in pf_osfp_fingerprint_hdr() 198 fp.fp_psize, (long long int)fp.fp_tcpopts, fp.fp_optcnt, in pf_osfp_fingerprint_hdr() 202 fp.fp_mss, in pf_osfp_fingerprint_hdr() [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | zfs_file_os.c | 75 fo_close(fp, curthread); in zfs_file_close() 118 loff_t off = fp->f_offset; in zfs_file_write() 123 fp->f_offset = off; in zfs_file_write() 175 fp->f_offset = off; in zfs_file_read() 247 struct file *fp; in zfs_file_get() local 252 *fpp = fp; in zfs_file_get() 259 struct file *fp; in zfs_file_put() local 263 fdrop(fp, curthread); in zfs_file_put() 264 fdrop(fp, curthread); in zfs_file_put() 271 return (fp->f_offset); in zfs_file_off() [all …]
|
| /f-stack/app/redis-5.0.5/src/ |
| H A D | redis-check-aof.c | 53 epos = ftello(fp); in readLong() 67 epos = ftello(fp); in readBytes() 68 real = fread(target,1,length,fp); in readBytes() 79 if (!readLong(fp,'$',&len)) { in readString() 86 if (!readBytes(fp,*target,len)) { in readString() 97 return readLong(fp,'*',target); in readArgc() 100 off_t process(FILE *fp) { in process() argument 166 if (fp == NULL) { in redis_check_aof_main() 189 rewind(fp); in redis_check_aof_main() 202 off_t pos = process(fp); in redis_check_aof_main() [all …]
|
| /f-stack/freebsd/contrib/openzfs/include/sys/ |
| H A D | zfs_file.h | 41 int zfs_file_open(const char *path, int flags, int mode, zfs_file_t **fp); 42 void zfs_file_close(zfs_file_t *fp); 45 int zfs_file_pwrite(zfs_file_t *fp, const void *buf, size_t len, loff_t off, 47 int zfs_file_read(zfs_file_t *fp, void *buf, size_t len, ssize_t *resid); 48 int zfs_file_pread(zfs_file_t *fp, void *buf, size_t len, loff_t off, 51 int zfs_file_seek(zfs_file_t *fp, loff_t *offp, int whence); 52 int zfs_file_getattr(zfs_file_t *fp, zfs_file_attr_t *zfattr); 53 int zfs_file_fsync(zfs_file_t *fp, int flags); 55 loff_t zfs_file_off(zfs_file_t *fp); 58 int zfs_file_get(int fd, zfs_file_t **fp); [all …]
|
| /f-stack/freebsd/arm64/arm64/ |
| H A D | unwind.c | 41 uintptr_t fp; in unwind_frame() local 43 fp = frame->fp; in unwind_frame() 45 if (!kstack_contains(td, fp, sizeof(uintptr_t) * 2)) in unwind_frame() 48 frame->sp = fp + sizeof(uintptr_t) * 2; in unwind_frame() 50 frame->fp = ((uintptr_t *)fp)[0]; in unwind_frame() 52 frame->pc = ((uintptr_t *)fp)[1] - 4; in unwind_frame()
|
| /f-stack/freebsd/contrib/openzfs/lib/libzfs/ |
| H A D | libzfs_diff.c | 180 stream_bytes(fp, file); in print_cmn() 194 (void) fprintf(fp, "\t"); in print_rename() 196 print_cmn(fp, di, old); in print_rename() 198 (void) fprintf(fp, "\t"); in print_rename() 201 print_cmn(fp, di, new); in print_rename() 202 (void) fprintf(fp, "\n"); in print_rename() 216 (void) fprintf(fp, "\t"); in print_link_change() 218 print_cmn(fp, di, file); in print_link_change() 220 (void) fprintf(fp, "\n"); in print_link_change() 236 print_cmn(fp, di, file); in print_file() [all …]
|
| /f-stack/freebsd/contrib/openzfs/lib/libspl/os/linux/ |
| H A D | getmntany.c | 51 getmntany(FILE *fp, struct mnttab *mgetp, struct mnttab *mrefp) in getmntany() argument 56 ((ret = _sol_getmntent(fp, mgetp)) == 0) && ( in getmntany() 64 _sol_getmntent(FILE *fp, struct mnttab *mgetp) in _sol_getmntent() argument 69 ret = getmntent_r(fp, &mntbuf, buf, BUFSIZE); in _sol_getmntent() 79 if (feof(fp)) in _sol_getmntent() 86 getextmntent_impl(FILE *fp, struct extmnttab *mp, int len) in getextmntent_impl() argument 91 ret = _sol_getmntent(fp, (struct mnttab *)mp); in getextmntent_impl() 109 FILE *fp; local 131 if ((fp = setmntent(MNTTAB, "r")) == NULL) { 133 if ((fp = fopen(MNTTAB, "r")) == NULL) { [all …]
|
| /f-stack/dpdk/drivers/crypto/ccp/ |
| H A D | ccp_pci.c | 23 FILE *fp; in ccp_check_pci_uio_module() local 27 fp = fopen(PROC_MODULES, "r"); in ccp_check_pci_uio_module() 28 if (fp == NULL) in ccp_check_pci_uio_module() 35 fclose(fp); in ccp_check_pci_uio_module() 40 rewind(fp); in ccp_check_pci_uio_module() 42 fclose(fp); in ccp_check_pci_uio_module() 155 FILE *fp; in ccp_pci_parse_sysfs_resource() local 160 fp = fopen(filename, "r"); in ccp_pci_parse_sysfs_resource() 161 if (fp == NULL) in ccp_pci_parse_sysfs_resource() 178 fclose(fp); in ccp_pci_parse_sysfs_resource() [all …]
|