Home
last modified time | relevance | path

Searched refs:hmp (Results 1 – 17 of 17) sorted by relevance

/illumos-gate/usr/src/uts/common/os/
H A Dbio.c412 kmutex_t *hmp; in brelse() local
460 hmp = &hbuf[index].b_lock; in brelse()
462 mutex_enter(hmp); in brelse()
498 mutex_exit(hmp); in brelse()
531 kmutex_t *hmp; in bio_busy() local
535 hmp = &hbuf[i].b_lock; in bio_busy()
537 mutex_enter(hmp); in bio_busy()
542 mutex_exit(hmp); in bio_busy()
580 kmutex_t *hmp; in getblk_common() local
591 hmp = &hp->b_lock; in getblk_common()
[all …]
H A Dlogsubr.c333 mblk_t *hmp = NULL; in log_conswitch() local
350 if (hmp) { in log_conswitch()
354 hmp = tmp = mp; in log_conswitch()
358 while (hmp) { in log_conswitch()
359 tmp = hmp->b_next; in log_conswitch()
360 hmp->b_next = NULL; in log_conswitch()
361 hlc = (log_ctl_t *)hmp->b_rptr; in log_conswitch()
370 (void) putq(dst->log_q, hmp); in log_conswitch()
371 hmp = tmp; in log_conswitch()
375 while (hmp) { in log_conswitch()
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dprinthostmap.c3 void printhostmap(hmp, hv) in printhostmap() argument
4 hostmap_t *hmp; in printhostmap()
7 printf("%s,", inet_ntoa(hmp->hm_srcip));
8 printf("%s -> ", inet_ntoa(hmp->hm_dstip));
9 printf("%s ", inet_ntoa(hmp->hm_mapip));
10 printf("(use = %d hv = %u)\n", hmp->hm_ref, hv);
/illumos-gate/usr/src/uts/common/io/chxge/
H A Dpe.c262 cmdQ_ce_t *hmp = &cm[0]; /* head of cm table (may be kmem_alloed) */ in pe_start() local
277 hmp->ce_pa = ((tbuf_t *)mp)->tb_pa; in pe_start()
278 hmp->ce_dh = NULL; in pe_start()
279 hmp->ce_flg = DH_TOE; in pe_start()
280 hmp->ce_len = ((tbuf_t *)mp)->tb_len; in pe_start()
281 hmp->ce_mp = mp; in pe_start()
285 (off_t)0, hmp->ce_len, DDI_DMA_SYNC_FORDEV); in pe_start()
287 if (sge_data_out(sa->sge, 0, mp, hmp, 1, flg) == 0) { in pe_start()
396 buf[j] = hmp[j]; in pe_start()
399 kmem_free(hmp, in pe_start()
[all …]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_input.c670 mblk_t *hmp; in sctp_uodata_frag() local
685 hmp = sctp->sctp_uo_frags; in sctp_uodata_frag()
690 while (hmp != NULL) { in sctp_uodata_frag()
691 qdc = (sctp_data_hdr_t *)hmp->b_rptr; in sctp_uodata_frag()
694 if (hmp->b_prev == NULL) { in sctp_uodata_frag()
695 dmp->b_next = hmp; in sctp_uodata_frag()
696 hmp->b_prev = dmp; in sctp_uodata_frag()
699 dmp->b_next = hmp; in sctp_uodata_frag()
700 dmp->b_prev = hmp->b_prev; in sctp_uodata_frag()
701 hmp->b_prev->b_next = dmp; in sctp_uodata_frag()
[all …]
H A Dsctp_error.c174 mblk_t *hmp; in sctp_send_abort() local
204 hmp = allocb(sctps->sctps_wroff_xtra + ahlen, BPRI_MED); in sctp_send_abort()
205 if (hmp == NULL) { in sctp_send_abort()
211 p = hmp->b_rptr + sctps->sctps_wroff_xtra; in sctp_send_abort()
212 hmp->b_rptr = p; in sctp_send_abort()
213 hmp->b_wptr = p + ahlen; in sctp_send_abort()
256 if ((alen = sctp_link_abort(hmp, serror, details, len, iserror, tbit)) in sctp_send_abort()
258 freemsg(hmp); in sctp_send_abort()
268 freemsg(hmp); in sctp_send_abort()
298 if (!ipsec_in_to_out(ira, ixa, hmp, ahiph, ahip6h)) { in sctp_send_abort()
[all …]
H A Dsctp_asconf.c375 mblk_t *hmp; in sctp_input_asconf() local
417 hmp = sctp_make_mp(sctp, fp, sizeof (*ach) + sizeof (*idp)); in sctp_input_asconf()
418 if (hmp == NULL) { in sctp_input_asconf()
423 ach = (sctp_chunk_hdr_t *)hmp->b_wptr; in sctp_input_asconf()
429 hmp->b_wptr = (uchar_t *)(hidp + 1); in sctp_input_asconf()
434 freeb(hmp); in sctp_input_asconf()
482 freeb(hmp); in sctp_input_asconf()
493 freeb(hmp); in sctp_input_asconf()
531 freemsg(hmp); in sctp_input_asconf()
539 linkb(hmp, mp); in sctp_input_asconf()
[all …]
/illumos-gate/usr/src/uts/common/fs/
H A Dfsflush.c361 kmutex_t *hmp; in fsflush() local
413 hmp = &hbuf[ix].b_lock; in fsflush()
414 mutex_enter(hmp); in fsflush()
430 mutex_exit(hmp); in fsflush()
437 mutex_enter(hmp); in fsflush()
443 mutex_exit(hmp); in fsflush()
H A Dvfs.c3684 kmutex_t *hmp = &rvfs_list[vhno].rvfs_lock; in getvfs() local
3686 mutex_enter(hmp); in getvfs()
3691 mutex_exit(hmp); in getvfs()
3695 mutex_exit(hmp); in getvfs()
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipnat.c358 hostmap_t hm, *hmp, **maptable; in showhostmap() local
376 hmp = maptable[hv]; in showhostmap()
378 while (hmp) { in showhostmap()
379 if (kmemcpy((char *)&hm, (ulong_t)hmp, sizeof (hm))) { in showhostmap()
385 hmp = hm.hm_next; in showhostmap()
477 hostmap_t hm, *hmp; in showhostmap_live() local
/illumos-gate/usr/src/uts/sun4u/opl/io/oplmsu/
H A Doplmsu_ioctl_uwp.c130 mblk_t *hmp = NULL, *next_hmp = NULL; in oplmsu_uwioctl_ipunlink() local
272 for (hmp = lpath->first_lpri_hi; hmp; ) { in oplmsu_uwioctl_ipunlink()
273 next_hmp = hmp->b_next; in oplmsu_uwioctl_ipunlink()
274 freemsg(hmp); in oplmsu_uwioctl_ipunlink()
275 hmp = next_hmp; in oplmsu_uwioctl_ipunlink()
/illumos-gate/usr/src/uts/common/io/dld/
H A Ddld_str.c792 mblk_t *hmp; in i_dld_ether_header_update_tag() local
813 hmp = msgpullup(mp, -1); in i_dld_ether_header_update_tag()
814 if ((hmp == NULL) || (MBLKL(hmp) < len)) { in i_dld_ether_header_update_tag()
815 freemsg(hmp); in i_dld_ether_header_update_tag()
819 mp = hmp; in i_dld_ether_header_update_tag()
836 hmp = allocb(sizeof (struct ether_vlan_header), BPRI_MED); in i_dld_ether_header_update_tag()
837 if (hmp == NULL) in i_dld_ether_header_update_tag()
840 evhp = (struct ether_vlan_header *)hmp->b_rptr; in i_dld_ether_header_update_tag()
850 hmp->b_wptr += sizeof (struct ether_vlan_header); in i_dld_ether_header_update_tag()
858 hmp->b_cont = mp->b_cont; in i_dld_ether_header_update_tag()
[all …]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip6.c4009 mblk_t *hmp; in ip_fragment_v6() local
4095 hmp = allocb_tmpl(unfragmentable_len + ipst->ips_ip_wroff_extra, mp); in ip_fragment_v6()
4096 if (hmp == NULL) { in ip_fragment_v6()
4102 hmp->b_rptr += ipst->ips_ip_wroff_extra; in ip_fragment_v6()
4103 hmp->b_wptr = hmp->b_rptr + unfragmentable_len; in ip_fragment_v6()
4105 fip6h = (ip6_t *)hmp->b_rptr; in ip_fragment_v6()
4132 hmp0 = copyb(hmp); in ip_fragment_v6()
4138 freeb(hmp); in ip_fragment_v6()
4146 hmp0 = hmp; in ip_fragment_v6()
4147 hmp = NULL; in ip_fragment_v6()
[all …]
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_util.c1437 mblk_t *hmp; in mac_add_vlan_tag() local
1449 hmp = allocb(sizeof (struct ether_vlan_header), BPRI_MED); in mac_add_vlan_tag()
1450 if (hmp == NULL) { in mac_add_vlan_tag()
1455 evhp = (struct ether_vlan_header *)hmp->b_rptr; in mac_add_vlan_tag()
1462 hmp->b_wptr += sizeof (struct ether_vlan_header); in mac_add_vlan_tag()
1469 mac_hcksum_clone(mp, hmp); in mac_add_vlan_tag()
1471 hmp->b_cont = mp->b_cont; in mac_add_vlan_tag()
1474 hmp->b_cont = mp; in mac_add_vlan_tag()
1476 ASSERT(MBLKL(hmp) >= sizeof (struct ether_vlan_header)); in mac_add_vlan_tag()
1483 return (hmp); in mac_add_vlan_tag()
/illumos-gate/usr/src/cmd/cmd-inet/etc/
H A Dprotocols41 hmp 20 HMP # host monitoring protocol
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvsw_ldc.c3782 mblk_t *hmp = NULL; /* high prio pkts head */ in vsw_get_pri_packets() local
3807 if (hmp != NULL) { in vsw_get_pri_packets()
3811 hmp = hmpt = smp; in vsw_get_pri_packets()
3829 *hp = hmp; in vsw_get_pri_packets()
3846 mblk_t *hmp; /* high prio pkts head */ in vsw_ldctx_pri() local
3860 n = vsw_get_pri_packets(vswp, &nmp, &nmpt, &hmp, &hmpt); in vsw_ldctx_pri()
3863 tmp = hmp; in vsw_ldctx_pri()
/illumos-gate/usr/src/uts/common/inet/ipf/
H A Dip_nat.c473 void fr_hostmapdel(hmp) in fr_hostmapdel() argument
474 struct hostmap **hmp; in fr_hostmapdel()
478 hm = *hmp;
479 *hmp = NULL;