| /freebsd-13.1/lib/libc/gen/ |
| H A D | fmtcheck.c | 86 #define RETURN(pf,f,r) do { \ argument 87 *(pf) = (f); \ 97 f = *pf; in get_next_format_from_precision() 159 RETURN(pf,f,FMTCHECK_INT); in get_next_format_from_precision() 189 RETURN(pf,f,FMTCHECK_LONG); in get_next_format_from_precision() 248 f = *pf; in get_next_format_from_width() 258 RETURN(pf,f,get_next_format_from_precision(pf)); in get_next_format_from_width() 269 (*pf)++; in get_next_format() 272 (*pf)++; in get_next_format() 276 f = *pf; in get_next_format() [all …]
|
| /freebsd-13.1/sys/dev/ixl/ |
| H A D | ixl_pf_i2c.c | 77 struct i40e_hw *hw = &pf->hw; in ixl_i2c_bus_clear() 83 ixl_i2c_start(pf); in ixl_i2c_bus_clear() 99 ixl_i2c_start(pf); in ixl_i2c_bus_clear() 102 ixl_i2c_stop(pf); in ixl_i2c_bus_clear() 473 ixl_i2c_start(pf); in ixl_read_i2c_byte_bb() 500 ixl_i2c_start(pf); in ixl_read_i2c_byte_bb() 519 ixl_i2c_stop(pf); in ixl_read_i2c_byte_bb() 524 ixl_i2c_bus_clear(pf); in ixl_read_i2c_byte_bb() 560 ixl_i2c_start(pf); in ixl_write_i2c_byte_bb() 586 ixl_i2c_stop(pf); in ixl_write_i2c_byte_bb() [all …]
|
| H A D | ixl_pf_iov.c | 134 hw = &pf->hw; in ixl_vf_alloc_vsi() 136 dev = pf->dev; in ixl_vf_alloc_vsi() 203 hw = &pf->hw; in ixl_vf_setup_vsi() 251 hw = &pf->hw; in ixl_vf_map_queues() 296 hw = &pf->hw; in ixl_vf_vsi_release() 328 hw = &pf->hw; in ixl_vf_release_resources() 360 hw = &pf->hw; in ixl_flush_pcie() 381 hw = &pf->hw; in ixl_reset_vf() 402 hw = &pf->hw; in ixl_reinit_vf() 1411 ixl_notify_vf_link_state(pf, &pf->vfs[i]); in ixl_broadcast_link_state() [all …]
|
| H A D | if_ixl.c | 399 pf->osdep.mem_bus_space_size = rman_get_size(pf->pci_mem); in ixl_allocate_pci_resources() 403 pf->hw.hw_addr = (u8 *) &pf->osdep.mem_bus_space_handle; in ixl_allocate_pci_resources() 404 pf->hw.back = &pf->osdep; in ixl_allocate_pci_resources() 499 hw = &pf->hw; in ixl_if_attach_pre() 509 snprintf(pf->admin_mtx_name, sizeof(pf->admin_mtx_name), in ixl_if_attach_pre() 512 callout_init_mtx(&pf->admin_timer, &pf->admin_mtx, 0); in ixl_if_attach_pre() 745 pf->qtag.num_allocated, pf->qtag.num_active); in ixl_if_attach_post() 791 pf->iw_enabled = (pf->iw_msix > 0) ? true : false; in ixl_if_attach_post() 1032 ixl_disable_rings(pf, vsi, &pf->qtag); in ixl_if_stop() 1789 if (pf->read_i2c_byte(pf, req->offset + i, in ixl_if_i2c_req() [all …]
|
| H A D | ixl_iw.c | 42 #define IXL_IW_VEC_BASE(pf) ((pf)->msix - (pf)->iw_msix) argument 43 #define IXL_IW_VEC_COUNT(pf) ((pf)->iw_msix) argument 44 #define IXL_IW_VEC_LIMIT(pf) ((pf)->msix) argument 58 for (vec = IXL_IW_VEC_BASE(pf); vec < IXL_IW_VEC_LIMIT(pf); vec++) { in ixl_iw_pf_msix_reset() 151 if (pf_entry->pf == pf) in ixl_iw_pf_init() 198 if (pf_entry->pf == pf) in ixl_iw_pf_stop() 233 if (pf_entry->pf == pf) { in ixl_iw_pf_attach() 249 pf_entry->pf = pf; in ixl_iw_pf_attach() 275 if (pf_entry->pf == pf) in ixl_iw_pf_detach() 316 IXL_PF_LOCK(pf); in ixl_iw_pf_reset() [all …]
|
| H A D | ixl_pf_main.c | 454 ixl_pf_qmgr_release(&pf->qmgr, &pf->qtag); in ixl_teardown_hw_structs() 1364 hw = &pf->hw; in ixl_add_hw_filters() 1458 hw = &pf->hw; in ixl_del_hw_filters() 4046 error = pf->read_i2c_byte(pf, 0, 0xA0, &output); in ixl_sysctl_read_i2c_diag_data() 4059 pf->read_i2c_byte(pf, 92, 0xA0, &output); in ixl_sysctl_read_i2c_diag_data() 4068 pf->read_i2c_byte(pf, offset, 0xA2, &output); in ixl_sysctl_read_i2c_diag_data() 4072 pf->read_i2c_byte(pf, offset, 0xA2, &output); in ixl_sysctl_read_i2c_diag_data() 4083 pf->read_i2c_byte(pf, offset, 0xA0, &output); in ixl_sysctl_read_i2c_diag_data() 4087 pf->read_i2c_byte(pf, offset, 0xA0, &output); in ixl_sysctl_read_i2c_diag_data() 4092 pf->read_i2c_byte(pf, offset, 0xA0, &output); in ixl_sysctl_read_i2c_diag_data() [all …]
|
| H A D | ixl_pf_iflib.c | 78 struct ixl_pf *pf = arg; in ixl_intr() local 136 struct ixl_pf *pf = arg; in ixl_msix_adminq() local 138 device_t dev = pf->dev; in ixl_msix_adminq() 144 ++pf->admin_irq; in ixl_msix_adminq() 341 rman_get_rid(pf->pci_mem), pf->pci_mem); in ixl_free_pci_resources() 451 if (pf->veb_seid != 0) in ixl_initialize_vsi() 882 error = ixl_enable_tx_ring(pf, &pf->qtag, i); in ixl_enable_rings() 885 error = ixl_enable_rx_ring(pf, &pf->qtag, i); in ixl_enable_rings() 937 ixl_shutdown_hmc(pf); in ixl_prepare_for_reset() 946 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 165 s32 (*read_i2c_byte)(struct ixl_pf *pf, u8 byte_offset, 167 s32 (*write_i2c_byte)(struct ixl_pf *pf, u8 byte_offset, 277 #define i40e_send_vf_nack(pf, vf, op, st) \ argument 281 #define ixl_dbg(pf, m, s, ...) ixl_debug_core((pf)->dev, (pf)->dbg_mask, m, s, ##__VA_ARGS__) argument 282 #define ixl_dbg_info(pf, s, ...) ixl_debug_core((pf)->dev, (pf)->dbg_mask, IXL_DBG_INFO, s, ##__VA_… argument 283 #define ixl_dbg_filter(pf, s, ...) ixl_debug_core((pf)->dev, (pf)->dbg_mask, IXL_DBG_FILTER, s, ##_… argument 284 #define ixl_dbg_iov(pf, s, ...) ixl_debug_core((pf)->dev, (pf)->dbg_mask, IXL_DBG_IOV, s, ##__VA_AR… argument 349 void ixl_print_nvm_version(struct ixl_pf *pf); [all …]
|
| H A D | ixl_iw_int.h | 44 enum ixl_iw_pf_state pf; member 51 struct ixl_pf *pf; member 66 int ixl_iw_pf_init(struct ixl_pf *pf); 67 void ixl_iw_pf_stop(struct ixl_pf *pf); 68 int ixl_iw_pf_attach(struct ixl_pf *pf); 69 int ixl_iw_pf_detach(struct ixl_pf *pf);
|
| /freebsd-13.1/sys/dev/pccard/ |
| H A D | pccard.c | 250 ivar->pf = pf; in pccard_attach_card() 306 pf->number, pf->pf_ccr_window, pf->pf_ccr_offset, in pccard_probe_and_attach_child() 456 struct pccard_function *pf = devi->pf; in pccard_select_cfe() local 712 pf->ccr_rid, pf->ccr_base, &pf->pf_ccr_offset); in pccard_function_enable() 1009 struct pccard_function *pf = devi->pf; in pccard_probe_nomatch() local 1016 pf->function, pf->number); in pccard_probe_nomatch() 1029 struct pccard_function *pf = devi->pf; in pccard_child_location_str() local 1040 struct pccard_function *pf = devi->pf; in pccard_child_pnpinfo_str() local 1061 struct pccard_function *pf = devi->pf; in pccard_read_ivar() local 1213 struct pccard_function *pf = ivar->pf; in pccard_child_detached() local [all …]
|
| H A D | pccard_cis_quirks.c | 288 pf = NULL; in pccard_check_cis_quirks() 308 for (pf = STAILQ_FIRST(&sc->card.pf_head); pf != NULL; in pccard_check_cis_quirks() 309 pf = pf_next) { in pccard_check_cis_quirks() 316 free(pf, M_DEVBUF); in pccard_check_cis_quirks() 323 if (pf_last == q->pf) { in pccard_check_cis_quirks() 332 pf = malloc(sizeof(*pf), M_DEVBUF, M_NOWAIT); in pccard_check_cis_quirks() 333 if (pf == NULL) { in pccard_check_cis_quirks() 338 *pf = *q->pf; in pccard_check_cis_quirks() 339 STAILQ_INIT(&pf->cfe_head); in pccard_check_cis_quirks() 342 free(pf, M_DEVBUF); in pccard_check_cis_quirks() [all …]
|
| H A D | pccard_cis.c | 74 struct pccard_function *pf; member 97 state.pf = NULL; in pccard_read_cis() 515 switch (pf->function) { in pccard_print_cis() 557 printf(", ccr addr %#x mask %#x\n", pf->ccr_base, pf->ccr_mask); in pccard_print_cis() 669 pf != NULL; pf = pfnext) { in pccard_parse_cis_tuple() 671 free(pf, M_DEVBUF); in pccard_parse_cis_tuple() 678 state->pf = NULL; in pccard_parse_cis_tuple() 820 state->pf = malloc(sizeof(*state->pf), M_DEVBUF, in pccard_parse_cis_tuple() 834 if (state->pf == NULL || state->pf->function <= 0) { in pccard_parse_cis_tuple() 867 state->pf = malloc(sizeof(*state->pf), in pccard_parse_cis_tuple() [all …]
|
| /freebsd-13.1/contrib/file/src/ |
| H A D | fmtcheck.c | 57 #define RETURN(pf,f,r) do { \ argument 58 *(pf) = (f); \ 70 f = *pf; in get_next_format_from_precision() 122 RETURN(pf,f,FMTCHECK_INT); in get_next_format_from_precision() 150 RETURN(pf,f,FMTCHECK_INT); in get_next_format_from_precision() 171 f = *pf; in get_next_format_from_width() 181 RETURN(pf,f,get_next_format_from_precision(pf)); in get_next_format_from_width() 192 (*pf)++; in get_next_format() 195 (*pf)++; in get_next_format() 199 f = *pf; in get_next_format() [all …]
|
| /freebsd-13.1/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-13.1/sbin/pfctl/ |
| H A D | pfctl.c | 1401 if (ioctl(pf->dev, DIOCBEGINADDRS, &pf->paddr)) in pfctl_add_pool() 1409 if (ioctl(pf->dev, DIOCADDADDR, &pf->paddr)) in pfctl_add_pool() 1615 if (ioctl(pf->dev, DIOCADDALTQ, pf->paltq)) { in pfctl_add_altq() 1661 memset(&pf, 0, sizeof(pf)); in pfctl_rules() 1687 pf.astack[0] = pf.anchor; in pfctl_rules() 1839 if (pfctl_load_limit(pf, i, pf->limit[i])) in pfctl_load_options() 1862 if (pfctl_load_timeout(pf, i, pf->timeout[i])) in pfctl_load_options() 1868 if (pfctl_load_debug(pf, pf->debug)) in pfctl_load_options() 1873 if (pfctl_load_logif(pf, pf->ifname)) in pfctl_load_options() 1878 if (pfctl_load_hostid(pf, pf->hostid)) in pfctl_load_options() [all …]
|
| /freebsd-13.1/sys/dev/sound/pcm/ |
| H A D | sndstat.c | 113 pf = malloc(sizeof(*pf), M_DEVBUF, M_WAITOK | M_ZERO); in sndstat_open() 118 free(pf, M_DEVBUF); in sndstat_open() 135 sbuf_delete(&pf->sbuf); in sndstat_close() 139 free(pf, M_DEVBUF); in sndstat_close() 169 len = sbuf_len(&pf->sbuf) - pf->in_offset; in sndstat_read() 173 err = uiomove(sbuf_data(&pf->sbuf) + pf->in_offset, len, buf); in sndstat_read() 174 pf->in_offset += len; in sndstat_read() 206 sbuf_clear(&pf->sbuf); in sndstat_write() 225 pf->out_offset = sbuf_len(&pf->sbuf); in sndstat_write() 227 pf->out_offset = 0; in sndstat_write() [all …]
|
| /freebsd-13.1/lib/libutil/tests/ |
| H A D | pidfile_test.c | 64 struct pidfh *pf; in test_pidfile_uncontested() local 71 if (pf == NULL) in test_pidfile_uncontested() 74 pidfile_close(pf); in test_pidfile_uncontested() 78 pidfile_close(pf); in test_pidfile_uncontested() 145 if (pf == NULL) in common_test_pidfile_child() 160 if (pf == NULL) in common_test_pidfile_child() 169 if (pf == NULL) in common_test_pidfile_child() 190 if (pf) in common_test_pidfile_child() 191 pidfile_close(pf); in common_test_pidfile_child() 204 if (pf != NULL) { in common_test_pidfile_child() [all …]
|
| /freebsd-13.1/tools/tools/netmap/ |
| H A D | nmreplay.c | 269 bzero(pf, sizeof(*pf)); in destroy_pcap() 305 ret = cvt(pf->cur, size, pf->swap); in read_next_info() 325 bzero(pf, sizeof(*pf)); in readpcap() 340 pf->data = mmap(NULL, pf->filesize, PROT_READ, MAP_SHARED, pf->fd, 0); in readpcap() 346 pf->cur = pf->data; in readpcap() 347 pf->lim = pf->data + pf->filesize; in readpcap() 377 pf->lim = pf->data + pf->filesize; in readpcap() 380 while (pf->cur < pf->lim && pf->err == 0) { in readpcap() 381 uint32_t base = pf->cur - pf->data; in readpcap() 383 read_next_info(pf, 4) * pf->resolution; in readpcap() [all …]
|
| /freebsd-13.1/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-13.1/contrib/blacklist/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-13.1/contrib/libpcap/ |
| H A D | pcap-pf.c | 103 struct pcap_pf *pf = pc->priv; in pcap_read_pf() local 190 pf->TotPkts++; in pcap_read_pf() 193 if (pf->OrigMissed < 0) in pcap_read_pf() 194 pf->OrigMissed = pf->TotMissed; in pcap_read_pf() 210 pf->TotAccepted++; in pcap_read_pf() 245 struct pcap_pf *pf = p->priv; in pcap_stats_pf() local 284 ps->ps_drop = pf->TotDrops; in pcap_stats_pf() 285 ps->ps_ifdrop = pf->TotMissed - pf->OrigMissed; in pcap_stats_pf() 300 struct pcap_pf *pf = p->priv; in pcap_activate_pf() local 358 pf->OrigMissed = -1; in pcap_activate_pf() [all …]
|
| /freebsd-13.1/bin/sh/ |
| H A D | input.c | 431 struct parsefile *pf; in pushfile() local 438 pf->prev = parsefile; in pushfile() 439 pf->fd = -1; in pushfile() 440 pf->strpush = NULL; in pushfile() 442 parsefile = pf; in pushfile() 452 if (pf->fd >= 0) in popfile() 453 close(pf->fd); in popfile() 454 if (pf->buf) in popfile() 455 ckfree(pf->buf); in popfile() 456 while (pf->strpush) in popfile() [all …]
|
| /freebsd-13.1/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-13.1/sys/dev/usb/template/ |
| H A D | usb_template.c | 617 return (pf->support_control); in usb_hw_ep_match() 644 const struct usb_hw_ep_profile *pf; in usb_hw_ep_find_match() local 675 if (pf == NULL) { in usb_hw_ep_find_match() 680 if (dir_in || pf->is_simplex) { in usb_hw_ep_find_match() 687 if (dir_out || pf->is_simplex) { in usb_hw_ep_find_match() 715 ep->pf = pf; in usb_hw_ep_find_match() 723 pf = ep->pf; in usb_hw_ep_find_match() 758 const struct usb_hw_ep_profile *pf; in usb_hw_ep_get_needs() local 831 (ues->udev, &pf, ep_no); in usb_hw_ep_get_needs() 832 if (pf == NULL) { in usb_hw_ep_get_needs() [all …]
|
| /freebsd-13.1/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 …]
|