Home
last modified time | relevance | path

Searched refs:sa (Results 1 – 25 of 242) sorted by relevance

12345678910

/titanic_41/usr/src/uts/common/io/chxge/
H A Dpe.c79 static void link_start(ch_t *sa, struct pe_port_t *pp);
80 static ch_esb_t *ch_alloc_small_esbbuf(ch_t *sa, uint32_t i);
81 static ch_esb_t *ch_alloc_big_esbbuf(ch_t *sa, uint32_t i);
84 static const struct board_info *pe_sa_init(ch_t *sa);
87 static void pe_free_driver_resources(ch_t *sa);
107 static int pe_small_rbuf_pool_init(ch_t *sa);
108 static int pe_big_rbuf_pool_init(ch_t *sa);
130 pe_intr(ch_t *sa) in pe_intr() argument
132 mutex_enter(&sa->ch_intr); in pe_intr()
134 if (sge_data_in(sa->sge)) { in pe_intr()
[all …]
/titanic_41/usr/src/lib/libidmap/common/
H A Dsized_array.c57 struct sized_array *sa; in sized_array() local
62 sa = malloc(total); in sized_array()
64 if (sa == NULL) in sized_array()
67 (void) memset(sa, 0, total); in sized_array()
69 sa->n = n; in sized_array()
70 sa->sz = sz; in sized_array()
73 (void) memcpy(sa->cookie, COOKIE, sizeof (sa->cookie)); in sized_array()
76 return ((void *)(sa + 1)); in sized_array()
82 struct sized_array *sa; in sized_array_free() local
87 sa = ((struct sized_array *)p)-1; in sized_array_free()
[all …]
/titanic_41/usr/src/cmd/rcm_daemon/common/
H A Dswap_rcm.c336 swap_area_t *sa; in swap_delete() local
347 for (sa = sf->areas; sa != NULL; sa = sa->next) { in swap_delete()
349 if (sa->cache_flags & SWAP_CACHE_OFFLINED) { in swap_delete()
354 sa->start); in swap_delete()
362 sa->cache_flags |= SWAP_CACHE_OFFLINED; in swap_delete()
381 sf->path, sa->start, sa->len); in swap_delete()
388 sa->cache_flags &= ~SWAP_CACHE_OFFLINED; in swap_delete()
409 swap_area_t *sa; in swap_add() local
415 for (sa = sf->areas; sa != NULL; sa = sa->next) { in swap_add()
417 if (!(sa->cache_flags & SWAP_CACHE_OFFLINED)) { in swap_add()
[all …]
/titanic_41/usr/src/uts/common/io/rtw/
H A Drtwphy.c127 struct rtw_sa2400 *sa = (struct rtw_sa2400 *)rf; in rtw_sa2400_txpower() local
128 struct rtw_rfbus *bus = &sa->sa_bus; in rtw_sa2400_txpower()
194 struct rtw_sa2400 *sa = (struct rtw_sa2400 *)rf; in rtw_sa2400_tune() local
195 struct rtw_rfbus *bus = &sa->sa_bus; in rtw_sa2400_tune()
236 struct rtw_sa2400 *sa = (struct rtw_sa2400 *)rf; in rtw_sa2400_pwrstate() local
237 struct rtw_rfbus *bus = &sa->sa_bus; in rtw_sa2400_pwrstate()
252 if (sa->sa_digphy) in rtw_sa2400_pwrstate()
260 rtw_sa2400_manrx_init(struct rtw_sa2400 *sa) in rtw_sa2400_manrx_init() argument
272 return (rtw_rfbus_write(&sa->sa_bus, RTW_RFCHIPID_PHILIPS, SA2400_MANRX, in rtw_sa2400_manrx_init()
277 rtw_sa2400_vcocal_start(struct rtw_sa2400 *sa, int start) in rtw_sa2400_vcocal_start() argument
[all …]
/titanic_41/usr/src/lib/libsocket/inet/
H A Dgetnameinfo.c50 static int addzoneid(const struct sockaddr_in6 *sa, char *host,
52 static size_t getzonestr(const struct sockaddr_in6 *sa, char *zonestr,
95 getnameinfo(const struct sockaddr *sa, socklen_t salen, in getnameinfo() argument
111 if (sa == NULL) in getnameinfo()
113 switch (sa->sa_family) { in getnameinfo()
115 addr = (char *)&sa2sin(sa)->sin_addr; in getnameinfo()
118 port = (sa2sin(sa)->sin_port); /* network byte order */ in getnameinfo()
121 addr = (char *)&sa2sin6(sa)->sin6_addr; in getnameinfo()
124 port = (sa2sin6(sa)->sin6_port); /* network byte order */ in getnameinfo()
139 if (inet_ntop(sa->sa_family, addr, in getnameinfo()
[all …]
/titanic_41/usr/src/uts/common/fs/zfs/
H A Dsa.c325 sa_os_t *sa = hdl->sa_os->os_sa; in sa_attr_op() local
341 SA_ATTR_INFO(sa, hdl->sa_bonus_tab, in sa_attr_op()
353 SA_ATTR_INFO(sa, hdl->sa_spill_tab, in sa_attr_op()
407 sa_os_t *sa = os->os_sa; in sa_add_layout_entry() local
412 ASSERT(MUTEX_HELD(&sa->sa_lock)); in sa_add_layout_entry()
425 if (sa->sa_layout_attr_obj == 0) { in sa_add_layout_entry()
426 sa->sa_layout_attr_obj = zap_create_link(os, in sa_add_layout_entry()
428 sa->sa_master_obj, SA_LAYOUTS, tx); in sa_add_layout_entry()
441 if (sa->sa_attr_table[tb->lot_attrs[i]].sa_length == 0) in sa_add_layout_entry()
445 avl_add(&sa->sa_layout_num_tree, tb); in sa_add_layout_entry()
[all …]
/titanic_41/usr/src/lib/efcode/engine/
H A Dsignal.c74 struct sigaction sa; in install_handlers() local
80 sigemptyset(&sa.sa_mask); in install_handlers()
81 sa.sa_flags = SA_SIGINFO|SA_NODEFER; in install_handlers()
82 sa.sa_handler = 0; in install_handlers()
83 sa.sa_sigaction = process_signal; in install_handlers()
85 sigaction(SIGINT, &sa, NULL); in install_handlers()
86 sigaction(SIGQUIT, &sa, NULL); in install_handlers()
87 sigaction(SIGSEGV, &sa, NULL); in install_handlers()
88 sigaction(SIGBUS, &sa, NULL); in install_handlers()
89 sigaction(SIGUSR1, &sa, NULL); in install_handlers()
[all …]
/titanic_41/usr/src/cmd/sulogin/
H A Dsulogin.c110 static struct sigaction sa; variable
304 sa.sa_handler = childcleanup; in main()
305 sa.sa_flags = 0; in main()
306 (void) sigemptyset(&sa.sa_mask); in main()
307 (void) sigaction(SIGTERM, &sa, NULL); in main()
308 (void) sigaction(SIGHUP, &sa, NULL); in main()
309 sa.sa_handler = parenthandler; in main()
310 sa.sa_flags = SA_SIGINFO; in main()
311 (void) sigemptyset(&sa.sa_mask); in main()
312 (void) sigaction(SIGUSR1, &sa, NULL); in main()
[all …]
/titanic_41/usr/src/lib/libldap5/sources/ldap/common/
H A Dsrchpref.c190 struct ldap_searchattr *sa, *nextsa; in free_searchobj() local
191 for ( sa = so->so_salist; sa != NULL; sa = nextsa ) { in free_searchobj()
192 nextsa = sa->sa_next; in free_searchobj()
193 if ( sa->sa_attrlabel != NULL ) { in free_searchobj()
194 NSLDAPI_FREE( sa->sa_attrlabel ); in free_searchobj()
196 if ( sa->sa_attr != NULL ) { in free_searchobj()
197 NSLDAPI_FREE( sa->sa_attr ); in free_searchobj()
199 if ( sa->sa_selectattr != NULL ) { in free_searchobj()
200 NSLDAPI_FREE( sa->sa_selectattr ); in free_searchobj()
202 if ( sa->sa_selecttext != NULL ) { in free_searchobj()
[all …]
/titanic_41/usr/src/cmd/ssh/libopenbsd-compat/common/
H A Dbindresvport.c56 bindresvport_sa(sd, sa) in bindresvport_sa() argument
58 struct sockaddr *sa;
69 if (sa == NULL) {
71 sa = (struct sockaddr *)&myaddr;
73 if (getsockname(sd, sa, &salen) == -1)
76 af = sa->sa_family;
79 af = sa->sa_family;
83 sin = (struct sockaddr_in *)sa;
88 sin6 = (struct sockaddr_in6 *)sa;
95 sa->sa_family = af;
[all …]
H A Dreadpassphrase.c63 struct sigaction sa, savealrm, saveint, savehup, savequit, saveterm; in readpassphrase() local
93 sigemptyset(&sa.sa_mask); in readpassphrase()
94 sa.sa_flags = 0; /* don't restart system calls */ in readpassphrase()
95 sa.sa_handler = handler; in readpassphrase()
96 (void)sigaction(SIGALRM, &sa, &savealrm); in readpassphrase()
97 (void)sigaction(SIGHUP, &sa, &savehup); in readpassphrase()
98 (void)sigaction(SIGINT, &sa, &saveint); in readpassphrase()
99 (void)sigaction(SIGPIPE, &sa, &savepipe); in readpassphrase()
100 (void)sigaction(SIGQUIT, &sa, &savequit); in readpassphrase()
101 (void)sigaction(SIGTERM, &sa, &saveterm); in readpassphrase()
[all …]
H A Drresvport.c59 struct sockaddr *sa; in rresvport_af() local
65 sa = (struct sockaddr *)&ss; in rresvport_af()
70 portp = &((struct sockaddr_in *)sa)->sin_port; in rresvport_af()
74 portp = &((struct sockaddr_in6 *)sa)->sin6_port; in rresvport_af()
80 sa->sa_family = af; in rresvport_af()
88 if (bind(s, sa, salen) >= 0) in rresvport_af()
97 sa->sa_family = af; in rresvport_af()
98 if (bindresvport_sa(s, sa) == -1) { in rresvport_af()
/titanic_41/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_tran.c62 SA_LEN(struct sockaddr *sa) in SA_LEN() argument
66 switch (sa->sa_family) { in SA_LEN()
77 SMBSDEBUG("invalid address family %d\n", sa->sa_family); in SA_LEN()
107 smb_dup_sockaddr(struct sockaddr *sa) in smb_dup_sockaddr() argument
113 len = SA_LEN(sa); in smb_dup_sockaddr()
117 bcopy(sa, sa2, len); in smb_dup_sockaddr()
123 smb_free_sockaddr(struct sockaddr *sa) in smb_free_sockaddr() argument
128 len = SA_LEN(sa); in smb_free_sockaddr()
130 kmem_free(sa, len); in smb_free_sockaddr()
/titanic_41/usr/src/cmd/smbsrv/bind-helper/
H A Dbind-helper.c44 struct sockaddr sa; in main() local
46 struct sockaddr_in *sin = (struct sockaddr_in *)&sa; in main()
48 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&sa; in main()
57 (void) memset(&sa, 0, sizeof (sa)); in main()
58 sa.sa_family = atoi(argv[1]); in main()
59 switch (sa.sa_family) { in main()
85 if (bind(0, &sa, sizeof (sa)) < 0) { in main()
/titanic_41/usr/src/lib/libsmbfs/smb/
H A Dconnect.c165 conn_tcp6(struct smb_ctx *ctx, const struct sockaddr *sa, int port) in conn_tcp6() argument
173 if (sa->sa_family != AF_INET6) { in conn_tcp6()
174 DPRINT("bad af %d", sa->sa_family); in conn_tcp6()
177 bcopy(sa, &sin6, sizeof (sin6)); in conn_tcp6()
226 conn_tcp4(struct smb_ctx *ctx, const struct sockaddr *sa, int port) in conn_tcp4() argument
234 if (sa->sa_family != AF_INET) { in conn_tcp4()
235 DPRINT("bad af %d", sa->sa_family); in conn_tcp4()
238 bcopy(sa, &sin, sizeof (sin)); in conn_tcp4()
296 struct sockaddr *sa; in conn_nbt() local
302 sa = (struct sockaddr *)&sin; in conn_nbt()
[all …]
/titanic_41/usr/src/lib/libresolv2/common/irs/
H A Dgetnameinfo.c100 getnameinfo(sa, salen, host, hostlen, serv, servlen, flags) in getnameinfo() argument
101 const struct sockaddr *sa; in getnameinfo()
123 if (sa == NULL)
127 len = sa->sa_len;
131 family = sa->sa_family;
142 port = ((const struct sockinet *)sa)->si_port; /*%< network byte order */
143 addr = (const char *)sa + afd->a_off;
165 switch (sa->sa_family) {
171 sin6 = (const struct sockaddr_in6 *)sa;
217 if ((error = ip6_parsenumeric(sa, addr, host,
[all …]
/titanic_41/usr/src/cmd/ypcmd/
H A Drpc_bootstrap.c84 struct sockaddr_in6 *sa; local
101 sa = (struct sockaddr_in6 *)calloc(1, sizeof (*sa));
102 if (! sa) {
108 svc_taddr->maxlen = svc_taddr->len = sizeof (*sa);
109 svc_taddr->buf = (char *)sa;
114 free(sa);
125 free(sa);
146 struct sockaddr_in *sa; local
238 sa = (struct sockaddr_in *)address->buf;
239 address->len = sizeof (*sa);
[all …]
/titanic_41/usr/src/cmd/sa/
H A Dsvc-sar49 /usr/lib/sa/sadc /var/adm/sa/sa`date +%d`
61 0 * * * 0-6 /usr/lib/sa/sa1
62 20,40 8-17 * * 1-5 /usr/lib/sa/sa1
63 5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A
/titanic_41/usr/src/lib/libresolv2/common/isc/
H A Dev_connects.c45 #define GETXXXNAME(f, s, sa, len) ( \ argument
46 (f((s), (&sa), (&len)) >= 0) ? 0 : \
48 memset(&(sa), 0, sizeof (sa)), \
49 (len) = sizeof (sa), \
50 (sa).sa_family = AF_UNIX, \
250 new->fd = accept(conn->fd, &new->ra.sa, &new->ralen); in evTryAccept()
258 if (GETXXXNAME(getsockname, new->fd, new->la.sa, new->lalen) < 0) { in evTryAccept()
284 struct sockaddr sa; in listener() member
295 new = accept(fd, &ra.sa, &ralen); in listener()
303 if (GETXXXNAME(getsockname, new, la.sa, lalen) < 0) { in listener()
[all …]
/titanic_41/usr/src/cmd/dtrace/test/tst/common/raise/
H A Dtst.raise3.c41 struct sigaction sa; in main() local
43 sa.sa_handler = handle; in main()
44 sigemptyset(&sa.sa_mask); in main()
45 sa.sa_flags = 0; in main()
47 (void) sigaction(SIGINT, &sa, NULL); in main()
H A Dtst.raise2.c41 struct sigaction sa; in main() local
43 sa.sa_handler = handle; in main()
44 sigemptyset(&sa.sa_mask); in main()
45 sa.sa_flags = 0; in main()
47 (void) sigaction(SIGINT, &sa, NULL); in main()
/titanic_41/usr/src/lib/libc/port/gen/
H A Dsigflag.c41 struct sigaction sa; in sigflag() local
44 if ((v = sigaction(sig, 0, &sa)) < 0) in sigflag()
47 sa.sa_flags |= flag; in sigflag()
49 sa.sa_flags &= ~flag; in sigflag()
50 return (sigaction(sig, &sa, 0)); in sigflag()
/titanic_41/usr/src/cmd/sendmail/libmilter/
H A Dlistener.c156 addr.sa.sa_family = AF_UNIX;
161 addr.sa.sa_family = AF_INET;
166 addr.sa.sa_family = AF_INET6;
182 addr.sa.sa_family = AF_UNIX;
189 addr.sa.sa_family = AF_INET;
196 addr.sa.sa_family = AF_INET6;
213 addr.sa.sa_family = AF_UNIX;
218 addr.sa.sa_family = AF_INET;
223 addr.sa.sa_family = AF_INET6;
235 if (addr.sa.sa_family == AF_UNIX)
[all …]
/titanic_41/usr/src/lib/libast/common/comp/
H A Dsigflag.c38 struct sigaction sa;
40 if (sigaction(sig, NiL, &sa))
43 sa.sa_flags |= flags;
45 sa.sa_flags &= ~flags;
46 return sigaction(sig, &sa, NiL);
/titanic_41/usr/src/cmd/dtrace/test/tst/common/pid/
H A Dtst.gcc.c50 struct sigaction sa; in main() local
52 sa.sa_handler = intr; in main()
53 sigfillset(&sa.sa_mask); in main()
54 sa.sa_flags = 0; in main()
56 (void) sigaction(SIGUSR1, &sa, NULL); in main()

12345678910