Home
last modified time | relevance | path

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

12345

/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);
44 static int ixl_vf_mac_index(struct ixl_vf *vf, const uint8_t *addr);
45 static int ixl_vf_program_mac(struct ixl_vf *vf, const uint8_t *addr);
46 static void ixl_vf_remove_mac(struct ixl_vf *vf, int index);
47 static int ixl_vf_set_vlan_filter(struct ixl_pf *pf, struct ixl_vf *vf,
50 static int ixl_vf_alloc_vsi(struct ixl_pf *pf, struct ixl_vf *vf);
51 static int ixl_vf_setup_vsi(struct ixl_pf *pf, struct ixl_vf *vf);
52 static void ixl_vf_map_queues(struct ixl_pf *pf, struct ixl_vf *vf);
54 static int ixl_vf_release_resources(struct ixl_pf *pf, struct ixl_vf *vf);
[all …]
/freebsd/sys/dev/ixgbe/
H A Dif_sriov.c112 ixgbe_send_vf_msg(struct ixgbe_hw *hw, struct ixgbe_vf *vf, u32 msg) in ixgbe_send_vf_msg() argument
114 if (vf->flags & IXGBE_VF_CTS) in ixgbe_send_vf_msg()
117 ixgbe_write_mbx(hw, &msg, 1, vf->pool); in ixgbe_send_vf_msg()
121 ixgbe_send_vf_success(struct ixgbe_softc *sc, struct ixgbe_vf *vf, u32 msg) in ixgbe_send_vf_success() argument
124 ixgbe_send_vf_msg(&sc->hw, vf, msg | IXGBE_VT_MSGTYPE_SUCCESS); in ixgbe_send_vf_success()
128 ixgbe_send_vf_failure(struct ixgbe_softc *sc, struct ixgbe_vf *vf, u32 msg) in ixgbe_send_vf_failure() argument
131 ixgbe_send_vf_msg(&sc->hw, vf, msg | IXGBE_VT_MSGTYPE_FAILURE); in ixgbe_send_vf_failure()
135 ixgbe_process_vf_ack(struct ixgbe_softc *sc, struct ixgbe_vf *vf) in ixgbe_process_vf_ack() argument
137 if (!(vf->flags & IXGBE_VF_CTS)) in ixgbe_process_vf_ack()
138 ixgbe_send_vf_failure(sc, vf, 0); in ixgbe_process_vf_ack()
[all …]
/freebsd/sys/dev/ice/
H A Dice_iov.c89 SYSCTL_INT(_debug_fail_point_ice_iov, OID_AUTO, vf,
95 struct ice_vf *vf);
97 struct ice_vf *vf);
98 static void ice_iov_clear_vf_queue_state(struct ice_vf *vf);
99 static void ice_iov_clear_vf_mbx(struct ice_softc *sc, struct ice_vf *vf);
101 struct ice_vf *vf, bool restore_mapping);
102 static void ice_iov_ready_vf(struct ice_softc *sc, struct ice_vf *vf);
103 static int ice_reset_vf(struct ice_softc *sc, struct ice_vf *vf,
105 static void ice_iov_setup_intr_mapping(struct ice_softc *sc, struct ice_vf *vf);
107 static void ice_vc_version_msg(struct ice_softc *sc, struct ice_vf *vf,
[all …]
/freebsd/sbin/ifconfig/
H A Difvfstatus.c127 vf_driver_status(const struct ifconfig_vf_info *vf) in vf_driver_status() argument
133 for (i = 0; i < vf->num_extensions; i++) { in vf_driver_status()
134 driver = &vf->extensions[i]; in vf_driver_status()
149 const struct ifconfig_vf_info *vf; in vf_status() local
180 vf = status->vfs[i]; in vf_status()
181 printf("\t\tvf %3u:\n", vf->index); in vf_status()
184 if ((vf->fields & (1ULL << IFLAF_VF_MAC)) != 0) { in vf_status()
185 mac = (const struct ether_addr *)(const void *)vf->mac; in vf_status()
192 if ((vf->fields & (1ULL << IFLAF_VF_CONFIGURED)) != 0) { in vf_status()
194 printf(" configured=%s", vf->configured ? "yes" : "no"); in vf_status()
[all …]
/freebsd/sys/dev/e1000/
H A Dif_igb_iov.c185 igb_iov_nack_allowed(struct igb_vf *vf) in igb_iov_nack_allowed() argument
187 return (ratecheck(&vf->last_nack, &igb_iov_nack_interval) != 0); in igb_iov_nack_allowed()
191 igb_iov_reset_vlan_rate(struct igb_vf *vf) in igb_iov_reset_vlan_rate() argument
194 vf->vlan_token_time = getsbinuptime(); in igb_iov_reset_vlan_rate()
195 vf->vlan_tokens = IGB_IOV_VLAN_CHANGE_BURST; in igb_iov_reset_vlan_rate()
199 igb_iov_vlan_add_allowed(struct igb_vf *vf) in igb_iov_vlan_add_allowed() argument
205 elapsed = now - vf->vlan_token_time; in igb_iov_vlan_add_allowed()
208 vf->vlan_tokens = min((uint64_t)IGB_IOV_VLAN_CHANGE_BURST, in igb_iov_vlan_add_allowed()
209 vf->vlan_tokens + refill); in igb_iov_vlan_add_allowed()
210 vf->vlan_token_time = now; in igb_iov_vlan_add_allowed()
[all …]
/freebsd/sys/dev/bnxt/bnxt_en/
H A Dbnxt_sriov.c13 bnxt_set_vf_admin_mac(struct bnxt_softc *softc, struct bnxt_vf_info *vf, in bnxt_set_vf_admin_mac() argument
24 req.fid = htole16(vf->fw_fid); in bnxt_set_vf_admin_mac()
36 bnxt_vf_parse_schema(struct bnxt_softc *softc, struct bnxt_vf_info *vf, in bnxt_vf_parse_schema() argument
42 memset(vf->mac_addr, 0, ETHER_ADDR_LEN); in bnxt_vf_parse_schema()
43 memset(vf->vf_mac_addr, 0, ETHER_ADDR_LEN); in bnxt_vf_parse_schema()
49 vf->spoofchk = nvlist_get_bool(params, "mac-anti-spoof"); in bnxt_vf_parse_schema()
51 vf->trusted = nvlist_get_bool(params, "trust"); in bnxt_vf_parse_schema()
64 memcpy(vf->mac_addr, mac, ETHER_ADDR_LEN); in bnxt_vf_parse_schema()
73 struct bnxt_vf_info *vf = &softc->pf.vf[vfnum]; in bnxt_iov_vf_add() local
76 vf->fw_fid = softc->pf.first_vf_id + vfnum; in bnxt_iov_vf_add()
[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.c648 vt_termsize(struct vt_device *vd, struct vt_font *vf, term_pos_t *size) in vt_termsize() argument
655 if (vf != NULL) { in vt_termsize()
656 size->tp_row = MIN(size->tp_row / vf->vf_height, in vt_termsize()
658 size->tp_col = MIN(size->tp_col / vf->vf_width, in vt_termsize()
664 vt_termrect(struct vt_device *vd, struct vt_font *vf, term_rect_t *rect) in vt_termrect() argument
674 if (vf != NULL) { in vt_termrect()
676 howmany(rect->tr_begin.tp_row, vf->vf_height); in vt_termrect()
678 rect->tr_end.tp_row = MIN(rect->tr_end.tp_row / vf->vf_height, in vt_termrect()
680 rect->tr_end.tp_col = MIN(rect->tr_end.tp_col / vf->vf_width, in vt_termrect()
686 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/netlink/route/
H A Diface.c317 dump_vf_bool(struct nl_writer *nw, const struct if_vf_info *vf, in dump_vf_bool() argument
321 if ((vf->fields & field) == 0) in dump_vf_bool()
327 dump_vf_u8(struct nl_writer *nw, const struct if_vf_info *vf, in dump_vf_u8() argument
331 if ((vf->fields & field) == 0) in dump_vf_u8()
337 dump_vf_u16(struct nl_writer *nw, const struct if_vf_info *vf, in dump_vf_u16() argument
341 if ((vf->fields & field) == 0) in dump_vf_u16()
347 dump_vf_u32(struct nl_writer *nw, const struct if_vf_info *vf, in dump_vf_u32() argument
351 if ((vf->fields & field) == 0) in dump_vf_u32()
357 dump_vf_u64(struct nl_writer *nw, const struct if_vf_info *vf, in dump_vf_u64() argument
361 if ((vf->fields & field) == 0) in dump_vf_u64()
[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()
/freebsd/sys/dev/video/
H A Dvideo.c170 struct video_file *vf = arg; in video_file_dtor() local
171 struct video_device *vd = vf->vd; in video_file_dtor()
175 if (vf->is_owner) { in video_file_dtor()
203 free(vf, M_VIDEO); in video_file_dtor()
210 struct video_file *vf; in video_open() local
215 vf = malloc(sizeof(*vf), M_VIDEO, M_WAITOK | M_ZERO); in video_open()
216 vf->vd = vd; in video_open()
218 return (devfs_set_cdevpriv(vf, video_file_dtor)); in video_open()
229 video_claim_owner(struct video_device *vd, struct video_file *vf) in video_claim_owner() argument
237 if (vd->owner == vf) in video_claim_owner()
[all …]
/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/tests/sys/netlink/
H A Dtest_snl.c125 struct snl_parsed_vf *vf; in ATF_TC_BODY() local
239 vf = status->vfs.items[0]; in ATF_TC_BODY()
240 ATF_CHECK_EQ(vf->index, 7); in ATF_TC_BODY()
241 ATF_CHECK_EQ(vf->configured, 1); in ATF_TC_BODY()
242 ATF_CHECK((vf->attrs & (1ULL << IFLAF_VF_TRAFFIC_ALLOWED)) != 0); in ATF_TC_BODY()
243 ATF_CHECK_EQ(vf->traffic_allowed, true); in ATF_TC_BODY()
244 ATF_CHECK((vf->attrs & (1ULL << IFLAF_VF_FAULT_BLOCKED)) != 0); in ATF_TC_BODY()
245 ATF_CHECK_EQ(vf->fault_blocked, false); in ATF_TC_BODY()
246 ATF_CHECK((vf->attrs & (1ULL << IFLAF_VF_NUM_TX_QUEUES)) != 0); in ATF_TC_BODY()
247 ATF_CHECK_EQ(vf->tx_queue_count, 4); in ATF_TC_BODY()
[all …]
/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.c93 vdev_file_t *vf; in vdev_file_open() local
133 vf = vd->vdev_tsd; in vdev_file_open()
137 vf = vd->vdev_tsd = kmem_zalloc(sizeof (vdev_file_t), KM_SLEEP); in vdev_file_open()
156 vf->vf_file = fp; in vdev_file_open()
173 error = zfs_file_getattr(vf->vf_file, &zfa); in vdev_file_open()
189 vdev_file_t *vf = vd->vdev_tsd; in vdev_file_close() local
191 if (vd->vdev_reopening || vf == NULL) in vdev_file_close()
194 if (vf->vf_file != NULL) { in vdev_file_close()
195 (void) zfs_file_close(vf->vf_file); in vdev_file_close()
199 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/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/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/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/contrib/hyperv/tools/scripts/
H A Dhyperv_vfup77 if [ ! $vf ]
115 ifconfig $lagg laggproto failover laggport $hn laggport $vf || exit 1
178 ifconfig $lagg | grep "laggport: $vf" > /dev/null 2>&1
181 ifconfig $lagg laggport $vf
/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 …]

12345