Lines Matching refs:sb
88 smbfs_md_get_sb_hdr(struct mbdata *mbp, struct sec_buf *sb)
92 (void) smbfs_md_get_uint16le(mbp, &sb->sb_length);
93 (void) smbfs_md_get_uint16le(mbp, &sb->sb_maxlen);
94 err = smbfs_md_get_uint32le(mbp, &sb->sb_offset);
104 smbfs_md_get_sb_data(struct mbdata *mbp, struct sec_buf *sb, struct mbuf **mp)
116 err = smbfs_md_get_mem(&tmp_mb, NULL, sb->sb_offset, MB_MSYSTEM);
121 err = smbfs_md_get_mbuf(&tmp_mb, sb->sb_maxlen, mp);
130 smbfs_mb_put_sb_hdr(struct mbdata *mbp, struct sec_buf *sb)
134 (void) smbfs_mb_put_uint16le(mbp, sb->sb_length);
135 (void) smbfs_mb_put_uint16le(mbp, sb->sb_maxlen);
136 err = smbfs_mb_put_uint32le(mbp, sb->sb_offset);
146 smbfs_mb_put_sb_data(struct mbdata *mbp, struct sec_buf *sb, struct mbuf *m)
150 sb->sb_offset = cnt0 = mbp->mb_count;
152 sb->sb_maxlen = sb->sb_length = mbp->mb_count - cnt0;
164 smbfs_mb_put_sb_string(struct mbdata *mbp, struct sec_buf *sb,
190 err = smbfs_mb_put_sb_data(mbp, sb, tmp_mb.mb_top);