Home
last modified time | relevance | path

Searched refs:off (Results 1 – 25 of 992) sorted by relevance

12345678910>>...40

/titanic_41/usr/src/uts/sun4u/io/px/
H A Dpx_csr.h37 #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 …]
/titanic_41/usr/src/lib/libslp/clib/
H A DDAAdvert.c42 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 DSAAdvert.c43 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 …]
/titanic_41/usr/src/uts/common/io/
H A Ddevinfo.c291 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 …]
/titanic_41/usr/src/cmd/sgs/libelf/common/
H A Dinput.c81 #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 Drand.c34 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()
H A Dstrptr.c38 elf_strptr(Elf * elf, size_t ndx, size_t off) in elf_strptr() argument
85 if ((off >= d->d_off) && in elf_strptr()
86 (off < d->d_off + d->d_size)) { in elf_strptr()
87 rc = (char *)d->d_buf + off - d->d_off; in elf_strptr()
98 if (off < j) in elf_strptr()
100 off -= j; in elf_strptr()
103 if (off < d->d_size) { in elf_strptr()
104 rc = (char *)d->d_buf + off; in elf_strptr()
110 if (off < d->d_size) in elf_strptr()
112 off -= d->d_size; in elf_strptr()
/titanic_41/usr/src/uts/common/io/ntxn/
H A Dunm_nic_hw.c69 #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 Dunm_nic.h82 #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 …]
/titanic_41/usr/src/cmd/sendmail/src/
H A Darpadate.c63 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 …]
/titanic_41/usr/src/cmd/sgs/elfdump/common/
H A Ddwarf.c206 dump_cfi(uchar_t *data, uint64_t off, uint64_t *ndx, uint_t len, in dump_cfi() argument
265 op = data[off + (*ndx)++]; in dump_cfi()
277 if (uleb_extract(&data[off], ndx, len, &oper1) == in dump_cfi()
309 (*ndx < len) && (data[off + *ndx] == 0); in dump_cfi()
322 switch (dwarf_ehe_extract(&data[off], len, ndx, in dump_cfi()
324 state->sh_addr, off + *ndx, state->gotaddr)) { in dump_cfi()
352 switch (dwarf_extract_uint(data + off, len, in dump_cfi()
376 if (uleb_extract(&data[off], ndx, len, &oper1) == in dump_cfi()
384 if (sleb_extract(&data[off], ndx, len, &soper) == in dump_cfi()
401 if (uleb_extract(&data[off], ndx, len, &oper1) == in dump_cfi()
[all …]
/titanic_41/usr/src/uts/common/io/pciex/
H A Dpci_cfgacc.c47 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 …]
/titanic_41/usr/src/uts/intel/amd64/krtld/
H A Ddoreloc.c189 do_reloc_krtld(uchar_t rtype, uchar_t *off, Xword *value, const char *sym, in do_reloc_krtld() argument
194 do_reloc_ld(Rel_desc *rdesc, uchar_t *off, Xword *value, in do_reloc_krtld()
199 do_reloc_rtld(uchar_t rtype, uchar_t *off, Xword *value, const char *sym, in do_reloc_krtld()
214 *((uchar_t *)off) = (uchar_t)(*value); in do_reloc_krtld()
220 *((Half *)off) = (Half)(*value); in do_reloc_krtld()
227 UL_ASSIGN_BSWAP_HALF(off, v_bytes); in do_reloc_krtld()
229 UL_ASSIGN_HALF(off, v_bytes); in do_reloc_krtld()
285 *((Word *)off) += *value; in do_reloc_krtld()
292 UL_ASSIGN_BSWAP_WORD(v_bytes, off); in do_reloc_krtld()
294 UL_ASSIGN_BSWAP_WORD(off, v_bytes); in do_reloc_krtld()
[all …]
/titanic_41/usr/src/lib/libumem/amd64/
H A Dumem_genasm.c320 genasm_malinit(uint8_t *bp, uint32_t off, uint32_t ep, uint32_t csize) in genasm_malinit() argument
330 bcopy(&off, bp + PTC_MALINIT_SOFF, sizeof (off)); in genasm_malinit()
336 genasm_frinit(uint8_t *bp, uint32_t off, uint32_t dp, uint32_t ep, uint32_t mcs) in genasm_frinit() argument
348 bcopy(&off, bp + PTC_FRINI_SOFF, sizeof (off)); in genasm_frinit()
452 int ii, off; in genasm_malloc() local
470 off = genasm_malinit(bp, umem_tmem_off, erroff, in genasm_malloc()
472 bp += off; in genasm_malloc()
473 allocoff -= off; in genasm_malloc()
474 erroff -= off; in genasm_malloc()
477 off = genasm_firstcache(bp, umem_alloc_sizes[0], allocoff); in genasm_malloc()
[all …]
/titanic_41/usr/src/lib/libumem/i386/
H A Dumem_genasm.c313 genasm_malinit(uint8_t *bp, uint32_t off, uint32_t ep, uint32_t csize) in genasm_malinit() argument
323 bcopy(&off, bp + PTC_MALINIT_SOFF, sizeof (off)); in genasm_malinit()
329 genasm_frinit(uint8_t *bp, uint32_t off, uint32_t dp, uint32_t ep, uint32_t mc) in genasm_frinit() argument
341 bcopy(&off, bp + PTC_FRINI_SOFF, sizeof (off)); in genasm_frinit()
443 int ii, off; in genasm_malloc() local
461 off = genasm_malinit(bp, umem_tmem_off, erroff, in genasm_malloc()
463 bp += off; in genasm_malloc()
464 allocoff -= off; in genasm_malloc()
465 erroff -= off; in genasm_malloc()
468 off = genasm_firstcache(bp, umem_alloc_sizes[0], allocoff); in genasm_malloc()
[all …]
/titanic_41/usr/src/lib/libc/port/gen/
H A Dtelldir.c59 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()
/titanic_41/usr/src/uts/intel/ia32/krtld/
H A Ddoreloc.c187 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 …]
/titanic_41/usr/src/cmd/sgs/libld/common/
H A Dunwind.c382 uint64_t off = 0; in ld_unwind_make_hdr() local
387 while (off < size) { in ld_unwind_make_hdr()
397 length = extract_uint(data + off, &ndx, bswap); in ld_unwind_make_hdr()
404 id = extract_uint(data + off, &ndx, bswap); 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()
565 length = extract_uint(data + off, &ndx, bswap); in ld_unwind_populate_hdr()
[all …]
/titanic_41/usr/src/uts/common/fs/zfs/
H A Dzfs_rlock.c110 uint64_t off = new->r_off; in zfs_range_lock_writer() local
181 new->r_off = off; in zfs_range_lock_writer()
223 zfs_range_split(avl_tree_t *tree, rl_t *rl, uint64_t off) in zfs_range_split() argument
228 ASSERT3U(off, >, rl->r_off); in zfs_range_split()
229 ASSERT3U(off, <, rl->r_off + rl->r_len); in zfs_range_split()
235 rear->r_off = off; in zfs_range_split()
236 rear->r_len = rl->r_off + rl->r_len - off; in zfs_range_split()
244 front->r_len = off - rl->r_off; in zfs_range_split()
254 zfs_range_new_proxy(avl_tree_t *tree, uint64_t off, uint64_t len) in zfs_range_new_proxy() argument
260 rl->r_off = off; in zfs_range_new_proxy()
[all …]
/titanic_41/usr/src/uts/common/fs/swapfs/
H A Dswap_vnops.c55 static int swap_getpage(struct vnode *vp, offset_t off, size_t len,
58 static int swap_putpage(struct vnode *vp, offset_t off, size_t len,
65 static int swap_getapage(struct vnode *vp, u_offset_t off, size_t len,
69 int swap_getconpage(struct vnode *vp, u_offset_t off, size_t len,
74 static int swap_putapage(struct vnode *vp, page_t *pp, u_offset_t *off,
109 offset_t off, in swap_getpage() argument
121 (void *)vp, off, len, 0, 0); in swap_getpage()
125 (void *)vp, off, len); in swap_getpage()
127 return (pvn_getpages(swap_getapage, vp, (u_offset_t)off, len, protp, in swap_getpage()
138 u_offset_t off, in swap_getapage() argument
[all …]
/titanic_41/usr/src/uts/sun4v/os/
H A Dmemseg.c172 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 …]
/titanic_41/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_nx.c327 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 …]
/titanic_41/usr/src/uts/i86xpv/os/
H A Dxen_mmu.c142 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 …]
/titanic_41/usr/src/cmd/sendmail/db/xa/
H A Dxa.c169 size_t off; local
185 is_known = __db_xid_to_txn(env, xid, &off) == 0;
199 td = (TXN_DETAIL *)((u_int8_t *)env->tx_info->region + off);
208 __xa_txn_init(env, td, off);
213 (void)__db_map_xid(env, xid, env->xa_txn->off);
215 ((u_int8_t *)env->tx_info->region + env->xa_txn->off);
234 size_t off; local
242 if (__db_xid_to_txn(env, xid, &off) != 0)
246 if (off != txn->off)
249 td = (TXN_DETAIL *)((u_int8_t *)env->tx_info->region + off);
[all …]
/titanic_41/usr/src/uts/common/syscall/
H A Dlseek.c77 lseek32_common(file_t *fp, int stype, offset_t off, offset_t max, in lseek32_common() argument
94 noff = (u_offset_t)off; in lseek32_common()
102 if (reg && off > (max - curoff)) { in lseek32_common()
106 noff = (u_offset_t)(off + curoff); in lseek32_common()
118 if (reg && (off > (max - (offset_t)vattr.va_size))) { in lseek32_common()
122 noff = (u_offset_t)(off + (offset_t)vattr.va_size); in lseek32_common()
134 noff = (u_offset_t)off; in lseek32_common()
163 noff = (u_offset_t)off; in lseek32_common()
177 if (off < (offset_t)vattr.va_size) in lseek32_common()
206 lseek32(int32_t fdes, off32_t off, int32_t stype) in lseek32() argument
[all …]

12345678910>>...40