Home
last modified time | relevance | path

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

/titanic_50/usr/src/uts/sun4v/io/
H A Dvsw.c79 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 Dvsw_phys.c78 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 Dvsw_hio.c88 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 Dvsw_switching.c74 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 Dvsw_ldc.c83 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 Dvsw_txdring.c72 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 Dvsw_rxdring.c97 #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 …]
/titanic_50/usr/src/uts/common/syscall/
H A Dsysfs.c88 struct vfssw *vswp; in sysfsind() local
104 if ((vswp = vfs_getvfssw(fsbuf)) != NULL) { in sysfsind()
105 retval = vswp - vfssw; in sysfsind()
106 vfs_unrefvfssw(vswp); in sysfsind()
120 struct vfssw *vswp; in sysfstyp() local
127 vswp = &vfssw[index]; in sysfstyp()
129 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()
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 Dstatfs.c119 struct vfssw *vswp; in cstatfs() local
152 if ((vswp = vfs_getvfssw(svfs.f_basetype)) == NULL) in cstatfs()
155 sfs.f_fstyp = vswp - vfssw; in cstatfs()
156 vfs_unrefvfssw(vswp); in cstatfs()
/titanic_50/usr/src/uts/common/os/
H A Dmodconf.c919 struct vfssw *vswp; in mod_infofs() local
922 if ((vswp = vfs_getvfsswbyname(modl->fs_vfsdef->name)) == NULL) in mod_infofs()
925 *p0 = vswp - vfssw; in mod_infofs()
926 vfs_unrefvfssw(vswp); in mod_infofs()
939 struct vfssw *vswp; in mod_installfs() local
976 if ((vswp = vfs_getvfsswbyname(fsname)) == NULL) { in mod_installfs()
977 if ((vswp = allocate_vfssw(fsname)) == NULL) { in mod_installfs()
989 ASSERT(vswp != NULL); in mod_installfs()
991 fstype = vswp - vfssw; /* Pointer arithmetic to get the fstype */ in mod_installfs()
994 vswp->vsw_flag = modl->fs_vfsdef->flags & ~(VSW_STATS); in mod_installfs()
[all …]
H A Dpolicy.c773 struct vfssw *vswp; in secpolicy_fs_allowed_mount() local
783 vswp = vfs_getvfssw(fsname); in secpolicy_fs_allowed_mount()
784 if (vswp == NULL) in secpolicy_fs_allowed_mount()
787 if ((vswp->vsw_flag & VSW_ZMOUNT) != 0) { in secpolicy_fs_allowed_mount()
788 vfs_unrefvfssw(vswp); in secpolicy_fs_allowed_mount()
792 vfs_unrefvfssw(vswp); in secpolicy_fs_allowed_mount()
H A Dzone.c6689 struct vfssw *vswp = vfs_getvfssw("zfs"); in zone_dataset_visible() local
6690 zfstype = vswp - vfssw; in zone_dataset_visible()
6691 vfs_unrefvfssw(vswp); in zone_dataset_visible()
/titanic_50/usr/src/uts/common/fs/
H A Dvfs.c604 struct vfssw *vswp; in vfs_sync() local
606 for (vswp = &vfssw[1]; vswp < &vfssw[nfstype]; vswp++) { in vfs_sync()
607 if (ALLOCATED_VFSSW(vswp) && VFS_INSTALLED(vswp)) { in vfs_sync()
608 vfs_refvfssw(vswp); in vfs_sync()
610 (void) (*vswp->vsw_vfsops.vfs_sync)(NULL, flag, in vfs_sync()
612 vfs_unrefvfssw(vswp); in vfs_sync()
872 struct vfssw *vswp; in vfs_mountroot() local
950 if ((vswp = vfs_getvfsswbyvfsops(vfs_getops(rootvfs))) != NULL) { in vfs_mountroot()
952 if (vswp->vsw_flag & VSW_STATS) { in vfs_mountroot()
956 get_fstype_vopstats(rootvfs, vswp); in vfs_mountroot()
[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.c617 get_fstype_vopstats(vfs_t *vfsp, struct vfssw *vswp) in get_fstype_vopstats() argument
631 if (vswp) { in get_fstype_vopstats()
632 fstype = vswp - vfssw; /* Gets us the index */ in get_fstype_vopstats()
2630 struct vfssw *vswp; in vn_can_change_zones() local
2647 vswp = vfs_getvfsswbyvfsops(vfs_getops(rvp->v_vfsp)); in vn_can_change_zones()
2648 if (vswp != NULL) { in vn_can_change_zones()
2649 if (vswp->vsw_flag & VSW_NOTZONESAFE) in vn_can_change_zones()
2651 vfs_unrefvfssw(vswp); in vn_can_change_zones()
/titanic_50/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, ...);
/titanic_50/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfake_vfs.c134 vfs_unrefvfssw(struct vfssw *vswp) in vfs_unrefvfssw() argument
/titanic_50/usr/src/uts/common/fs/smbsrv/
H A Dsmb_tree.c1140 struct vfssw *vswp; in smb_tree_get_flags() local
1189 vswp = vfs_getvfsswbyvfsops(vfs_getops(vfsp)); in smb_tree_get_flags()
1190 if (vswp != NULL) { in smb_tree_get_flags()
1191 name = vswp->vsw_name; in smb_tree_get_flags()
1192 vfs_unrefvfssw(vswp); in smb_tree_get_flags()
/titanic_50/usr/src/uts/common/sys/
H A Dvfs.h603 #define ALLOCATED_VFSSW(vswp) ((vswp)->vsw_name[0] != '\0') argument
/titanic_50/usr/src/uts/common/fs/nfs/
H A Dnfs4_stub_vnops.c3251 struct vfssw *vswp; in nfs4_trigger_create_mntopts() local
3257 vswp = vfs_getvfssw(MNTTYPE_NFS4); in nfs4_trigger_create_mntopts()
3258 optproto = &vswp->vsw_optproto; in nfs4_trigger_create_mntopts()
3268 vfs_unrefvfssw(vswp); in nfs4_trigger_create_mntopts()
3273 vfs_unrefvfssw(vswp); in nfs4_trigger_create_mntopts()