/illumos-gate/usr/src/cmd/keyserv/ |
H A D | setkey.c | 47 #include <mp.h> 473 appendsecretkey3(struct mechentry *mp, uid_t uid, setkeyarg3 *skey) argument 479 debug(KEYSERV_DEBUG, ("appendsecretkey3 %x", mp)); 480 if ((skey == NULL) || (mp == NULL)) { 486 mutex_lock(&mp->mech_lock); 487 if ((mdp = mp->mechdata) == NULL) { 490 mutex_unlock(&mp->mech_lock); 495 mp->mechdata = mdp; 501 mutex_unlock(&mp->mech_lock); 516 mutex_unlock(&mp 534 struct mechentry *mp; local 817 appendnetname3(struct mechentry *mp, uid_t uid, key_netstarg3 *net) argument 890 struct mechentry *mp; local 1019 getcachekey3(uid_t uid, struct mechentry *mp) argument 1081 struct mechentry *mp; local 1390 struct mechentry *mp; local [all...] |
/illumos-gate/usr/src/uts/common/io/ntxn/ |
H A D | unm_nic_main.c | 106 static int unm_nic_do_ioctl(unm_adapter *adapter, queue_t *q, mblk_t *mp); 108 mblk_t *mp); 117 static void ntxn_m_ioctl(void *arg, queue_t *wq, mblk_t *mp); 644 unm_tx_csum(cmdDescType0_t *desc, mblk_t *mp, pktinfo_t *pktinfo) argument 652 mac_hcksum_get(mp, &start, NULL, NULL, NULL, &flags); 689 unm_get_pkt_info(mblk_t *mp, pktinfo_t *pktinfo) argument 696 for (bp = mp; bp != NULL; bp = bp->b_cont) { 703 if (MBLKL(mp) < (sizeof (struct ether_header) + sizeof (ipha_t))) 710 if ((uintptr_t)mp->b_rptr & 1) 713 type = ((struct ether_header *)(uintptr_t)mp 764 unm_send_copy(struct unm_adapter_s *adapter, mblk_t *mp, pktinfo_t *pktinfo) argument 883 unm_send_mapped(struct unm_adapter_s *adapter, mblk_t *mp, pktinfo_t *pktinfo) argument 1083 unm_nic_xmit_frame(unm_adapter *adapter, mblk_t *mp) argument 1232 mblk_t *mp; local 1334 mblk_t *mp; local 1771 unm_nic_ioctl(struct unm_adapter_s *adapter, int cmd, queue_t *q, mblk_t *mp) argument 1840 unm_nic_do_ioctl(unm_adapter *adapter, queue_t *wq, mblk_t *mp) argument 2432 ntxn_m_tx(void *arg, mblk_t *mp) argument 2453 ntxn_m_ioctl(void *arg, queue_t *wq, mblk_t *mp) argument [all...] |
H A D | unm_ndd.c | 144 unm_param_get(queue_t *q, mblk_t *mp, caddr_t cp, cred_t *credp) argument 149 (void) mi_mpprintf(mp, "%d", ndp->ndp_val); 162 unm_param_set(queue_t *q, mblk_t *mp, char *value, caddr_t cp, cred_t *credp) argument 428 unm_nd_ioctl(unm_adapter *adapter, queue_t *wq, mblk_t *mp, struct iocblk *iocp) argument 434 (void *)adapter, (void *)wq, (void *)mp, (void *)iocp)); 453 ok = nd_getset(wq, adapter->nd_data_p, mp); 468 ok = nd_getset(wq, adapter->nd_data_p, mp);
|
/illumos-gate/usr/src/lib/libast/common/misc/ |
H A D | optget.c | 2091 register Sfio_t* mp; local 2156 if (!(mp = opt_info.state->mp) && !(mp = opt_info.state->mp = sfstropen())) 2237 sfputc(mp, '\f'); 2276 sfputc(mp, '\n'); 2329 sfputc(mp, c); 2332 sfputc(mp, '\\'); 2333 sfputc(mp, 3762 register Sfio_t* mp; local 5193 register Sfio_t* mp; local [all...] |
/illumos-gate/usr/src/uts/common/io/atu/ |
H A D | atu.c | 82 mblk_t *mp = NULL; local 96 &req, &mp, &cr, &cf, 0); 97 if (mp == NULL) 101 bcopy(mp->b_rptr, data, length); 103 if ((mp = allocb(length, BPRI_HI)) == NULL) 106 bcopy(data, mp->b_wptr, length); 107 mp->b_wptr += length; 109 &req, &mp, &cr, &cf, 0); 112 if (mp) 113 freemsg(mp); 604 mblk_t *mp = req->bulk_data; local 710 atu_tx_trigger(struct atu_softc *sc, mblk_t *mp) argument 770 atu_send(ieee80211com_t *ic, mblk_t *mp, uint8_t type) argument 1535 atu_m_ioctl(void* arg, queue_t *wq, mblk_t *mp) argument 1566 atu_m_tx(void *arg, mblk_t *mp) argument [all...] |
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/ |
H A D | eib_data.c | 116 mblk_t *mp; local 172 mp = eib_data_rx_comp(vnic, wqe, wc); 173 if (mp == NULL) { 177 * Add this mp to the list to 185 tail->b_next = mp; 187 head = mp; 188 tail = mp; 453 eib_data_parse_ether_hdr(mblk_t *mp, eib_ether_hdr_t *evh) argument 462 hdr = (struct ether_header *)(void *)mp->b_rptr; 463 vl_hdr = (struct ether_vlan_header *)(void *)mp 545 eib_data_prepare_frame(eib_vnic_t *vnic, eib_wqe_t *swqe, mblk_t *mp, eib_ether_hdr_t *evh) argument 764 eib_data_setup_lso(eib_wqe_t *swqe, mblk_t *mp, uint32_t mss, eib_ether_hdr_t *evh) argument 849 eib_data_prepare_sgl(eib_vnic_t *vnic, eib_wqe_t *swqe, mblk_t *mp) argument 1122 mblk_t *mp; local [all...] |
/illumos-gate/usr/src/uts/common/ipp/ipgpc/ |
H A D | classifier.c | 476 * get_port_info(packet, iph, af, mp) 487 get_port_info(ipgpc_packet_t *packet, void *iph, int af, mblk_t *mp) argument 502 up = (uint16_t *)(mp->b_rptr + iplen); 515 endptr = mp->b_wptr; 578 * find_ids(packet, mp) 588 find_ids(ipgpc_packet_t *packet, mblk_t *mp) argument 592 cr = msg_getcred(mp, NULL); 603 * parse_packet(packet, mp) 608 parse_packet(ipgpc_packet_t *packet, mblk_t *mp) argument 613 ipha = (ipha_t *)mp 635 parse_packet6(ipgpc_packet_t *packet, mblk_t *mp) argument [all...] |
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_soft_ring.c | 353 mblk_t *mp; local 377 mp = ringp->s_ring_first; 391 (*proc)(arg1, arg2, mp, NULL); 541 mblk_t *mp; local 549 head = tail = mp = ringp->s_ring_first; 564 while (mp && sz <= bytes_to_pickup) { 565 sz += msgdsize(mp); 567 tail = mp; 568 mp = mp 650 mblk_t *mp; local [all...] |
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm_upgrade.c | 565 bam_warn_hand_entries(menu_t *mp, char *osroot) argument 588 for (entry = mp->entries; entry; entry = entry->next) { 721 bam_add_findroot(menu_t *mp, char *grubsign, char *grubroot, int root_opt) argument 734 entry = find_matching_entry(mp->entries, grubsign, grubroot, root_opt); 765 bam_add_line(mp, entry, line, newlp); 776 unlink_line(mp, line); 790 update_numbering(mp); 798 bam_add_hv(menu_t *mp, char *grubsign, char *grubroot, int root_opt) argument 805 entry = find_matching_entry(mp->entries, grubsign, grubroot, root_opt); 816 (void) add_boot_entry(mp, NEW_HV_ENTR 829 bam_add_dboot( menu_t *mp, char *osroot, char *grubsign, char *grubroot, int root_opt) argument 914 upgrade_menu(menu_t *mp, char *osroot, char *menu_root) argument [all...] |
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_set_med.c | 149 mddb_med_parm_t mp; local 395 (void) memset(&mp, '\0', sizeof (mddb_med_parm_t)); 396 mp.med_setno = sp->setno; 399 if (meta_h2hi(&sd->sd_med, &mp.med, ep)) { 405 if (meta_med_hnm2ip(&mp.med, ep)) { 504 if (metaioctl(MD_MED_SET_LST, &mp, &mp.med_mde, 506 (void) mdstealerror(ep, &mp.med_mde); 605 (void) memset(&mp, '\0', sizeof (mddb_med_parm_t)); 606 mp 733 mddb_med_parm_t mp; local [all...] |
H A D | meta_sp.c | 121 static void meta_sp_printunit(mp_unit_t *mp); 126 static int meta_sp_setgeom(mdname_t *np, mdname_t *compnp, mp_unit_t *mp, 194 static void meta_sp_fillextarray(mp_unit_t *mp, sp_ext_node_t *extlist); 276 meta_sp_printunit(mp_unit_t *mp) argument 280 if (mp == NULL) 284 (void) fprintf(stderr, "\tmp->c.un_type: %d\n", mp->c.un_type); 285 (void) fprintf(stderr, "\tmp->c.un_size: %u\n", mp->c.un_size); 286 (void) fprintf(stderr, "\tmp->c.un_self_id: %lu\n", MD_SID(mp)); 289 (void) fprintf(stderr, "\tmp->un_status: %u\n", mp->un_status); 290 (void) fprintf(stderr, "\tmp->un_numexts: %u\n", mp 421 meta_sp_setgeom( mdname_t *np, mdname_t *compnp, mp_unit_t *mp, md_error_t *ep ) argument 668 md_mirror_t *mp; local 3446 meta_sp_fillextarray( mp_unit_t *mp, sp_ext_node_t *extlist ) argument 3501 mp_unit_t *mp; local 3640 mp_unit_t *mp; local 4253 mp_unit_t *mp = NULL; local 4871 mp_unit_t *mp, *new_un; local 5918 mp_unit_t *mp; local [all...] |
/illumos-gate/usr/src/stand/lib/inet/ |
H A D | ipv4.c | 84 if (fragment[i].mp == NULL) 87 fragment[i].offset, fragment[i].mp->b_rptr, 109 if (fragment[i].mp != NULL && fragment[i].offset == 0) 129 if (fragment[i].mp != NULL && !fragment[i].more) 141 frag_add(int16_t offset, mblk_t *mp, uint16_t ipid, argument 149 if (fragment[i].mp != NULL && 156 if (fragment[i].mp == NULL) { 159 fragment[i].mp = mp; 177 if (fragment[index].mp ! 260 mblk_t *mp; local 697 mblk_t *mp; local [all...] |
/illumos-gate/usr/src/uts/common/rpc/sec/ |
H A D | authdesubr.c | 93 mblk_t *mp; local 257 error = tli_recv(tiptr, &mp, 266 if (mp->b_datap->db_type != M_DATA) { 268 mp->b_datap->db_type); 273 freemsg(mp); 277 mp2 = mp; 310 freemsg(mp);
|
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | deflate.c | 87 mblk_t *mp, int slen, int maxolen); 300 z_compress(void *arg, mblk_t **mret, mblk_t *mp, int orig_len, int maxolen) argument 319 if ((mp = mp->b_cont) == NULL) { \ 323 rptr = mp->b_rptr; \ 324 rmax = mp->b_wptr; \ 340 rptr = mp->b_rptr; 341 rmax = mp->b_wptr; 433 state->strm.avail_in = mp->b_wptr - rptr; 438 flush = (mp 534 z_incomp(void *arg, mblk_t *mp) argument [all...] |
/illumos-gate/usr/src/uts/sun4u/opl/io/oplmsu/ |
H A D | oplmsu.c | 697 oplmsu_uwput(queue_t *uwq, mblk_t *mp) argument 700 if (mp == NULL) { 705 freemsg(mp); 709 OPLMSU_TRACE(uwq, mp, MSU_TRC_UI); 712 if (mp->b_datap->db_type == M_FLUSH) { 713 oplmsu_wcmn_flush_hndl(uwq, mp, RW_READER); 714 } else if (mp->b_datap->db_type >= QPCTL) { 722 &ctrl->last_upri_hi, mp); 727 (void) putq(WR(uwq), mp); local 740 mblk_t *mp local 823 mblk_t *mp; local 831 OPLMSU_TRACE(WR(lwq), mp, MSU_TRC_LO); local 832 putnext(WR(lwq), mp); local 844 (void) putbq(WR(lwq), mp); local 865 oplmsu_lrput(queue_t *lrq, mblk_t *mp) argument 909 mblk_t *mp; local 1018 mblk_t *mp; local 1032 OPLMSU_TRACE(RD(urq), mp, MSU_TRC_UO); local 1033 putnext(RD(urq), mp); local [all...] |
/illumos-gate/usr/src/uts/common/io/chxge/ |
H A D | pe.c | 73 #define MLEN(mp) ((mp)->b_wptr - (mp)->b_rptr) 257 pe_start(ch_t *sa, mblk_t *mp, uint32_t flg) argument 259 mblk_t *m0 = mp; 277 hmp->ce_pa = ((tbuf_t *)mp)->tb_pa; 280 hmp->ce_len = ((tbuf_t *)mp)->tb_len; 281 hmp->ce_mp = mp; 284 (void) ddi_dma_sync((ddi_dma_handle_t)((tbuf_t *)mp)->tb_dh, 287 if (sge_data_out(sa->sge, 0, mp, hm [all...] |
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vsw_txdring.c | 81 extern mblk_t *vsw_vlan_frame_pretag(void *arg, int type, mblk_t *mp); 110 vio_dring_reg_msg_t *mp; local 123 mp = kmem_zalloc(sizeof (vio_dring_reg_msg_t), KM_SLEEP); 125 mp->tag.vio_msgtype = VIO_TYPE_CTRL; 126 mp->tag.vio_subtype = VIO_SUBTYPE_INFO; 127 mp->tag.vio_subtype_env = VIO_DRING_REG; 128 mp->tag.vio_sid = ldcp->local_session; 131 mp->num_descriptors = dp->num_descriptors; 132 mp->descriptor_size = dp->descriptor_size; 133 mp 784 vsw_dringsend(vsw_ldc_t *ldcp, mblk_t *mp) argument 1028 mblk_t *mp = NULL; local [all...] |
/illumos-gate/usr/src/uts/common/io/mac/plugins/ |
H A D | mac_ether.c | 383 mblk_t *mp; local 389 mp = allocb(sizeof (struct ether_header) + extra_len, BPRI_HI); 390 if (mp == NULL) 393 ehp = (void *)mp->b_rptr; 405 mp->b_wptr += sizeof (struct ether_header); 406 return (mp); 411 mac_ether_header_info(mblk_t *mp, void *mac_pdata, mac_header_info_t *hdr_info) argument 416 if (MBLKL(mp) < sizeof (struct ether_header)) 419 ehp = (void *)mp->b_rptr;
|
/illumos-gate/usr/src/uts/intel/io/vmxnet3s/ |
H A D | vmxnet3_rx.c | 306 * device and tag the mp appropriately. 309 vmxnet3_rx_hwcksum(vmxnet3_softc_t *dp, mblk_t *mp, argument 325 (void) hcksum_assoc(mp, NULL, NULL, 0, 0, 0, 0, flags, 0); 349 mblk_t *mp = NULL, **mpTail = ∓ local 391 /* Success, we can chain the mblk with the mp */ 403 * Tag the mp if it was 406 vmxnet3_rx_hwcksum(dp, mp, 428 if (mp) { 430 *mplistTail = mp; [all...] |
/illumos-gate/usr/src/uts/sun4u/starcat/io/ |
H A D | drmach.c | 136 #define DRMACH_MC_ADDR(mp, bank) ((mp)->madr_pa + 16 + 8 * (bank)) 137 #define DRMACH_MC_ASI_ADDR(mp, bank) (DRMACH_MC_ADDR(mp, bank) & 0xFF) 140 #define DRMACH_EMU_ACT_STATUS_ADDR(mp) \ 141 ((mp)->madr_pa + DRMACH_EMU_ACT_STATUS_OFFSET) 1112 drmach_mem_t *mp = id; local 1113 id = mp->next; 1408 dr_msg_t *mp = &mbp->msgdata; local 1418 mp 1959 dr_mbox_msg_t *mp; local 2845 drmach_mem_read_madr(drmach_mem_t *mp, int bank, uint64_t *madr) argument 2861 drmach_prep_mc_rename(uint64_t *p, int local, drmach_mem_t *mp, uint64_t current_basepa, uint64_t new_basepa) argument 2897 drmach_prep_schizo_script(uint64_t *p, drmach_mem_t *mp, uint64_t new_basepa) argument 2959 drmach_prep_pn_mc_idle(uint64_t *p, drmach_mem_t *mp, int local) argument 2991 drmach_mem_t *mp, *skip_mp; local 3447 drmach_mem_t *mp = (drmach_mem_t *)cr->earg; local 6202 drmach_mem_t *mp; local 6267 drmach_mem_t *mp; local 6365 drmach_mem_t *mp, *next; local 6483 drmach_mem_t *mp; local 6541 drmach_mem_t *mp; local 6582 drmach_mem_t *mp = bp->mem; local 6664 drmach_mem_t *mp; local 6680 drmach_device_t *mp; local 6708 drmach_device_t *mp; local 6771 drmach_mem_t *mp; local 7091 drmach_mem_t *mp = id; local 7188 drmach_mem_t *mp = id; local 8766 drmach_mem_t *mp; local [all...] |
/illumos-gate/usr/src/cmd/mailx/ |
H A D | aux.c | 97 register struct message *mp; local 101 mp = &message[mesg-1]; 102 mp->m_flag |= MTOUCH; 103 if ((mp->m_flag & MREAD) == 0) 104 mp->m_flag |= MREAD|MSTATUS; 144 hfield(char field[], struct message *mp, char *(*add)(char *, char *)) argument 151 ibuf = setinput(mp); 152 if ((lc = mp->m_lines) <= 0) 593 nameof(register struct message *mp) argument 602 if (value("from") && (cp = hfield("from", mp, addt [all...] |
/illumos-gate/usr/src/uts/common/net/ |
H A D | ppp-comp.h | 73 PACKETPTR mp, int orig_len, int max_len)); 87 int (*decompress) __P((void *state, PACKETPTR *mp)); 89 int (*incomp) __P((void *state, PACKETPTR mp));
|
/illumos-gate/usr/src/lib/libast/common/port/ |
H A D | mc.c | 215 register char** mp; local 292 if (!(mp = vmnewof(vm, 0, char*, mc->nmsgs + mc->num + 1, 0))) 307 mc->set[i].msg = mp; 308 mp += n + 1; 380 register char** mp; local 409 mp = mc->set[set].msg + num; 410 while (num && !mp[--num]); 461 if (!(mp = vmnewof(mc->vm, 0, char*, i + 1, 0))) 464 sp->msg = mp; 466 mp[ [all...] |
H A D | lcgen.c | 276 Map_t* mp; local 560 if (!(mp = newof(0, Map_t, 1, s - b + 1))) 565 b = (char*)(mp + 1); 566 mp->link.code = copy(&b, arg[0]); 572 if (!(mp->language = (Language_t*)lookup(&state.language, arg[1]))) 577 if (!(mp->territory = (Territory_t*)lookup(&state.territory, arg[2]))) 583 mp->charset = 0; 584 else if (!(mp->charset = (Charset_t*)lookup(&state.charset, arg[3]))) 589 mp->attribute = 0; 592 for (al = mp [all...] |
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | sockcommon_sops.c | 374 mblk_t *mp; local 447 if ((mp = socopyinuio(uiop, 457 ((mp = SOF_FILTER_DATA_OUT(so, mp, msg, cr, 464 (so->so_proto_handle, mp, msg, cr); 491 mblk_t *mp = *mpp; local 499 size = msgdsize(mp); 508 while (mp != NULL) { 537 mlen = MBLKL(mp); 538 nmp = mp 1273 so_queue_msg_impl(struct sonode *so, mblk_t *mp, size_t msg_size, int flags, int *errorp, boolean_t *force_pushp, sof_instance_t *filter) argument 1421 so_queue_msg(sock_upper_handle_t sock_handle, mblk_t *mp, size_t msg_size, int flags, int *errorp, boolean_t *force_pushp) argument 1478 so_queue_oob(struct sonode *so, mblk_t *mp, size_t len) argument [all...] |