Home
last modified time | relevance | path

Searched refs:vf (Results 1 – 25 of 105) sorted by relevance

12345

/freebsd/sys/dev/ixgbe/
H A Dif_sriov.c98 ixgbe_send_vf_msg(struct ixgbe_hw *hw, struct ixgbe_vf *vf, u32 msg) in ixgbe_send_vf_msg() argument
100 if (vf->flags & IXGBE_VF_CTS) in ixgbe_send_vf_msg()
103 ixgbe_write_mbx(hw, &msg, 1, vf->pool); in ixgbe_send_vf_msg()
107 ixgbe_send_vf_success(struct ixgbe_softc *sc, struct ixgbe_vf *vf, u32 msg) in ixgbe_send_vf_success() argument
110 ixgbe_send_vf_msg(&sc->hw, vf, msg | IXGBE_VT_MSGTYPE_SUCCESS); in ixgbe_send_vf_success()
114 ixgbe_send_vf_failure(struct ixgbe_softc *sc, struct ixgbe_vf *vf, u32 msg) in ixgbe_send_vf_failure() argument
117 ixgbe_send_vf_msg(&sc->hw, vf, msg | IXGBE_VT_MSGTYPE_FAILURE); in ixgbe_send_vf_failure()
121 ixgbe_process_vf_ack(struct ixgbe_softc *sc, struct ixgbe_vf *vf) in ixgbe_process_vf_ack() argument
123 if (!(vf->flags & IXGBE_VF_CTS)) in ixgbe_process_vf_ack()
124 ixgbe_send_vf_failure(sc, vf, 0); in ixgbe_process_vf_ack()
[all …]
H A Dif_ixv.c1734 if (sc->stats.vf.vfgprc || sc->stats.vf.vfgptc) { in ixv_save_stats()
1735 sc->stats.vf.saved_reset_vfgprc += in ixv_save_stats()
1736 sc->stats.vf.vfgprc - sc->stats.vf.base_vfgprc; in ixv_save_stats()
1737 sc->stats.vf.saved_reset_vfgptc += in ixv_save_stats()
1738 sc->stats.vf.vfgptc - sc->stats.vf.base_vfgptc; in ixv_save_stats()
1739 sc->stats.vf.saved_reset_vfgorc += in ixv_save_stats()
1740 sc->stats.vf.vfgorc - sc->stats.vf.base_vfgorc; in ixv_save_stats()
1741 sc->stats.vf.saved_reset_vfgotc += in ixv_save_stats()
1742 sc->stats.vf.vfgotc - sc->stats.vf.base_vfgotc; in ixv_save_stats()
1743 sc->stats.vf.saved_reset_vfmprc += in ixv_save_stats()
[all …]
/freebsd/sys/dev/ixl/
H A Dixl_pf_iov.c37 static void ixl_vf_map_vsi_queue(struct i40e_hw *hw, struct ixl_vf *vf, int qnum, uint32_t val);
43 static int ixl_vf_mac_valid(struct ixl_vf *vf, const uint8_t *addr);
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);
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…
[all …]
/freebsd/sys/dev/vt/
H A Dvt_font.c83 vtfont_lookup(const struct vt_font *vf, term_char_t c) in vtfont_lookup() argument
101 dst = vtfont_bisearch(vf->vf_map[bold_map], in vtfont_lookup()
102 vf->vf_map_count[bold_map], src); in vtfont_lookup()
106 dst = vtfont_bisearch(vf->vf_map[normal_map], in vtfont_lookup()
107 vf->vf_map_count[normal_map], src); in vtfont_lookup()
110 stride = howmany(vf->vf_width, 8) * vf->vf_height; in vtfont_lookup()
111 return (&vf->vf_bytes[dst * stride]); in vtfont_lookup()
115 vtfont_ref(struct vt_font *vf) in vtfont_ref() argument
118 refcount_acquire(&vf->vf_refcount); in vtfont_ref()
119 return (vf); in vtfont_ref()
[all …]
H A Dvt_cpulogos.c154 struct vt_font *vf; in vt_fini_logos() local
180 vf = vw->vw_font; in vt_fini_logos()
181 if (vf == NULL) in vt_fini_logos()
184 vt_termsize(vd, vf, &size); in vt_fini_logos()
185 vt_winsize(vd, vf, &wsz); in vt_fini_logos()
211 struct vt_font *vf; in vt_init_logos() local
229 vf = vw->vw_font; in vt_init_logos()
230 if (vf == NULL) in vt_init_logos()
244 vt_termsize(vd, vf, &size); in vt_init_logos()
245 vt_winsize(vd, vf, &wsz); in vt_init_logos()
H A Dvt_core.c647 vt_termsize(struct vt_device *vd, struct vt_font *vf, term_pos_t *size) in vt_termsize() argument
654 if (vf != NULL) { in vt_termsize()
655 size->tp_row = MIN(size->tp_row / vf->vf_height, in vt_termsize()
657 size->tp_col = MIN(size->tp_col / vf->vf_width, in vt_termsize()
663 vt_termrect(struct vt_device *vd, struct vt_font *vf, term_rect_t *rect) in vt_termrect() argument
673 if (vf != NULL) { in vt_termrect()
675 howmany(rect->tr_begin.tp_row, vf->vf_height); in vt_termrect()
677 rect->tr_end.tp_row = MIN(rect->tr_end.tp_row / vf->vf_height, in vt_termrect()
679 rect->tr_end.tp_col = MIN(rect->tr_end.tp_col / vf->vf_width, in vt_termrect()
685 vt_winsize(struct vt_device *vd, struct vt_font *vf, struct winsize *size) in vt_winsize() argument
[all …]
/freebsd/sys/dev/qlnx/qlnxe/
H A Decore_sriov.c220 struct ecore_vf_info *vf = OSAL_NULL; in ecore_iov_get_vf_info() local
229 vf = &p_hwfn->pf_iov_info->vfs_array[relative_vf_id]; in ecore_iov_get_vf_info()
234 return vf; in ecore_iov_get_vf_info()
498 struct ecore_vf_info *vf = &p_iov_info->vfs_array[idx]; in ecore_iov_setup_vfdb() local
501 vf->vf_mbx.req_virt = p_req_virt_addr + idx; in ecore_iov_setup_vfdb()
502 vf->vf_mbx.req_phys = req_p + idx * sizeof(union vfpf_tlvs); in ecore_iov_setup_vfdb()
503 vf->vf_mbx.reply_virt = p_reply_virt_addr + idx; in ecore_iov_setup_vfdb()
504 vf->vf_mbx.reply_phys = rply_p + idx * sizeof(union pfvf_tlvs); in ecore_iov_setup_vfdb()
507 vf->vf_mbx.sw_mbx.request_size = sizeof(union vfpf_tlvs); in ecore_iov_setup_vfdb()
508 vf->vf_mbx.sw_mbx.mbx_state = VF_PF_WAIT_FOR_START_REQUEST; in ecore_iov_setup_vfdb()
[all …]
/freebsd/sys/dev/qat/qat_common/
H A Dadf_vf_isr.c95 accel_dev->u1.vf.rpreset_sts = msg.data; in adf_pf2vf_handle_pf_rp_reset()
96 if (accel_dev->u1.vf.rpreset_sts == RPRESET_SUCCESS) in adf_pf2vf_handle_pf_rp_reset()
102 else if (accel_dev->u1.vf.rpreset_sts == RPRESET_NOT_SUPPORTED) in adf_pf2vf_handle_pf_rp_reset()
108 else if (accel_dev->u1.vf.rpreset_sts == RPRESET_INVAL_BANK) in adf_pf2vf_handle_pf_rp_reset()
121 complete(&accel_dev->u1.vf.msg_received); in adf_pf2vf_handle_pf_rp_reset()
142 TASK_INIT(&accel_dev->u1.vf.pf2vf_bh_tasklet, in adf_setup_pf2vf_bh()
146 mutex_init(&accel_dev->u1.vf.vf2pf_lock); in adf_setup_pf2vf_bh()
155 &accel_dev->u1.vf.pf2vf_bh_tasklet, in adf_cleanup_pf2vf_bh()
157 taskqueue_drain(taskqueue_qat_vf, &accel_dev->u1.vf.pf2vf_bh_tasklet); in adf_cleanup_pf2vf_bh()
158 mutex_destroy(&accel_dev->u1.vf.vf2pf_lock); in adf_cleanup_pf2vf_bh()
[all …]
H A Dadf_pfvf_vf_proto.c39 &accel_dev->u1.vf.vf2pf_lock); in adf_send_vf2pf_msg()
58 accel_dev->u1.vf.pf_compat_ver); in adf_recv_pf2vf_msg()
81 reinit_completion(&accel_dev->u1.vf.msg_received); in adf_send_vf2pf_req()
93 wait_for_completion_timeout(&accel_dev->u1.vf.msg_received, in adf_send_vf2pf_req()
97 *resp = accel_dev->u1.vf.response; in adf_send_vf2pf_req()
100 accel_dev->u1.vf.response.type = 0; in adf_send_vf2pf_req()
351 accel_dev->u1.vf.response = msg; in adf_handle_pf2vf_msg()
352 complete(&accel_dev->u1.vf.msg_received); in adf_handle_pf2vf_msg()
/freebsd/sys/dev/vnic/
H A Dnic_main.c396 nic_clear_mbx_intr(struct nicpf *nic, int vf, int mbx_reg) in nic_clear_mbx_intr() argument
399 nic_reg_write(nic, NIC_PF_MAILBOX_INT + (mbx_reg << 3), (1UL << vf)); in nic_clear_mbx_intr()
403 nic_get_mbx_addr(int vf) in nic_get_mbx_addr() argument
406 return (NIC_PF_VF_0_127_MAILBOX_0_1 + (vf << NIC_VF_NUM_SHIFT)); in nic_get_mbx_addr()
415 nic_send_msg_to_vf(struct nicpf *nic, int vf, union nic_mbx *mbx) in nic_send_msg_to_vf() argument
417 bus_space_handle_t mbx_addr = nic_get_mbx_addr(vf); in nic_send_msg_to_vf()
440 nic_mbx_send_ready(struct nicpf *nic, int vf) in nic_mbx_send_ready() argument
447 mbx.nic_cfg.vf_id = vf; in nic_mbx_send_ready()
454 if (vf < MAX_LMAC) { in nic_mbx_send_ready()
455 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[vf]); in nic_mbx_send_ready()
[all …]
/freebsd/usr.bin/vgrind/
H A Dvgrind.sh37 vf="/usr/libexec/vfontedpr"
101 $vf $options -h "$head" $files
103 $vf $options $files
107 $vf $options -h "$head" $files
109 $vf $options $files
117 $vf $options -h "$head" $files
119 $vf $options $files
123 $vf $options -h "$head" $files
125 $vf $options $files
/freebsd/sys/netgraph/
H A Dng_vlan.c255 struct ng_vlan_filter *vf; in ng_vlan_rcvmsg() local
270 if (msg->header.arglen != sizeof(*vf)) { in ng_vlan_rcvmsg()
274 vf = (struct ng_vlan_filter *)msg->data; in ng_vlan_rcvmsg()
277 if (vf->vid == 0 && vf->vid != vf->vlan) { in ng_vlan_rcvmsg()
278 vf->vid = vf->vlan; in ng_vlan_rcvmsg()
279 } else if (vf->vid != 0 && vf->vlan != 0 && in ng_vlan_rcvmsg()
280 vf->vid != vf->vlan) { in ng_vlan_rcvmsg()
285 if (vf->vid & ~EVL_VLID_MASK || in ng_vlan_rcvmsg()
286 vf->pcp & ~7 || in ng_vlan_rcvmsg()
287 vf->cfi & ~1) { in ng_vlan_rcvmsg()
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dvdev_file.c93 vdev_file_t *vf; in vdev_file_open() local
130 vf = vd->vdev_tsd; in vdev_file_open()
134 vf = vd->vdev_tsd = kmem_zalloc(sizeof (vdev_file_t), KM_SLEEP); in vdev_file_open()
151 vf->vf_file = fp; in vdev_file_open()
168 error = zfs_file_getattr(vf->vf_file, &zfa); in vdev_file_open()
184 vdev_file_t *vf = vd->vdev_tsd; in vdev_file_close() local
186 if (vd->vdev_reopening || vf == NULL) in vdev_file_close()
189 if (vf->vf_file != NULL) { in vdev_file_close()
190 (void) zfs_file_close(vf->vf_file); in vdev_file_close()
194 kmem_free(vf, sizeof (vdev_file_t)); in vdev_file_close()
[all …]
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dvdev_file.c91 vdev_file_t *vf; in vdev_file_open() local
128 vf = vd->vdev_tsd; in vdev_file_open()
132 vf = vd->vdev_tsd = kmem_zalloc(sizeof (vdev_file_t), KM_SLEEP); in vdev_file_open()
150 vf->vf_file = fp; in vdev_file_open()
167 error = zfs_file_getattr(vf->vf_file, &zfa); in vdev_file_open()
183 vdev_file_t *vf = vd->vdev_tsd; in vdev_file_close() local
185 if (vd->vdev_reopening || vf == NULL) in vdev_file_close()
188 if (vf->vf_file != NULL) { in vdev_file_close()
189 zfs_file_close(vf->vf_file); in vdev_file_close()
193 kmem_free(vf, sizeof (vdev_file_t)); in vdev_file_close()
[all …]
/freebsd/tools/regression/usr.bin/cc/
H A Dfloat.c120 volatile float vf; in run_tests() local
185 vf = FLT_EPSILON; in run_tests()
189 1.0F + vf != 1.0F && 1.0 + vd != 1.0 && 1.0L + vld != 1.0L); in run_tests()
193 (float)(1.0F + vf * 0.5F) == 1.0F); in run_tests()
196 (float)(1.0 + vf * 0.5) == 1.0F); in run_tests()
199 (float)(1.0L + vf * 0.5L) == 1.0F); in run_tests()
217 TWICE(TWICE(TWICE(TWICE(1.0F + vf * 0.5F))))))))) in run_tests()
228 f = 1.0 + vf * 0.5; in run_tests()
232 f = 1.0F + vf * 0.5F; in run_tests()
238 tofloat(1.0 + vf * 0.5) == 1.0F && in run_tests()
/freebsd/contrib/hyperv/tools/scripts/
H A Dhyperv_vfup26 vf=`sysctl -n dev.hn.$hn_unit.vf`
27 if [ ! $vf ]
57 ifconfig $lagg laggproto failover laggport $hn laggport $vf
114 ifconfig $lagg | grep "laggport: $vf" > /dev/null 2>&1
117 ifconfig $lagg laggport $vf
/freebsd/sys/contrib/openzfs/module/icp/asm-x86_64/aes/
H A Daesopt.h695 #define no_table(x, box, vf, rf, c) bytes2word(\ argument
696 box[bval(vf(x, 0, c), rf(0, c))], \
697 box[bval(vf(x, 1, c), rf(1, c))], \
698 box[bval(vf(x, 2, c), rf(2, c))], \
699 box[bval(vf(x, 3, c), rf(3, c))])
701 #define one_table(x, op, tab, vf, rf, c) \ argument
702 (tab[bval(vf(x, 0, c), rf(0, c))] \
703 ^ op(tab[bval(vf(x, 1, c), rf(1, c))], 1) \
704 ^ op(tab[bval(vf(x, 2, c), rf(2, c))], 2) \
705 ^ op(tab[bval(vf(x, 3, c), rf(3, c))], 3))
[all …]
/freebsd/usr.sbin/iovctl/
H A Dvalidate.c152 apply_defaults(nvlist_t *vf, const nvlist_t *defaults) in apply_defaults() argument
155 apply_subsystem_defaults(vf, DRIVER_CONFIG_NAME, defaults); in apply_defaults()
156 apply_subsystem_defaults(vf, IOV_CONFIG_NAME, defaults); in apply_defaults()
226 nvlist_t *defaults, *pf, *vf; in validate_config() local
250 vf = find_config(config, device_name); in validate_config()
253 apply_defaults(vf, defaults); in validate_config()
255 validate_device(vf, vf_schema, device_name); in validate_config()
256 nvlist_move_nvlist(config, device_name, vf); in validate_config()
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_virt.c33 int mlx5_ib_get_vf_config(struct ib_device *device, int vf, u8 port, in mlx5_ib_get_vf_config() argument
39 int mlx5_ib_set_vf_link_state(struct ib_device *device, int vf, in mlx5_ib_set_vf_link_state() argument
45 int mlx5_ib_get_vf_stats(struct ib_device *device, int vf, in mlx5_ib_get_vf_stats() argument
51 int mlx5_ib_set_vf_guid(struct ib_device *device, int vf, u8 port, in mlx5_ib_set_vf_guid() argument
/freebsd/sys/dev/pci/
H A Dpci_iov.c229 pci_iov_build_schema(nvlist_t **pf, nvlist_t **vf) in pci_iov_build_schema() argument
236 vf_driver = *vf; in pci_iov_build_schema()
237 *vf = NULL; in pci_iov_build_schema()
326 nvlist_t *vf; in pci_iov_get_vf_subsystem_schema() local
328 vf = pci_iov_schema_alloc_node(); in pci_iov_get_vf_subsystem_schema()
329 if (vf == NULL) in pci_iov_get_vf_subsystem_schema()
332 pci_iov_schema_add_bool(vf, "passthrough", IOV_SCHEMA_HASDEFAULT, 0); in pci_iov_get_vf_subsystem_schema()
334 return (vf); in pci_iov_get_vf_subsystem_schema()
379 dinfo->cfg.vf.index * bar->bar_size; in pci_iov_add_bars()
628 device_t bus, dev, vf; in pci_iov_enumerate_vfs() local
[all …]
/freebsd/sys/dev/vt/hw/vga/
H A Dvt_vga.c614 const struct vt_font *vf; in vga_bitblt_one_text_pixels_block()
624 vf = vw->vw_font; in vga_bitblt_one_text_pixels_block()
659 col = (i - vw->vw_draw_area.tr_begin.tp_col) / vf->vf_width; in vga_bitblt_one_text_pixels_block()
660 row = (y - vw->vw_draw_area.tr_begin.tp_row) / vf->vf_height; in vga_bitblt_one_text_pixels_block()
663 src = vtfont_lookup(vf, c); in vga_bitblt_one_text_pixels_block()
692 (col * vf->vf_width + vw->vw_draw_area.tr_begin.tp_col); in vga_bitblt_one_text_pixels_block()
694 (col + 1) * vf->vf_width + in vga_bitblt_one_text_pixels_block()
698 x_count -= col * vf->vf_width + in vga_bitblt_one_text_pixels_block()
704 src, NULL, vf->vf_width, in vga_bitblt_one_text_pixels_block()
706 0, 0, vf in vga_bitblt_one_text_pixels_block()
612 const struct vt_font *vf; vga_bitblt_one_text_pixels_block() local
783 const struct vt_font *vf; vga_bitblt_text_gfxmode() local
[all...]
/freebsd/sys/dev/vt/hw/fb/
H A Dvt_fb.c387 struct vt_font *vf; in vt_fb_bitblt_text()
393 vf = vw->vw_font; in vt_fb_bitblt_text()
398 x = col * vf->vf_width + in vt_fb_bitblt_text()
400 y = row * vf->vf_height + in vt_fb_bitblt_text()
404 pattern = vtfont_lookup(vf, c);
418 pattern, NULL, vf->vf_width, vf->vf_height, in vt_fb_invalidate_text()
436 drawn_area.tr_begin.tp_col = area->tr_begin.tp_col * vf->vf_width; in vt_fb_postswitch()
437 drawn_area.tr_begin.tp_row = area->tr_begin.tp_row * vf->vf_height; in vt_fb_postswitch()
438 drawn_area.tr_end.tp_col = area->tr_end.tp_col * vf in vt_fb_postswitch()
340 struct vt_font *vf; vt_fb_bitblt_text() local
[all...]
/freebsd/sys/dev/vt/hw/ofwfb/
H A Dofwfb.c262 struct vt_font *vf; in ofwfb_bitblt_text()
267 vf = vw->vw_font; in ofwfb_bitblt_text()
272 x = col * vf->vf_width + in ofwfb_bitblt_text()
274 y = row * vf->vf_height + in ofwfb_bitblt_text()
278 pattern = vtfont_lookup(vf, c); in ofwfb_bitblt_text()
283 pattern, NULL, vf->vf_width, vf->vf_height, in ofwfb_bitblt_text()
294 drawn_area.tr_begin.tp_col = area->tr_begin.tp_col * vf->vf_width; in ofwfb_bitblt_text()
295 drawn_area.tr_begin.tp_row = area->tr_begin.tp_row * vf->vf_height; in ofwfb_bitblt_text()
296 drawn_area.tr_end.tp_col = area->tr_end.tp_col * vf in ofwfb_bitblt_text()
250 struct vt_font *vf; ofwfb_bitblt_text() local
[all...]
/freebsd/sys/dev/cxgbe/common/
H A Dcommon.h662 int t4_port_init(struct adapter *adap, int mbox, int pf, int vf, int port_id);
720 int t4_set_vf_mac(struct adapter *adapter, unsigned int pf, unsigned int vf,
788 unsigned int vf, unsigned int nparams, const u32 *params,
791 unsigned int vf, unsigned int nparams, const u32 *params,
794 unsigned int pf, unsigned int vf,
798 unsigned int vf, unsigned int nparams, const u32 *params,
801 unsigned int vf, unsigned int txq, unsigned int txq_eth_ctrl,
806 unsigned int port, unsigned int pf, unsigned int vf,
811 unsigned int pf, unsigned int vf, unsigned int nmac, u8 *mac,
814 unsigned int pf, unsigned int vf,
[all …]
/freebsd/sys/dev/qat/qat_hw/qat_4xxxvf/
H A Dadf_4xxxvf_hw_data.c306 mutex_lock(&accel_dev->u1.vf.rpreset_lock); in adf_4xxxvf_ring_pair_reset()
307 init_completion(&accel_dev->u1.vf.msg_received); in adf_4xxxvf_ring_pair_reset()
308 accel_dev->u1.vf.rpreset_sts = RPRESET_SUCCESS; in adf_4xxxvf_ring_pair_reset()
315 if (!wait_for_completion_timeout(&accel_dev->u1.vf.msg_received, in adf_4xxxvf_ring_pair_reset()
323 if (accel_dev->u1.vf.rpreset_sts != RPRESET_SUCCESS) { in adf_4xxxvf_ring_pair_reset()
332 mutex_unlock(&accel_dev->u1.vf.rpreset_lock); in adf_4xxxvf_ring_pair_reset()

12345