/illumos-gate/usr/src/uts/sun4u/io/px/ |
H A D | px_csr.h | 37 #define CSR_XR(base, off) \ argument 52 (off ## _ ## bit)) & (off ## _ ## bit ## _MASK)) 56 (off ## _ ## bit)) & (off ## _ ## bit ## _MASK)) 62 (off ## _ ## bit))) | (((uint64_t)(val)) << (off ## _ ## bit)))) 68 (off ## _ ## bit))) | (((uint64_t)(val)) << (off ## _ ## bit)))) 73 ~(((uint64_t)(off ## _ ## bit ## _MASK)) << (off ## _ ## bit)))) 78 ~(((uint64_t)(off ## _ ## bit ## _MASK)) << (off ## _ ## bit)))) 83 (off ## _ ## bit)) & 0x1) 87 (off ## _ ## bit)) & 0x1) 92 (1ull<<(off ## _ ## bit)))) [all …]
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | DAAdvert.c | 40 size_t len, off; in slp_unpackDAAdvert() local 62 iov[0].iov_base = reply + off; in slp_unpackDAAdvert() 63 tmp_off = off; in slp_unpackDAAdvert() 73 iov[1].iov_base = reply + off; in slp_unpackDAAdvert() 74 tmp_off = off; in slp_unpackDAAdvert() 81 iov[3].iov_base = reply + off; in slp_unpackDAAdvert() 82 tmp_off = off; in slp_unpackDAAdvert() 90 tmp_off = off; in slp_unpackDAAdvert() 98 tmp_off = off; in slp_unpackDAAdvert() 110 reply + off, in slp_unpackDAAdvert() [all …]
|
H A D | SAAdvert.c | 41 size_t off, len; in slp_unpackSAAdvert() local 54 iov[0].iov_base = reply + off; in slp_unpackSAAdvert() 55 tmp_off = off; in slp_unpackSAAdvert() 59 iov[0].iov_len = off - tmp_off; in slp_unpackSAAdvert() 62 iov[2].iov_base = reply + off; in slp_unpackSAAdvert() 63 tmp_off = off; in slp_unpackSAAdvert() 67 iov[2].iov_len = off - tmp_off; in slp_unpackSAAdvert() 70 iov[1].iov_base = reply + off; in slp_unpackSAAdvert() 71 tmp_off = off; in slp_unpackSAAdvert() 83 reply + off, in slp_unpackSAAdvert() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | devinfo.c | 1070 off = DI_ALIGN(off); in di_checkmem() 1077 ASSERT(off == DI_ALIGN(off)); in di_checkmem() 1169 off, (void *)(dcp->buf + off))); in di_mem_addr() 1324 off = di_checkmem(st, off, size); in di_copy_aliases() 1445 off = di_getlink_data(off, st); in di_snapshot() 1553 pwa.off = off; in build_vhci_list() 1857 off = di_checkmem(st, off, size); in di_copynode() 2033 off = DI_ALIGN(off); in di_copynode() 2795 off = di_checkmem(st, off, size); in di_path_getprop() 2804 off = di_checkmem(st, off, size); in di_path_getprop() [all …]
|
/illumos-gate/usr/src/uts/common/io/ntxn/ |
H A D | unm_nic_hw.c | 73 #define CRB_BLK(off) ((off >> 20) & 0x3f) argument 74 #define CRB_SUBBLK(off) ((off >> 16) & 0xf) argument 77 #define CRB_HI(off) ((crb_hub_agt[CRB_BLK(off)] << 20) | ((off) & 0xf0000)) argument 421 *off = (*off - UNM_PCI_CAMQM) + UNM_PCI_CAMQM_2M_BASE + in unm_nic_pci_get_crb_addr_2M() 430 end = *off + len; in unm_nic_pci_get_crb_addr_2M() 435 m = &crb_128M_2M_map[CRB_BLK(*off)].sub_block[CRB_SUBBLK(*off)]; in unm_nic_pci_get_crb_addr_2M() 438 *off = *off + m->start_2M - m->start_128M + in unm_nic_pci_get_crb_addr_2M() 472 *off = (*off & MASK(16)) + CRB_INDIRECT_2M + in unm_nic_pci_set_crbwindow_2M() 495 offset = off; in unm_nic_hw_write_ioctl_128M() 764 offset = off; in unm_nic_hw_read_ioctl_128M() [all …]
|
H A D | unm_nic.h | 82 #define ADDR_IN_WINDOW1(off) \ argument 83 ((off > UNM_CRB_PCIX_HOST2) && (off < UNM_CRB_MAX)) ? 1 : 0 109 #define DB_NORMALIZE(adapter, off) \ argument 591 ((adapter)->ahw.pci_base0 + off) 597 #define pci_base_offset(adapter, off) \ argument 605 ((((off) < THIRD_PAGE_GROUP_END) && \ 639 u64 off, void *data, int len); 641 u64 off, void *data, int len); 643 u64 off, void *data, int len); 645 u64 off, void *data, int len); [all …]
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | input.c | 77 #define PGNUM(off) ((off % REGSZ) / _elf_pagesize) argument 78 #define REGNUM(off) (off / REGSZ) argument 88 off_t off; in _elf_vm() local 153 SEEK_SET) != off) || in _elf_vm() 158 off += sz; in _elf_vm() 161 off += _elf_pagesize; in _elf_vm() 183 sz = elf->ed_imagesz - off; in _elf_vm() 184 if ((lseek(elf->ed_fd, off, SEEK_SET) != off) || in _elf_vm() 203 if (off == 0) in _elf_inmap() 206 if (off == -1) { in _elf_inmap() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | arpadate.c | 61 register int off; variable 132 off -= 24 * 60; 134 off += 24 * 60; 136 off -= 24 * 60; 138 off += 24 * 60; 141 if (off == 0) 175 if (off < 0) 177 off = -off; 188 off %= 60; 189 *q++ = (off / 10) + '0'; [all …]
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | dwarf.c | 707 off = 0; in dump_eh_frame() 708 while (off < datasize) { in dump_eh_frame() 721 if (dwarf_extract_uint(data + off, datasize - off, in dump_eh_frame() 731 off += 4; in dump_eh_frame() 749 if (dwarf_extract_uint(data + off, datasize - off, &ndx, in dump_eh_frame() 785 if (uleb_extract(&data[off], &ndx, datasize - off, in dump_eh_frame() 793 if (sleb_extract(&data[off], &ndx, datasize - off, in dump_eh_frame() 906 off += cielength + 4; in dump_eh_frame() 924 switch (dwarf_ehe_extract(&data[off], datasize - off, in dump_eh_frame() 940 switch (dwarf_ehe_extract(&data[off], datasize - off, in dump_eh_frame() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/ |
H A D | basl.c | 30 uint32_t off; member 37 uint32_t off; member 44 uint32_t off; member 54 uint32_t off; member 147 table->off = roundup2(*off, table->alignment); in basl_finish_install_guest_tables() 148 *off = table->off + table->len; in basl_finish_install_guest_tables() 149 if (*off <= table->off) { in basl_finish_install_guest_tables() 324 uint32_t off = 0; local 372 checksum->off = off; 396 length->off = off; [all …]
|
/illumos-gate/usr/src/uts/common/io/pciex/ |
H A D | pci_cfgacc.c | 47 pci_cfgacc_get8(dev_info_t *rcdip, uint16_t bdf, uint16_t off) in pci_cfgacc_get8() argument 51 PCI_CFGACC_FILLREQ(req, rcdip, bdf, off, 1, B_FALSE, 0); in pci_cfgacc_get8() 61 PCI_CFGACC_FILLREQ(req, rcdip, bdf, off, 1, B_TRUE, data); in pci_cfgacc_put8() 66 pci_cfgacc_get16(dev_info_t *rcdip, uint16_t bdf, uint16_t off) in pci_cfgacc_get16() argument 70 PCI_CFGACC_FILLREQ(req, rcdip, bdf, off, 2, B_FALSE, 0); in pci_cfgacc_get16() 80 PCI_CFGACC_FILLREQ(req, rcdip, bdf, off, 2, B_TRUE, data); in pci_cfgacc_put16() 85 pci_cfgacc_get32(dev_info_t *rcdip, uint16_t bdf, uint16_t off) in pci_cfgacc_get32() argument 89 PCI_CFGACC_FILLREQ(req, rcdip, bdf, off, 4, B_FALSE, 0); in pci_cfgacc_get32() 99 PCI_CFGACC_FILLREQ(req, rcdip, bdf, off, 4, B_TRUE, data); in pci_cfgacc_put32() 108 PCI_CFGACC_FILLREQ(req, rcdip, bdf, off, 8, B_FALSE, 0); in pci_cfgacc_get64() [all …]
|
/illumos-gate/usr/src/uts/common/io/sfxge/ |
H A D | sfxge_tcp.c | 78 size_t off; in sfxge_pkthdr_parse() local 87 off = 0; in sfxge_pkthdr_parse() 117 off += etherhs; in sfxge_pkthdr_parse() 120 len = off + sizeof (struct ip); in sfxge_pkthdr_parse() 139 off += iphs; in sfxge_pkthdr_parse() 156 off += ths; in sfxge_pkthdr_parse() 175 off += sizeof (struct udphdr); in sfxge_pkthdr_parse() 194 off += sizeof (struct sctp_hdr); in sfxge_pkthdr_parse() 200 if (MBLKL(mp) < off) in sfxge_pkthdr_parse() 201 (void) pullupmsg(mp, off); in sfxge_pkthdr_parse() [all …]
|
/illumos-gate/usr/src/lib/libumem/amd64/ |
H A D | umem_genasm.c | 336 bcopy(&off, bp + PTC_MALINIT_SOFF, sizeof (off)); in genasm_malinit() 354 bcopy(&off, bp + PTC_FRINI_SOFF, sizeof (off)); in genasm_frinit() 458 int ii, off; in genasm_malloc() local 478 bp += off; in genasm_malloc() 480 erroff -= off; in genasm_malloc() 484 bp += off; in genasm_malloc() 491 bp += off; in genasm_malloc() 508 int ii, off; in genasm_free() local 528 bp += off; in genasm_free() 534 bp += off; in genasm_free() [all …]
|
/illumos-gate/usr/src/lib/libumem/i386/ |
H A D | umem_genasm.c | 328 bcopy(&off, bp + PTC_MALINIT_SOFF, sizeof (off)); in genasm_malinit() 346 bcopy(&off, bp + PTC_FRINI_SOFF, sizeof (off)); in genasm_frinit() 448 int ii, off; in genasm_malloc() local 468 bp += off; in genasm_malloc() 470 erroff -= off; in genasm_malloc() 474 bp += off; in genasm_malloc() 481 bp += off; in genasm_malloc() 498 int ii, off; in genasm_free() local 518 bp += off; in genasm_free() 524 bp += off; in genasm_free() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | unwind.c | 382 uint64_t off = 0; in ld_unwind_make_hdr() local 387 while (off < size) { in ld_unwind_make_hdr() 413 cieversion = data[off + ndx]; in ld_unwind_make_hdr() 420 isp->is_name, off); in ld_unwind_make_hdr() 427 off += length + 4; in ld_unwind_make_hdr() 540 uint64_t off = 0, ujunk; in ld_unwind_populate_hdr() local 556 while (off < size) { in ld_unwind_populate_hdr() 593 cieversion = data[off + ndx]; in ld_unwind_populate_hdr() 630 size - off, &ujunk) == in ld_unwind_populate_hdr() 669 &data[off], size - off, in ld_unwind_populate_hdr() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | telldir.c | 57 off_t off = 0; in telldir() local 63 off = dp->d_off; in telldir() 66 return (off); in telldir() 81 off64_t off = 0; in telldir64() local 97 off = dp64->d_off; in telldir64() 100 return (off); in telldir64() 106 off64_t off; in telldir() local 108 off = telldir64(dirp); in telldir() 113 if ((long)off != off && (uint64_t)off > (uint64_t)UINT32_MAX) { in telldir() 117 return ((long)off); in telldir()
|
/illumos-gate/usr/src/uts/common/fs/swapfs/ |
H A D | swap_vnops.c | 109 offset_t off, in swap_getpage() argument 138 u_offset_t off, in swap_getapage() argument 159 vp, off, len, 0, 0); in swap_getapage() 309 u_offset_t off, in swap_getconpage() argument 478 offset_t off, in swap_putpage() argument 529 eoff = off + len; in swap_putpage() 609 u_offset_t poff, off; in swap_putapage() local 649 off = pp->p_offset; in swap_putapage() 651 doff = off; in swap_putapage() 683 off = arg->a_off; in swap_putapage() [all …]
|
/illumos-gate/usr/src/uts/intel/amd64/krtld/ |
H A D | doreloc.c | 238 *((Half *)off) = (Half)(*value); in do_reloc_krtld() 245 UL_ASSIGN_BSWAP_HALF(off, v_bytes); in do_reloc_krtld() 247 UL_ASSIGN_HALF(off, v_bytes); in do_reloc_krtld() 306 *((Word *)off) += *value; in do_reloc_krtld() 313 UL_ASSIGN_BSWAP_WORD(v_bytes, off); in do_reloc_krtld() 315 UL_ASSIGN_BSWAP_WORD(off, v_bytes); in do_reloc_krtld() 317 UL_ASSIGN_WORD(v_bytes, off); in do_reloc_krtld() 319 UL_ASSIGN_WORD(off, v_bytes); in do_reloc_krtld() 328 *((Xword *)off) += *value; in do_reloc_krtld() 339 UL_ASSIGN_XWORD(v_bytes, off); in do_reloc_krtld() [all …]
|
/illumos-gate/usr/src/test/net-tests/tests/forwarding/ |
H A D | README | 157 001 off none off off no 158 002 on partial off off no 159 003 on partial on off no 160 004 on fullv4 off off no 161 005 on fullv4 on off no 162 006 off none off on no 165 009 on fullv4 off on no 168 011 off none off off yes 169 012 on partial off off yes 171 014 on fullv4 off off yes [all …]
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | memseg.c | 172 u_offset_t off; in memseg_free_meta() local 177 off = (u_offset_t)ptp; in memseg_free_meta() 179 ASSERT(off); in memseg_free_meta() 183 (uint64_t)off, metapgs); in memseg_free_meta() 193 off += PAGESIZE; in memseg_free_meta() 201 u_offset_t off; in memseg_get_metapfn() local 205 ASSERT(off); in memseg_get_metapfn() 208 pp = page_find(&mpvp, off); in memseg_get_metapfn() 224 u_offset_t off; in memseg_remap_meta() local 291 off = (u_offset_t)pp; in memseg_remap_meta() [all …]
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | i386_copy.c | 113 vm_offset_t off; in i386_loadaddr() local 155 off = roundup2(mfp->f_addr + mfp->f_size + 1, in i386_loadaddr() 167 if ((off >= fb_addr && off <= fb_addr + fb_size) || in i386_loadaddr() 168 (off + size >= fb_addr && in i386_loadaddr() 169 off + size <= fb_addr + fb_size)) { in i386_loadaddr() 172 off = roundup2(fb_addr + fb_size + 1, in i386_loadaddr() 176 off = smap_find(smap, smaplen, off, size); in i386_loadaddr() 177 off = addr_verify(fp, off, size); in i386_loadaddr() 178 if (off != 0) in i386_loadaddr() 184 } while (off == 0); in i386_loadaddr() [all …]
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_nx.c | 419 *off = (*off & MASK(16)) + CRB_INDIRECT_2M + (uintptr_t)ha->nx_pcibase; in ql_8021_pci_set_crbwindow_2M() 512 if (*off >= UNM_PCI_CAMQM && (*off < UNM_PCI_CAMQM_2M_END)) { in ql_8021_pci_get_crb_addr_2M() 513 *off = (*off - UNM_PCI_CAMQM) + UNM_PCI_CAMQM_2M_BASE + in ql_8021_pci_get_crb_addr_2M() 528 m = &crb_128M_2M_map[CRB_BLK(*off)].sub_block[CRB_SUBBLK(*off)]; in ql_8021_pci_get_crb_addr_2M() 532 *off = (uint64_t)(*off + m->start_2M - m->start_128M + in ql_8021_pci_get_crb_addr_2M() 681 off); in ql_8021_pci_mem_read_direct() 727 off); in ql_8021_pci_mem_write_direct() 771 if (off >= UNM_ADDR_QDR_NET && off <= NX_P3_ADDR_QDR_NET_MAX) { in ql_8021_pci_mem_read_2M() 881 if (off >= UNM_ADDR_QDR_NET && off <= NX_P3_ADDR_QDR_NET_MAX) { in ql_8021_pci_mem_write_2M() 891 off0 = off & 0x7; in ql_8021_pci_mem_write_2M() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_rlock.c | 247 ASSERT3U(off, >, lr->lr_offset); in rangelock_split() 254 rear->lr_offset = off; in rangelock_split() 277 lr->lr_offset = off; in rangelock_new_proxy() 292 uint64_t off = new->lr_offset; in rangelock_add_reader() local 327 if (off < next->lr_offset) { in rangelock_add_reader() 329 rangelock_new_proxy(tree, off, next->lr_offset - off); in rangelock_add_reader() 383 uint64_t off = new->lr_offset; in rangelock_enter_reader() local 458 new->lr_offset = off; in rangelock_enter() 459 if (len + off < off) /* overflow */ in rangelock_enter() 460 len = UINT64_MAX - off; in rangelock_enter() [all …]
|
/illumos-gate/usr/src/test/os-tests/tests/ |
H A D | writev.c | 96 for (off_t off = 0; off < ONE_GIG * 8; off += ONE_GIG) { in main() local 97 if ((written = pwritev(fd, iov, 1, off)) != DATA_LEN) in main() 98 err(EXIT_FAILURE, "pwritev(0x%lx) failed", off); in main() 101 for (off_t off = 0; off < ONE_GIG * 8; off += ONE_GIG) { in main() local 102 if ((read = preadv(fd, iov, 1, off)) != DATA_LEN) in main() 103 err(EXIT_FAILURE, "preadv(0x%lx) failed", off); in main() 105 errx(EXIT_FAILURE, "bad read at 0x%lx", off); in main()
|
/illumos-gate/usr/src/uts/i86xpv/os/ |
H A D | xen_mmu.c | 142 offset_t off; in xen_relocate_start_info() local 159 for (off = 0; off < sz; off += MMU_PAGESIZE) { in xen_relocate_start_info() 161 (caddr_t)xen_info + off))); in xen_relocate_start_info() 162 kbm_map_ma(mach_addr + off, addr + off, 0); in xen_relocate_start_info() 167 for (off = 0; off < sz; off += MMU_PAGESIZE) in xen_relocate_start_info() 168 kbm_unmap(old + off); in xen_relocate_start_info() 176 for (off = 0; off < sz; off += MMU_PAGESIZE) { in xen_relocate_start_info() 185 for (off = 0; off < sz; off += MMU_PAGESIZE) in xen_relocate_start_info() 186 kbm_unmap(old + off); in xen_relocate_start_info() 197 for (off = 0; off < sz; off += MMU_PAGESIZE) { in xen_relocate_start_info() [all …]
|