Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 25 of 2439) sorted by relevance

12345678910>>...98

/titanic_50/usr/src/common/crypto/md5/
H A Dmd5_byteswap.h69 #define LOAD_LITTLE_32(addr) (*(uint32_t *)(void *)(addr)) argument
88 #define LOAD_LITTLE_32(addr) load_little_32((uint32_t *)(void *)(addr))
93 load_little_32(uint32_t *addr)
100 : "r" (addr), "i" (ASI_PL));
113 load_little_32(uint32_t *addr)
115 return (*addr);
120 #define LOAD_LITTLE_32(addr) htonl(addr)
125 #define LOAD_LITTLE_32(addr) \
126 ((addr)[0] | ((addr)[1] << 8) | ((addr)[2] << 16) | ((addr)[3] << 24))
140 #define LOAD_LITTLE_32_0(addr) load_little_32_0((uint32_t *)(addr))
[all …]
/titanic_50/usr/src/lib/print/libhttp-core/common/
H A Dhttp-addr.c53 httpAddrAny(const http_addr_t *addr) /* I - Address to check */ in httpAddrAny() argument
56 if (addr->addr.sa_family == AF_INET6 && in httpAddrAny()
57 IN6_IS_ADDR_UNSPECIFIED(&(addr->ipv6.sin6_addr))) in httpAddrAny()
61 if (addr->addr.sa_family == AF_INET && in httpAddrAny()
62 ntohl(addr->ipv4.sin_addr.s_addr) == 0x00000000) in httpAddrAny()
77 if (addr1->addr.sa_family != addr2->addr.sa_family) in httpAddrEqual()
81 if (addr1->addr.sa_family == AF_INET6) in httpAddrEqual()
97 http_addr_t *addr) /* O - Address to load */ in httpAddrLoad() argument
103 addr->ipv6.sin6_port = htons((u_short)port); in httpAddrLoad()
105 addr->ipv6.sin6_port = htons(port); in httpAddrLoad()
[all …]
/titanic_50/usr/src/uts/common/netinet/
H A Din.h512 #define IN6_IS_ADDR_UNSPECIFIED(addr) \ argument
513 (((addr)->_S6_un._S6_u32[3] == 0) && \
514 ((addr)->_S6_un._S6_u32[2] == 0) && \
515 ((addr)->_S6_un._S6_u32[1] == 0) && \
516 ((addr)->_S6_un._S6_u32[0] == 0))
519 #define IN6_IS_ADDR_LOOPBACK(addr) \ argument
520 (((addr)->_S6_un._S6_u32[3] == 0x00000001) && \
521 ((addr)->_S6_un._S6_u32[2] == 0) && \
522 ((addr)->_S6_un._S6_u32[1] == 0) && \
523 ((addr)->_S6_un._S6_u32[0] == 0))
[all …]
/titanic_50/usr/src/cmd/mdb/common/modules/mdb_ds/
H A Dmdb_ds.c53 cmd_stack(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) in cmd_stack() argument
67 if (mdb_vread(&f, sizeof (f), addr) == -1) { in cmd_stack()
68 mdb_warn("failed to read frame at %p", addr); in cmd_stack()
79 mdb_printf("+>\tframe <%u> %p (%s", f.f_id, addr, buf); in cmd_stack()
108 addr + OFFSETOF(mdb_frame_t, f_list), in cmd_stack()
109 addr + OFFSETOF(mdb_frame_t, f_cmds)); in cmd_stack()
111 addr + OFFSETOF(mdb_frame_t, f_istk), in cmd_stack()
112 addr + OFFSETOF(mdb_frame_t, f_ostk)); in cmd_stack()
116 f.f_pcmd, addr + OFFSETOF(mdb_frame_t, f_pcb)); in cmd_stack()
150 cmd_frame(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) in cmd_frame() argument
[all …]
/titanic_50/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netbios_cache.c197 addr_entry_t *addr; in smb_netbios_cache_lookup_addr() local
210 addr = &entry->addr_list; in smb_netbios_cache_lookup_addr()
212 if (NETBIOS_SAME_IP(addr, name_addr)) { in smb_netbios_cache_lookup_addr()
217 addr = addr->forw; in smb_netbios_cache_lookup_addr()
218 } while (addr != &entry->addr_list); in smb_netbios_cache_lookup_addr()
230 addr_entry_t *addr; in smb_netbios_cache_insert() local
250 addr = &entry->addr_list; in smb_netbios_cache_insert()
251 if (NETBIOS_SAME_IP(addr, name_addr) && in smb_netbios_cache_insert()
252 (addr->sin.sin_port == name_addr->sin.sin_port)) { in smb_netbios_cache_insert()
261 for (addr = entry->addr_list.forw; in smb_netbios_cache_insert()
[all …]
/titanic_50/usr/src/cmd/vi/port/
H A Dex_addr.c217 line *addr; local
224 addr = 0;
227 if (addr == 0) {
228 addr = zero;
232 addr += offset;
235 addr += offset;
237 addr -= offset;
250 if (addr || offset)
266 if (addr == 0)
267 addr = dot;
[all …]
/titanic_50/usr/src/lib/print/libprint/common/
H A Dns_bsd_addr.c61 ns_bsd_addr_t *addr = NULL; in bsd_addr_create() local
64 ((addr = calloc(1, sizeof (*addr))) != NULL)) { in bsd_addr_create()
65 addr->printer = (char *)printer; in bsd_addr_create()
66 addr->server = (char *)server; in bsd_addr_create()
67 addr->extension = (char *)extension; in bsd_addr_create()
70 return (addr); in bsd_addr_create()
74 bsd_addr_to_string(const ns_bsd_addr_t *addr) in bsd_addr_to_string() argument
78 if ((addr == NULL) || (addr->server == NULL)) in bsd_addr_to_string()
81 if (snprintf(buf, sizeof (buf), "%s", addr->server) >= sizeof (buf)) { in bsd_addr_to_string()
86 if ((addr->printer != NULL) || (addr->extension != NULL)) in bsd_addr_to_string()
[all …]
/titanic_50/usr/src/cmd/ypcmd/
H A Dmulti.awk.sh71 if (addr[$i] == "") {
72 addr[$i] = $1;
73 } else if (index(addr[$i], $1) == 0) {
74 addr[$i] = addr[$i] "," $1
85 for (host in addr) {
86 if (index(addr[host], ",") == 0)
88 numaddr = split(addr[host], tmpaddr, ",");
92 if (namelist[addr[host]] == "") {
93 namelist[addr[host]] = tmpname[j];
96 if (namelist[addr[host]] == tmpname[j]) {
[all …]
/titanic_50/usr/src/uts/common/vm/
H A Dseg_kmem.c359 boot_mapin(caddr_t addr, size_t size) in boot_mapin() argument
368 for (eaddr = addr + size; addr < eaddr; addr += PAGESIZE) { in boot_mapin()
369 pfnum = va_to_pfn(addr); in boot_mapin()
397 (void) page_hashin(pp, &kvp, (u_offset_t)(uintptr_t)addr, NULL); in boot_mapin()
414 caddr_t addr = inaddr; in boot_alloc() local
422 if (bop_alloc_chunk(addr, size, align) != (caddr_t)addr) in boot_alloc()
425 if (BOP_ALLOC(bootops, addr, size, align) != addr) in boot_alloc()
428 boot_mapin((caddr_t)addr, size); in boot_alloc()
429 return (addr); in boot_alloc()
442 segkmem_fault(struct hat *hat, struct seg *seg, caddr_t addr, size_t size, in segkmem_fault() argument
[all …]
/titanic_50/usr/src/cmd/mdb/common/mdb/
H A Dmdb_fmt.c124 fmt_dot(mdb_tgt_t *t, mdb_tgt_as_t as, mdb_tgt_addr_t addr, size_t cnt) in fmt_dot() argument
133 mdb_iob_printf(mdb.m_out, "%-#16lla%16T", addr); in fmt_dot()
136 "%#llx:", (u_longlong_t)addr); in fmt_dot()
142 mdb_nv_set_value(mdb.m_rvalue, addr); in fmt_dot()
143 return (addr); in fmt_dot()
148 fmt_float(mdb_tgt_t *t, mdb_tgt_as_t as, mdb_tgt_addr_t addr, size_t cnt) in fmt_float() argument
157 if (mdb_tgt_aread(t, as, &f, sizeof (f), addr) != sizeof (f)) { in fmt_float()
162 addr += sizeof (f); in fmt_float()
164 return (addr); in fmt_float()
170 fmt_plus(mdb_tgt_t *t, mdb_tgt_as_t as, mdb_tgt_addr_t addr, size_t cnt) in fmt_plus() argument
[all …]
H A Dmdb_cmds.c109 write_uint8(mdb_tgt_as_t as, mdb_tgt_addr_t addr, uint64_t ull, uint_t rdback) in write_uint8() argument
114 addr) == -1) in write_uint8()
115 return (addr); in write_uint8()
117 if (mdb_tgt_awrite(mdb.m_target, as, &n, sizeof (n), addr) == -1) in write_uint8()
118 return (addr); in write_uint8()
121 if (mdb_tgt_aread(mdb.m_target, as, &n, sizeof (n), addr) == -1) in write_uint8()
122 return (addr); in write_uint8()
125 mdb_iob_getmargin(mdb.m_out), addr, o, n); in write_uint8()
128 return (addr + sizeof (n)); in write_uint8()
132 write_uint16(mdb_tgt_as_t as, mdb_tgt_addr_t addr, uint64_t ull, uint_t rdback) in write_uint16() argument
[all …]
/titanic_50/usr/src/cmd/mdb/common/modules/genunix/
H A Davl.c47 avl_leftmostchild(uintptr_t addr, void *buff, size_t offset, size_t size, in avl_leftmostchild() argument
53 addr -= offset; in avl_leftmostchild()
54 if (mdb_vread(buff, size, addr) == -1) { in avl_leftmostchild()
55 mdb_warn("failed to read %s at %#lx", elem_name, addr); in avl_leftmostchild()
60 addr = (uintptr_t)node->avl_child[0]; in avl_leftmostchild()
62 return (addr); in avl_leftmostchild()
86 uintptr_t addr; in avl_walk_init_range() local
127 addr = (uintptr_t)tree->avl_root; in avl_walk_init_range()
128 if (addr == NULL) { in avl_walk_init_range()
132 addr = avl_leftmostchild(addr, aw->aw_buff, tree->avl_offset, in avl_walk_init_range()
[all …]
/titanic_50/usr/src/uts/intel/asm/
H A Dhtable.h47 atomic_orb(uint8_t *addr, uint8_t value) in atomic_orb() argument
51 : "=m" (*addr) in atomic_orb()
52 : "d" (value), "m" (*addr) in atomic_orb()
57 atomic_andb(uint8_t *addr, uint8_t value) in atomic_andb() argument
61 : "=m" (*addr) in atomic_andb()
62 : "d" (value), "m" (*addr) in atomic_andb()
67 atomic_inc16(uint16_t *addr) in atomic_inc16() argument
71 : "=m" (*addr) in atomic_inc16()
72 : "m" (*addr) in atomic_inc16()
77 atomic_dec16(uint16_t *addr) in atomic_dec16() argument
[all …]
/titanic_50/usr/src/grub/grub-0.97/stage2/
H A Dcommon.c122 unsigned long addr; in mmap_avail_at() local
128 for (cont = 0, addr = mbi.mmap_addr; in mmap_avail_at()
129 addr < mbi.mmap_addr + mbi.mmap_length; in mmap_avail_at()
130 addr += *((unsigned long *) addr) + 4) in mmap_avail_at()
132 struct AddrRangeDesc *desc = (struct AddrRangeDesc *) addr; in mmap_avail_at()
158 unsigned long cont, memtmp, addr; in init_bios_info() local
189 addr = get_code_end (); in init_bios_info()
190 mbi.mmap_addr = addr; in init_bios_info()
196 cont = get_mmap_entry ((void *) addr, cont); in init_bios_info()
199 if (! *((unsigned long *) addr)) in init_bios_info()
[all …]
/titanic_50/usr/src/lib/libumem/i386/
H A Dumem_genasm.c315 uint32_t addr; in genasm_malinit() local
318 addr = PTC_JMPADDR(ep, PTC_MALINIT_JOUT); in genasm_malinit()
319 bcopy(&addr, bp + PTC_MALINIT_JOUT, sizeof (addr)); in genasm_malinit()
321 addr = PTC_JMPADDR(ep, PTC_MALINIT_JOV); in genasm_malinit()
322 bcopy(&addr, bp + PTC_MALINIT_JOV, sizeof (addr)); in genasm_malinit()
331 uint32_t addr; in genasm_frinit() local
334 addr = PTC_JMPADDR(dp, PTC_FRINI_JDONE); in genasm_frinit()
335 bcopy(&addr, bp + PTC_FRINI_JDONE, sizeof (addr)); in genasm_frinit()
336 addr = PTC_JMPADDR(ep, PTC_FRINI_JFREE); in genasm_frinit()
337 bcopy(&addr, bp + PTC_FRINI_JFREE, sizeof (addr)); in genasm_frinit()
[all …]
/titanic_50/usr/src/cmd/mdb/common/modules/stmf_sbd/
H A Dstmf_sbd.c140 print_scsi_devid_desc(uintptr_t addr, uint16_t len, char *spacer) in print_scsi_devid_desc() argument
151 if (mdb_vread(id, len, addr) == -1) { in print_scsi_devid_desc()
152 mdb_warn("failed to read scsi_devid_desc at %p\n", addr); in print_scsi_devid_desc()
178 print_transport_id(uintptr_t addr, uint16_t tpd_len, char *spacer) in print_transport_id() argument
189 if (mdb_vread(tpd, tpd_len, addr) == -1) { in print_transport_id()
190 mdb_warn("failed to read scsi_transport_id at %p\n", addr); in print_transport_id()
272 uintptr_t addr = wsp->walk_addr; in stmf_sbd_lu_walk_step() local
278 if (mdb_vread(&slu, sizeof (sbd_lu_t), addr) == -1) { in stmf_sbd_lu_walk_step()
279 mdb_warn("failed to read sbd_lu_t at %p\n", addr); in stmf_sbd_lu_walk_step()
283 return (wsp->walk_callback(addr, &slu, wsp->walk_cbdata)); in stmf_sbd_lu_walk_step()
[all …]
/titanic_50/usr/src/uts/intel/sys/
H A Dddi_isa.h71 (*ahi_get8)(struct ddi_acc_impl *handle, uint8_t *addr);
73 (*ahi_get16)(struct ddi_acc_impl *handle, uint16_t *addr);
75 (*ahi_get32)(struct ddi_acc_impl *handle, uint32_t *addr);
77 (*ahi_get64)(struct ddi_acc_impl *handle, uint64_t *addr);
79 void (*ahi_put8)(struct ddi_acc_impl *handle, uint8_t *addr,
81 void (*ahi_put16)(struct ddi_acc_impl *handle, uint16_t *addr,
83 void (*ahi_put32)(struct ddi_acc_impl *handle, uint32_t *addr,
85 void (*ahi_put64)(struct ddi_acc_impl *handle, uint64_t *addr,
129 i_ddi_vaddr_get8(ddi_acc_impl_t *hdlp, uint8_t *addr);
132 i_ddi_vaddr_get16(ddi_acc_impl_t *hdlp, uint16_t *addr);
[all …]
/titanic_50/usr/src/uts/common/io/1394/
H A Ds1394_csr.c95 t1394_alloc_addr_t addr; in s1394_setup_CSR_space() local
117 addr.aa_address = IEEE1394_CSR_STATE_CLEAR; in s1394_setup_CSR_space()
118 addr.aa_length = IEEE1394_QUADLET; in s1394_setup_CSR_space()
119 addr.aa_enable = rw_flags; in s1394_setup_CSR_space()
120 addr.aa_type = T1394_ADDR_FIXED; in s1394_setup_CSR_space()
121 addr.aa_evts.recv_read_request = s1394_CSR_state_clear; in s1394_setup_CSR_space()
122 addr.aa_evts.recv_write_request = s1394_CSR_state_clear; in s1394_setup_CSR_space()
123 addr.aa_evts.recv_lock_request = NULL; in s1394_setup_CSR_space()
124 addr.aa_kmem_bufp = NULL; in s1394_setup_CSR_space()
125 addr.aa_arg = hal; in s1394_setup_CSR_space()
[all …]
/titanic_50/usr/src/uts/common/io/ntxn/
H A Dunm_nic_hw.c59 #define MN_WIN(addr) (((addr & 0x1fc0000) >> 1) | ((addr >> 25) & 0x3ff)) argument
60 #define OCM_WIN(addr) (((addr & 0x1ff0000) >> 1) | \ argument
61 ((addr >> 25) & 0x3ff)) // 64K?
62 #define MS_WIN(addr) (addr & 0x0ffc0000) argument
66 #define VALID_OCM_ADDR(addr) (((addr) & 0x3f800) != 0x3f800) argument
67 #define GET_MEM_OFFS_2M(addr) (addr & MASK(18)) argument
474 void *addr; in unm_nic_hw_write_ioctl_128M() local
478 addr = CRB_NORMALIZE(adapter, off); in unm_nic_hw_write_ioctl_128M()
479 if (!addr) { in unm_nic_hw_write_ioctl_128M()
483 addr = (void *) ((uint8_t *)adapter->ahw.pci_base0 + in unm_nic_hw_write_ioctl_128M()
[all …]
/titanic_50/usr/src/cmd/mdb/intel/kmdb/
H A Dkvm_isadep.c133 kmt_stack_common(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv, in kmt_stack_common() argument
142 gregs.kregs[KREG_FP] = addr; in kmt_stack_common()
168 kmt_cpustack(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv, in kmt_cpustack() argument
171 return (kmt_stack_common(addr, flags, argc, argv, cpuid, in kmt_cpustack()
176 kmt_stack(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) in kmt_stack() argument
178 return (kmt_stack_common(addr, flags, argc, argv, DPI_MASTER_CPUID, in kmt_stack()
183 kmt_stackv(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) in kmt_stackv() argument
185 return (kmt_stack_common(addr, flags, argc, argv, DPI_MASTER_CPUID, in kmt_stackv()
190 kmt_stackr(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) in kmt_stackr() argument
192 return (kmt_stack_common(addr, flags, argc, argv, DPI_MASTER_CPUID, in kmt_stackr()
[all …]
/titanic_50/usr/src/uts/sparc/asm/
H A Dcpu.h40 prefetch_read_many(void *addr) in prefetch_read_many() argument
45 : "=r" (addr) in prefetch_read_many()
46 : "0" (addr)); in prefetch_read_many()
53 prefetch_read_once(void *addr) in prefetch_read_once() argument
58 : "=r" (addr) in prefetch_read_once()
59 : "0" (addr)); in prefetch_read_once()
66 prefetch_write_many(void *addr) in prefetch_write_many() argument
71 : "=r" (addr) in prefetch_write_many()
72 : "0" (addr)); in prefetch_write_many()
79 prefetch_write_once(void *addr) in prefetch_write_once() argument
[all …]
/titanic_50/usr/src/cmd/mdb/common/modules/ipc/
H A Dipc.c79 ipcperm_print(uintptr_t addr, kipc_perm_t *perm) in ipcperm_print() argument
89 mdb_printf("%0?p %5d %5d", addr, perm->ipc_ref, perm->ipc_id); in ipcperm_print()
106 ipcperm(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) in ipcperm() argument
116 if (mdb_vread(&perm, sizeof (kipc_perm_t), addr) == -1) { in ipcperm()
117 mdb_warn("failed to read kipc_perm_t at %#lx", addr); in ipcperm()
121 ipcperm_print(addr, &perm); in ipcperm()
129 int copy_wait, uintptr_t addr, int flag) in msgq_check_for_waiters() argument
138 head = ((ulong_t)addr) + sizeof (list_t)*ii + in msgq_check_for_waiters()
175 msq_print(kmsqid_t *msqid, uintptr_t addr) in msq_print() argument
179 mdb_printf("&list: %-?p\n", addr + OFFSETOF(kmsqid_t, msg_list)); in msq_print()
[all …]
/titanic_50/usr/src/uts/sparc/sys/
H A Dddi_isa.h62 (*ahi_get8)(struct ddi_acc_impl *handle, uint8_t *addr);
64 (*ahi_get16)(struct ddi_acc_impl *handle, uint16_t *addr);
66 (*ahi_get32)(struct ddi_acc_impl *handle, uint32_t *addr);
68 (*ahi_get64)(struct ddi_acc_impl *handle, uint64_t *addr);
69 void (*ahi_put8)(struct ddi_acc_impl *handle, uint8_t *addr,
71 void (*ahi_put16)(struct ddi_acc_impl *handle, uint16_t *addr,
73 void (*ahi_put32)(struct ddi_acc_impl *handle, uint32_t *addr,
75 void (*ahi_put64)(struct ddi_acc_impl *handle, uint64_t *addr,
114 i_ddi_get8(ddi_acc_impl_t *hdlp, uint8_t *addr);
117 i_ddi_get16(ddi_acc_impl_t *hdlp, uint16_t *addr);
[all …]
/titanic_50/usr/src/uts/common/rpc/
H A Drpc_subr.c221 rpc_uaddr2port(int af, char *addr) in rpc_uaddr2port() argument
244 (void) strtoi(addr, &next); in rpc_uaddr2port()
260 next = addr; in rpc_uaddr2port()
311 put_inet_port(struct netbuf *addr, ushort_t port) in put_inet_port() argument
318 ((struct sockaddr_in *)(addr->buf))->sin_port = port; in put_inet_port()
322 put_inet6_port(struct netbuf *addr, ushort_t port) in put_inet6_port() argument
324 ((struct sockaddr_in6 *)(addr->buf))->sin6_port = port; in put_inet6_port()
328 put_loopback_port(struct netbuf *addr, char *port) in put_loopback_port() argument
340 if ((dot = strnrchr(addr->buf, '.', addr->len)) == (char *)NULL) in put_loopback_port()
343 newlen = (int)((dot - addr->buf + 1) + strlen(port)); in put_loopback_port()
[all …]
/titanic_50/usr/src/cmd/mdb/common/modules/libc/
H A Dlibc.c62 d_jmp_buf(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) in d_jmp_buf() argument
70 if (mdb_vread(&jb, sizeof (jb), addr) != sizeof (jb)) { in d_jmp_buf()
71 mdb_warn("failed to read jmp_buf at %p", addr); in d_jmp_buf()
116 d_ucontext(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) in d_ucontext() argument
123 if (mdb_vread(&uc, sizeof (uc), addr) != sizeof (uc)) { in d_ucontext()
124 mdb_warn("failed to read ucontext at %p", addr); in d_ucontext()
137 addr + OFFSETOF(ucontext_t, uc_mcontext)); in d_ucontext()
144 d_sigjmp_buf(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) in d_sigjmp_buf() argument
166 if (mdb_vread(&s, sizeof (s), addr) != sizeof (s)) { in d_sigjmp_buf()
167 mdb_warn("failed to read sigjmp_buf at %p", addr); in d_sigjmp_buf()
[all …]

12345678910>>...98