/freebsd/sys/dev/ixl/ |
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 | 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 | 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() 261 * ixl_pf_reset - Reset the PF 262 * @pf: PF structure 270 ixl_pf_reset(struct ixl_pf *pf) in ixl_pf_reset() argument 272 struct i40e_hw *hw = &pf->hw; 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 | virtchnl.h | 38 * This header file describes the VF-PF communication protocol used 45 * PF and VF, but uses all other fields internally. Due to this limitation, 52 * The PF is required to return a status code in v_retval for all messages 58 * PF driver, then request a reset, then get resources, then configure 113 /* Opcodes for VF-PF communication. These are placed in the v_opcode field 117 /* The PF sends status change events to VFs using 119 * VFs send requests to the PF using the other ops. 170 u32 vfid; /* used by PF when sending to VF */ 178 * VF posts its version number to the PF. PF responds with its version number 180 * Reply from PF has its major/minor versions also in param0 and param1. [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 …]
|
/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/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 | 318 errx(1, "pf already enabled"); in pfctl_enable() 325 fprintf(stderr, "pf enabled\n"); in pfctl_enable() 341 errx(1, "pf not enabled"); in pfctl_disable() 346 fprintf(stderr, "pf disabled\n"); in pfctl_disable() 362 fprintf(stderr, "pf: statistics cleared\n"); in pfctl_clear_stats() 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() 456 fprintf(stderr, "pf: interface flags reset\n"); in pfctl_clear_interface_flags() [all …]
|
/freebsd/sys/dev/sound/pcm/ |
H A D | sndstat.c | 148 struct sndstat_file *pf; in sndstat_open() local 150 pf = malloc(sizeof(*pf), M_DEVBUF, M_WAITOK | M_ZERO); in sndstat_open() 152 sbuf_new(&pf->sbuf, NULL, 4096, SBUF_AUTOEXTEND); in sndstat_open() 154 pf->fflags = flags; in sndstat_open() 155 TAILQ_INIT(&pf->userdev_list); in sndstat_open() 156 sx_init(&pf->lock, "sndstat_file"); in sndstat_open() 159 TAILQ_INSERT_TAIL(&sndstat_filelist, pf, entry); in sndstat_open() 162 devfs_set_cdevpriv(pf, &sndstat_close); in sndstat_open() 170 * * pf->lock held 173 sndstat_remove_all_userdevs(struct sndstat_file *pf) in sndstat_remove_all_userdevs() argument [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/sys/dev/qat/include/common/ |
H A D | adf_pfvf_msg.h | 7 * PF<->VF Gen2 Messaging format 9 * The PF has an array of 32-bit PF2VF registers, one for each VF. The 10 * PF can access all these registers while each VF can access only the one 14 * The bottom half is for PF->VF messages. In particular when the first 17 * The top half is for VF->PF messages. In particular when the first bit 19 * in the PF. 23 * the PF2VF register by both the PF and VF. 51 * When a PF or VF attempts to send a message in the lower or upper 16 bits, 57 * PF<->VF Gen4 Messaging format 60 * communication between PF and VFs. However, each VF and PF share a pair of [all …]
|
/freebsd/share/man/man9/ |
H A D | pci_iov_schema.9 | 71 structure that describes the device-specific configuration parameters that a PF 72 driver will accept when SR-IOV is enabled on the PF device. 73 Each PF driver defines two schema instances: the PF schema and the VF schema. 74 The PF schema describes configuration that applies to the PF device as a whole. 79 A PF driver builds a configuration schema by first allocating a schema node and 115 for that parameter in the configuration before passing it to the PF driver. 128 configuration passed to the PF driver. 131 passed to the PF driver. 133 It is highly recommended that a PF driver reserve the use of optional parameters 135 For example, a Network Interface PF device might have the option to encapsulate [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/sys/dev/iavf/ |
H A D | virtchnl.h | 36 * This header file describes the VF-PF communication protocol used 43 * PF and VF, but uses all other fields internally. Due to this limitation, 50 * The PF is required to return a status code in v_retval for all messages 56 * PF driver, then request a reset, then get resources, then configure 117 /* Opcodes for VF-PF communication. These are placed in the v_opcode field 121 /* The PF sends status change events to VFs using 123 * VFs send requests to the PF using the other ops. 184 u32 vfid; /* used by PF when sending to VF */ 192 * VF posts its version number to the PF. PF responds with its version number 194 * Reply from PF has its major/minor versions also in param0 and param1. [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/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/sys/dev/ice/ |
H A D | virtchnl.h | 37 * (PF) communication protocol used by the drivers for all devices starting 44 * PF and VF, but uses all other fields internally. Due to this limitation, 51 * The PF is required to return a status code in v_retval for all messages 57 * PF driver, then request a reset, then get resources, then configure 136 /* Opcodes for VF-PF communication. These are placed in the v_opcode field 140 /* The PF sends status change events to VFs using 142 * VFs send requests to the PF using the other ops. 352 u32 vfid; /* used by PF when sending to VF */ 360 * VF posts its version number to the PF. PF respond [all...] |
/freebsd/usr.sbin/iovctl/ |
H A D | iovctl.8 | 56 .Pq PF 63 Available PF devices can be seen in 69 Enable SR-IOV on the specified PF device and create VF children. 70 This operation will fail if the PF already has VF children. 75 Specify the PF device to use for the given operation. 77 may either be the name of a PF device, or a full path name to a node in 83 Delete all VF children of the specified PF device. 95 options, this file will only be used to specify the name of the PF device. 100 configuration parameters that apply to all PF drivers. 101 See the PF driver manual page for configuration parameters specific to [all …]
|
/freebsd/libexec/rc/rc.d/ |
H A D | pf | 5 # PROVIDE: pf 11 name="pf" 23 required_modules="pf" 47 startmsg -n 'Enabling pf' 59 echo -n 'Disabling pf' 67 echo "Checking pf rules." 73 echo "Reloading pf rules." 85 if ! [ -c /dev/pf ] ; then 86 echo "pf.ko is not loaded"
|
/freebsd/sys/dev/ixgbe/ |
H A D | ixgbe_mbx.h | 62 * PF: One set of operations for each VF to handle various API versions 80 #define IXGBE_VFMAILBOX_REQ 0x00000001 /* Request for PF Ready bit */ 81 #define IXGBE_VFMAILBOX_ACK 0x00000002 /* Ack PF message received */ 83 #define IXGBE_VFMAILBOX_PFU 0x00000008 /* PF owns the mailbox buffer */ 84 #define IXGBE_VFMAILBOX_PFSTS 0x00000010 /* PF wrote a message in the MB */ 85 #define IXGBE_VFMAILBOX_PFACK 0x00000020 /* PF ack the previous VF msg */ 86 #define IXGBE_VFMAILBOX_RSTI 0x00000040 /* PF has reset indication */ 87 #define IXGBE_VFMAILBOX_RSTD 0x00000080 /* PF has indicated reset done */ 93 #define IXGBE_PFMAILBOX_PFU 0x00000008 /* PF owns the mailbox buffer */ 103 * PF. The reverse is true if it is IXGBE_PF_*. [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/usr.sbin/cxgbetool/ |
H A D | reg_defs_t6.c | 1379 { "PF", 12, 3 }, 2466 { "PF", 8, 3 }, 2474 { "PF", 8, 3 }, 2482 { "PF", 8, 3 }, 2490 { "PF", 8, 3 }, 2498 { "PF", 8, 3 }, 2506 { "PF", 8, 3 }, 2514 { "PF", 8, 3 }, 2522 { "PF", 8, 3 }, 2530 { "PF", 8, 3 }, [all …]
|