Home
last modified time | relevance | path

Searched refs:maddr (Results 1 – 25 of 44) sorted by relevance

12

/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_bcast.c279 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.c88 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.c87 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 Dt4_ioctl.c1869 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 Dt4_nexus.c1324 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 DListener.java126 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 DDAAdvertiser.java156 InetAddress maddr) in initializeNetworking() argument
162 this.castAddr = maddr; in initializeNetworking()
H A DSLPV1Manager.java97 InetAddress maddr, in SLPV1Advertiser() argument
112 initializeNetworking(interfac, maddr); in SLPV1Advertiser()
H A DSLPConfig.java668 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 Dmc-opl.c83 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 Dgfxp_devmap.c122 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 Drpcb_svc_4.c235 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 Dmove.c193 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 Dptms_conf.c608 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 Dllc1.c1846 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 Dgld.c4543 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 Dcommon.c7 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 Dlibvarpd_files.c162 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 Dena.c1141 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 Ddumptraverse.c765 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 Dsnoop_pmap.c700 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 Dlibdlsim.c183 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 Dstreams.c359 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 Dgfx_private.h71 extern void gfxp_map_devmem(devmap_cookie_t dhc, gfx_maddr_t maddr,
/illumos-gate/usr/src/uts/common/vm/
H A Dseg_dev.c1611 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 …]

12