Home
last modified time | relevance | path

Searched refs:mb (Results 1 – 25 of 133) sorted by relevance

123456

/titanic_44/usr/src/common/smbsrv/
H A Dsmb_msgbuf.c61 smb_msgbuf_used(smb_msgbuf_t *mb) in smb_msgbuf_used() argument
64 return (mb->scan - mb->base); in smb_msgbuf_used()
71 smb_msgbuf_size(smb_msgbuf_t *mb) in smb_msgbuf_size() argument
73 return (mb->max); in smb_msgbuf_size()
77 smb_msgbuf_base(smb_msgbuf_t *mb) in smb_msgbuf_base() argument
79 return (mb->base); in smb_msgbuf_base()
86 smb_msgbuf_word_align(smb_msgbuf_t *mb) in smb_msgbuf_word_align() argument
88 mb->scan = (uint8_t *)((uintptr_t)(mb->scan + 1) & ~1); in smb_msgbuf_word_align()
95 smb_msgbuf_dword_align(smb_msgbuf_t *mb) in smb_msgbuf_dword_align() argument
97 mb->scan = (uint8_t *)((uintptr_t)(mb->scan + 3) & ~3); in smb_msgbuf_dword_align()
[all …]
/titanic_44/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_mbx.c93 int mbx_cmd = mcp->mb[0]; in ql_mailbox_command()
108 EL(vha, "failed availability cmd=%xh\n", mcp->mb[0]); in ql_mailbox_command()
132 "cmd=%xh\n", mcp->mb[0]); in ql_mailbox_command()
135 EL(vha, "failed availability cmd=%xh\n", mcp->mb[0]); in ql_mailbox_command()
149 WRT16_IO_REG(ha, mailbox_in[cnt], mcp->mb[cnt]); in ql_mailbox_command()
243 rval = mcp->mb[0]; in ql_mailbox_command()
284 mbx_cmd_text(mbx_cmd), rval, mcp->mb[0]); in ql_mailbox_command()
458 mcp->mb[0] = MBC_INITIALIZE_IP; in ql_initialize_ip()
459 mcp->mb[2] = MSW(LSD(mem_desc.cookie.dmac_laddress)); in ql_initialize_ip()
460 mcp->mb[3] = LSW(LSD(mem_desc.cookie.dmac_laddress)); in ql_initialize_ip()
[all …]
H A Dql_isr.c687 ha->mcp->mb[0] = mb0; in ql_mbx_completion()
693 ha->mcp->mb[cnt] = RD16_IO_REG(ha, in ql_mbx_completion()
745 uint16_t mb[MAX_MBOX_COUNT]; in ql_async_event() local
755 mb[0] = LSW(mbx); in ql_async_event()
756 switch (mb[0]) { in ql_async_event()
764 mb[0] = MBA_SCSI_COMPLETION; in ql_async_event()
770 mb[0] = MBA_SCSI_COMPLETION; in ql_async_event()
779 mb[0] = MBA_SCSI_COMPLETION; in ql_async_event()
787 switch (mb[0]) { in ql_async_event()
835 mb[0], handle); in ql_async_event()
[all …]
H A Dql_init.c2220 mr.mb[1] = RD16_IO_REG(ha, mailbox_out[1]); in ql_chip_diag()
2221 mr.mb[2] = RD16_IO_REG(ha, mailbox_out[2]); in ql_chip_diag()
2222 mr.mb[3] = RD16_IO_REG(ha, mailbox_out[3]); in ql_chip_diag()
2234 if (mr.mb[1] == PROD_ID_1 && in ql_chip_diag()
2235 (mr.mb[2] == PROD_ID_2 || mr.mb[2] == PROD_ID_2a) && in ql_chip_diag()
2236 (mr.mb[3] == PROD_ID_3 || mr.mb[3] == id)) { in ql_chip_diag()
2248 ha->instance, mr.mb[1], mr.mb[2], mr.mb[3]); in ql_chip_diag()
2257 mr.mb[1] = 0xAAAA; in ql_chip_diag()
2258 mr.mb[2] = 0x5555; in ql_chip_diag()
2259 mr.mb[3] = 0xAA55; in ql_chip_diag()
[all …]
/titanic_44/usr/src/cmd/localedef/
H A Dwide.c125 show_mb(const char *mb) in show_mb() argument
130 if (isascii(*mb) && isgraph(*mb)) { in show_mb()
131 buf[0] = *mb; in show_mb()
136 while (*mb != 0) { in show_mb()
138 (void) snprintf(scr, sizeof (scr), "\\x%02x", *mb); in show_mb()
140 mb++; in show_mb()
165 towide_none(wchar_t *c, const char *mb, unsigned n) in towide_none() argument
173 *c = (uint8_t)*mb; in towide_none()
178 tomb_none(char *mb, wchar_t wc) in tomb_none() argument
184 *(uint8_t *)mb = (wc & 0xff); in tomb_none()
[all …]
/titanic_44/usr/src/lib/librpcsvc/common/
H A Dmountlist_xdr.c59 mountbody *mb, *tmp; local
64 mb = tmp;
65 tmp = mb->ml_next;
66 if (!xdr_name(xdrs, &mb->ml_hostname))
68 if (!xdr_dirpath(xdrs, &mb->ml_directory))
70 free(mb);
77 mountbody *mb; local
87 mb = (mountbody *)malloc(sizeof (struct mountbody));
88 if (mb == NULL) {
93 mb->ml_hostname = NULL;
[all …]
/titanic_44/usr/src/uts/common/io/fibre-channel/fca/qlge/
H A Dqlge_mpi.c152 mbx_buf->mb[i] = reg_status; in ql_read_mailbox_cmd()
199 ql_write_reg(qlge, REG_PROCESSOR_DATA, mbx_cmd->mb[i]); in ql_issue_mailbox_cmd()
203 __func__, qlge->instance, mbx_cmd->mb[i], i, addr)); in ql_issue_mailbox_cmd()
311 mbx_cmd->mb[i] = qlge->received_mbx_cmds.mb[i]; in ql_issue_mailbox_cmd_and_wait_rsp()
347 mbx_cmd->mb[i] = in ql_issue_mailbox_cmd_and_wait_rsp()
348 qlge->received_mbx_cmds.mb[i]; in ql_issue_mailbox_cmd_and_wait_rsp()
372 switch (mbx_cmds->mb[0]) { in ql_async_event_parser()
383 __func__, qlge->instance, mbx_cmds->mb[1], in ql_async_event_parser()
384 mbx_cmds->mb[2], mbx_cmds->mb[3]); in ql_async_event_parser()
391 link_status = mbx_cmds->mb[1]; in ql_async_event_parser()
[all …]
/titanic_44/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_mbox.c1031 MAILBOX *mb = (MAILBOX *)mbq; in emlxs_mb_async_event() local
1033 bzero((void *) mb, MAILBOX_CMD_BSIZE); in emlxs_mb_async_event()
1035 mb->mbxCommand = MBX_ASYNC_EVENT; in emlxs_mb_async_event()
1036 mb->mbxOwner = OWN_HOST; in emlxs_mb_async_event()
1037 mb->un.varWords[0] = hba->channel_els; in emlxs_mb_async_event()
1050 MAILBOX *mb = (MAILBOX *)mbq; in emlxs_mb_heartbeat() local
1052 bzero((void *) mb, MAILBOX_CMD_BSIZE); in emlxs_mb_heartbeat()
1054 mb->mbxCommand = MBX_HEARTBEAT; in emlxs_mb_heartbeat()
1055 mb->mbxOwner = OWN_HOST; in emlxs_mb_heartbeat()
1071 MAILBOX *mb = (MAILBOX *)mbq; in emlxs_mb_config_msi() local
[all …]
H A Demlxs_download.c390 MAILBOX4 *mb; in emlxs_be_flash_image() local
408 mb = (MAILBOX4*)mbq; in emlxs_be_flash_image()
414 bzero((void *) mb, MAILBOX_CMD_SLI4_BSIZE); in emlxs_be_flash_image()
419 mb->un.varSLIConfig.be.embedded = 0; in emlxs_be_flash_image()
423 mb->mbxCommand = MBX_SLI_CONFIG; in emlxs_be_flash_image()
424 mb->mbxOwner = OWN_HOST; in emlxs_be_flash_image()
477 file->label, mb->mbxStatus); in emlxs_be_flash_image()
504 MAILBOX4 *mb; in emlxs_be_verify_crc() local
519 mb = (MAILBOX4*)mbq; in emlxs_be_verify_crc()
524 bzero((void *) mb, MAILBOX_CMD_SLI4_BSIZE); in emlxs_be_verify_crc()
[all …]
H A Demlxs_sli3.c193 MAILBOX *mb = NULL; in emlxs_sli3_online() local
247 mb = (MAILBOX *)mbq; in emlxs_sli3_online()
377 mb->mbxCommand, mb->mbxStatus); in emlxs_sli3_online()
383 if (mb->un.varRdRev.rr == 0) { in emlxs_sli3_online()
396 if (mb->un.varRdRev.un.b.ProgType != FUNC_FIRMWARE) { in emlxs_sli3_online()
405 mb->un.varRdRev.un.b.ProgType); in emlxs_sli3_online()
410 vpd->sli1FwRev = mb->un.varRdRev.sliFwRev1; in emlxs_sli3_online()
411 bcopy((char *)mb->un.varRdRev.sliFwName1, vpd->sli1FwLabel, in emlxs_sli3_online()
413 vpd->sli2FwRev = mb->un.varRdRev.sliFwRev2; in emlxs_sli3_online()
414 bcopy((char *)mb->un.varRdRev.sliFwName2, vpd->sli2FwLabel, in emlxs_sli3_online()
[all …]
H A Demlxs_sli4.c282 MAILBOX4 *mb = NULL; in emlxs_sli4_online() local
365 mb = (MAILBOX4 *)mbq; in emlxs_sli4_online()
439 mb->mbxCommand, mb->mbxStatus); in emlxs_sli4_online()
446 bcopy((char *)&mb->un.varSLIConfig.payload, in emlxs_sli4_online()
461 mb->mbxCommand, mb->mbxStatus); in emlxs_sli4_online()
467 bcopy((char *)&mb->un.varSLIConfig.payload, in emlxs_sli4_online()
479 mb->mbxCommand, mb->mbxStatus); in emlxs_sli4_online()
486 emlxs_data_dump(port, "RD_REV", (uint32_t *)mb, 18, 0); in emlxs_sli4_online()
487 if (mb->un.varRdRev4.sliLevel != 4) { in emlxs_sli4_online()
490 mb->un.varRdRev4.sliLevel); in emlxs_sli4_online()
[all …]
H A Demlxs_dump.c745 MAILBOX4 *mb = (MAILBOX4 *)mbq; in emlxs_read_cfg_region() local
755 bzero((void *) mb, MAILBOX_CMD_SLI4_BSIZE); in emlxs_read_cfg_region()
757 mb->mbxCommand = MBX_DUMP_MEMORY; in emlxs_read_cfg_region()
758 mb->un.varDmp4.type = DMP_NV_PARAMS; in emlxs_read_cfg_region()
759 mb->un.varDmp4.entry_index = Offset; in emlxs_read_cfg_region()
760 mb->un.varDmp4.region_id = Identifier; in emlxs_read_cfg_region()
762 mb->un.varDmp4.available_cnt = ByteCountReq; in emlxs_read_cfg_region()
763 mb->un.varDmp4.addrHigh = in emlxs_read_cfg_region()
765 mb->un.varDmp4.addrLow = in emlxs_read_cfg_region()
767 mb->un.varDmp4.rsp_cnt = 0; in emlxs_read_cfg_region()
[all …]
H A Demlxs_dfc.c3359 MAILBOX *mb; in emlxs_dfc_npiv_resource() local
3402 mb = (MAILBOX *) mbq; in emlxs_dfc_npiv_resource()
3411 emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand); in emlxs_dfc_npiv_resource()
3420 emlxs_mb_cmd_xlate(mb->mbxCommand), rval); in emlxs_dfc_npiv_resource()
3426 vres->vpi_max = mb->un.varRdConfig.max_vpi; in emlxs_dfc_npiv_resource()
3428 (mb->un.varRdConfig.max_vpi <= in emlxs_dfc_npiv_resource()
3429 mb->un.varRdConfig.avail_vpi) ? 0 : mb->un.varRdConfig.max_vpi - in emlxs_dfc_npiv_resource()
3430 mb->un.varRdConfig.avail_vpi; in emlxs_dfc_npiv_resource()
3432 vres->rpi_max = mb->un.varRdConfig.max_rpi; in emlxs_dfc_npiv_resource()
3434 (mb->un.varRdConfig.max_rpi <= in emlxs_dfc_npiv_resource()
[all …]
/titanic_44/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netlogon.c132 smb_msgbuf_t mb; in smb_netlogon_receive() local
162 smb_msgbuf_init(&mb, data, datalen, 0); in smb_netlogon_receive()
164 if (smb_msgbuf_decode(&mb, "w", &opcode) < 0) { in smb_netlogon_receive()
166 smb_msgbuf_term(&mb); in smb_netlogon_receive()
176 rc = smb_msgbuf_decode(&mb, "sUU", &junk, &primary, &domain); in smb_netlogon_receive()
181 smb_msgbuf_term(&mb); in smb_netlogon_receive()
192 rc = smb_msgbuf_decode(&mb, "UUU", &primary, &junk, &domain); in smb_netlogon_receive()
197 smb_msgbuf_term(&mb); in smb_netlogon_receive()
212 smb_msgbuf_term(&mb); in smb_netlogon_receive()
218 smb_msgbuf_term(&mb); in smb_netlogon_receive()
[all …]
H A Dsmbns_browser.c600 smb_msgbuf_t mb; in smb_browser_load_transact_header() local
619 smb_msgbuf_init(&mb, buffer, maxcnt, 0); in smb_browser_load_transact_header()
621 result = smb_msgbuf_encode(&mb, fmt, in smb_browser_load_transact_header()
644 smb_msgbuf_term(&mb); in smb_browser_load_transact_header()
774 smb_msgbuf_t mb; in smb_browser_send_HostAnnouncement() local
829 smb_msgbuf_init(&mb, buffer + offset, MAX_DATAGRAM_LENGTH - offset, 0); in smb_browser_send_HostAnnouncement()
831 announce_len = smb_msgbuf_encode(&mb, "bbl16cbblls", in smb_browser_send_HostAnnouncement()
847 smb_msgbuf_term(&mb); in smb_browser_send_HostAnnouncement()
891 smb_msgbuf_t mb; in smb_browser_dispatch() local
917 smb_msgbuf_init(&mb, datagram->data, datagram->data_length, 0); in smb_browser_dispatch()
[all …]
/titanic_44/usr/src/uts/common/os/
H A Dmodsubr.c512 struct bind *mb; in find_mbind() local
514 for (mb = hashtab[nm_hash(name)]; mb; mb = mb->b_next) { in find_mbind()
515 if (deleted && (mb->b_num >= 0)) in find_mbind()
517 if (!deleted && (mb->b_num < 0)) in find_mbind()
521 if (strcmp(name, mb->b_name) == 0) { in find_mbind()
525 return (mb); in find_mbind()
539 struct bind *mb; in make_mbind() local
550 mb = kmem_zalloc(sizeof (struct bind), KM_SLEEP); in make_mbind()
551 mb->b_name = i_ddi_strdup(name, KM_SLEEP); in make_mbind()
552 mb->b_num = num; in make_mbind()
[all …]
/titanic_44/usr/src/grub/grub-0.97/stage2/
H A Dboot.c51 struct multiboot_header *mb; in load_image() member
140 pu.mb = (struct multiboot_header *) (buffer + i); in load_image()
141 entry_addr = (entry_func) pu.mb->entry_addr; in load_image()
142 cur_addr = pu.mb->load_addr; in load_image()
144 grub_seek (i - (pu.mb->header_addr - cur_addr)); in load_image()
147 if (! pu.mb->load_end_addr) in load_image()
148 pu.mb->load_end_addr = cur_addr + filemax; in load_image()
150 text_len = pu.mb->load_end_addr - cur_addr; in load_image()
154 if (! pu.mb->bss_end_addr) in load_image()
155 pu.mb->bss_end_addr = pu.mb->load_end_addr; in load_image()
[all …]
/titanic_44/usr/src/uts/sun4v/os/
H A Dmpo.c1001 struct mblock_md *mb; in plat_pfn_to_mem_node() local
1013 mb = &mpo_mblock[0]; in plat_pfn_to_mem_node()
1015 if (pfn >= mb->base_pfn && pfn <= mb->end_pfn) { in plat_pfn_to_mem_node()
1016 ra_to_pa_pfn = btop(mb->ra_to_pa); in plat_pfn_to_mem_node()
1023 mb++; in plat_pfn_to_mem_node()
1042 struct mblock_md *mb; in plat_rapfn_to_papfn() local
1053 for (mb = &mpo_mblock[0], i = 0; i < n_mblocks; i++, mb++) { in plat_rapfn_to_papfn()
1054 if (pfn <= mb->end_pfn && pfn >= mb->base_pfn) { in plat_rapfn_to_papfn()
1055 ra_to_pa_pfn = btop(mb->ra_to_pa); in plat_rapfn_to_papfn()
1327 struct mblock_md *mb = mpo_mblock; in valid_pages() local
[all …]
/titanic_44/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dm_cc.c153 char mb; local
157 mb = (char)(ch & A_CHARTEXT);
159 if (mbtowc(cc->_wc, &mb, 1) < 0)
176 unsigned char mb[MB_LEN_MAX]; local
179 if (cc->_n != 1 || wctomb((char *) mb, cc->_wc[0]) != 1)
183 ch |= COLOR_PAIR(cc->_co) | mb[0];
265 char mb; local
273 mb = cur_term->_shell.c_cc[index];
274 code = mbtowc(wcp, &mb, 1) < 0 ? ERR : OK;
811 char mb[MB_LEN_MAX]; local
[all …]
H A Dwget_wch.c60 char mb[MB_LEN_MAX]; in unget_wch() local
66 if (!ISEMPTY() || (len = wctomb(mb, wc)) < 0) in unget_wch()
70 PUSH(mb[i]); in unget_wch()
H A Dprivate.h84 #define wcrtomb(mb, wc, state) wctomb(mb, wc) argument
86 #define mbrtowc(wc, mb, n, state) mbtowc(wc, mb, n) argument
/titanic_44/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dm_cc.c160 char mb; in __m_chtype_cc() local
164 mb = (char)(ch & A_CHARTEXT); in __m_chtype_cc()
169 if (mb == 0) in __m_chtype_cc()
171 else if (mbtowc(cc->_wc, &mb, 1) < 0) { in __m_chtype_cc()
184 unsigned char mb[MB_LEN_MAX]; in __m_cc_chtype() local
187 if (cc->_n != 1 || wctomb((char *)mb, cc->_wc[0]) != 1) in __m_cc_chtype()
191 ch |= COLOR_PAIR(cc->_co) | mb[0]; in __m_cc_chtype()
265 char mb; in __m_tty_wc() local
274 mb = (char)PTERMIOS(_shell)->c_cc[index]; in __m_tty_wc()
275 if (mb) in __m_tty_wc()
[all …]
H A Dwget_wch.c65 char mb[MB_LEN_MAX]; in unget_wch() local
67 if (!iqIsEmpty() || (len = wctomb(mb, wc)) < 0) in unget_wch()
71 iqAdd((unsigned char)mb[i]); in unget_wch()
/titanic_44/usr/src/lib/libefi/common/
H A Drdwr_efi.c563 struct mboot mb; in write_pmbr() local
569 len = (vtoc->efi_lbasize == 0) ? sizeof (mb) : vtoc->efi_lbasize; in write_pmbr()
581 (void *) memcpy(&mb, buf, sizeof (mb)); in write_pmbr()
582 bzero(&mb, sizeof (mb)); in write_pmbr()
583 mb.signature = LE_16(MBB_MAGIC); in write_pmbr()
585 (void *) memcpy(&mb, buf, sizeof (mb)); in write_pmbr()
586 if (mb.signature != LE_16(MBB_MAGIC)) { in write_pmbr()
587 bzero(&mb, sizeof (mb)); in write_pmbr()
588 mb.signature = LE_16(MBB_MAGIC); in write_pmbr()
592 bzero(&mb.parts, sizeof (mb.parts)); in write_pmbr()
[all …]
/titanic_44/usr/src/lib/libcmd/common/
H A Dcut.c90 int mb; member
144 if (cut->mb = mbwide()) in cutinit()
157 cut->cflag = (mode&C_CHARS) && cut->mb; in cutinit()
158 cut->nosplit = (mode&(C_BYTES|C_NOSPLIT)) == (C_BYTES|C_NOSPLIT) && cut->mb; in cutinit()
383 unsigned char mb[8]; in cutfields() local
410 if (cut->mb) in cutfields()
441 mb[i] = cp[i]; in cutfields()
451 mb[j++] = cp[k++]; in cutfields()
452 if ((c = mb2wc(w, (char*)mb, j)) <= 0) in cutfields()
466 if (sfwrite(fdout, (char*)mb, c) < 0) in cutfields()

123456