/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_bcast.c | 279 mac_mcast_addrs_t *maddr; in mac_bcast_add() local 286 for (maddr = *prev_mi_addr; maddr != NULL; in mac_bcast_add() 287 prev_mi_addr = &maddr->mma_next, maddr = maddr->mma_next) { in mac_bcast_add() 288 if (bcmp(maddr->mma_addr, addr, addr_len) == 0) in mac_bcast_add() 291 if (maddr == NULL) { in mac_bcast_add() 299 maddr = kmem_zalloc(sizeof (mac_mcast_addrs_t), in mac_bcast_add() 301 bcopy(addr, maddr->mma_addr, addr_len); in mac_bcast_add() 302 *prev_mi_addr = maddr; in mac_bcast_add() 306 maddr->mma_ref++; in mac_bcast_add() 313 for (maddr = *prev_mci_addr; maddr != NULL; in mac_bcast_add() [all …]
|
/illumos-gate/usr/src/lib/libc/i386/crt/ |
H A D | _rtld.c | 88 caddr_t maddr; /* pointer to mapping claim */ in __rtld() local 197 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC, in __rtld() 199 if (maddr == (caddr_t)-1) in __rtld() 201 faddr = (caddr_t)ROUND(maddr, fph->p_align); in __rtld() 206 if (faddr != maddr) { in __rtld() 207 (void) MUNMAP(maddr, mlen); in __rtld() 211 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC, in __rtld() 213 if (maddr == (caddr_t)-1) in __rtld() 215 faddr = (caddr_t)ROUND(maddr, fph->p_align); in __rtld() 257 if (addr - maddr) { in __rtld() [all …]
|
/illumos-gate/usr/src/lib/libc/sparc/crt/ |
H A D | _rtld.c | 87 caddr_t maddr; /* pointer to mapping claim */ in __rtld() local 197 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC, in __rtld() 199 if (maddr == (caddr_t)-1) in __rtld() 201 faddr = (caddr_t)ROUND(maddr, fph->p_align); in __rtld() 206 if (faddr != maddr) { in __rtld() 207 (void) MUNMAP(maddr, mlen); in __rtld() 211 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC, in __rtld() 213 if (maddr == (caddr_t)-1) in __rtld() 215 faddr = (caddr_t)ROUND(maddr, fph->p_align); in __rtld() 257 if (addr - maddr) { in __rtld() [all …]
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_ioctl.c | 1869 uint32_t em, addr_len, maddr, mlen; in validate_mem_range() local 1879 maddr = G_EDRAM0_BASE(addr_len) << 20; in validate_mem_range() 1881 if (mlen > 0 && addr >= maddr && addr < maddr + mlen && in validate_mem_range() 1882 addr + len <= maddr + mlen) in validate_mem_range() 1887 maddr = G_EDRAM1_BASE(addr_len) << 20; in validate_mem_range() 1889 if (mlen > 0 && addr >= maddr && addr < maddr + mlen && in validate_mem_range() 1890 addr + len <= maddr + mlen) in validate_mem_range() 1895 maddr = G_EXT_MEM_BASE(addr_len) << 20; in validate_mem_range() 1897 if (mlen > 0 && addr >= maddr && addr < maddr + mlen && in validate_mem_range() 1898 addr + len <= maddr + mlen) in validate_mem_range() [all …]
|
H A D | t4_nexus.c | 1324 uint32_t em, addr_len, maddr, mlen; in validate_mt_off_len() local 1336 maddr = G_EDRAM0_BASE(addr_len) << 20; in validate_mt_off_len() 1343 maddr = G_EDRAM1_BASE(addr_len) << 20; in validate_mt_off_len() 1350 maddr = G_EXT_MEM_BASE(addr_len) << 20; in validate_mt_off_len() 1357 maddr = G_EXT_MEM1_BASE(addr_len) << 20; in validate_mt_off_len() 1365 *addr = maddr + off; /* global address */ in validate_mt_off_len() 1398 uint32_t param, val, addr, mtype, maddr; in upload_config_file() local 1414 *ma = maddr = G_FW_PARAMS_PARAM_Z(val) << 16; in upload_config_file() 1452 rc = validate_mt_off_len(sc, mtype, maddr, cflen, &addr); in upload_config_file() 1457 __func__, mtype, maddr, cflen, rc); in upload_config_file() [all …]
|
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | Listener.java | 126 addListenerToMulticastGroup(InetAddress interfac, InetAddress maddr) in addListenerToMulticastGroup() argument 146 mss.joinGroup(maddr); in addListenerToMulticastGroup() 150 listener.groups.addElement(maddr); in addListenerToMulticastGroup() 156 new Object[] {maddr, ex.getMessage()}); in addListenerToMulticastGroup()
|
H A D | DAAdvertiser.java | 156 InetAddress maddr) in initializeNetworking() argument 162 this.castAddr = maddr; in initializeNetworking()
|
H A D | SLPV1Manager.java | 97 InetAddress maddr, in SLPV1Advertiser() argument 112 initializeNetworking(interfac, maddr); in SLPV1Advertiser()
|
H A D | SLPConfig.java | 668 InetAddress maddr = (InetAddress)groups.elementAt(i); in refreshMulticastSocketOnInterface() local 670 mss.joinGroup(maddr); in refreshMulticastSocketOnInterface()
|
/illumos-gate/usr/src/uts/sun4u/opl/io/ |
H A D | mc-opl.c | 83 static int pa_to_maddr(mc_opl_t *mcp, uint64_t pa, mc_addr_t *maddr); 661 mcaddr_to_pa(mc_opl_t *mcp, mc_addr_t *maddr, uint64_t *pa) in mcaddr_to_pa() argument 665 int cs = (maddr->ma_dimm_addr >> CS_SHIFT) & 1; in mcaddr_to_pa() 666 int bank = maddr->ma_bank; in mcaddr_to_pa() 670 MC_LOG("mcaddr /LSB%d/B%d/%x\n", maddr->ma_bd, bank, in mcaddr_to_pa() 671 maddr->ma_dimm_addr); in mcaddr_to_pa() 674 ASSERT(maddr->ma_bd >= 0 && OPL_BOARD_MAX > maddr->ma_bd); in mcaddr_to_pa() 682 pa_bit = (maddr->ma_dimm_addr >> mc_bit) & 1; in mcaddr_to_pa() 699 "convert PA %lx\n", maddr->ma_bd, bank, in mcaddr_to_pa() 700 maddr->ma_dimm_addr, *pa); in mcaddr_to_pa() [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/ |
H A D | gfxp_devmap.c | 122 gfxp_map_devmem(devmap_cookie_t dhc, gfx_maddr_t maddr, size_t length, in gfxp_map_devmem() argument 131 pfn = xen_assign_pfn(mmu_btop(maddr)); in gfxp_map_devmem() 133 pfn = mmu_btop(maddr); in gfxp_map_devmem()
|
/illumos-gate/usr/src/cmd/rpcbind/ |
H A D | rpcb_svc_4.c | 235 char *saddr, *maddr = NULL; in rpcbproc_getaddrlist() local 284 if ((maddr = mergeaddr(transp, rbl->rpcb_map.r_netid, in rpcbproc_getaddrlist() 288 } else if (!maddr[0]) { in rpcbproc_getaddrlist() 316 a->r_maddr = maddr; in rpcbproc_getaddrlist() 339 rpcbs_getaddr(RPCBVERS_4_STAT, prog, vers, transp->xp_netid, maddr); in rpcbproc_getaddrlist()
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | move.c | 193 caddr_t maddr; in is_move_data() local 196 for (APLIST_TRAVERSE(alp, idx, maddr)) { in is_move_data() 197 if (addr == maddr) in is_move_data()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | ptms_conf.c | 608 ptms_constructor(void *maddr, void *arg, int kmflags) in ptms_constructor() argument 610 struct pt_ttys *pt = maddr; in ptms_constructor() 628 ptms_destructor(void *maddr, void *arg) in ptms_destructor() argument 630 struct pt_ttys *pt = maddr; in ptms_destructor()
|
H A D | llc1.c | 1846 struct ether_addr *maddr; in llc1_enable_multi() local 1865 maddr = (struct ether_addr *)(mp->b_rptr + multi->dl_addr_offset); in llc1_enable_multi() 1878 ismulticast(maddr->ether_addr_octet)) { in llc1_enable_multi() 1893 maddr->ether_addr_octet, ETHERADDRL)) { in llc1_enable_multi() 1914 maddr->ether_addr_octet, ETHERADDRL) == 0) { in llc1_enable_multi() 1932 bcopy(maddr->ether_addr_octet, in llc1_enable_multi() 1962 struct ether_addr *maddr; in llc1_disable_multi() local 1980 maddr = (struct ether_addr *)(multi + 1); in llc1_disable_multi() 1991 maddr->ether_addr_octet, ETHERADDRL) == 0) { in llc1_disable_multi()
|
H A D | gld.c | 4543 unsigned char *maddr; in gld_enable_multi() local 4577 maddr = mp->b_rptr + multi->dl_addr_offset; in gld_enable_multi() 4604 maddr, macinfo->gldm_addrlen)) { in gld_enable_multi() 4630 maddr, macinfo->gldm_addrlen)) { in gld_enable_multi() 4641 mac_copy(maddr, mcast->gldm_addr, in gld_enable_multi() 4663 cmac_copy(maddr, cmaddr, in gld_enable_multi() 4717 unsigned char *maddr; in gld_disable_multi() local 4745 maddr = mp->b_rptr + multi->dl_addr_offset; in gld_disable_multi() 4754 maddr, macinfo->gldm_addrlen)) { in gld_disable_multi()
|
/illumos-gate/usr/src/uts/common/io/cxgbe/common/ |
H A D | common.c | 7 int mtype, u32 maddr, u32 len, in t4_memory_rw() argument 10 return t4_memory_rw_mtype(adap, win, mtype, maddr, len, hbuf, dir); in t4_memory_rw()
|
/illumos-gate/usr/src/lib/varpd/files/common/ |
H A D | libvarpd_files.c | 162 void *maddr; in varpd_files_start() local 180 maddr = mmap(NULL, st.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, in varpd_files_start() 182 if (maddr == NULL) { in varpd_files_start() 189 ret = nvlist_parse_json(maddr, st.st_size, &nvl, in varpd_files_start() 195 if (munmap(maddr, st.st_size) != 0) in varpd_files_start()
|
/illumos-gate/usr/src/uts/common/io/ena/ |
H A D | ena.c | 1141 uint8_t *maddr; in ena_attach_device_init() local 1197 maddr = feat->efda_mac_addr; in ena_attach_device_init() 1198 ena_dbg(ena, "mac addr: %x:%x:%x:%x:%x:%x", maddr[0], maddr[1], in ena_attach_device_init() 1199 maddr[2], maddr[3], maddr[4], maddr[5]); in ena_attach_device_init() 1202 bcopy(maddr, ena->ena_mac_addr, ETHERADDRL); in ena_attach_device_init()
|
/illumos-gate/usr/src/cmd/backup/dump/ |
H A D | dumptraverse.c | 765 caddr_t maddr; in bread() local 797 maddr = mmap64(NULL, len, PROT_READ, MAP_SHARED, mapfd, mapoff); in bread() 798 if (maddr != MAP_FAILED) { in bread() 799 (void) memcpy(ba, maddr + displacement, cnt); in bread() 800 (void) munmap(maddr, len); in bread()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_pmap.c | 700 char maddr[MAXSTRINGLEN + 1], netid[MAXSTRINGLEN + 1]; in show_rpcb_entry_list() local 717 (void) getxdr_string(maddr, MAXSTRINGLEN); in show_rpcb_entry_list() 724 maddr, netid, in show_rpcb_entry_list()
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlsim.c | 183 uint_t media, const char *maddr, uint32_t flags) in dladm_simnet_create() argument 196 if (maddr != NULL) { in dladm_simnet_create() 197 mac_addr = _link_aton(maddr, (int *)&maclen); in dladm_simnet_create()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | streams.c | 359 uintptr_t maddr; in queue() local 421 for (maddr = (uintptr_t)q.q_first; maddr != 0; nblks++) { in queue() 422 if (mdb_vread(&mblk, sizeof (mblk), maddr) == -1) { in queue() 424 maddr, addr); in queue() 427 maddr = (uintptr_t)mblk.b_next; in queue()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | gfx_private.h | 71 extern void gfxp_map_devmem(devmap_cookie_t dhc, gfx_maddr_t maddr,
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | seg_dev.c | 1611 caddr_t maddr = addr; in segdev_fault() local 1739 mlen, maddr, &llen, &laddr); in segdev_fault() 1748 maddr += mlen; in segdev_fault() 1774 maddr = addr; in segdev_fault() 1801 devmap_get_large_pgsize(dhp, mlen, maddr, in segdev_fault() 1803 ASSERT(maddr == addr || laddr == maddr); in segdev_fault() 1806 laddr = maddr; in segdev_fault() 1837 if ((type == F_SOFTLOCK) && (maddr > addr)) { in segdev_fault() 1850 size_t done = (size_t)(maddr - addr); in segdev_fault() 1875 maddr += mlen; in segdev_fault() [all …]
|