Home
last modified time | relevance | path

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

/illumos-gate/usr/src/uts/sun4v/io/
H A Dvsw.c657 if ((vswp->taskq_p = ddi_taskq_create(vswp->dip, qname, 1, in vsw_attach()
1475 vsw_t *vswp; in vsw_mdeg_cb() local
1763 if (vsw_get_md_smodes(vswp, mdp, node, &vswp->smode)) { in vsw_get_initial_md_properties()
1775 vsw_linkprop_read(vswp, mdp, node, &vswp->pls_update); in vsw_get_initial_md_properties()
1778 vsw_mtu_read(vswp, mdp, node, &vswp->mtu); in vsw_get_initial_md_properties()
1779 if (vswp->mtu < ETHERMTU || vswp->mtu > VNET_MAX_MTU) { in vsw_get_initial_md_properties()
1787 &vswp->vids, &vswp->nvids, &vswp->default_vlan_id); in vsw_get_initial_md_properties()
1793 vsw_bandwidth_read(vswp, mdp, node, &vswp->bandwidth); in vsw_get_initial_md_properties()
2035 vswp->max_frame_size = vswp->mtu + in vsw_mtu_update()
2093 vsw_mac_link_update(vswp, vswp->phys_link_state); in vsw_physlink_state_update()
[all …]
H A Dvsw_phys.c291 vswp->instance, vswp->physname, rv); in vsw_mac_open()
297 vsw_mac_set_mtu(vswp, vswp->mtu); in vsw_mac_open()
302 vswp->instance, vswp->physname, rv); in vsw_mac_open()
321 if (vswp->mtu != vswp->mtu_physdev_orig) { in vsw_mac_close()
322 vsw_mac_set_mtu(vswp, vswp->mtu_physdev_orig); in vsw_mac_close()
779 if (vswp->pvid != vswp->default_vlan_id) { in vsw_set_if_hw_addr()
807 vswp->vids, vswp->nvids); in vsw_set_if_hw_addr()
811 mac_rx_set(vswp->mch, vsw_if_rx_cb, (void *)vswp); in vsw_set_if_hw_addr()
863 (void) mac_unicast_remove(vswp->mch, vswp->muh); in vsw_unset_hw_addr()
1273 vswp->instance, mtu, vswp->physname); in vsw_mac_set_mtu()
[all …]
H A Dvsw_hio.c135 vsw_hio_init(vsw_t *vswp) in vsw_hio_init() argument
151 vswp->physname); in vsw_hio_init()
904 vsw_t *vswp = arg; in vsw_hio_reboot_callb() local
921 vsw_t *vswp = arg; in vsw_hio_panic_callb() local
924 vsw_hio_reset_all(vswp); in vsw_hio_panic_callb()
942 hiop = &vswp->vhio; in vsw_hio_setup_kstats()
996 ASSERT(vswp != NULL); in vsw_hio_destroy_kstats()
999 hiop = &vswp->vhio; in vsw_hio_destroy_kstats()
1015 vsw_t *vswp; in vsw_hio_kstats_update() local
1021 ASSERT(vswp != NULL); in vsw_hio_kstats_update()
[all …]
H A Dvsw_switching.c321 vswp->smode); in vsw_setup_switching()
367 "device: %s\n", vswp->instance, vswp->physname); in vsw_setup_layer2()
384 vsw_hio_init(vswp); in vsw_setup_layer2()
1003 "the interface", vswp->instance, vswp->pvid); in vsw_vlan_add_ids()
1026 "the port(%d)", vswp->instance, vswp->pvid, in vsw_vlan_add_ids()
1057 rv = vsw_vlan_lookup(vswp->vlan_hashp, vswp->pvid); in vsw_vlan_remove_ids()
1243 vsw_t *vswp; in vsw_vlan_frame_pretag() local
1328 vsw_t *vswp; in vsw_vlan_frame_untag() local
1480 vsw_t *vswp; in vsw_frame_lookup_vid() local
1878 (void) vsw_del_mcst(vswp, VSW_LOCALDEV, vswp->mcap->addr, NULL); in vsw_del_mcst_vsw()
[all …]
H A Dvsw_ldc.c665 ldcp->ldc_vswp = vswp; in vsw_ldc_attach()
1014 vswp->instance); in vsw_drain_port_taskq()
1169 vsw_t *vswp; in vsw_port_physlink_update() local
1171 vswp = portp->p_vswp; in vsw_port_physlink_update()
1429 vswp->instance); in vsw_process_conn_evt()
1457 vsw_t *vswp = NULL; in vsw_conn_task() local
3504 vswp->vsw_switch_frame(vswp, mp, VSW_VNETPORT, ldcp->ldc_port, NULL); in vsw_process_pkt_data()
3607 vswp->vsw_switch_frame(vswp, mp, VSW_VNETPORT, in vsw_process_data_ibnd_pkt()
4365 vsw_t *vswp = NULL; in vsw_del_addr() local
4837 vsw_t *vswp; in display_state() local
[all …]
H A Dvsw_txdring.c112 vsw_t *vswp = ldcp->ldc_vswp; in vsw_create_tx_dring_info() local
114 D1(vswp, "%s enter\n", __func__); in vsw_create_tx_dring_info()
139 D1(vswp, "%s exit\n", __func__); in vsw_create_tx_dring_info()
151 vsw_t *vswp = ldcp->ldc_vswp; in vsw_create_tx_dring() local
228 vsw_t *vswp = ldcp->ldc_vswp; in vsw_setup_tx_dring() local
454 vsw_t *vswp = ldcp->ldc_vswp; in vsw_map_rx_dring() local
487 vsw_t *vswp = ldcp->ldc_vswp; in vsw_unmap_rx_dring() local
632 vsw_t *vswp = ldcp->ldc_vswp; in vsw_send_msg() local
706 vsw_t *vswp = ldcp->ldc_vswp; in vsw_ldc_msg_worker() local
759 vsw_t *vswp = ldcp->ldc_vswp; in vsw_stop_msg_thread() local
[all …]
H A Dvsw_rxdring.c100 (vswp)->vsw_switch_frame((vswp), (bp), VSW_VNETPORT, \
113 vsw_t *vswp = ldcp->ldc_vswp; in vsw_create_rx_dring_info() local
115 D1(vswp, "%s enter\n", __func__); in vsw_create_rx_dring_info()
160 D1(vswp, "%s exit\n", __func__); in vsw_create_rx_dring_info()
172 vsw_t *vswp = ldcp->ldc_vswp; in vsw_create_rx_dring() local
257 vsw_t *vswp = ldcp->ldc_vswp; in vsw_setup_rx_dring() local
367 vsw_t *vswp = ldcp->ldc_vswp; in vsw_destroy_rx_dring() local
550 vsw_t *vswp = ldcp->ldc_vswp; in vsw_ldc_rcv_worker() local
613 vsw_t *vswp = ldcp->ldc_vswp; in vsw_ldc_rcv_shm() local
832 vsw_t *vswp = ldcp->ldc_vswp; in vsw_stop_rcv_thread() local
[all …]
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/
H A Dfake_modconf.c79 struct vfssw *vswp; in fake_installfs() local
106 ASSERT(vswp != NULL); in fake_installfs()
136 kmem_free(vswp->vsw_name, strlen(vswp->vsw_name)+1); in fake_installfs()
137 vswp->vsw_name = ""; in fake_installfs()
139 vswp->vsw_flag = 0; in fake_installfs()
143 vfs_unrefvfssw(vswp); in fake_installfs()
159 struct vfssw *vswp; in fake_removefs() local
172 vfs_unrefvfssw(vswp); in fake_removefs()
182 vfs_unrefvfssw(vswp); in fake_removefs()
190 vswp->vsw_flag = 0; in fake_removefs()
[all …]
H A Dfake_vfs.c538 struct vfssw *vswp; in fake_domount() local
1795 struct vfssw *vswp; in allocate_vfssw() local
1808 for (vswp = &vfssw[1]; vswp < &vfssw[nfstype]; vswp++) in allocate_vfssw()
1815 return (vswp); in allocate_vfssw()
1829 struct vfssw *vswp; in vfs_getvfssw() local
1834 for (vswp = &vfssw[1]; vswp < &vfssw[nfstype]; vswp++) { in vfs_getvfssw()
1836 return (vswp); in vfs_getvfssw()
1856 for (vswp = &vfssw[1]; vswp < &vfssw[nfstype]; vswp++) { in vfs_getvfsswbyname()
1859 return (vswp); in vfs_getvfsswbyname()
1876 vswp->vsw_count++; in vfs_refvfssw()
[all …]
H A Dfake_stat.c65 struct vfssw *vswp; in fake_stat() local
89 vswp = &vfssw[vp->v_vfsp->vfs_fstype]; in fake_stat()
90 if (vswp->vsw_name && *vswp->vsw_name) in fake_stat()
91 (void) strcpy(lsb.st_fstype, vswp->vsw_name); in fake_stat()
/illumos-gate/usr/src/uts/common/syscall/
H A Dsysfs.c86 struct vfssw *vswp; in sysfsind() local
102 if ((vswp = vfs_getvfssw(fsbuf)) != NULL) { in sysfsind()
103 retval = vswp - vfssw; in sysfsind()
104 vfs_unrefvfssw(vswp); in sysfsind()
118 struct vfssw *vswp; in sysfstyp() local
125 vswp = &vfssw[index]; in sysfstyp()
127 osrc = src = vswp->vsw_name; in sysfstyp()
H A Dstat.c196 struct vfssw *vswp; in cstat() local
246 vswp = &vfssw[vp->v_vfsp->vfs_fstype]; in cstat()
247 if (vswp->vsw_name && *vswp->vsw_name) in cstat()
326 struct vfssw *vswp; in cstat32() local
369 vswp = &vfssw[vp->v_vfsp->vfs_fstype]; in cstat32()
370 if (vswp->vsw_name && *vswp->vsw_name) in cstat32()
453 struct vfssw *vswp; in cstat64() local
477 vswp = &vfssw[vp->v_vfsp->vfs_fstype]; in cstat64()
478 if (vswp->vsw_name && *vswp->vsw_name) in cstat64()
564 struct vfssw *vswp; in cstat64_32() local
[all …]
H A Dstatfs.c117 struct vfssw *vswp; in cstatfs() local
150 if ((vswp = vfs_getvfssw(svfs.f_basetype)) == NULL) in cstatfs()
153 sfs.f_fstyp = vswp - vfssw; in cstatfs()
154 vfs_unrefvfssw(vswp); in cstatfs()
/illumos-gate/usr/src/uts/common/os/
H A Dmodconf.c922 struct vfssw *vswp; in mod_infofs() local
928 *p0 = vswp - vfssw; in mod_infofs()
929 vfs_unrefvfssw(vswp); in mod_infofs()
942 struct vfssw *vswp; in mod_installfs() local
992 ASSERT(vswp != NULL); in mod_installfs()
1028 kmem_free(vswp->vsw_name, strlen(vswp->vsw_name)+1); in mod_installfs()
1031 vswp->vsw_flag = 0; in mod_installfs()
1038 vfs_unrefvfssw(vswp); in mod_installfs()
1060 struct vfssw *vswp; in mod_removefs() local
1095 vswp->vsw_flag = 0; in mod_removefs()
[all …]
H A Dpolicy.c789 struct vfssw *vswp; in secpolicy_fs_allowed_mount() local
799 vswp = vfs_getvfssw(fsname); in secpolicy_fs_allowed_mount()
800 if (vswp == NULL) in secpolicy_fs_allowed_mount()
803 if ((vswp->vsw_flag & VSW_ZMOUNT) != 0) { in secpolicy_fs_allowed_mount()
804 vfs_unrefvfssw(vswp); in secpolicy_fs_allowed_mount()
808 vfs_unrefvfssw(vswp); in secpolicy_fs_allowed_mount()
H A Dzone.c6931 struct vfssw *vswp = vfs_getvfssw("zfs"); in zone_dataset_visible() local
6932 zfstype = vswp - vfssw; in zone_dataset_visible()
6933 vfs_unrefvfssw(vswp); in zone_dataset_visible()
/illumos-gate/usr/src/uts/common/fs/
H A Dvfs.c600 for (vswp = &vfssw[1]; vswp < &vfssw[nfstype]; vswp++) { in vfs_sync()
601 if (ALLOCATED_VFSSW(vswp) && VFS_INSTALLED(vswp)) { in vfs_sync()
3861 for (vswp = &vfssw[1]; vswp < &vfssw[nfstype]; vswp++) in allocate_vfssw()
3929 return (vswp); in vfs_getvfssw()
3941 while (vswp == NULL || !VFS_INSTALLED(vswp)) { in vfs_getvfssw()
3952 return (vswp); in vfs_getvfssw()
3967 for (vswp = &vfssw[1]; vswp < &vfssw[nfstype]; vswp++) { in vfs_getvfsswbyname()
3986 for (vswp = &vfssw[1]; vswp < &vfssw[nfstype]; vswp++) { in vfs_getvfsswbyvfsops()
3987 if (ALLOCATED_VFSSW(vswp) && &vswp->vsw_vfsops == vfsops) { in vfs_getvfsswbyvfsops()
4230 for (vswp = &vfssw[1]; vswp < &vfssw[nfstype]; vswp++) { in vfsinit()
[all …]
H A Dfsflush.c362 struct vfssw *vswp; in fsflush() local
477 for (vswp = &vfssw[1]; vswp < &vfssw[nfstype]; vswp++) { in fsflush()
478 if (ALLOCATED_VFSSW(vswp) && VFS_INSTALLED(vswp)) { in fsflush()
479 vfs_refvfssw(vswp); in fsflush()
481 (void) fsop_sync_by_kind(vswp - vfssw, in fsflush()
483 vfs_unrefvfssw(vswp); in fsflush()
H A Dvnode.c626 get_fstype_vopstats(vfs_t *vfsp, struct vfssw *vswp) in get_fstype_vopstats() argument
640 if (vswp) { in get_fstype_vopstats()
641 fstype = vswp - vfssw; /* Gets us the index */ in get_fstype_vopstats()
2731 struct vfssw *vswp; in vn_can_change_zones() local
2748 vswp = vfs_getvfsswbyvfsops(vfs_getops(rvp->v_vfsp)); in vn_can_change_zones()
2749 if (vswp != NULL) { in vn_can_change_zones()
2750 if (vswp->vsw_flag & VSW_NOTZONESAFE) in vn_can_change_zones()
2752 vfs_unrefvfssw(vswp); in vn_can_change_zones()
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dvsw.h89 #define VSW_PRI_ETH_DEFINED(vswp) ((vswp)->pri_num_types != 0) argument
219 extern void vswdebug(vsw_t *vswp, const char *fmt, ...);
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_tree.c1200 struct vfssw *vswp; in smb_tree_get_flags() local
1255 vswp = vfs_getvfsswbyvfsops(vfs_getops(vfsp)); in smb_tree_get_flags()
1256 if (vswp != NULL) { in smb_tree_get_flags()
1257 name = vswp->vsw_name; in smb_tree_get_flags()
1258 vfs_unrefvfssw(vswp); in smb_tree_get_flags()
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfake_vfs.c141 vfs_unrefvfssw(struct vfssw *vswp) in vfs_unrefvfssw() argument
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/sys/
H A Dvfs.h604 #define ALLOCATED_VFSSW(vswp) ((vswp)->vsw_name[0] != '\0') argument
/illumos-gate/usr/src/uts/common/sys/
H A Dvfs.h597 #define ALLOCATED_VFSSW(vswp) ((vswp)->vsw_name[0] != '\0') argument
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_stub_vnops.c3256 struct vfssw *vswp; in nfs4_trigger_create_mntopts() local
3262 vswp = vfs_getvfssw(MNTTYPE_NFS4); in nfs4_trigger_create_mntopts()
3263 optproto = &vswp->vsw_optproto; in nfs4_trigger_create_mntopts()
3273 vfs_unrefvfssw(vswp); in nfs4_trigger_create_mntopts()
3278 vfs_unrefvfssw(vswp); in nfs4_trigger_create_mntopts()