/freebsd/lib/libc/gen/ |
H A D | fmtcheck.c | 83 #define RETURN(pf,f,r) do { \ argument 84 *(pf) = (f); \ 94 f = *pf; in get_next_format_from_precision() 156 RETURN(pf,f,FMTCHECK_INT); in get_next_format_from_precision() 186 RETURN(pf,f,FMTCHECK_LONG); in get_next_format_from_precision() 245 f = *pf; in get_next_format_from_width() 255 RETURN(pf,f,get_next_format_from_precision(pf)); in get_next_format_from_width() 266 (*pf)++; in get_next_format() 269 (*pf)++; in get_next_format() 273 f = *pf; in get_next_format() [all …]
|
/freebsd/sys/dev/ixl/ |
H A D | ixl_pf_i2c.c | 76 struct i40e_hw *hw = &pf->hw; in ixl_i2c_bus_clear() 82 ixl_i2c_start(pf); in ixl_i2c_bus_clear() 98 ixl_i2c_start(pf); in ixl_i2c_bus_clear() 101 ixl_i2c_stop(pf); in ixl_i2c_bus_clear() 472 ixl_i2c_start(pf); in ixl_read_i2c_byte_bb() 499 ixl_i2c_start(pf); in ixl_read_i2c_byte_bb() 518 ixl_i2c_stop(pf); in ixl_read_i2c_byte_bb() 523 ixl_i2c_bus_clear(pf); in ixl_read_i2c_byte_bb() 559 ixl_i2c_start(pf); in ixl_write_i2c_byte_bb() 585 ixl_i2c_stop(pf); in ixl_write_i2c_byte_bb() [all …]
|
H A D | ixl_pf_iov.c | 132 hw = &pf->hw; in ixl_vf_alloc_vsi() 133 dev = pf->dev; in ixl_vf_alloc_vsi() 200 hw = &pf->hw; in ixl_vf_setup_vsi() 248 hw = &pf->hw; in ixl_vf_map_queues() 293 hw = &pf->hw; in ixl_vf_vsi_release() 325 hw = &pf->hw; in ixl_vf_release_resources() 357 hw = &pf->hw; in ixl_flush_pcie() 378 hw = &pf->hw; in ixl_reset_vf() 399 hw = &pf->hw; in ixl_reinit_vf() 1408 ixl_notify_vf_link_state(pf, &pf->vfs[i]); in ixl_broadcast_link_state() [all …]
|
H A D | if_ixl.c | 394 pf->osdep.mem_bus_space_size = rman_get_size(pf->pci_mem); in ixl_allocate_pci_resources() 398 pf->hw.hw_addr = (u8 *) &pf->osdep.mem_bus_space_handle; in ixl_allocate_pci_resources() 399 pf->hw.back = &pf->osdep; in ixl_allocate_pci_resources() 517 hw = &pf->hw; in ixl_if_attach_pre() 527 snprintf(pf->admin_mtx_name, sizeof(pf->admin_mtx_name), in ixl_if_attach_pre() 530 callout_init_mtx(&pf->admin_timer, &pf->admin_mtx, 0); in ixl_if_attach_pre() 757 pf->qtag.num_allocated, pf->qtag.num_active); in ixl_if_attach_post() 820 pf->iw_enabled = (pf->iw_msix > 0) ? true : false; in ixl_if_attach_post() 1061 ixl_disable_rings(pf, vsi, &pf->qtag); in ixl_if_stop() 1821 if (pf->read_i2c_byte(pf, req->offset + i, in ixl_if_i2c_req() [all …]
|
H A D | ixl_iw.c | 41 #define IXL_IW_VEC_BASE(pf) ((pf)->msix - (pf)->iw_msix) argument 42 #define IXL_IW_VEC_COUNT(pf) ((pf)->iw_msix) argument 43 #define IXL_IW_VEC_LIMIT(pf) ((pf)->msix) argument 57 for (vec = IXL_IW_VEC_BASE(pf); vec < IXL_IW_VEC_LIMIT(pf); vec++) { in ixl_iw_pf_msix_reset() 150 if (pf_entry->pf == pf) in ixl_iw_pf_init() 197 if (pf_entry->pf == pf) in ixl_iw_pf_stop() 232 if (pf_entry->pf == pf) { in ixl_iw_pf_attach() 248 pf_entry->pf = pf; in ixl_iw_pf_attach() 274 if (pf_entry->pf == pf) in ixl_iw_pf_detach() 315 IXL_PF_LOCK(pf); in ixl_iw_pf_reset() [all …]
|
H A D | ixl_pf_main.c | 519 ixl_pf_qmgr_release(&pf->qmgr, &pf->qtag); in ixl_teardown_hw_structs() 1514 hw = &pf->hw; in ixl_add_hw_filters() 1613 hw = &pf->hw; in ixl_del_hw_filters() 4249 error = pf->read_i2c_byte(pf, 0, 0xA0, &output); in ixl_sysctl_read_i2c_diag_data() 4262 pf->read_i2c_byte(pf, 92, 0xA0, &output); in ixl_sysctl_read_i2c_diag_data() 4271 pf->read_i2c_byte(pf, offset, 0xA2, &output); in ixl_sysctl_read_i2c_diag_data() 4275 pf->read_i2c_byte(pf, offset, 0xA2, &output); in ixl_sysctl_read_i2c_diag_data() 4286 pf->read_i2c_byte(pf, offset, 0xA0, &output); in ixl_sysctl_read_i2c_diag_data() 4290 pf->read_i2c_byte(pf, offset, 0xA0, &output); in ixl_sysctl_read_i2c_diag_data() 4295 pf->read_i2c_byte(pf, offset, 0xA0, &output); in ixl_sysctl_read_i2c_diag_data() [all …]
|
H A D | ixl_pf_iflib.c | 77 struct ixl_pf *pf = arg; in ixl_intr() local 135 struct ixl_pf *pf = arg; in ixl_msix_adminq() local 137 device_t dev = pf->dev; in ixl_msix_adminq() 143 ++pf->admin_irq; in ixl_msix_adminq() 340 rman_get_rid(pf->pci_mem), pf->pci_mem); in ixl_free_pci_resources() 450 if (pf->veb_seid != 0) in ixl_initialize_vsi() 881 error = ixl_enable_tx_ring(pf, &pf->qtag, i); in ixl_enable_rings() 884 error = ixl_enable_rx_ring(pf, &pf->qtag, i); in ixl_enable_rings() 936 ixl_shutdown_hmc(pf); in ixl_prepare_for_reset() 945 ixl_pf_qmgr_release(&pf->qmgr, &pf->qtag); in ixl_prepare_for_reset() [all …]
|
H A D | ixl_pf.h | 94 #define IXL_PF_IN_RECOVERY_MODE(pf) \ argument 97 #define IXL_PF_IS_RESETTING(pf) \ argument 98 ixl_test_state(&pf->state, IXL_STATE_RESETTING) 279 #define i40e_send_vf_nack(pf, vf, op, st) \ argument 283 #define ixl_dbg(pf, m, s, ...) ixl_debug_core((pf)->dev, (pf)->dbg_mask, m, s, ##__VA_ARGS__) argument 284 #define ixl_dbg_info(pf, s, ...) ixl_debug_core((pf)->dev, (pf)->dbg_mask, IXL_DBG_INFO, s, ##__VA_… argument 285 #define ixl_dbg_filter(pf, s, ...) ixl_debug_core((pf)->dev, (pf)->dbg_mask, IXL_DBG_FILTER, s, ##_… argument 286 #define ixl_dbg_iov(pf, s, ...) ixl_debug_core((pf)->dev, (pf)->dbg_mask, IXL_DBG_IOV, s, ##__VA_AR… argument 287 #define ixl_dbg_link(pf, s, ...) ixl_debug_core((pf)->dev, (pf)->dbg_mask, IXL_DBG_LINK, s, ##__VA_… argument 356 void ixl_print_nvm_version(struct ixl_pf *pf); [all …]
|
H A D | ixl_iw_int.h | 43 enum ixl_iw_pf_state pf; member 50 struct ixl_pf *pf; member 65 int ixl_iw_pf_init(struct ixl_pf *pf); 66 void ixl_iw_pf_stop(struct ixl_pf *pf); 67 int ixl_iw_pf_attach(struct ixl_pf *pf); 68 int ixl_iw_pf_detach(struct ixl_pf *pf);
|
/freebsd/contrib/file/src/ |
H A D | fmtcheck.c | 60 #define RETURN(pf,f,r) do { \ argument 61 *(pf) = (f); \ 73 f = *pf; in get_next_format_from_precision() 125 RETURN(pf,f,FMTCHECK_INT); in get_next_format_from_precision() 153 RETURN(pf,f,FMTCHECK_INT); in get_next_format_from_precision() 174 f = *pf; in get_next_format_from_width() 184 RETURN(pf,f,get_next_format_from_precision(pf)); in get_next_format_from_width() 195 (*pf)++; in get_next_format() 198 (*pf)++; in get_next_format() 202 f = *pf; in get_next_format() [all …]
|
/freebsd/sys/contrib/ck/include/ |
H A D | ck_pflock.h | 58 ck_pflock_init(struct ck_pflock *pf) in ck_pflock_init() argument 61 pf->rin = 0; in ck_pflock_init() 62 pf->rout = 0; in ck_pflock_init() 63 pf->win = 0; in ck_pflock_init() 64 pf->wout = 0; in ck_pflock_init() 80 ck_pr_faa_32(&pf->wout, 1); in ck_pflock_write_unlock() 85 ck_pflock_write_lock(ck_pflock_t *pf) in ck_pflock_write_lock() argument 90 ticket = ck_pr_faa_32(&pf->win, 1); in ck_pflock_write_lock() 99 ticket = ck_pr_faa_32(&pf->rin, in ck_pflock_write_lock() 111 ck_pflock_read_unlock(ck_pflock_t *pf) in ck_pflock_read_unlock() argument [all …]
|
/freebsd/sbin/pfctl/ |
H A D | pfctl.c | 1734 if (ioctl(pf->dev, DIOCADDADDR, &pf->paddr)) in pfctl_add_pool() 2114 if (ioctl(pf->dev, DIOCADDALTQ, pf->paltq)) { in pfctl_add_altq() 2166 memset(&pf, 0, sizeof(pf)); in pfctl_rules() 2193 pf.astack[0] = pf.anchor; in pfctl_rules() 2215 pf.eastack[0] = pf.eanchor; in pfctl_rules() 2371 if (pfctl_load_limit(pf, i, pf->limit[i])) in pfctl_load_options() 2394 if (pfctl_load_timeout(pf, i, pf->timeout[i])) in pfctl_load_options() 2400 if (pfctl_load_debug(pf, pf->debug)) in pfctl_load_options() 2405 if (pfctl_load_logif(pf, pf->ifname)) in pfctl_load_options() 2410 if (pfctl_load_hostid(pf, pf->hostid)) in pfctl_load_options() [all …]
|
/freebsd/lib/libutil/tests/ |
H A D | pidfile_test.c | 61 struct pidfh *pf; in test_pidfile_uncontested() local 68 if (pf == NULL) in test_pidfile_uncontested() 71 pidfile_close(pf); in test_pidfile_uncontested() 75 pidfile_close(pf); in test_pidfile_uncontested() 142 if (pf == NULL) in common_test_pidfile_child() 157 if (pf == NULL) in common_test_pidfile_child() 166 if (pf == NULL) in common_test_pidfile_child() 187 if (pf) in common_test_pidfile_child() 188 pidfile_close(pf); in common_test_pidfile_child() 201 if (pf != NULL) { in common_test_pidfile_child() [all …]
|
/freebsd/sys/dev/sound/pcm/ |
H A D | sndstat.c | 151 pf = malloc(sizeof(*pf), M_DEVBUF, M_WAITOK | M_ZERO); in sndstat_open() 154 free(pf, M_DEVBUF); in sndstat_open() 158 pf->fflags = flags; in sndstat_open() 205 sx_xlock(&pf->lock); in sndstat_close() 210 free(pf, M_DEVBUF); in sndstat_close() 240 len = sbuf_len(&pf->sbuf) - pf->in_offset; in sndstat_read() 244 err = uiomove(sbuf_data(&pf->sbuf) + pf->in_offset, len, buf); in sndstat_read() 245 pf->in_offset += len; in sndstat_read() 277 sx_xlock(&pf->lock); in sndstat_write() 315 pf->out_offset = sbuf_len(&pf->sbuf); in sndstat_write() [all …]
|
/freebsd/tools/tools/netmap/ |
H A D | nmreplay.c | 267 bzero(pf, sizeof(*pf)); in destroy_pcap() 303 ret = cvt(pf->cur, size, pf->swap); in read_next_info() 323 bzero(pf, sizeof(*pf)); in readpcap() 338 pf->data = mmap(NULL, pf->filesize, PROT_READ, MAP_SHARED, pf->fd, 0); in readpcap() 344 pf->cur = pf->data; in readpcap() 345 pf->lim = pf->data + pf->filesize; in readpcap() 375 pf->lim = pf->data + pf->filesize; in readpcap() 378 while (pf->cur < pf->lim && pf->err == 0) { in readpcap() 379 uint32_t base = pf->cur - pf->data; in readpcap() 381 read_next_info(pf, 4) * pf->resolution; in readpcap() [all …]
|
/freebsd/contrib/elftoolchain/libdwarf/ |
H A D | libdwarf_init.c | 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() 145 pf |= DW_DLC_TARGET_BIGENDIAN; in _dwarf_producer_init() 147 pf |= DW_DLC_TARGET_LITTLEENDIAN; in _dwarf_producer_init() 168 pf |= DW_DLC_STREAM_RELOCATIONS; in _dwarf_producer_init() [all …]
|
/freebsd/contrib/blocklist/libexec/ |
H A D | blacklistd-helper | 12 pf= 14 pf="ipfw" 19 if [ -z "$pf" ]; then 22 pf="$f" 28 if [ -z "$pf" ]; then 53 case "$pf" in 76 pf) 89 case "$pf" in 103 pf) 110 case "$pf" in [all …]
|
/freebsd/contrib/libpcap/ |
H A D | pcap-pf.c | 102 struct pcap_pf *pf = pc->priv; in pcap_read_pf() local 188 pf->TotPkts++; in pcap_read_pf() 191 if (pf->OrigMissed < 0) in pcap_read_pf() 192 pf->OrigMissed = pf->TotMissed; in pcap_read_pf() 208 pf->TotAccepted++; in pcap_read_pf() 243 struct pcap_pf *pf = p->priv; in pcap_stats_pf() local 282 ps->ps_drop = pf->TotDrops; in pcap_stats_pf() 283 ps->ps_ifdrop = pf->TotMissed - pf->OrigMissed; in pcap_stats_pf() 298 struct pcap_pf *pf = p->priv; in pcap_activate_pf() local 356 pf->OrigMissed = -1; in pcap_activate_pf() [all …]
|
/freebsd/bin/sh/ |
H A D | input.c | 433 struct parsefile *pf; in pushfile() local 440 pf->prev = parsefile; in pushfile() 441 pf->fd = -1; in pushfile() 442 pf->strpush = NULL; in pushfile() 444 parsefile = pf; in pushfile() 454 if (pf->fd >= 0) in popfile() 455 close(pf->fd); in popfile() 456 if (pf->buf) in popfile() 457 ckfree(pf->buf); in popfile() 458 while (pf->strpush) in popfile() [all …]
|
/freebsd/tests/sys/netinet/ |
H A D | tcp_md5_getsockopt.c | 56 int pf; in test_tcp_md5_getsockopt() local 59 pf = PF_INET6; in test_tcp_md5_getsockopt() 62 s6.sin6_family = pf; in test_tcp_md5_getsockopt() 69 pf = PF_INET; in test_tcp_md5_getsockopt() 72 s4.sin_family = pf; in test_tcp_md5_getsockopt() 80 if ((ssock = socket(pf, SOCK_STREAM, 0)) == -1) in test_tcp_md5_getsockopt() 92 if ((csock = socket(pf, SOCK_STREAM, 0)) == -1) in test_tcp_md5_getsockopt()
|
/freebsd/contrib/netbsd-tests/sys/uvm/ |
H A D | t_uvm_physseg_load.c | 284 paddr_t pf = atop(pa); in uvm_phys_to_vm_page() local 288 psi = uvm_physseg_find(pf, &off); in uvm_phys_to_vm_page() 535 paddr_t pf = 0; in ATF_TC_BODY() local 559 for(pf = VALID_START_PFN_2; pf < VALID_END_PFN_2; pf += PF_STEP) { in ATF_TC_BODY() 561 uvm_physseg_unplug(pf, pf_chunk_size); in ATF_TC_BODY() 584 paddr_t pf = 0; in ATF_TC_BODY() local 608 for(pf = VALID_START_PFN_3; pf < VALID_END_PFN_3; pf += PF_STEP) { in ATF_TC_BODY() 633 paddr_t pf = 0; in ATF_TC_BODY() local 657 for(pf = VALID_START_PFN_4; pf < VALID_END_PFN_4; pf += PF_STEP) { in ATF_TC_BODY() 682 paddr_t pf = 0; in ATF_TC_BODY() local [all …]
|
/freebsd/sys/dev/usb/template/ |
H A D | usb_template.c | 616 return (pf->support_control); in usb_hw_ep_match() 643 const struct usb_hw_ep_profile *pf; in usb_hw_ep_find_match() local 674 if (pf == NULL) { in usb_hw_ep_find_match() 679 if (dir_in || pf->is_simplex) { in usb_hw_ep_find_match() 686 if (dir_out || pf->is_simplex) { in usb_hw_ep_find_match() 714 ep->pf = pf; in usb_hw_ep_find_match() 722 pf = ep->pf; in usb_hw_ep_find_match() 757 const struct usb_hw_ep_profile *pf; in usb_hw_ep_get_needs() local 830 (ues->udev, &pf, ep_no); in usb_hw_ep_get_needs() 831 if (pf == NULL) { in usb_hw_ep_get_needs() [all …]
|
/freebsd/tests/sys/netinet/libalias/ |
H A D | 3_natin.c | 230 struct alias_link *pf; variable 239 ATF_REQUIRE(pf != NULL); 305 struct alias_link *pf; variable 314 ATF_REQUIRE(pf != NULL); 316 ATF_REQUIRE(0 == LibAliasAddServer(la, pf, prv1, ntohs(0x1234))); 335 struct alias_link *pf; variable 345 ATF_REQUIRE(pf != NULL); 347 ATF_CHECK(-1 == LibAliasRedirectDynamic(la, pf)); 348 LibAliasRedirectDelete(la, pf); 351 ATF_REQUIRE(pf != NULL); [all …]
|
/freebsd/sys/dev/sfxge/common/ |
H A D | ef10_tlv_layout.h | 204 #define TLV_TAG_PF_STATIC_VPD(pf) (0x00030000 + (pf)) argument 228 #define TLV_TAG_PF_DYNAMIC_VPD(pf) (0x10030000 + (pf)) argument 252 #define TLV_TAG_PF_DBI(pf) (0x00040000 + (pf)) argument 334 #define TLV_TAG_PF_PCIE_CONFIG(pf) (0x10080000 + (pf)) argument 636 #define TLV_TAG_VPORT_VLAN_TAG(pf) (0x10130000 + (pf)) argument 700 #define TLV_TAG_PRIVILEGE_MASK_ADD_SINGLE_PF(pf) (0x101A0000 + (pf)) argument 753 #define TLV_TAG_RATE_LIMIT(pf) (0x101b0000 + (pf)) argument
|
/freebsd/contrib/ntp/libntp/ |
H A D | recvbuff.c | 381 gen_fifo *pf; in check_gen_fifo_consistency() local 385 pf = fifo; in check_gen_fifo_consistency() 386 REQUIRE((NULL == pf->phead && NULL == pf->pptail) || in check_gen_fifo_consistency() 387 (NULL != pf->phead && NULL != pf->pptail)); in check_gen_fifo_consistency() 389 pptail = &pf->phead; in check_gen_fifo_consistency() 390 for (pthis = pf->phead; in check_gen_fifo_consistency() 396 REQUIRE(NULL == pf->pptail || pptail == pf->pptail); in check_gen_fifo_consistency()
|