/freebsd/lib/libc/gen/ |
H A D | fmtcheck.c | 83 #define RETURN(pf,f,r) do { \ argument 84 *(pf) = (f); \ 89 get_next_format_from_precision(const char **pf) in get_next_format_from_precision() argument 94 f = *pf; in get_next_format_from_precision() 98 if (!*f) RETURN(pf,f,FMTCHECK_UNKNOWN); in get_next_format_from_precision() 112 if (!*f) RETURN(pf,f,FMTCHECK_UNKNOWN); in get_next_format_from_precision() 140 if (!*f) RETURN(pf,f,FMTCHECK_UNKNOWN); in get_next_format_from_precision() 144 RETURN(pf,f,FMTCHECK_LONG); in get_next_format_from_precision() 146 RETURN(pf,f,FMTCHECK_QUAD); in get_next_format_from_precision() 148 RETURN(pf,f,FMTCHECK_INTMAXT); in get_next_format_from_precision() [all …]
|
/freebsd/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);
|
/freebsd/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 …]
|
/freebsd/sbin/pfctl/ |
H A D | pfctl.c | 408 pfctl_adjust_skip_ifaces(struct pfctl *pf) in pfctl_adjust_skip_ifaces() argument 417 pfctl_set_interface_flags(pf, p->pfik_name, PFI_IFLAG_SKIP, 0); in pfctl_adjust_skip_ifaces() 427 pfctl_set_interface_flags(pf, in pfctl_adjust_skip_ifaces() 438 pfctl_set_interface_flags(pf, p->pfik_name, PFI_IFLAG_SKIP, 0); in pfctl_adjust_skip_ifaces() 1690 pfctl_add_pool(struct pfctl *pf, struct pfctl_pool *p, sa_family_t af) in pfctl_add_pool() argument 1695 if ((pf->opts & PF_OPT_NOACTION) == 0) { in pfctl_add_pool() 1696 if ((ret = pfctl_begin_addrs(pf->h, &pf->paddr.ticket)) != 0) in pfctl_add_pool() 1700 pf->paddr.af = af; in pfctl_add_pool() 1702 memcpy(&pf->paddr.addr, pa, sizeof(struct pf_pooladdr)); in pfctl_add_pool() 1703 if ((pf->opts & PF_OPT_NOACTION) == 0) { in pfctl_add_pool() [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() 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 …]
|
/freebsd/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 …]
|
/freebsd/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 …]
|
/freebsd/sys/dev/sound/pcm/ |
H A D | sndstat.c | 149 struct sndstat_file *pf; in sndstat_open() local 151 pf = malloc(sizeof(*pf), M_DEVBUF, M_WAITOK | M_ZERO); in sndstat_open() 153 sbuf_new(&pf->sbuf, NULL, 4096, SBUF_AUTOEXTEND); in sndstat_open() 155 pf->fflags = flags; in sndstat_open() 156 TAILQ_INIT(&pf->userdev_list); in sndstat_open() 157 sx_init(&pf->lock, "sndstat_file"); in sndstat_open() 160 TAILQ_INSERT_TAIL(&sndstat_filelist, pf, entry); in sndstat_open() 163 devfs_set_cdevpriv(pf, &sndstat_close); in sndstat_open() 174 sndstat_remove_all_userdevs(struct sndstat_file *pf) in sndstat_remove_all_userdevs() argument 179 sx_xlocked(&pf->lock), ("%s: Called without pf->lock", __func__)); in sndstat_remove_all_userdevs() [all …]
|
/freebsd/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 …]
|
/freebsd/contrib/blocklist/libexec/ |
H A D | blacklistd-helper | 12 pf= 14 pf="ipfw" 19 if [ -z "$pf" ]; then 20 for f in npf pf ipf; do 22 pf="$f" 28 if [ -z "$pf" ]; then 53 case "$pf" in 76 pf) 89 case "$pf" in 103 pf) [all …]
|
/freebsd/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 …]
|
/freebsd/bin/sh/ |
H A D | input.c | 433 struct parsefile *pf; in pushfile() local 439 pf = (struct parsefile *)ckmalloc(sizeof (struct parsefile)); in pushfile() 440 pf->prev = parsefile; in pushfile() 441 pf->fd = -1; in pushfile() 442 pf->strpush = NULL; in pushfile() 443 pf->basestrpush.prev = NULL; in pushfile() 444 parsefile = pf; in pushfile() 451 struct parsefile *pf = parsefile; in popfile() local 454 if (pf->fd >= 0) in popfile() 455 close(pf->fd); in popfile() [all …]
|
/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() 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 …]
|
/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/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 …]
|
/freebsd/tests/sys/netinet/libalias/ |
H A D | 3_natin.c | 230 struct alias_link *pf; variable 238 …pf = LibAliasRedirectPort(la, prv1, ntohs(0x1234), ANY_ADDR, 0, ANY_ADDR, ntohs(0xabcd), IPPROTO_U… 239 ATF_REQUIRE(pf != NULL); 305 struct alias_link *pf; variable 313 pf = LibAliasRedirectPort(la, cgn, ntohs(0xdead), ANY_ADDR, 0, masq, ntohs(0xabcd), IPPROTO_UDP); 314 ATF_REQUIRE(pf != NULL); 316 ATF_REQUIRE(0 == LibAliasAddServer(la, pf, prv1, ntohs(0x1234))); 317 ATF_REQUIRE(0 == LibAliasAddServer(la, pf, prv2, ntohs(0x2345))); 318 ATF_REQUIRE(0 == LibAliasAddServer(la, pf, prv3, ntohs(0x3456))); 335 struct alias_link *pf; variable [all …]
|
/freebsd/contrib/ntp/libntp/ |
H A D | recvbuff.c | 381 gen_fifo *pf; in check_gen_fifo_consistency() 385 pf = fifo; 386 REQUIRE((NULL == pf->phead && NULL == pf->pptail) || 387 (NULL != pf->phead && NULL != pf->pptail)); 389 pptail = &pf->phead; 390 for (pthis = pf->phead; 396 REQUIRE(NULL == pf->pptail || pptail == pf 368 gen_fifo *pf; check_gen_fifo_consistency() local [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
|