/osnet-11/usr/src/lib/libsmbfs/common/ |
H A D | smbfs_rq.c | 131 struct mbdata *mbp = &rqp->rq_rq; local 133 (void) smbfs_mb_fit(mbp, 1, &rqp->rq_wcntp); 134 rqp->rq_wcbase = mbp->mb_count; 144 struct mbdata *mbp = &rqp->rq_rq; local 151 wcnt = mbp->mb_count - rqp->rq_wcbase; 177 struct mbdata *mbp = &rqp->rq_rq; local 179 (void) smbfs_mb_fit(mbp, 2, &rqp->rq_bcntp); 180 rqp->rq_bcbase = mbp->mb_count; 190 struct mbdata *mbp = &rqp->rq_rq; local 197 bcnt = mbp 277 struct mbdata mbtmp, *mbp; local [all...] |
H A D | smbfs_mbuf.c | 151 smbfs_mb_init(struct mbdata *mbp) argument 153 return (smbfs_mb_init_sz(mbp, M_MINSIZE)); 157 smbfs_mb_init_sz(struct mbdata *mbp, int size) argument 164 smbfs_mb_initm(mbp, m); 169 smbfs_mb_initm(struct mbdata *mbp, struct mbuf *m) argument 171 bzero(mbp, sizeof (*mbp)); 172 mbp->mb_top = mbp->mb_cur = m; 173 mbp 177 smbfs_mb_done(struct mbdata *mbp) argument 214 smbfs_mb_reserve(mbchain_t *mbp, int size) argument 230 smbfs_mb_fit(mbchain_t *mbp, int size, char **pp) argument 251 smbfs_mb_put_uint8(mbchain_t *mbp, uint8_t x) argument 258 smbfs_mb_put_uint16be(mbchain_t *mbp, uint16_t x) argument 265 smbfs_mb_put_uint16le(mbchain_t *mbp, uint16_t x) argument 272 smbfs_mb_put_uint32be(mbchain_t *mbp, uint32_t x) argument 279 smbfs_mb_put_uint32le(mbchain_t *mbp, uint32_t x) argument 286 smbfs_mb_put_uint64be(mbchain_t *mbp, uint64_t x) argument 293 smbfs_mb_put_uint64le(mbchain_t *mbp, uint64_t x) argument 301 smbfs_mb_put_mem(mbchain_t *mbp, const void *vmem, int size, int type) argument 346 smbfs_mb_put_mbuf(mbchain_t *mbp, struct mbuf *m) argument 375 smbfs_mb_put_string(mbchain_t *mbp, const char *s, int uc) argument 396 smbfs_mb_put_astring(mbchain_t *mbp, const char *s) argument 414 smbfs_mb_put_ustring(mbchain_t *mbp, const char *s) argument 434 smbfs_md_get_uint8(mdchain_t *mbp, uint8_t *x) argument 440 smbfs_md_get_uint16le(mdchain_t *mbp, uint16_t *x) argument 453 smbfs_md_get_uint16be(mdchain_t *mbp, uint16_t *x) argument 465 smbfs_md_get_uint32be(mdchain_t *mbp, uint32_t *x) argument 478 smbfs_md_get_uint32le(mdchain_t *mbp, uint32_t *x) argument 492 smbfs_md_get_mem(mdchain_t *mbp, void *vmem, int size, int type) argument 531 smbfs_md_get_mbuf(mdchain_t *mbp, int size, mbuf_t **ret) argument 556 smbfs_md_get_string(mdchain_t *mbp, char **str_pp, int uc) argument 576 mdchain_t tmp_mb, *mbp; local 635 mdchain_t tmp_mb, *mbp; local [all...] |
H A D | smbfs_negprot.c | 103 struct mbdata *mbp; local 162 mbp = &rqp->rq_rq; 163 smbfs_mb_put_uint8(mbp, 0); /* word count */ 166 smbfs_mb_put_uint8(mbp, SMB_FMT_DIALECT); 167 smbfs_mb_put_astring(mbp, dp->d_name); 192 mbp = &rqp->rq_rp; 193 (void) smbfs_md_get_uint8(mbp, &wc); 194 err = smbfs_md_get_uint16le(mbp, &dindex); 211 smbfs_md_get_uint8(mbp, &sv->sv_sm); /* SecurityMode */ 212 smbfs_md_get_uint16le(mbp, [all...] |
H A D | smbfs_acl.c | 69 * Note: Get allocates mbp->mb_top 74 smbfs_acl_iocget(int fd, uint32_t selector, mbdata_t *mbp) argument 80 error = smbfs_mb_init_sz(mbp, MAX_RAW_SD_SIZE); 84 m = mbp->mb_top; 102 smbfs_mb_done(mbp); 108 smbfs_acl_iocset(int fd, uint32_t selector, mbdata_t *mbp) argument 115 error = smbfs_m_lineup(mbp->mb_top, &m); 119 if (mbp->mb_top != m) 120 smbfs_mb_initm(mbp, m); 142 mbdata_t *mbp, mb_stor local 172 mbdata_t *mbp, mb_store; local [all...] |
H A D | smbfs_ssnsetup.c | 333 struct mbdata *mbp; local 365 mbp = &rqp->rq_rq; 367 smbfs_mb_put_uint16le(mbp, 0xff); /* 0: AndXCommand */ 368 smbfs_mb_put_uint16le(mbp, 0); /* 1: AndXOffset */ 369 smbfs_mb_put_uint16le(mbp, sv->sv_maxtx); /* 2: MaxBufferSize */ 370 smbfs_mb_put_uint16le(mbp, sv->sv_maxmux); /* 3: MaxMpxCount */ 371 smbfs_mb_put_uint16le(mbp, 1); /* 4: VcNumber */ 372 smbfs_mb_put_uint32le(mbp, sv->sv_skey); /* 5,6: Session Key */ 376 smbfs_mb_put_uint16le(mbp, len1); /* 7: Sec. Blob Len */ 377 smbfs_mb_put_uint32le(mbp, [all...] |
H A D | smbfs_nbns_rq.c | 417 struct mbdata *mbp = &rqp->nr_rp; local 422 cp = (uchar_t *)mbp->mb_pos; 427 error = smbfs_md_get_mem(mbp, NULL, len, MB_MSYSTEM); 430 smbfs_md_get_uint16be(mbp, &rrp->rr_type); 431 smbfs_md_get_uint16be(mbp, &rrp->rr_class); 432 smbfs_md_get_uint32be(mbp, &rrp->rr_ttl); 433 smbfs_md_get_uint16be(mbp, &rrp->rr_rdlength); 434 rrp->rr_data = (uchar_t *)mbp->mb_pos; 435 error = smbfs_md_get_mem(mbp, NULL, rrp->rr_rdlength, MB_MSYSTEM); 443 struct mbdata *mbp local 483 struct mbdata *mbp = &rqp->nr_rp; local 547 struct mbdata *mbp = &rqp->nr_rq; local 589 struct mbdata *mbp = &rqp->nr_rq; local [all...] |
H A D | smbfs_nb_ssn.c | 60 smbfs_nb_ssn_send(struct smb_ctx *ctx, struct mbdata *mbp) argument 62 return (smbfs_nb_ssn_send_impl(ctx, mbp, 0, mbp->mb_count)); 70 smbfs_nb_ssn_send_impl(struct smb_ctx *ctx, struct mbdata *mbp, argument 77 m = mbp->mb_top; 95 err = smbfs_m_lineup(mbp->mb_top, &mbp->mb_top); 98 m = mbp->mb_top; 120 smbfs_nb_ssn_recv(struct smb_ctx *ctx, struct mbdata *mbp) argument 123 err = smbfs_nb_ssn_recv_impl(ctx, mbp, [all...] |
H A D | smbfs_nb.c | 296 smbfs_nb_name_encode(struct mbdata *mbp, struct nb_name *nn) argument 319 smbfs_mb_put_uint8(mbp, (2 * NB_NAMELEN)); 324 smbfs_mb_put_uint8(mbp, 'A' + ((ch >> 4) & 0xF)); 325 smbfs_mb_put_uint8(mbp, 'A' + ((ch) & 0xF)); 343 smbfs_mb_put_uint8(mbp, 0); 347 (void) smbfs_mb_fit(mbp, 1, &plen); 354 smbfs_mb_put_uint8(mbp, 0); 359 (void) smbfs_mb_fit(mbp, 1, &plen); 364 smbfs_mb_put_uint8(mbp, *p);
|
H A D | smbfs_ntlmssp.c | 88 smbfs_md_get_sb_hdr(struct mbdata *mbp, struct sec_buf *sb) argument 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) argument 113 smbfs_mb_initm(&tmp_mb, mbp->mb_top); 130 smbfs_mb_put_sb_hdr(struct mbdata *mbp, struct sec_buf *sb) argument 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, s 146 smbfs_mb_put_sb_data(struct mbdata *mbp, struct sec_buf *sb, struct mbuf *m) argument 164 smbfs_mb_put_sb_string(struct mbdata *mbp, struct sec_buf *sb, const char *s, int unicode) argument [all...] |
H A D | smbfs_ntlm.c | 556 smbfs_put_blob_name(struct mbdata *mbp, char *name, int type) argument 570 smbfs_mb_put_uint16le(mbp, type); 571 smbfs_mb_put_uint16le(mbp, nlen); 572 smbfs_mb_put_mem(mbp, (char *)ucs, nlen, MB_MSYSTEM); 585 struct mbdata *mbp) 594 if ((err = smbfs_mb_init(mbp)) != 0) 619 smbfs_mb_put_uint32le(mbp, 0x101); /* Blob signature */ 620 smbfs_mb_put_uint32le(mbp, 0); /* reserved */ 621 smbfs_mb_put_uint64le(mbp, nt_time); /* NT time stamp */ 622 smbfs_mb_put_mem(mbp, ct 584 smbfs_ntlm_build_target_info(struct smb_ctx *ctx, struct mbuf *names, struct mbdata *mbp) argument [all...] |
H A D | smbfs_private.h | 125 int smbfs_mb_fit(struct mbdata *mbp, int size, char **pp); 139 int smbfs_mb_put_string(struct mbdata *mbp, const char *s, int); 140 int smbfs_mb_put_astring(struct mbdata *mbp, const char *s);
|
/osnet-11/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_import.c | 197 mddb_mb_t *mbp 206 if (blk >= mbp->mb_blkcnt || blk >= mbp->mb_blkmap.m_consecutive) 209 return (mbp->mb_blkmap.m_firstblk + blk); 616 mddb_mb_t *mbp; local 621 mbp = Malloc(DEV_BSIZE); 640 Free(mbp); 649 Free(mbp); 662 Free(mbp); 672 Free(mbp); 1351 mddb_mb_t *mbp; local 1704 mddb_mb_t *mbp = bp; local 1743 read_locator_block( md_error_t *ep, int fd, mddb_mb_t *mbp, void *bp, int bsize ) argument 1765 phys_read( md_error_t *ep, int fd, mddb_mb_t *mbp, daddr_t blk, void *bp, int bcount ) argument 1798 read_locator_block_did( md_error_t *ep, int fd, mddb_mb_t *mbp, mddb_lb_t *lbp, void *bp, int bsize ) argument 1828 read_locator_names( md_error_t *ep, int fd, mddb_mb_t *mbp, mddb_lb_t *lbp, void *bp, int bsize ) argument 1851 read_database_block( md_error_t *ep, int fd, mddb_mb_t *mbp, int dbblk, void *bp, int bsize ) argument 1872 read_loc_didblks( md_error_t *ep, int fd, mddb_mb_t *mbp, int didblk, void *bp, int bsize ) argument 1894 read_loc_didinfo( md_error_t *ep, int fd, mddb_mb_t *mbp, int infoblk, void *bp, int bsize ) argument 1961 read_nm_rec( md_error_t *ep, int fd, mddb_mb_t *mbp, mddb_lb_t *lbp, char **nm, mddb_type_t rectype, char *diskname ) argument 2049 is_replicated( int fd, mddb_mb_t *mbp, int need_devid, void **new_devid ) argument 2125 mddb_mb_t *mbp; local 3384 mddb_mb_t *mbp = NULL; local 3736 struct mddb_mb *mbp; local [all...] |
H A D | meta_set_tkr.c | 325 mddb_mb_t *mbp; local 336 mbp = (mddb_mb_t *)mb; 380 if (read(fd, mbp, DEV_BSIZE) != DEV_BSIZE) 383 if (crcchk((uchar_t *)mbp, (uint_t *)&mbp->mb_checksum, 392 if (mbp->mb_devid_magic != MDDB_MAGIC_DE) { 403 if ((mbp->mb_setcreatetime.tv_sec == 0) && 404 (mbp->mb_setcreatetime.tv_usec == 0)) { 405 mbp->mb_setcreatetime = 420 if (mbp [all...] |
H A D | meta_statconcise.c | 1544 mddb_mb_t *mbp, 1563 int mnset = (mbp->mb_revision == MDDB_REV_MNMB); 1571 if ((pblk = getphysblk(dep->de_blks[cnt], mbp)) < 0) { 1744 mddb_mb_t *mbp, 1765 if ((rval = read_database_block(ep, fd, mbp, dbblk, 1840 rval = read_mdrecord(mdimpp, mbp, nm, dep, 1542 read_mdrecord( md_im_rec_t **mdimpp, mddb_mb_t *mbp, mddb_rb_t *nm, mddb_de_t *dep, char *diskname, int fd, md_timeval32_t *lastaccess, md_error_t *ep ) argument 1742 read_all_mdrecords( md_im_rec_t **mdimpp, mddb_mb_t *mbp, mddb_lb_t *lbp, mddb_rb_t *nm, mdname_t *rsp, int fd, md_timeval32_t *lastaccess, md_error_t *ep ) argument
|
H A D | meta_mn_handlers.c | 1029 mddb_block_parm_t mbp; local 1039 (void) memset(&mbp, 0, sizeof (mbp)); 1040 mbp.c_setno = msg->msg_setno; 1041 mbp.c_blk_flags = d->msg_block_flags; 1042 ret = metaioctl(MD_MN_MDDB_BLOCK, &mbp, &mbp.c_mde, NULL); 1044 (void) mdstealerror(&(resp->mmr_ep), &mbp.c_mde);
|
/osnet-11/usr/src/lib/libcmd/common/ |
H A D | od.c | 244 int mbp; member in struct:State_s 1063 if (state->mbp) 1065 state->mbp--; 1071 state->mbp = c - 1;
|