Home
last modified time | relevance | path

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

1234567891011

/freebsd-12-stable/lib/libc/gen/
Dfmtcheck.c86 #define RETURN(pf,f,r) do { \ argument
87 *(pf) = (f); \
92 get_next_format_from_precision(const char **pf) in get_next_format_from_precision() argument
97 f = *pf; in get_next_format_from_precision()
101 if (!*f) RETURN(pf,f,FMTCHECK_UNKNOWN); in get_next_format_from_precision()
115 if (!*f) RETURN(pf,f,FMTCHECK_UNKNOWN); in get_next_format_from_precision()
143 if (!*f) RETURN(pf,f,FMTCHECK_UNKNOWN); in get_next_format_from_precision()
147 RETURN(pf,f,FMTCHECK_LONG); in get_next_format_from_precision()
149 RETURN(pf,f,FMTCHECK_QUAD); in get_next_format_from_precision()
151 RETURN(pf,f,FMTCHECK_INTMAXT); in get_next_format_from_precision()
[all …]
/freebsd-12-stable/sys/dev/pccard/
Dpccard.c88 static int pccard_ccr_read(struct pccard_function *pf, int ccr);
89 static void pccard_ccr_write(struct pccard_function *pf, int ccr, int val);
92 static void pccard_function_init(struct pccard_function *pf, int entry);
93 static void pccard_function_free(struct pccard_function *pf);
94 static int pccard_function_enable(struct pccard_function *pf);
95 static void pccard_function_disable(struct pccard_function *pf);
113 struct pccard_function *pf);
139 pccard_ccr_read(struct pccard_function *pf, int ccr) in pccard_ccr_read() argument
141 return (bus_space_read_1(pf->pf_ccrt, pf->pf_ccrh, in pccard_ccr_read()
142 pf->pf_ccr_offset + ccr)); in pccard_ccr_read()
[all …]
Dpccard_cis_quirks.c284 struct pccard_function *pf, *pf_next, *pf_last; in pccard_check_cis_quirks() local
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()
310 for (cfe = STAILQ_FIRST(&pf->cfe_head); cfe != NULL; in pccard_check_cis_quirks()
315 pf_next = STAILQ_NEXT(pf, pf_list); 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()
330 STAILQ_INSERT_TAIL(&pf->cfe_head, cfe, cfe_list); in pccard_check_cis_quirks()
332 pf = malloc(sizeof(*pf), M_DEVBUF, M_NOWAIT); in pccard_check_cis_quirks()
[all …]
Dpccard_cis.c74 struct pccard_function *pf; member
97 state.pf = NULL; in pccard_read_cis()
483 struct pccard_function *pf; in pccard_print_cis() local
512 STAILQ_FOREACH(pf, &card->pf_head, pf_list) { in pccard_print_cis()
513 device_printf(dev, "function %d: ", pf->number); in pccard_print_cis()
515 switch (pf->function) { in pccard_print_cis()
553 printf("unknown (%d)", pf->function); in pccard_print_cis()
557 printf(", ccr addr %#x mask %#x\n", pf->ccr_base, pf->ccr_mask); in pccard_print_cis()
559 STAILQ_FOREACH(cfe, &pf->cfe_head, cfe_list) { in pccard_print_cis()
561 "%d: ", pf->number, cfe->number); in pccard_print_cis()
[all …]
/freebsd-12-stable/sys/dev/ixl/
Dixl_pf_i2c.c52 static s32 ixl_set_i2c_data(struct ixl_pf *pf, u32 *i2cctl, bool data);
53 static bool ixl_get_i2c_data(struct ixl_pf *pf, u32 *i2cctl);
54 static void ixl_raise_i2c_clk(struct ixl_pf *pf, u32 *i2cctl);
55 static void ixl_lower_i2c_clk(struct ixl_pf *pf, u32 *i2cctl);
56 static s32 ixl_clock_out_i2c_bit(struct ixl_pf *pf, bool data);
57 static s32 ixl_get_i2c_ack(struct ixl_pf *pf);
58 static s32 ixl_clock_out_i2c_byte(struct ixl_pf *pf, u8 data);
59 static s32 ixl_clock_in_i2c_bit(struct ixl_pf *pf, bool *data);
60 static s32 ixl_clock_in_i2c_byte(struct ixl_pf *pf, u8 *data);
61 static void ixl_i2c_bus_clear(struct ixl_pf *pf);
[all …]
Dixl_pf_iov.c48 static int ixl_vf_alloc_vsi(struct ixl_pf *pf, struct ixl_vf *vf);
49 static int ixl_vf_setup_vsi(struct ixl_pf *pf, struct ixl_vf *vf);
50 static void ixl_vf_map_queues(struct ixl_pf *pf, struct ixl_vf *vf);
51 static void ixl_vf_vsi_release(struct ixl_pf *pf, struct ixl_vsi *vsi);
52 static void ixl_vf_release_resources(struct ixl_pf *pf, struct ixl_vf *vf);
53 static int ixl_flush_pcie(struct ixl_pf *pf, struct ixl_vf *vf);
54 static void ixl_reset_vf(struct ixl_pf *pf, struct ixl_vf *vf);
55 static void ixl_reinit_vf(struct ixl_pf *pf, struct ixl_vf *vf);
56 static void ixl_send_vf_msg(struct ixl_pf *pf, struct ixl_vf *vf, uint16_t op, enum i40e_status_cod…
57 static void ixl_send_vf_ack(struct ixl_pf *pf, struct ixl_vf *vf, uint16_t op);
[all …]
Dif_ixl.c133 static void ixl_setup_ssctx(struct ixl_pf *pf);
367 ixl_allocate_pci_resources(struct ixl_pf *pf) in ixl_allocate_pci_resources() argument
369 device_t dev = iflib_get_dev(pf->vsi.ctx); in ixl_allocate_pci_resources()
370 struct i40e_hw *hw = &pf->hw; in ixl_allocate_pci_resources()
375 pf->pci_mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in ixl_allocate_pci_resources()
378 if (!(pf->pci_mem)) { in ixl_allocate_pci_resources()
396 pf->osdep.mem_bus_space_tag = in ixl_allocate_pci_resources()
397 rman_get_bustag(pf->pci_mem); in ixl_allocate_pci_resources()
398 pf->osdep.mem_bus_space_handle = in ixl_allocate_pci_resources()
399 rman_get_bushandle(pf->pci_mem); in ixl_allocate_pci_resources()
[all …]
Dixl_iw.c42 #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
52 ixl_iw_pf_msix_reset(struct ixl_pf *pf) in ixl_iw_pf_msix_reset() argument
54 struct i40e_hw *hw = &pf->hw; in ixl_iw_pf_msix_reset()
58 for (vec = IXL_IW_VEC_BASE(pf); vec < IXL_IW_VEC_LIMIT(pf); vec++) { in ixl_iw_pf_msix_reset()
94 device_printf(pf_entry->pf->dev, in ixl_iw_invoke_op()
102 device_printf(pf_entry->pf->dev, in ixl_iw_invoke_op()
106 ixl_iw_pf_msix_reset(pf_entry->pf); in ixl_iw_invoke_op()
140 ixl_iw_pf_init(struct ixl_pf *pf) in ixl_iw_pf_init() argument
[all …]
Dixl_pf_main.c142 ixl_print_nvm_version(struct ixl_pf *pf) in ixl_print_nvm_version() argument
144 struct i40e_hw *hw = &pf->hw; in ixl_print_nvm_version()
145 device_t dev = pf->dev; in ixl_print_nvm_version()
166 ixl_get_fw_mode(struct ixl_pf *pf) in ixl_get_fw_mode() argument
168 struct i40e_hw *hw = &pf->hw; in ixl_get_fw_mode()
173 if (pf->recovery_mode) in ixl_get_fw_mode()
202 ixl_pf_reset(struct ixl_pf *pf) in ixl_pf_reset() argument
204 struct i40e_hw *hw = &pf->hw; in ixl_pf_reset()
208 fw_mode = ixl_get_fw_mode(pf); in ixl_pf_reset()
209 ixl_dbg_info(pf, "%s: before PF reset FW mode: 0x%08x\n", __func__, fw_mode); in ixl_pf_reset()
[all …]
Dixl_pf_iflib.c38 ixl_configure_tx_itr(struct ixl_pf *pf) in ixl_configure_tx_itr() argument
40 struct i40e_hw *hw = &pf->hw; in ixl_configure_tx_itr()
41 struct ixl_vsi *vsi = &pf->vsi; in ixl_configure_tx_itr()
44 vsi->tx_itr_setting = pf->tx_itr; in ixl_configure_tx_itr()
57 ixl_configure_rx_itr(struct ixl_pf *pf) in ixl_configure_rx_itr() argument
59 struct i40e_hw *hw = &pf->hw; in ixl_configure_rx_itr()
60 struct ixl_vsi *vsi = &pf->vsi; in ixl_configure_rx_itr()
63 vsi->rx_itr_setting = pf->rx_itr; in ixl_configure_rx_itr()
78 struct ixl_pf *pf = arg; in ixl_intr() local
79 struct i40e_hw *hw = &pf->hw; in ixl_intr()
[all …]
Dixl_pf.h94 #define IXL_PF_IN_RECOVERY_MODE(pf) \ argument
95 ((atomic_load_acq_32(&pf->state) & IXL_PF_STATE_RECOVERY_MODE) != 0)
97 #define IXL_PF_IS_RESETTING(pf) \ argument
98 ((atomic_load_acq_32(&pf->state) & IXL_PF_STATE_RESETTING) != 0)
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
278 ixl_send_vf_nack_msg((pf), (vf), (op), (st), __FILE__, __LINE__)
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
[all …]
Dixl_iw_int.h44 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-12-stable/contrib/file/src/
Dfmtcheck.c60 #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-12-stable/sbin/pfctl/
Dpfctl.c395 pfctl_adjust_skip_ifaces(struct pfctl *pf) in pfctl_adjust_skip_ifaces() argument
404 pfctl_set_interface_flags(pf, p->pfik_name, PFI_IFLAG_SKIP, 0); in pfctl_adjust_skip_ifaces()
417 pfctl_set_interface_flags(pf, in pfctl_adjust_skip_ifaces()
428 pfctl_set_interface_flags(pf, p->pfik_name, PFI_IFLAG_SKIP, 0); in pfctl_adjust_skip_ifaces()
1457 pfctl_add_pool(struct pfctl *pf, struct pfctl_pool *p, sa_family_t af) in pfctl_add_pool() argument
1461 if ((pf->opts & PF_OPT_NOACTION) == 0) { in pfctl_add_pool()
1462 if (ioctl(pf->dev, DIOCBEGINADDRS, &pf->paddr)) in pfctl_add_pool()
1466 pf->paddr.af = af; in pfctl_add_pool()
1468 memcpy(&pf->paddr.addr, pa, sizeof(struct pf_pooladdr)); in pfctl_add_pool()
1469 if ((pf->opts & PF_OPT_NOACTION) == 0) { in pfctl_add_pool()
[all …]
/freebsd-12-stable/sys/contrib/ck/include/
Dck_pflock.h58 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-12-stable/sys/dev/sound/pcm/
Dsndstat.c109 struct sndstat_file *pf; in sndstat_open() local
111 pf = malloc(sizeof(*pf), M_DEVBUF, M_WAITOK | M_ZERO); in sndstat_open()
114 if (sbuf_new(&pf->sbuf, NULL, 4096, SBUF_AUTOEXTEND) == NULL) { in sndstat_open()
116 free(pf, M_DEVBUF); in sndstat_open()
119 TAILQ_INSERT_TAIL(&sndstat_filelist, pf, entry); in sndstat_open()
122 devfs_set_cdevpriv(pf, &sndstat_close); in sndstat_open()
130 struct sndstat_file *pf = (struct sndstat_file *)sndstat_file; in sndstat_close() local
133 sbuf_delete(&pf->sbuf); in sndstat_close()
134 TAILQ_REMOVE(&sndstat_filelist, pf, entry); in sndstat_close()
137 free(pf, M_DEVBUF); in sndstat_close()
[all …]
/freebsd-12-stable/lib/libutil/tests/
Dpidfile_test.c64 struct pidfh *pf; in test_pidfile_uncontested() local
68 pf = pidfile_open(fn, 0600, &other); in test_pidfile_uncontested()
69 if (pf == NULL && other != 0) in test_pidfile_uncontested()
71 if (pf == NULL) in test_pidfile_uncontested()
73 if (pidfile_write(pf) != 0) { in test_pidfile_uncontested()
74 pidfile_close(pf); in test_pidfile_uncontested()
78 pidfile_close(pf); in test_pidfile_uncontested()
130 struct pidfh *pf = NULL; in common_test_pidfile_child() local
142 pf = pidfile_open(fn, 0600, &other); in common_test_pidfile_child()
143 if (pf == NULL && other != 0) in common_test_pidfile_child()
[all …]
/freebsd-12-stable/tools/tools/netmap/
Dnmreplay.c262 static void destroy_pcap(struct nm_pcap_file *pf) in destroy_pcap() argument
264 if (!pf) in destroy_pcap()
267 munmap((void *)(uintptr_t)pf->data, pf->filesize); in destroy_pcap()
268 close(pf->fd); in destroy_pcap()
269 bzero(pf, sizeof(*pf)); in destroy_pcap()
270 free(pf); in destroy_pcap()
297 read_next_info(struct nm_pcap_file *pf, int size) in read_next_info() argument
299 const char *end = pf->cur + size; in read_next_info()
301 if (end > pf->lim) { in read_next_info()
302 pf->err = 1; in read_next_info()
[all …]
/freebsd-12-stable/contrib/elftoolchain/libdwarf/
Dlibdwarf_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 …]
/freebsd-12-stable/contrib/blacklist/libexec/
Dblacklistd-helper12 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-12-stable/contrib/libpcap/
Dpcap-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 …]
/freebsd-12-stable/bin/sh/
Dinput.c427 struct parsefile *pf; in pushfile() local
433 pf = (struct parsefile *)ckmalloc(sizeof (struct parsefile)); in pushfile()
434 pf->prev = parsefile; in pushfile()
435 pf->fd = -1; in pushfile()
436 pf->strpush = NULL; in pushfile()
437 pf->basestrpush.prev = NULL; in pushfile()
438 parsefile = pf; in pushfile()
445 struct parsefile *pf = parsefile; in popfile() local
448 if (pf->fd >= 0) in popfile()
449 close(pf->fd); in popfile()
[all …]
/freebsd-12-stable/contrib/netbsd-tests/sys/uvm/
Dt_uvm_physseg_load.c284 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-12-stable/sys/dev/usb/template/
Dusb_template.c613 usb_hw_ep_match(const struct usb_hw_ep_profile *pf, in usb_hw_ep_match() argument
618 return (pf->support_control); in usb_hw_ep_match()
620 if ((pf->support_in && ep_dir_in) || in usb_hw_ep_match()
621 (pf->support_out && !ep_dir_in)) { in usb_hw_ep_match()
622 if ((pf->support_interrupt && (ep_type == UE_INTERRUPT)) || in usb_hw_ep_match()
623 (pf->support_isochronous && (ep_type == UE_ISOCHRONOUS)) || in usb_hw_ep_match()
624 (pf->support_bulk && (ep_type == UE_BULK))) { in usb_hw_ep_match()
645 const struct usb_hw_ep_profile *pf; in usb_hw_ep_find_match() local
676 (ues->methods->get_hw_ep_profile) (ues->udev, &pf, n); in usb_hw_ep_find_match()
677 if (pf == NULL) { in usb_hw_ep_find_match()
[all …]
/freebsd-12-stable/sys/dev/sfxge/common/
Def10_tlv_layout.h208 #define TLV_TAG_PF_STATIC_VPD(pf) (0x00030000 + (pf)) argument
233 #define TLV_TAG_PF_DYNAMIC_VPD(pf) (0x10030000 + (pf)) argument
258 #define TLV_TAG_PF_DBI(pf) (0x00040000 + (pf)) argument
343 #define TLV_TAG_PF_PCIE_CONFIG(pf) (0x10080000 + (pf)) argument
586 #define TLV_TAG_VPORT_VLAN_TAG(pf) (0x10130000 + (pf)) argument
650 #define TLV_TAG_PRIVILEGE_MASK_ADD_SINGLE_PF(pf) (0x101A0000 + (pf)) argument
703 #define TLV_TAG_RATE_LIMIT(pf) (0x101b0000 + (pf)) argument

1234567891011