/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vsw.c | 79 static int vsw_unattach(vsw_t *vswp); 85 static int vsw_mdeg_register(vsw_t *vswp); 86 static void vsw_mdeg_unregister(vsw_t *vswp); 89 static int vsw_get_initial_md_properties(vsw_t *vswp, md_t *, mde_cookie_t); 90 static int vsw_read_mdprops(vsw_t *vswp); 96 static int vsw_port_read_props(vsw_port_t *portp, vsw_t *vswp, 98 static void vsw_read_pri_eth_types(vsw_t *vswp, md_t *mdp, 100 static void vsw_mtu_read(vsw_t *vswp, md_t *mdp, mde_cookie_t node, 102 static int vsw_mtu_update(vsw_t *vswp, uint32_t mtu); 103 static void vsw_linkprop_read(vsw_t *vswp, md_t *mdp, mde_cookie_t node, [all …]
|
H A D | vsw_phys.c | 78 static int vsw_set_if_hw_addr(vsw_t *vswp); 80 static int vsw_maccl_open(vsw_t *vswp, vsw_port_t *port, int type); 81 static void vsw_maccl_close(vsw_t *vswp, vsw_port_t *port, int type); 82 static void vsw_mac_multicast_add_all(vsw_t *vswp, vsw_port_t *portp, int type); 83 static void vsw_mac_multicast_remove_all(vsw_t *vswp, 85 static void vsw_mac_add_vlans(vsw_t *vswp, mac_client_handle_t mch, 89 static void vsw_mac_set_mtu(vsw_t *vswp, uint32_t mtu); 90 static void vsw_maccl_set_bandwidth(vsw_t *vswp, vsw_port_t *port, int type, 92 static int vsw_notify_add(vsw_t *vswp); 93 static int vsw_notify_rem(vsw_t *vswp); [all …]
|
H A D | vsw_hio.c | 88 void vsw_hio_init(vsw_t *vswp); 89 void vsw_hio_cleanup(vsw_t *vswp); 90 void vsw_hio_start(vsw_t *vswp, vsw_ldc_t *ldcp); 91 void vsw_hio_stop(vsw_t *vswp, vsw_ldc_t *ldcp); 92 void vsw_process_dds_msg(vsw_t *vswp, vsw_ldc_t *ldcp, void *msg); 93 void vsw_hio_start_ports(vsw_t *vswp); 97 static void vsw_hio_free_all_shares(vsw_t *vswp, boolean_t reboot); 98 static vsw_share_t *vsw_hio_alloc_share(vsw_t *vswp, vsw_ldc_t *ldcp); 100 static vsw_share_t *vsw_hio_find_free_share(vsw_t *vswp); 101 static vsw_share_t *vsw_hio_find_vshare_ldcid(vsw_t *vswp, uint64_t ldc_id); [all …]
|
H A D | vsw_switching.c | 74 int vsw_setup_switching_start(vsw_t *vswp); 75 void vsw_setup_switching_stop(vsw_t *vswp); 77 void vsw_setup_switching_post_process(vsw_t *vswp); 78 void vsw_switch_frame_nop(vsw_t *vswp, mblk_t *mp, int caller, 84 static void vsw_switch_l2_frame_mac_client(vsw_t *vswp, mblk_t *mp, int caller, 86 static void vsw_switch_l2_frame(vsw_t *vswp, mblk_t *mp, int caller, 88 static void vsw_switch_l3_frame(vsw_t *vswp, mblk_t *mp, int caller, 90 static int vsw_forward_all(vsw_t *vswp, mblk_t *mp, 92 static int vsw_forward_grp(vsw_t *vswp, mblk_t *mp, 109 void vsw_fdbe_add(vsw_t *vswp, void *port); [all …]
|
H A D | vsw_ldc.c | 83 void vsw_detach_ports(vsw_t *vswp); 84 int vsw_port_add(vsw_t *vswp, md_t *mdp, mde_cookie_t *node); 86 int vsw_port_detach(vsw_t *vswp, int p_instance); 89 vsw_port_t *vsw_lookup_port(vsw_t *vswp, int p_instance); 92 void vsw_reset_ports(vsw_t *vswp); 94 void vsw_physlink_update_ports(vsw_t *vswp); 161 static void vsw_save_lmacaddr(vsw_t *vswp, uint64_t macaddr); 179 extern int vsw_add_mcst(vsw_t *vswp, uint8_t devtype, uint64_t addr, void *arg); 180 extern int vsw_del_mcst(vsw_t *vswp, uint8_t devtype, uint64_t addr, void *arg); 181 extern void vsw_fdbe_add(vsw_t *vswp, void *port); [all …]
|
H A D | vsw_txdring.c | 72 static int vsw_init_multipools(vsw_ldc_t *ldcp, vsw_t *vswp); 112 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 164 DERR(vswp, "vsw_create_tx_dring(%lld): ldc dring create " in vsw_create_tx_dring() 174 DERR(vswp, "vsw_create_tx_dring(%lld): dring info failed\n", in vsw_create_tx_dring() 194 DERR(vswp, "%s: unable to setup ring", __func__); in vsw_create_tx_dring() 202 DERR(vswp, "vsw_create_tx_dring: unable to bind to channel " in vsw_create_tx_dring() 228 vsw_t *vswp = ldcp->ldc_vswp; in vsw_setup_tx_dring() local [all …]
|
H A D | vsw_rxdring.c | 97 #define VSW_SWITCH_FRAMES(vswp, ldcp, bp, bpt, count, total_count) \ argument 100 (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 183 DERR(vswp, "vsw_create_rx_dring(%lld): ldc dring create " in vsw_create_rx_dring() 192 DERR(vswp, "vsw_create_rx_dring(%lld): dring info failed\n", in vsw_create_rx_dring() 216 DERR(vswp, "%s: unable to setup ring", __func__); in vsw_create_rx_dring() 227 DERR(vswp, "vsw_create_rx_dring: unable to bind to channel " in vsw_create_rx_dring() [all …]
|
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/ |
H A D | fake_modconf.c | 79 struct vfssw *vswp; in fake_installfs() local 93 if ((vswp = vfs_getvfsswbyname(fsname)) == NULL) { in fake_installfs() 94 if ((vswp = allocate_vfssw(fsname)) == NULL) { in fake_installfs() 106 ASSERT(vswp != NULL); in fake_installfs() 108 fstype = vswp - vfssw; /* Pointer arithmetic to get the fstype */ in fake_installfs() 111 vswp->vsw_flag = def->flags & ~(VSW_STATS); in fake_installfs() 115 &vswp->vsw_optproto); in fake_installfs() 117 vfs_copyopttbl(&vfs_mntopts, &vswp->vsw_optproto); in fake_installfs() 124 vswp->vsw_flag |= VSW_CANREMOUNT; in fake_installfs() 136 kmem_free(vswp->vsw_name, strlen(vswp->vsw_name)+1); in fake_installfs() [all …]
|
H A D | fake_vfs.c | 538 struct vfssw *vswp; in fake_domount() local 572 if ((vswp = vfs_getvfssw(fsname)) == NULL) { in fake_domount() 575 if (!VFS_INSTALLED(vswp)) in fake_domount() 580 vfsops = &vswp->vsw_vfsops; in fake_domount() 582 vfs_copyopttbl(&vswp->vsw_optproto, &mnt_mntopts); in fake_domount() 798 if (vswp->vsw_flag & VSW_XID) in fake_domount() 827 ASSERT(vswp != NULL); in fake_domount() 828 vfs_unrefvfssw(vswp); in fake_domount() 1795 struct vfssw *vswp; in allocate_vfssw() local 1808 for (vswp = &vfssw[1]; vswp < &vfssw[nfstype]; vswp++) in allocate_vfssw() [all …]
|
H A D | fake_stat.c | 65 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 D | sysfs.c | 86 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 D | stat.c | 196 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() 248 (void) strcpy(sb.st_fstype, 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() 371 (void) strcpy(sb.st_fstype, vswp->vsw_name); in cstat32() 453 struct vfssw *vswp; in cstat64() local 477 vswp = &vfssw[vp->v_vfsp->vfs_fstype]; in cstat64() [all …]
|
H A D | statfs.c | 117 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/fs/ |
H A D | vfs.c | 618 struct vfssw *vswp; in vfs_sync() local 620 for (vswp = &vfssw[1]; vswp < &vfssw[nfstype]; vswp++) { in vfs_sync() 621 if (ALLOCATED_VFSSW(vswp) && VFS_INSTALLED(vswp)) { in vfs_sync() 622 vfs_refvfssw(vswp); in vfs_sync() 624 (void) (*vswp->vsw_vfsops.vfs_sync)(NULL, flag, in vfs_sync() 626 vfs_unrefvfssw(vswp); in vfs_sync() 844 struct vfssw *vswp; in vfs_mountroot() local 914 if ((vswp = vfs_getvfsswbyvfsops(vfs_getops(rootvfs))) != NULL) { in vfs_mountroot() 916 if (vswp->vsw_flag & VSW_STATS) { in vfs_mountroot() 920 get_fstype_vopstats(rootvfs, vswp); in vfs_mountroot() [all …]
|
H A D | fsflush.c | 362 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 D | vnode.c | 626 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/common/os/ |
H A D | modconf.c | 922 struct vfssw *vswp; in mod_infofs() local 925 if ((vswp = vfs_getvfsswbyname(modl->fs_vfsdef->name)) == NULL) in mod_infofs() 928 *p0 = vswp - vfssw; in mod_infofs() 929 vfs_unrefvfssw(vswp); in mod_infofs() 942 struct vfssw *vswp; in mod_installfs() local 979 if ((vswp = vfs_getvfsswbyname(fsname)) == NULL) { in mod_installfs() 980 if ((vswp = allocate_vfssw(fsname)) == NULL) { in mod_installfs() 992 ASSERT(vswp != NULL); in mod_installfs() 994 fstype = vswp - vfssw; /* Pointer arithmetic to get the fstype */ in mod_installfs() 997 vswp->vsw_flag = modl->fs_vfsdef->flags & ~(VSW_STATS); in mod_installfs() [all …]
|
H A D | policy.c | 789 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 D | zone.c | 6931 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/sun4v/sys/ |
H A D | vsw.h | 89 #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 D | smb_tree.c | 1200 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 D | fake_vfs.c | 152 vfs_unrefvfssw(struct vfssw *vswp) in vfs_unrefvfssw() argument
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | vfs.h | 602 #define ALLOCATED_VFSSW(vswp) ((vswp)->vsw_name[0] != '\0') argument
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_stub_vnops.c | 3256 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()
|