| /onnv-gate/usr/src/uts/sun4u/io/px/ |
| H A D | px_csr.h | 37 #define CSR_XR(base, off) \ argument 38 (*(volatile uint64_t *)((base) + ((off)))) 40 #define CSRA_XR(base, off, index) \ argument 41 (*(volatile uint64_t *)((base) + ((off) + ((index) * 8)))) 43 #define CSR_XS(base, off, val) \ argument 44 ((*(volatile uint64_t *)((base) + ((off)))) = (val)) 46 #define CSRA_XS(base, off, index, val) \ argument 47 ((*(volatile uint64_t *)((base) + ((off) + ((index) * 8)))) = (val)) 50 #define CSR_FR(base, off, bit) \ argument 51 (((*(volatile uint64_t *) ((base) + ((off)))) >> \ [all …]
|
| /onnv-gate/usr/src/lib/libslp/clib/ |
| H A D | DAAdvert.c | 42 size_t len, off; in slp_unpackDAAdvert() local 53 off = SLP_HDRLEN + slp_get_langlen(reply); in slp_unpackDAAdvert() 55 if ((err = slp_get_sht(reply, len, &off, &protoErrCode)) != SLP_OK) in slp_unpackDAAdvert() 64 iov[0].iov_base = reply + off; in slp_unpackDAAdvert() 65 tmp_off = off; in slp_unpackDAAdvert() 66 if ((err = slp_get_sht(reply, len, &off, &dummy)) != SLP_OK) { in slp_unpackDAAdvert() 69 if ((err = slp_get_sht(reply, len, &off, &dummy)) != SLP_OK) { in slp_unpackDAAdvert() 72 iov[0].iov_len = off - tmp_off; in slp_unpackDAAdvert() 75 iov[1].iov_base = reply + off; in slp_unpackDAAdvert() 76 tmp_off = off; in slp_unpackDAAdvert() [all …]
|
| H A D | SAAdvert.c | 43 size_t off, len; in slp_unpackSAAdvert() local 53 off = SLP_HDRLEN + slp_get_langlen(reply); in slp_unpackSAAdvert() 56 iov[0].iov_base = reply + off; in slp_unpackSAAdvert() 57 tmp_off = off; in slp_unpackSAAdvert() 58 if ((err = slp_get_string(reply, len, &off, surl)) != SLP_OK) { in slp_unpackSAAdvert() 61 iov[0].iov_len = off - tmp_off; in slp_unpackSAAdvert() 64 iov[2].iov_base = reply + off; in slp_unpackSAAdvert() 65 tmp_off = off; in slp_unpackSAAdvert() 66 if ((err = slp_get_string(reply, len, &off, scopes)) != SLP_OK) { in slp_unpackSAAdvert() 69 iov[2].iov_len = off - tmp_off; in slp_unpackSAAdvert() [all …]
|
| /onnv-gate/usr/src/cmd/sgs/elfdump/common/ |
| H A D | dwarf.c | 194 dump_cfi(uchar_t *data, uint64_t off, uint64_t *ndx, uint_t len, in dump_cfi() argument 253 op = data[off + (*ndx)++]; in dump_cfi() 265 soper = uleb_extract(&data[off], ndx) * in dump_cfi() 290 (*ndx < len) && (data[off + *ndx] == 0); in dump_cfi() 303 cur_pc = dwarf_ehe_extract(&data[off], ndx, in dump_cfi() 305 state->sh_addr, off + *ndx); in dump_cfi() 319 oper1 = dwarf_extract_uint(data + off, ndx, i, in dump_cfi() 328 oper1 = uleb_extract(&data[off], ndx); in dump_cfi() 329 soper = uleb_extract(&data[off], ndx) * in dump_cfi() 339 oper1 = uleb_extract(&data[off], ndx); in dump_cfi() [all …]
|
| /onnv-gate/usr/src/uts/common/io/ |
| H A D | devinfo.c | 291 di_off_t off; member 591 di_off_t off; in di_ioctl() local 695 off = 0; in di_ioctl() 703 if (ddi_copyout(di_mem_addr(st, off), in di_ioctl() 704 (void *)(arg + off), size, mode) != 0) { in di_ioctl() 710 off += size; in di_ioctl() 749 off = di_checkmem(st, 0, size); in di_ioctl() 751 off += sizeof (struct di_all); /* real length of di_all */ in di_ioctl() 776 off += size; /* real length of root_path */ in di_ioctl() 818 if ((off = di_copyformat(off, st, arg, mode)) == 0) { in di_ioctl() [all …]
|
| /onnv-gate/usr/src/cmd/sgs/libelf/common/ |
| H A D | input.c | 81 #define PGNUM(off) ((off % REGSZ) / _elf_pagesize) argument 82 #define REGNUM(off) (off / REGSZ) argument 93 off_t off; in _elf_vm() local 128 off = base - base % _elf_pagesize; in _elf_vm() 151 iop = (Elf_Void *)(elf->ed_image + off); in _elf_vm() 155 if (elf->ed_imagesz - off < sz) in _elf_vm() 156 sz = elf->ed_imagesz - off; in _elf_vm() 157 if ((lseek(elf->ed_fd, off, in _elf_vm() 158 SEEK_SET) != off) || in _elf_vm() 163 off += sz; in _elf_vm() [all …]
|
| H A D | rand.c | 34 elf_rand(Elf * elf, size_t off) in elf_rand() argument 44 if ((off == 0) || (elf->ed_fsz < off)) { in elf_rand() 49 elf->ed_nextoff = off; in elf_rand() 51 return (off); in elf_rand() 62 size_t off; in _elf_getnextoff() local 72 off = elf->ed_nextoff; in _elf_getnextoff() 74 return (off); in _elf_getnextoff()
|
| /onnv-gate/usr/src/cmd/sendmail/src/ |
| H A D | arpadate.c | 63 register int off; variable 130 off = (lt->tm_hour - gmt.tm_hour) * 60 + lt->tm_min - gmt.tm_min; 134 off -= 24 * 60; 136 off += 24 * 60; 138 off -= 24 * 60; 140 off += 24 * 60; 143 if (off == 0) 174 tz = timezone(off, lt->tm_isdst); 177 if (off < 0) 179 off = -off; [all …]
|
| /onnv-gate/usr/src/uts/common/io/ntxn/ |
| H A D | unm_nic_hw.c | 69 #define CRB_BLK(off) ((off >> 20) & 0x3f) argument 70 #define CRB_SUBBLK(off) ((off >> 16) & 0xf) argument 73 #define CRB_HI(off) ((crb_hub_agt[CRB_BLK(off)] << 20) | ((off) & 0xf0000)) argument 406 unm_nic_pci_get_crb_addr_2M(unm_adapter *adapter, u64 *off, int len) in unm_nic_pci_get_crb_addr_2M() argument 408 unsigned long end = *off + len; in unm_nic_pci_get_crb_addr_2M() 412 if (*off >= UNM_CRB_MAX) in unm_nic_pci_get_crb_addr_2M() 415 if (*off >= UNM_PCI_CAMQM && (end <= UNM_PCI_CAMQM_2M_END)) { in unm_nic_pci_get_crb_addr_2M() 416 *off = (*off - UNM_PCI_CAMQM) + UNM_PCI_CAMQM_2M_BASE + in unm_nic_pci_get_crb_addr_2M() 421 if (*off < UNM_PCI_CRBSPACE) in unm_nic_pci_get_crb_addr_2M() 424 *off -= UNM_PCI_CRBSPACE; in unm_nic_pci_get_crb_addr_2M() [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 110 (void *)((unsigned long)adapter->ahw.db_base + (off)) 590 #define PCI_OFFSET_FIRST_RANGE(adapter, off) \ argument 591 ((adapter)->ahw.pci_base0 + off) 592 #define PCI_OFFSET_SECOND_RANGE(adapter, off) \ argument 593 ((adapter)->ahw.pci_base1 + off - SECOND_PAGE_GROUP_START) 594 #define PCI_OFFSET_THIRD_RANGE(adapter, off) \ argument 595 ((adapter)->ahw.pci_base2 + off - THIRD_PAGE_GROUP_START) [all …]
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Tie/ |
| H A D | Array.pm | 39 my $off = (@_) ? shift : 0; 40 $off += $sz if ($off < 0); 41 my $len = (@_) ? shift : $sz - $off; 42 $len += $sz - $off if $len < 0; 45 push(@result,$obj->FETCH($off+$i)); 47 $off = $sz if $off > $sz; 48 $len -= $off + $len - $sz if $off + $len > $sz; 52 my $e = $off+$len; 62 my $e = $off+$len; 63 for (my $i=$off+$len; $i < $sz; $i++) { [all …]
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/ext/SDBM_File/sdbm/ |
| H A D | pair.c | 51 register int off; in fitpair() local 55 off = ((n = ino[0]) > 0) ? ino[n] : PBLKSIZ; in fitpair() 56 free = off - (n + 1) * sizeof(short); in fitpair() 68 register int off; in putpair() local 71 off = ((n = ino[0]) > 0) ? ino[n] : PBLKSIZ; in putpair() 75 off -= key.dsize; in putpair() 76 (void) memcpy(pag + off, key.dptr, key.dsize); in putpair() 77 ino[n + 1] = off; in putpair() 81 off -= val.dsize; in putpair() 82 (void) memcpy(pag + off, val.dptr, val.dsize); in putpair() [all …]
|
| /onnv-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() 57 pci_cfgacc_put8(dev_info_t *rcdip, uint16_t bdf, uint16_t off, uint8_t data) in pci_cfgacc_put8() argument 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() 76 pci_cfgacc_put16(dev_info_t *rcdip, uint16_t bdf, uint16_t off, uint16_t data) in pci_cfgacc_put16() argument 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() [all …]
|
| /onnv-gate/usr/src/uts/intel/amd64/krtld/ |
| H A D | doreloc.c | 183 do_reloc_krtld(uchar_t rtype, uchar_t *off, Xword *value, const char *sym, in do_reloc_krtld() argument 188 do_reloc_ld(Rel_desc *rdesc, uchar_t *off, Xword *value, in do_reloc_krtld() 193 do_reloc_rtld(uchar_t rtype, uchar_t *off, Xword *value, const char *sym, in do_reloc_krtld() 208 *((uchar_t *)off) = (uchar_t)(*value); in do_reloc_krtld() 214 *((Half *)off) = (Half)(*value); in do_reloc_krtld() 221 UL_ASSIGN_BSWAP_HALF(off, v_bytes); in do_reloc_krtld() 223 UL_ASSIGN_HALF(off, v_bytes); in do_reloc_krtld() 278 *((Word *)off) += *value; in do_reloc_krtld() 285 UL_ASSIGN_BSWAP_WORD(v_bytes, off); in do_reloc_krtld() 287 UL_ASSIGN_BSWAP_WORD(off, v_bytes); in do_reloc_krtld() [all …]
|
| /onnv-gate/usr/src/lib/libc/port/gen/ |
| H A D | telldir.c | 59 off_t off = 0; in telldir() local 65 off = dp->d_off; in telldir() 68 return (off); in telldir() 83 off64_t off = 0; in telldir64() local 99 off = dp64->d_off; in telldir64() 102 return (off); in telldir64() 108 off64_t off; in telldir() local 110 off = telldir64(dirp); in telldir() 115 if ((long)off != off && (uint64_t)off > (uint64_t)UINT32_MAX) { in telldir() 119 return ((long)off); in telldir()
|
| /onnv-gate/usr/src/common/openssl/crypto/asn1/ |
| H A D | t_pkey.c | 83 unsigned char *buf,int off); 86 size_t len, int off); 90 int RSA_print_fp(FILE *fp, const RSA *x, int off) in RSA_print_fp() argument 101 ret=RSA_print(b,x,off); in RSA_print_fp() 107 int RSA_print(BIO *bp, const RSA *x, int off) in RSA_print() argument 148 if(!BIO_indent(bp,off,128)) in RSA_print() 158 if (!print(bp,str,x->n,m,off)) goto err; in RSA_print() 160 if (!print(bp,s,x->e,m,off)) goto err; in RSA_print() 161 if (!print(bp,"privateExponent:",x->d,m,off)) goto err; in RSA_print() 162 if (!print(bp,"prime1:",x->p,m,off)) goto err; in RSA_print() [all …]
|
| /onnv-gate/usr/src/uts/intel/ia32/krtld/ |
| H A D | doreloc.c | 187 do_reloc_krtld(uchar_t rtype, uchar_t *off, Xword *value, const char *sym, in do_reloc_krtld() argument 192 do_reloc_ld(Rel_desc *rdesc, uchar_t *off, Xword *value, in do_reloc_krtld() 197 do_reloc_rtld(uchar_t rtype, uchar_t *off, Xword *value, const char *sym, in do_reloc_krtld() 212 *((uchar_t *)off) += (uchar_t)(*value); in do_reloc_krtld() 218 *((Half *)off) += (Half)(*value); in do_reloc_krtld() 225 UL_ASSIGN_BSWAP_HALF(v_bytes, off); in do_reloc_krtld() 227 UL_ASSIGN_BSWAP_HALF(off, v_bytes); in do_reloc_krtld() 229 UL_ASSIGN_HALF(v_bytes, off); in do_reloc_krtld() 231 UL_ASSIGN_HALF(off, v_bytes); in do_reloc_krtld() 240 *((Xword *)off) += *value; in do_reloc_krtld() [all …]
|
| /onnv-gate/usr/src/uts/common/fs/swapfs/ |
| H A D | swap_vnops.c | 54 static int swap_getpage(struct vnode *vp, offset_t off, size_t len, 57 static int swap_putpage(struct vnode *vp, offset_t off, size_t len, 64 static int swap_getapage(struct vnode *vp, u_offset_t off, size_t len, 68 int swap_getconpage(struct vnode *vp, u_offset_t off, size_t len, 73 static int swap_putapage(struct vnode *vp, page_t *pp, u_offset_t *off, 108 offset_t off, in swap_getpage() argument 122 (void *)vp, off, len, 0, 0); in swap_getpage() 126 (void *)vp, off, len); in swap_getpage() 129 err = swap_getapage(vp, (u_offset_t)off, len, protp, pl, plsz, in swap_getpage() 132 err = pvn_getpages(swap_getapage, vp, (u_offset_t)off, len, in swap_getpage() [all …]
|
| /onnv-gate/usr/src/uts/common/fs/zfs/ |
| H A D | zfs_rlock.c | 107 uint64_t off = new->r_off; in zfs_range_lock_writer() local 178 new->r_off = off; in zfs_range_lock_writer() 220 zfs_range_split(avl_tree_t *tree, rl_t *rl, uint64_t off) in zfs_range_split() argument 225 ASSERT3U(off, >, rl->r_off); in zfs_range_split() 226 ASSERT3U(off, <, rl->r_off + rl->r_len); in zfs_range_split() 232 rear->r_off = off; in zfs_range_split() 233 rear->r_len = rl->r_off + rl->r_len - off; in zfs_range_split() 241 front->r_len = off - rl->r_off; in zfs_range_split() 251 zfs_range_new_proxy(avl_tree_t *tree, uint64_t off, uint64_t len) in zfs_range_new_proxy() argument 257 rl->r_off = off; in zfs_range_new_proxy() [all …]
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/ext/PerlIO/t/ |
| H A D | scalar.t | 50 my $off = tell($fh); 51 print "# Got $off, expect 0\n"; 52 print "not " unless $off == 0; 57 $off = tell($fh); 58 print "# Got $off, expect 4\n"; 59 print "not " unless $off == 4; 69 $off = tell($fh); 70 print "# Got $off, expect 10\n"; 71 print "not " unless $off == 10; 81 $off = tell($fh); [all …]
|
| /onnv-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() 180 ASSERT(IS_P2ALIGNED((uint64_t)off, PAGESIZE)); in memseg_free_meta() 183 (uint64_t)off, metapgs); in memseg_free_meta() 188 pp = page_find(&mpvp, off); in memseg_free_meta() 193 off += PAGESIZE; in memseg_free_meta() 201 u_offset_t off; in memseg_get_metapfn() local 203 off = (u_offset_t)ptp + ptob(metapg); in memseg_get_metapfn() 205 ASSERT(off); in memseg_get_metapfn() [all …]
|
| /onnv-gate/usr/src/cmd/sgs/libld/common/ |
| H A D | unwind.c | 381 uint64_t off = 0; in ld_unwind_make_hdr() local 386 while (off < size) { in ld_unwind_make_hdr() 396 length = extract_uint(data + off, &ndx, bswap); in ld_unwind_make_hdr() 403 id = extract_uint(data + off, &ndx, bswap); in ld_unwind_make_hdr() 417 cieversion = data[off + ndx]; in ld_unwind_make_hdr() 424 isp->is_name, off); in ld_unwind_make_hdr() 431 off += length + 4; in ld_unwind_make_hdr() 544 uint64_t off = 0; in ld_unwind_populate_hdr() local 559 while (off < size) { in ld_unwind_populate_hdr() 568 length = extract_uint(data + off, &ndx, bswap); in ld_unwind_populate_hdr() [all …]
|
| /onnv-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
| H A D | ql_nx.c | 327 ql_8021_pci_base_offsetfset(ql_adapter_state_t *ha, uint64_t off) in ql_8021_pci_base_offsetfset() argument 329 if ((off < ha->first_page_group_end) && in ql_8021_pci_base_offsetfset() 330 (off >= ha->first_page_group_start)) { in ql_8021_pci_base_offsetfset() 331 return ((void *)(ha->nx_pcibase + off)); in ql_8021_pci_base_offsetfset() 405 ql_8021_pci_set_crbwindow_2M(ql_adapter_state_t *ha, uint64_t *off) in ql_8021_pci_set_crbwindow_2M() argument 409 ha->crb_win = (uint32_t)CRB_HI(*off); in ql_8021_pci_set_crbwindow_2M() 419 "off=0x%llx\n", ha->crb_win, win_read, *off); in ql_8021_pci_set_crbwindow_2M() 421 *off = (*off & MASK(16)) + CRB_INDIRECT_2M + (uintptr_t)ha->nx_pcibase; in ql_8021_pci_set_crbwindow_2M() 425 ql_8021_wr_32(ql_adapter_state_t *ha, uint64_t off, uint32_t data) in ql_8021_wr_32() argument 429 rv = ql_8021_pci_get_crb_addr_2M(ha, &off); in ql_8021_wr_32() [all …]
|
| /onnv-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() 178 pa_to_ma(pfn_to_pa(va_to_pfn((caddr_t)mfn_list + off))); in xen_relocate_start_info() 179 kbm_map_ma(mach_addr, addr + off, 0); in xen_relocate_start_info() 185 for (off = 0; off < sz; off += MMU_PAGESIZE) in xen_relocate_start_info() [all …]
|
| /onnv-gate/usr/src/uts/common/sys/uwb/uwba/ |
| H A D | uwba.h | 298 #define LE_TO_UINT32(src, off, des) \ argument 301 des = src[off + 3]; \ 303 tmp = src[off + 2]; \ 305 tmp = src[off + 1]; \ 307 des |= src[off]; \ 311 #define UINT32_TO_LE(src, off, des) \ argument 313 des[off + 0] = 0xff & src; \ 314 des[off + 1] = 0xff & (src >> 8); \ 315 des[off + 2] = 0xff & (src >> 16); \ 316 des[off + 3] = 0xff & (src >> 24); \ [all …]
|