Lines Matching refs:ssp
159 struct smb_share *ssp;
170 ssp = sdp->sd_share;
171 if (ssp != NULL)
172 smb_share_rele(ssp, &scred);
193 struct smb_share *ssp;
220 (struct smbioc_oshare*)data, &scred, &ssp);
223 sdp->sd_share = ssp;
224 smb_share_unlock(ssp, 0);
264 if ((ssp = sdp->sd_share) == NULL)
266 error = smb_share_get(ssp, LK_EXCLUSIVE, &scred);
269 if (on && (ssp->obj.co_flags & SMBS_PERMANENT) == 0) {
270 ssp->obj.co_flags |= SMBS_PERMANENT;
271 smb_share_ref(ssp);
272 } else if (!on && (ssp->obj.co_flags & SMBS_PERMANENT)) {
273 ssp->obj.co_flags &= ~SMBS_PERMANENT;
274 smb_share_rele(ssp, &scred);
276 smb_share_put(ssp, &scred);
288 ssp = NULL;
289 error = smb_usr_lookup((struct smbioc_lookup*)data, &scred, &vcp, &ssp);
297 if (ssp) {
298 sdp->sd_share = ssp;
299 smb_share_unlock(ssp, 0);
308 if ((ssp = sdp->sd_share) == NULL)
320 error = smb_read(ssp, rwrq->ioc_fh, &auio, &scred);
322 error = smb_write(ssp, rwrq->ioc_fh, &auio, &scred);
396 struct smb_share *ssp;
414 ssp = sdp->sd_share;
415 if (ssp == NULL) {
419 error = smb_share_get(ssp, LK_EXCLUSIVE, scred);
421 *sspp = ssp;