Home
last modified time | relevance | path

Searched refs:pf (Results 1 – 25 of 215) sorted by relevance

123456789

/NextBSD/lib/libc/gen/
HDfmtcheck.c84 #define RETURN(pf,f,r) do { \ argument
85 *(pf) = (f); \
90 get_next_format_from_precision(const char **pf) in get_next_format_from_precision() argument
95 f = *pf; in get_next_format_from_precision()
99 if (!*f) RETURN(pf,f,FMTCHECK_UNKNOWN); in get_next_format_from_precision()
113 if (!*f) RETURN(pf,f,FMTCHECK_UNKNOWN); in get_next_format_from_precision()
141 if (!*f) RETURN(pf,f,FMTCHECK_UNKNOWN); in get_next_format_from_precision()
145 RETURN(pf,f,FMTCHECK_LONG); in get_next_format_from_precision()
147 RETURN(pf,f,FMTCHECK_QUAD); in get_next_format_from_precision()
149 RETURN(pf,f,FMTCHECK_INTMAXT); in get_next_format_from_precision()
[all …]
/NextBSD/sys/dev/pccard/
HDpccard.c85 static int pccard_ccr_read(struct pccard_function *pf, int ccr);
86 static void pccard_ccr_write(struct pccard_function *pf, int ccr, int val);
89 static void pccard_function_init(struct pccard_function *pf, int entry);
90 static void pccard_function_free(struct pccard_function *pf);
91 static int pccard_function_enable(struct pccard_function *pf);
92 static void pccard_function_disable(struct pccard_function *pf);
110 struct pccard_function *pf);
136 pccard_ccr_read(struct pccard_function *pf, int ccr) in pccard_ccr_read() argument
138 return (bus_space_read_1(pf->pf_ccrt, pf->pf_ccrh, in pccard_ccr_read()
139 pf->pf_ccr_offset + ccr)); in pccard_ccr_read()
[all …]
HDpccard_cis_quirks.c285 struct pccard_function *pf, *pf_next, *pf_last; in pccard_check_cis_quirks() local
289 pf = NULL; in pccard_check_cis_quirks()
309 for (pf = STAILQ_FIRST(&sc->card.pf_head); pf != NULL; in pccard_check_cis_quirks()
310 pf = pf_next) { in pccard_check_cis_quirks()
311 for (cfe = STAILQ_FIRST(&pf->cfe_head); cfe != NULL; in pccard_check_cis_quirks()
316 pf_next = STAILQ_NEXT(pf, pf_list); in pccard_check_cis_quirks()
317 free(pf, M_DEVBUF); in pccard_check_cis_quirks()
324 if (pf_last == q->pf) { in pccard_check_cis_quirks()
331 STAILQ_INSERT_TAIL(&pf->cfe_head, cfe, cfe_list); in pccard_check_cis_quirks()
333 pf = malloc(sizeof(*pf), M_DEVBUF, M_NOWAIT); in pccard_check_cis_quirks()
[all …]
HDpccard_cis.c72 struct pccard_function *pf; member
95 state.pf = NULL; in pccard_read_cis()
481 struct pccard_function *pf; in pccard_print_cis() local
510 STAILQ_FOREACH(pf, &card->pf_head, pf_list) { in pccard_print_cis()
511 device_printf(dev, "function %d: ", pf->number); in pccard_print_cis()
513 switch (pf->function) { in pccard_print_cis()
551 printf("unknown (%d)", pf->function); in pccard_print_cis()
555 printf(", ccr addr %#x mask %#x\n", pf->ccr_base, pf->ccr_mask); in pccard_print_cis()
557 STAILQ_FOREACH(cfe, &pf->cfe_head, cfe_list) { in pccard_print_cis()
559 "%d: ", pf->number, cfe->number); in pccard_print_cis()
[all …]
/NextBSD/contrib/file/src/
HDfmtcheck.c57 #define RETURN(pf,f,r) do { \ argument
58 *(pf) = (f); \
63 get_next_format_from_precision(const char **pf) in get_next_format_from_precision() argument
70 f = *pf; in get_next_format_from_precision()
78 if (!*f) RETURN(pf,f,FMTCHECK_UNKNOWN); in get_next_format_from_precision()
97 if (!*f) RETURN(pf,f,FMTCHECK_UNKNOWN); in get_next_format_from_precision()
100 RETURN(pf,f,FMTCHECK_UNKNOWN); in get_next_format_from_precision()
102 RETURN(pf,f,FMTCHECK_LONG); in get_next_format_from_precision()
104 RETURN(pf,f,FMTCHECK_QUAD); in get_next_format_from_precision()
105 RETURN(pf,f,FMTCHECK_INT); in get_next_format_from_precision()
[all …]
/NextBSD/sbin/pfctl/
HDpfctl.c1162 pfctl_add_pool(struct pfctl *pf, struct pf_pool *p, sa_family_t af) in pfctl_add_pool() argument
1166 if ((pf->opts & PF_OPT_NOACTION) == 0) { in pfctl_add_pool()
1167 if (ioctl(pf->dev, DIOCBEGINADDRS, &pf->paddr)) in pfctl_add_pool()
1171 pf->paddr.af = af; in pfctl_add_pool()
1173 memcpy(&pf->paddr.addr, pa, sizeof(struct pf_pooladdr)); in pfctl_add_pool()
1174 if ((pf->opts & PF_OPT_NOACTION) == 0) { in pfctl_add_pool()
1175 if (ioctl(pf->dev, DIOCADDADDR, &pf->paddr)) in pfctl_add_pool()
1183 pfctl_add_rule(struct pfctl *pf, struct pf_rule *r, const char *anchor_call) in pfctl_add_rule() argument
1194 rs = &pf->anchor->ruleset; in pfctl_add_rule()
1230 pfctl_ruleset_trans(struct pfctl *pf, char *path, struct pf_anchor *a) in pfctl_ruleset_trans() argument
[all …]
HDpfctl_optimize.c263 pfctl_optimize_ruleset(struct pfctl *pf, struct pf_ruleset *rs) in pfctl_optimize_ruleset() argument
305 if (construct_superblocks(pf, &opt_queue, &superblocks)) in pfctl_optimize_ruleset()
308 if (pf->optimize & PF_OPTIMIZE_PROFILE) { in pfctl_optimize_ruleset()
309 if (load_feedback_profile(pf, &superblocks)) in pfctl_optimize_ruleset()
314 if (optimize_superblock(pf, block)) in pfctl_optimize_ruleset()
357 superblock_free(pf, block); in pfctl_optimize_ruleset()
367 optimize_superblock(struct pfctl *pf, struct superblock *block) in optimize_superblock() argument
417 if (remove_identical_rules(pf, block)) in optimize_superblock()
419 if (combine_rules(pf, block)) in optimize_superblock()
421 if ((pf->optimize & PF_OPTIMIZE_PROFILE) && in optimize_superblock()
[all …]
HDparse.y72 static struct pfctl *pf = NULL; variable
581 if (pfctl_set_optimization(pf, $3) != 0) {
589 if (!(pf->opts & PF_OPT_OPTIMIZE)) {
590 pf->opts |= PF_OPT_OPTIMIZE;
591 pf->optimize = $3;
603 if (pfctl_set_logif(pf, $3) != 0) {
615 if (pfctl_set_hostid(pf, $3) != 0) {
621 if (pf->opts & PF_OPT_VERBOSE)
628 if (pf->opts & PF_OPT_VERBOSE)
635 if (pf->opts & PF_OPT_VERBOSE)
[all …]
/NextBSD/lib/libutil/tests/
HDpidfile_test.c63 struct pidfh *pf; in test_pidfile_uncontested() local
67 pf = pidfile_open(fn, 0600, &other); in test_pidfile_uncontested()
68 if (pf == NULL && other != 0) in test_pidfile_uncontested()
70 if (pf == NULL) in test_pidfile_uncontested()
72 if (pidfile_write(pf) != 0) { in test_pidfile_uncontested()
73 pidfile_close(pf); in test_pidfile_uncontested()
77 pidfile_close(pf); in test_pidfile_uncontested()
129 struct pidfh *pf = NULL; in common_test_pidfile_child() local
139 pf = pidfile_open(fn, 0600, &other); in common_test_pidfile_child()
140 if (pf == NULL && other != 0) in common_test_pidfile_child()
[all …]
/NextBSD/sys/dev/ixl/
HDif_ixl.c187 static void ixl_reset_vf(struct ixl_pf *pf, struct ixl_vf *vf);
188 static void ixl_reinit_vf(struct ixl_pf *pf, struct ixl_vf *vf);
425 struct ixl_pf *pf; in ixl_if_attach_pre() local
433 pf = iflib_get_softc(ctx); in ixl_if_attach_pre()
434 hw = &pf->hw; in ixl_if_attach_pre()
435 vsi = &pf->vsi; in ixl_if_attach_pre()
436 vsi->back = pf; in ixl_if_attach_pre()
437 vsi->hw = &pf->hw; in ixl_if_attach_pre()
443 pf->dev = iflib_get_dev(ctx); in ixl_if_attach_pre()
456 vsi = &pf->vsi; in ixl_if_attach_pre()
[all …]
HDixl_pf.h119 #define I40E_VC_DEBUG(pf, level, ...) \ argument
121 if ((pf)->vc_debug_lvl >= (level)) \
122 device_printf((pf)->dev, __VA_ARGS__); \
125 #define i40e_send_vf_nack(pf, vf, op, st) \ argument
126 ixl_send_vf_nack_msg((pf), (vf), (op), (st), __FILE__, __LINE__)
/NextBSD/contrib/elftoolchain/libdwarf/
HDlibdwarf_init.c108 _dwarf_producer_init(Dwarf_Debug dbg, Dwarf_Unsigned pf, Dwarf_Error *error) in _dwarf_producer_init() argument
114 if (pf & DW_DLC_SIZE_32 && pf & DW_DLC_SIZE_64) { in _dwarf_producer_init()
119 if ((pf & DW_DLC_SIZE_32) == 0 && (pf & DW_DLC_SIZE_64) == 0) in _dwarf_producer_init()
120 pf |= DW_DLC_SIZE_32; in _dwarf_producer_init()
122 if (pf & DW_DLC_SIZE_64) in _dwarf_producer_init()
127 if (pf & DW_DLC_ISA_IA64 && pf & DW_DLC_ISA_MIPS) { in _dwarf_producer_init()
132 if (pf & DW_DLC_ISA_IA64) in _dwarf_producer_init()
137 if (pf & DW_DLC_TARGET_BIGENDIAN && pf & DW_DLC_TARGET_LITTLEENDIAN) { in _dwarf_producer_init()
142 if ((pf & DW_DLC_TARGET_BIGENDIAN) == 0 && in _dwarf_producer_init()
143 (pf & DW_DLC_TARGET_LITTLEENDIAN) == 0) { in _dwarf_producer_init()
[all …]
/NextBSD/contrib/libpcap/
HDpcap-pf.c103 struct pcap_pf *pf = pc->priv; in pcap_read_pf() local
190 pf->TotPkts++; in pcap_read_pf()
191 pf->TotDrops += sp->ens_dropped; in pcap_read_pf()
192 pf->TotMissed = sp->ens_ifoverflows; in pcap_read_pf()
193 if (pf->OrigMissed < 0) in pcap_read_pf()
194 pf->OrigMissed = pf->TotMissed; in pcap_read_pf()
207 if (pf->filtering_in_kernel || in pcap_read_pf()
210 pf->TotAccepted++; in pcap_read_pf()
245 struct pcap_pf *pf = p->priv; in pcap_stats_pf() local
283 ps->ps_recv = pf->TotAccepted; in pcap_stats_pf()
[all …]
/NextBSD/bin/sh/
HDinput.c434 struct parsefile *pf; in pushfile() local
440 pf = (struct parsefile *)ckmalloc(sizeof (struct parsefile)); in pushfile()
441 pf->prev = parsefile; in pushfile()
442 pf->fd = -1; in pushfile()
443 pf->strpush = NULL; in pushfile()
444 pf->basestrpush.prev = NULL; in pushfile()
445 parsefile = pf; in pushfile()
452 struct parsefile *pf = parsefile; in popfile() local
455 if (pf->fd >= 0) in popfile()
456 close(pf->fd); in popfile()
[all …]
/NextBSD/sys/dev/usb/template/
HDusb_template.c529 usb_hw_ep_match(const struct usb_hw_ep_profile *pf, in usb_hw_ep_match() argument
534 return (pf->support_control); in usb_hw_ep_match()
536 if ((pf->support_in && ep_dir_in) || in usb_hw_ep_match()
537 (pf->support_out && !ep_dir_in)) { in usb_hw_ep_match()
538 if ((pf->support_interrupt && (ep_type == UE_INTERRUPT)) || in usb_hw_ep_match()
539 (pf->support_isochronous && (ep_type == UE_ISOCHRONOUS)) || in usb_hw_ep_match()
540 (pf->support_bulk && (ep_type == UE_BULK))) { in usb_hw_ep_match()
561 const struct usb_hw_ep_profile *pf; in usb_hw_ep_find_match() local
592 (ues->methods->get_hw_ep_profile) (ues->udev, &pf, n); in usb_hw_ep_find_match()
593 if (pf == NULL) { in usb_hw_ep_find_match()
[all …]
/NextBSD/contrib/ntp/libntp/
HDrecvbuff.c309 gen_fifo *pf; in check_gen_fifo_consistency() local
313 pf = fifo; in check_gen_fifo_consistency()
314 REQUIRE((NULL == pf->phead && NULL == pf->pptail) || in check_gen_fifo_consistency()
315 (NULL != pf->phead && NULL != pf->pptail)); in check_gen_fifo_consistency()
317 pptail = &pf->phead; in check_gen_fifo_consistency()
318 for (pthis = pf->phead; in check_gen_fifo_consistency()
324 REQUIRE(NULL == pf->pptail || pptail == pf->pptail); in check_gen_fifo_consistency()
/NextBSD/sys/dev/sfxge/common/
HDef10_tlv_layout.h202 #define TLV_TAG_PF_STATIC_VPD(pf) (0x00030000 + (pf)) argument
227 #define TLV_TAG_PF_DYNAMIC_VPD(pf) (0x10030000 + (pf)) argument
252 #define TLV_TAG_PF_DBI(pf) (0x00040000 + (pf)) argument
337 #define TLV_TAG_PF_PCIE_CONFIG(pf) (0x10080000 + (pf)) argument
577 #define TLV_TAG_VPORT_VLAN_TAG(pf) (0x10130000 + (pf)) argument
641 #define TLV_TAG_PRIVILEGE_MASK_ADD_SINGLE_PF(pf) (0x101A0000 + (pf)) argument
695 #define TLV_TAG_RATE_LIMIT(pf) (0x101b0000 + (pf)) argument
/NextBSD/sys/netinet/
HDtcp_debug.c193 #define pf(f) { \ in tcp_trace() macro
199 pf(SYN); pf(ACK); pf(FIN); pf(RST); pf(PUSH); pf(URG); in tcp_trace()
/NextBSD/usr.sbin/iovctl/
HDvalidate.c205 get_num_vfs(const nvlist_t *pf) in get_num_vfs() argument
209 iov = nvlist_get_nvlist(pf, IOV_CONFIG_NAME); in get_num_vfs()
229 nvlist_t *defaults, *pf, *vf; in validate_config() local
236 pf = find_config(config, PF_CONFIG_NAME); in validate_config()
237 validate_device(pf, nvlist_get_nvlist(schema, PF_CONFIG_NAME), in validate_config()
239 nvlist_move_nvlist(config, PF_CONFIG_NAME, pf); in validate_config()
241 num_vfs = get_num_vfs(pf); in validate_config()
/NextBSD/lib/libusb/
HDlibusb20_desc.c319 const uint8_t *pf; /* pointer to format data */ in libusb20_me_encode() local
332 pf = (*((struct libusb20_me_format *const *)pd))->format; in libusb20_me_encode()
340 me = (pf[0]) & LIBUSB20_ME_MASK; in libusb20_me_encode()
341 pd_count = pf[1] | (pf[2] << 8); in libusb20_me_encode()
342 pf += 3; in libusb20_me_encode()
551 const uint8_t *pf; /* pointer to format data */ in libusb20_me_decode() local
564 pf = (*((struct libusb20_me_format **)pd))->format; in libusb20_me_decode()
572 me = (pf[0]) & LIBUSB20_ME_MASK; in libusb20_me_decode()
573 pd_count = pf[1] | (pf[2] << 8); in libusb20_me_decode()
574 pf += 3; in libusb20_me_decode()
/NextBSD/sys/netpfil/ipfw/
HDip_dn_glue.c475 dn_compat_config_profile(struct dn_profile *pf, struct dn_link *p, in dn_compat_config_profile() argument
482 pf->link_nr = p->link_nr; in dn_compat_config_profile()
483 pf->loss_level = p8->loss_level; in dn_compat_config_profile()
485 pf->samples_no = p8->samples_no; in dn_compat_config_profile()
486 strncpy(pf->name, p8->name,sizeof(pf->name)); in dn_compat_config_profile()
487 bcopy(p8->samples, pf->samples, sizeof(pf->samples)); in dn_compat_config_profile()
503 struct dn_profile *pf = NULL; in dn_compat_configure() local
534 pf = o_next(&buf, sizeof(*pf), DN_PROFILE); in dn_compat_configure()
535 error = dn_compat_config_profile(pf, p, v); in dn_compat_configure()
633 struct dn_profile *pf = s->profile; in dn_c_copy_pipe() local
[all …]
/NextBSD/sbin/shutdown/
HDshutdown.c301 FILE *pf; in timewarn() local
310 if (!(pf = popen(wcmd, "w"))) { in timewarn()
315 (void)fprintf(pf, in timewarn()
320 (void)fprintf(pf, "System going down at %5.5s\n\n", in timewarn()
323 (void)fprintf(pf, "System going down in %d minute%s\n\n", in timewarn()
326 (void)fprintf(pf, "System going down in %s30 seconds\n\n", in timewarn()
329 (void)fprintf(pf, "System going down IMMEDIATELY\n\n"); in timewarn()
332 (void)fwrite(mbuf, sizeof(*mbuf), mbuflen, pf); in timewarn()
341 (void)pclose(pf); in timewarn()
/NextBSD/sbin/dump/
HDoptr.c313 struct pfstab *pf; in dump_getfstab() local
327 if ((pf = (struct pfstab *)malloc(sizeof (*pf))) == NULL) in dump_getfstab()
329 pf->pf_fstab = fs; in dump_getfstab()
330 SLIST_INSERT_HEAD(&table, pf, pf_list); in dump_getfstab()
344 struct pfstab *pf; in fstabsearch() local
348 SLIST_FOREACH(pf, &table, pf_list) { in fstabsearch()
349 fs = pf->pf_fstab; in fstabsearch()
/NextBSD/sys/modules/pf/
HDMakefile3 .PATH: ${.CURDIR}/../../netpfil/pf
5 KMOD= pf
6 SRCS= pf.c pf_if.c pf_lb.c pf_osfp.c pf_ioctl.c pf_norm.c pf_table.c \
/NextBSD/crypto/openssl/crypto/asn1/
HDtasn_fre.c199 const ASN1_PRIMITIVE_FUNCS *pf; in ASN1_primitive_free() local
200 pf = it->funcs; in ASN1_primitive_free()
201 if (pf && pf->prim_free) { in ASN1_primitive_free()
202 pf->prim_free(pval, it); in ASN1_primitive_free()

123456789