| /src/lib/libc/gen/ |
| H A D | fmtcheck.c | 81 #define RETURN(pf,f,r) do { \ argument 82 *(pf) = (f); \ 87 get_next_format_from_precision(const char **pf) in get_next_format_from_precision() argument 92 f = *pf; in get_next_format_from_precision() 96 if (!*f) RETURN(pf,f,FMTCHECK_UNKNOWN); in get_next_format_from_precision() 110 if (!*f) RETURN(pf,f,FMTCHECK_UNKNOWN); in get_next_format_from_precision() 138 if (!*f) RETURN(pf,f,FMTCHECK_UNKNOWN); in get_next_format_from_precision() 142 RETURN(pf,f,FMTCHECK_LONG); in get_next_format_from_precision() 144 RETURN(pf,f,FMTCHECK_QUAD); in get_next_format_from_precision() 146 RETURN(pf,f,FMTCHECK_INTMAXT); in get_next_format_from_precision() [all …]
|
| /src/sys/dev/ixl/ |
| H A D | ixl_pf_i2c.c | 51 static s32 ixl_set_i2c_data(struct ixl_pf *pf, u32 *i2cctl, bool data); 52 static bool ixl_get_i2c_data(struct ixl_pf *pf, u32 *i2cctl); 53 static void ixl_raise_i2c_clk(struct ixl_pf *pf, u32 *i2cctl); 54 static void ixl_lower_i2c_clk(struct ixl_pf *pf, u32 *i2cctl); 55 static s32 ixl_clock_out_i2c_bit(struct ixl_pf *pf, bool data); 56 static s32 ixl_get_i2c_ack(struct ixl_pf *pf); 57 static s32 ixl_clock_out_i2c_byte(struct ixl_pf *pf, u8 data); 58 static s32 ixl_clock_in_i2c_bit(struct ixl_pf *pf, bool *data); 59 static s32 ixl_clock_in_i2c_byte(struct ixl_pf *pf, u8 *data); 60 static void ixl_i2c_bus_clear(struct ixl_pf *pf); [all …]
|
| H A D | ixl_pf_iov.c | 45 static int ixl_vf_alloc_vsi(struct ixl_pf *pf, struct ixl_vf *vf); 46 static int ixl_vf_setup_vsi(struct ixl_pf *pf, struct ixl_vf *vf); 47 static void ixl_vf_map_queues(struct ixl_pf *pf, struct ixl_vf *vf); 48 static void ixl_vf_vsi_release(struct ixl_pf *pf, struct ixl_vsi *vsi); 49 static void ixl_vf_release_resources(struct ixl_pf *pf, struct ixl_vf *vf); 50 static int ixl_flush_pcie(struct ixl_pf *pf, struct ixl_vf *vf); 51 static void ixl_reset_vf(struct ixl_pf *pf, struct ixl_vf *vf); 52 static void ixl_reinit_vf(struct ixl_pf *pf, struct ixl_vf *vf); 53 static void ixl_send_vf_msg(struct ixl_pf *pf, struct ixl_vf *vf, uint16_t op, enum i40e_status_cod… 54 static void ixl_send_vf_ack(struct ixl_pf *pf, struct ixl_vf *vf, uint16_t op); [all …]
|
| H A D | if_ixl.c | 132 static void ixl_setup_ssctx(struct ixl_pf *pf); 361 ixl_allocate_pci_resources(struct ixl_pf *pf) in ixl_allocate_pci_resources() argument 363 device_t dev = iflib_get_dev(pf->vsi.ctx); in ixl_allocate_pci_resources() 364 struct i40e_hw *hw = &pf->hw; in ixl_allocate_pci_resources() 369 pf->pci_mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in ixl_allocate_pci_resources() 372 if (!(pf->pci_mem)) { in ixl_allocate_pci_resources() 390 pf->osdep.mem_bus_space_tag = in ixl_allocate_pci_resources() 391 rman_get_bustag(pf->pci_mem); in ixl_allocate_pci_resources() 392 pf->osdep.mem_bus_space_handle = in ixl_allocate_pci_resources() 393 rman_get_bushandle(pf->pci_mem); in ixl_allocate_pci_resources() [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 51 ixl_iw_pf_msix_reset(struct ixl_pf *pf) in ixl_iw_pf_msix_reset() argument 53 struct i40e_hw *hw = &pf->hw; in ixl_iw_pf_msix_reset() 57 for (vec = IXL_IW_VEC_BASE(pf); vec < IXL_IW_VEC_LIMIT(pf); vec++) { in ixl_iw_pf_msix_reset() 93 device_printf(pf_entry->pf->dev, in ixl_iw_invoke_op() 101 device_printf(pf_entry->pf->dev, in ixl_iw_invoke_op() 105 ixl_iw_pf_msix_reset(pf_entry->pf); in ixl_iw_invoke_op() 139 ixl_iw_pf_init(struct ixl_pf *pf) in ixl_iw_pf_init() argument [all …]
|
| H A D | ixl_pf_main.c | 210 ixl_print_nvm_version(struct ixl_pf *pf) in ixl_print_nvm_version() argument 212 struct i40e_hw *hw = &pf->hw; in ixl_print_nvm_version() 213 device_t dev = pf->dev; in ixl_print_nvm_version() 234 ixl_get_fw_mode(struct ixl_pf *pf) in ixl_get_fw_mode() argument 236 struct i40e_hw *hw = &pf->hw; in ixl_get_fw_mode() 241 if (pf->recovery_mode) in ixl_get_fw_mode() 270 ixl_pf_reset(struct ixl_pf *pf) in ixl_pf_reset() argument 272 struct i40e_hw *hw = &pf->hw; in ixl_pf_reset() 276 fw_mode = ixl_get_fw_mode(pf); in ixl_pf_reset() 277 ixl_dbg_info(pf, "%s: before PF reset FW mode: 0x%08x\n", __func__, fw_mode); in ixl_pf_reset() [all …]
|
| H A D | ixl_pf_iflib.c | 37 ixl_configure_tx_itr(struct ixl_pf *pf) in ixl_configure_tx_itr() argument 39 struct i40e_hw *hw = &pf->hw; in ixl_configure_tx_itr() 40 struct ixl_vsi *vsi = &pf->vsi; in ixl_configure_tx_itr() 43 vsi->tx_itr_setting = pf->tx_itr; in ixl_configure_tx_itr() 56 ixl_configure_rx_itr(struct ixl_pf *pf) in ixl_configure_rx_itr() argument 58 struct i40e_hw *hw = &pf->hw; in ixl_configure_rx_itr() 59 struct ixl_vsi *vsi = &pf->vsi; in ixl_configure_rx_itr() 62 vsi->rx_itr_setting = pf->rx_itr; in ixl_configure_rx_itr() 77 struct ixl_pf *pf = arg; in ixl_intr() local 78 struct i40e_hw *hw = &pf->hw; in ixl_intr() [all …]
|
| H A D | ixl_pf.h | 94 #define IXL_PF_IN_RECOVERY_MODE(pf) \ argument 95 ixl_test_state(&pf->state, IXL_STATE_RECOVERY_MODE) 97 #define IXL_PF_IS_RESETTING(pf) \ argument 98 ixl_test_state(&pf->state, IXL_STATE_RESETTING) 165 s32 (*read_i2c_byte)(struct ixl_pf *pf, u8 byte_offset, 167 s32 (*write_i2c_byte)(struct ixl_pf *pf, u8 byte_offset, 279 #define i40e_send_vf_nack(pf, vf, op, st) \ argument 280 ixl_send_vf_nack_msg((pf), (vf), (op), (st), __FILE__, __LINE__) 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 [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);
|
| /src/contrib/file/src/ |
| H A D | fmtcheck.c | 60 #define RETURN(pf,f,r) do { \ argument 61 *(pf) = (f); \ 66 get_next_format_from_precision(const char **pf) in get_next_format_from_precision() argument 73 f = *pf; in get_next_format_from_precision() 81 if (!*f) RETURN(pf,f,FMTCHECK_UNKNOWN); in get_next_format_from_precision() 100 if (!*f) RETURN(pf,f,FMTCHECK_UNKNOWN); in get_next_format_from_precision() 117 if (!*f) RETURN(pf,f,FMTCHECK_UNKNOWN); in get_next_format_from_precision() 120 RETURN(pf,f,FMTCHECK_UNKNOWN); in get_next_format_from_precision() 122 RETURN(pf,f,FMTCHECK_LONG); in get_next_format_from_precision() 124 RETURN(pf,f,FMTCHECK_QUAD); in get_next_format_from_precision() [all …]
|
| /src/sbin/pfctl/ |
| H A D | pfctl.c | 530 pfctl_adjust_skip_ifaces(struct pfctl *pf) in pfctl_adjust_skip_ifaces() argument 539 pfctl_set_interface_flags(pf, p->pfik_name, PFI_IFLAG_SKIP, 0); in pfctl_adjust_skip_ifaces() 549 pfctl_set_interface_flags(pf, in pfctl_adjust_skip_ifaces() 560 pfctl_set_interface_flags(pf, p->pfik_name, PFI_IFLAG_SKIP, 0); in pfctl_adjust_skip_ifaces() 2137 pfctl_add_pool(struct pfctl *pf, struct pfctl_pool *p, int which) in pfctl_add_pool() argument 2143 memcpy(&pf->paddr.addr, pa, sizeof(struct pfctl_pooladdr)); in pfctl_add_pool() 2144 pf->paddr.af = pa->af; in pfctl_add_pool() 2145 if ((pf->opts & PF_OPT_NOACTION) == 0) { in pfctl_add_pool() 2146 if ((ret = pfctl_add_addr(pf->h, &pf->paddr, which)) != 0) in pfctl_add_pool() 2163 pfctl_append_rule(struct pfctl *pf, struct pfctl_rule *r) in pfctl_append_rule() argument [all …]
|
| /src/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() 71 ck_pflock_write_unlock(ck_pflock_t *pf) in ck_pflock_write_unlock() argument 77 ck_pr_and_32(&pf->rin, CK_PFLOCK_LSB); in ck_pflock_write_unlock() 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() [all …]
|
| /src/lib/libutil/tests/ |
| H A D | pidfile_test.c | 61 struct pidfh *pf; in test_pidfile_uncontested() local 65 pf = pidfile_open(fn, 0600, &other); in test_pidfile_uncontested() 66 if (pf == NULL && other != 0) in test_pidfile_uncontested() 68 if (pf == NULL) in test_pidfile_uncontested() 70 if (pidfile_write(pf) != 0) { in test_pidfile_uncontested() 71 pidfile_close(pf); in test_pidfile_uncontested() 75 pidfile_close(pf); in test_pidfile_uncontested() 127 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 …]
|
| /src/tools/tools/netmap/ |
| H A D | nmreplay.c | 260 static void destroy_pcap(struct nm_pcap_file *pf) in destroy_pcap() argument 262 if (!pf) in destroy_pcap() 265 munmap((void *)(uintptr_t)pf->data, pf->filesize); in destroy_pcap() 266 close(pf->fd); in destroy_pcap() 267 bzero(pf, sizeof(*pf)); in destroy_pcap() 268 free(pf); in destroy_pcap() 295 read_next_info(struct nm_pcap_file *pf, int size) in read_next_info() argument 297 const char *end = pf->cur + size; in read_next_info() 299 if (end > pf->lim) { in read_next_info() 300 pf->err = 1; in read_next_info() [all …]
|
| /src/sys/dev/sound/ |
| H A D | sndstat.c | 147 struct sndstat_file *pf; in sndstat_open() local 149 pf = malloc(sizeof(*pf), M_DEVBUF, M_WAITOK | M_ZERO); in sndstat_open() 151 sbuf_new(&pf->sbuf, NULL, 4096, SBUF_AUTOEXTEND); in sndstat_open() 153 pf->fflags = flags; in sndstat_open() 154 TAILQ_INIT(&pf->userdev_list); in sndstat_open() 155 sx_init(&pf->lock, "sndstat_file"); in sndstat_open() 158 TAILQ_INSERT_TAIL(&sndstat_filelist, pf, entry); in sndstat_open() 161 devfs_set_cdevpriv(pf, &sndstat_close); in sndstat_open() 172 sndstat_remove_all_userdevs(struct sndstat_file *pf) in sndstat_remove_all_userdevs() argument 177 sx_xlocked(&pf->lock), ("%s: Called without pf->lock", __func__)); in sndstat_remove_all_userdevs() [all …]
|
| /src/libexec/blocklistd-helper/ |
| H A D | blacklistd-helper | 12 pf= 19 pf="ipfw" 24 if [ -z "$pf" ]; then 25 for f in npf pf ipfilter ipfw; do 28 pf="$f" 34 pf="$f" 40 if [ -z "$pf" -a -x "/sbin/iptables" ]; then 41 pf="iptables" 44 if [ -z "$pf" ]; then 73 if [ "$pf" = "pf" ]; then [all …]
|
| /src/contrib/elftoolchain/libdwarf/ |
| H A D | libdwarf_init.c | 108 _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 …]
|
| /src/contrib/blocklist/libexec/ |
| H A D | blocklistd-helper | 12 pf= 14 pf="ipfw" 19 if [ -z "$pf" ]; then 20 for f in npf pf ipfilter ipfw; do 23 pf="$f" 29 pf="$f" 35 if [ -z "$pf" -a -x "/sbin/iptables" ]; then 36 pf="iptables" 39 if [ -z "$pf" ]; then 70 case "$pf" in [all …]
|
| /src/contrib/libpcap/ |
| H A D | pcap-pf.c | 100 struct pcap_pf *pf = pc->priv; in pcap_read_pf() local 186 pf->TotPkts++; in pcap_read_pf() 187 pf->TotDrops += sp->ens_dropped; in pcap_read_pf() 188 pf->TotMissed = sp->ens_ifoverflows; in pcap_read_pf() 189 if (pf->OrigMissed < 0) in pcap_read_pf() 190 pf->OrigMissed = pf->TotMissed; in pcap_read_pf() 203 if (pf->filtering_in_kernel || in pcap_read_pf() 206 pf->TotAccepted++; in pcap_read_pf() 241 struct pcap_pf *pf = p->priv; in pcap_stats_pf() local 279 ps->ps_recv = pf->TotAccepted; in pcap_stats_pf() [all …]
|
| /src/bin/sh/ |
| H A D | input.c | 435 struct parsefile *pf; in pushfile() local 441 pf = (struct parsefile *)ckmalloc(sizeof (struct parsefile)); in pushfile() 442 pf->prev = parsefile; in pushfile() 443 pf->fd = -1; in pushfile() 444 pf->strpush = NULL; in pushfile() 445 pf->basestrpush.prev = NULL; in pushfile() 446 parsefile = pf; in pushfile() 453 struct parsefile *pf = parsefile; in popfile() local 456 if (pf->fd >= 0) in popfile() 457 close(pf->fd); in popfile() [all …]
|
| /src/lib/libutil++/tests/ |
| H A D | pidfile_test.cc | 26 freebsd::pidfile pf(pfh); in ATF_TEST_CASE_BODY() local 27 ATF_REQUIRE_EQ(pidfile_fileno(pfh), pf.fileno()); in ATF_TEST_CASE_BODY() 29 ATF_REQUIRE(pf.write() == 0); in ATF_TEST_CASE_BODY() 31 ATF_REQUIRE(fstat(pf.fileno(), &sb) == 0); in ATF_TEST_CASE_BODY() 34 ATF_REQUIRE(pf.close() == 0); in ATF_TEST_CASE_BODY() 35 ATF_REQUIRE(pf.fileno() == -1); in ATF_TEST_CASE_BODY()
|
| /src/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() 610 uvm_physseg_unplug(pf, pf_chunk_size); 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() [all …]
|
| /src/tests/sys/netinet/ |
| H A D | tcp_md5_getsockopt.c | 53 int pf; in test_tcp_md5_getsockopt() local 56 pf = PF_INET6; in test_tcp_md5_getsockopt() 59 s6.sin6_family = pf; in test_tcp_md5_getsockopt() 66 pf = PF_INET; in test_tcp_md5_getsockopt() 69 s4.sin_family = pf; in test_tcp_md5_getsockopt() 77 if ((ssock = socket(pf, SOCK_STREAM, 0)) == -1) in test_tcp_md5_getsockopt() 89 if ((csock = socket(pf, SOCK_STREAM, 0)) == -1) in test_tcp_md5_getsockopt()
|
| /src/sbin/pfctl/tests/ |
| H A D | pfctl_test.c | 270 ATF_TC(pf##number); \ 271 ATF_TC_HEAD(pf##number, tc) \ 276 ATF_TC_BODY(pf##number, tc) \ 292 ATF_TC(pf##number); \ 293 ATF_TC_HEAD(pf##number, tc) \ 298 ATF_TC_BODY(pf##number, tc) \ 304 ATF_TC_WITH_CLEANUP(pf##number); \ 305 ATF_TC_HEAD(pf##number, tc) \ 312 ATF_TC_BODY(pf##number, tc) \ 317 ATF_TC_CLEANUP(pf##number, tc) \ [all …]
|
| /src/sys/dev/usb/template/ |
| H A D | usb_template.c | 611 usb_hw_ep_match(const struct usb_hw_ep_profile *pf, in usb_hw_ep_match() argument 616 return (pf->support_control); in usb_hw_ep_match() 618 if ((pf->support_in && ep_dir_in) || in usb_hw_ep_match() 619 (pf->support_out && !ep_dir_in)) { in usb_hw_ep_match() 620 if ((pf->support_interrupt && (ep_type == UE_INTERRUPT)) || in usb_hw_ep_match() 621 (pf->support_isochronous && (ep_type == UE_ISOCHRONOUS)) || in usb_hw_ep_match() 622 (pf->support_bulk && (ep_type == UE_BULK))) { in usb_hw_ep_match() 643 const struct usb_hw_ep_profile *pf; in usb_hw_ep_find_match() local 673 (ues->methods->get_hw_ep_profile) (ues->udev, &pf, n); in usb_hw_ep_find_match() 674 if (pf == NULL) { in usb_hw_ep_find_match() [all …]
|