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.c1739 if (sc->stats.vf.vfgprc || sc->stats.vf.vfgptc) { in ixv_save_stats()
1740 sc->stats.vf.saved_reset_vfgprc += in ixv_save_stats()
1741 sc->stats.vf.vfgprc - sc->stats.vf.base_vfgprc; in ixv_save_stats()
1742 sc->stats.vf.saved_reset_vfgptc += in ixv_save_stats()
1743 sc->stats.vf.vfgptc - sc->stats.vf.base_vfgptc; in ixv_save_stats()
1744 sc->stats.vf.saved_reset_vfgorc += in ixv_save_stats()
1745 sc->stats.vf.vfgorc - sc->stats.vf.base_vfgorc; in ixv_save_stats()
1746 sc->stats.vf.saved_reset_vfgotc += in ixv_save_stats()
1747 sc->stats.vf.vfgotc - sc->stats.vf.base_vfgotc; in ixv_save_stats()
1748 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/ice/
H A Dice_iov.c43 static void ice_iov_ready_vf(struct ice_softc *sc, struct ice_vf *vf);
44 static void ice_reset_vf(struct ice_softc *sc, struct ice_vf *vf,
46 static void ice_iov_setup_intr_mapping(struct ice_softc *sc, struct ice_vf *vf);
48 static void ice_vc_version_msg(struct ice_softc *sc, struct ice_vf *vf,
50 static void ice_vc_get_vf_res_msg(struct ice_softc *sc, struct ice_vf *vf,
52 static void ice_vc_add_eth_addr_msg(struct ice_softc *sc, struct ice_vf *vf,
54 static void ice_vc_del_eth_addr_msg(struct ice_softc *sc, struct ice_vf *vf,
57 static void ice_vc_cfg_vsi_qs_msg(struct ice_softc *sc, struct ice_vf *vf,
59 static void ice_vc_cfg_rss_key_msg(struct ice_softc *sc, struct ice_vf *vf,
61 static void ice_vc_set_rss_hena_msg(struct ice_softc *sc, struct ice_vf *vf,
[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, struc argument
705 struct vt_font *vf; vt_compute_drawable_area() local
1293 struct vt_font *vf; vt_mark_mouse_position_as_dirty() local
1407 struct vt_font *vf; vt_bitblt_buffer() local
1482 struct vt_font *vf; vt_flush() local
2112 vt_change_font(struct vt_window * vw,struct vt_font * vf) vt_change_font() argument
2276 struct vt_font *vf; vt_mouse_terminput_button() local
2354 struct vt_font *vf; vt_mouse_event() local
2856 struct vt_font *vf; vtterm_ioctl() local
[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.c97 accel_dev->u1.vf.rpreset_sts = msg.data; in adf_pf2vf_handle_pf_rp_reset()
98 if (accel_dev->u1.vf.rpreset_sts == RPRESET_SUCCESS) in adf_pf2vf_handle_pf_rp_reset()
104 else if (accel_dev->u1.vf.rpreset_sts == RPRESET_NOT_SUPPORTED) in adf_pf2vf_handle_pf_rp_reset()
110 else if (accel_dev->u1.vf.rpreset_sts == RPRESET_INVAL_BANK) in adf_pf2vf_handle_pf_rp_reset()
123 complete(&accel_dev->u1.vf.msg_received); in adf_pf2vf_handle_pf_rp_reset()
155 TASK_INIT(&accel_dev->u1.vf.pf2vf_bh_tasklet, in adf_setup_pf2vf_bh()
159 mutex_init(&accel_dev->u1.vf.vf2pf_lock); in adf_setup_pf2vf_bh()
168 &accel_dev->u1.vf.pf2vf_bh_tasklet, in adf_cleanup_pf2vf_bh()
170 taskqueue_drain(taskqueue_qat_vf, &accel_dev->u1.vf.pf2vf_bh_tasklet); in adf_cleanup_pf2vf_bh()
171 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()
94 &accel_dev->u1.vf.msg_received, timeout); in adf_send_vf2pf_req()
99 &accel_dev->u1.vf.msg_received); in adf_send_vf2pf_req()
103 *resp = accel_dev->u1.vf.response; in adf_send_vf2pf_req()
106 accel_dev->u1.vf.response.type = 0; in adf_send_vf2pf_req()
360 accel_dev->u1.vf.response = msg; in adf_handle_pf2vf_msg()
361 complete(&accel_dev->u1.vf.msg_received); in adf_handle_pf2vf_msg()
H A Dadf_pfvf_vf_msg.c97 accel_dev->u1.vf.pf_compat_ver = pf_version; in adf_vf2pf_request_version()
107 if (accel_dev->u1.vf.pf_compat_ver < ADF_PFVF_COMPAT_FALLBACK) in adf_vf2pf_restarting_complete()
124 if (accel_dev->u1.vf.pf_compat_ver < ADF_PFVF_COMPAT_CAPABILITIES) in adf_vf2pf_get_capabilities()
177 if (accel_dev->u1.vf.pf_compat_ver < ADF_PFVF_COMPAT_RING_TO_SVC_MAP) in adf_vf2pf_get_ring_to_svc()
/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/zfs/
H A Dvdev_file.c102 vdev_file_t *vf; in vdev_file_open() local
139 vf = vd->vdev_tsd; in vdev_file_open()
143 vf = vd->vdev_tsd = kmem_zalloc(sizeof (vdev_file_t), KM_SLEEP); in vdev_file_open()
161 vf->vf_file = fp; in vdev_file_open()
178 error = zfs_file_getattr(vf->vf_file, &zfa); in vdev_file_open()
194 vdev_file_t *vf = vd->vdev_tsd; in vdev_file_close() local
196 if (vd->vdev_reopening || vf == NULL) in vdev_file_close()
199 if (vf->vf_file != NULL) { in vdev_file_close()
200 (void) zfs_file_close(vf->vf_file); in vdev_file_close()
204 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.h696 #define no_table(x, box, vf, rf, c) bytes2word(\ argument
697 box[bval(vf(x, 0, c), rf(0, c))], \
698 box[bval(vf(x, 1, c), rf(1, c))], \
699 box[bval(vf(x, 2, c), rf(2, c))], \
700 box[bval(vf(x, 3, c), rf(3, c))])
702 #define one_table(x, op, tab, vf, rf, c) \ argument
703 (tab[bval(vf(x, 0, c), rf(0, c))] \
704 ^ op(tab[bval(vf(x, 1, c), rf(1, c))], 1) \
705 ^ op(tab[bval(vf(x, 2, c), rf(2, c))], 2) \
706 ^ 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/crypto/krb5/src/lib/crypto/builtin/aes/
H A Daesopt.h722 #define no_table(x,box,vf,rf,c) bytes2word( \ argument
723 box[bval(vf(x,0,c),rf(0,c))], \
724 box[bval(vf(x,1,c),rf(1,c))], \
725 box[bval(vf(x,2,c),rf(2,c))], \
726 box[bval(vf(x,3,c),rf(3,c))])
728 #define one_table(x,op,tab,vf,rf,c) \ argument
729 ( tab[bval(vf(x,0,c),rf(0,c))] \
730 ^ op(tab[bval(vf(x,1,c),rf(1,c))],1) \
731 ^ op(tab[bval(vf(x,2,c),rf(2,c))],2) \
732 ^ op(tab[bval(vf(x,3,c),rf(3,c))],3))
[all …]
/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
853 device_t bus, dev, vf, *devlist; pci_iov_delete_iov_children() 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() local
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->vf_height, fg, bg, 0); in vga_bitblt_one_text_pixels_block()
[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/vt/hw/fb/
H A Dvt_fb.c394 struct vt_font *vf; in vt_fb_bitblt_text() local
400 vf = vw->vw_font; in vt_fb_bitblt_text()
405 x = col * vf->vf_width + in vt_fb_bitblt_text()
407 y = row * vf->vf_height + in vt_fb_bitblt_text()
411 pattern = vtfont_lookup(vf, c); in vt_fb_bitblt_text()
425 pattern, NULL, vf->vf_width, vf->vf_height, in vt_fb_bitblt_text()
443 drawn_area.tr_begin.tp_col = area->tr_begin.tp_col * vf->vf_width; in vt_fb_bitblt_text()
444 drawn_area.tr_begin.tp_row = area->tr_begin.tp_row * vf->vf_height; in vt_fb_bitblt_text()
445 drawn_area.tr_end.tp_col = area->tr_end.tp_col * vf->vf_width; in vt_fb_bitblt_text()
446 drawn_area.tr_end.tp_row = area->tr_end.tp_row * vf->vf_height; in vt_fb_bitblt_text()

12345