Home
last modified time | relevance | path

Searched refs:ns (Results 1 – 25 of 204) sorted by relevance

123456789

/titanic_44/usr/src/uts/common/os/
H A Dnetstack.c158 netstack_t *ns; in netstack_register() local
182 for (ns = netstack_head; ns != NULL; ns = ns->netstack_next) { in netstack_register()
183 nm_state_t *nms = &ns->netstack_m_state[moduleid]; in netstack_register()
185 mutex_enter(&ns->netstack_lock); in netstack_register()
186 if (!(ns->netstack_flags & NSF_CLOSING) && in netstack_register()
190 netstack_t *, ns, int, moduleid); in netstack_register()
192 mutex_exit(&ns->netstack_lock); in netstack_register()
208 netstack_t *ns; in netstack_unregister() local
223 for (ns = netstack_head; ns != NULL; ns = ns->netstack_next) { in netstack_unregister()
225 nm_state_t *nms = &ns->netstack_m_state[moduleid]; in netstack_unregister()
[all …]
/titanic_44/usr/src/grub/grub-0.97/netboot/
H A Dns83820.c327 #define __kick_rx() writel(CR_RXE, ns->base + CR)
331 writel(virt_to_le32desc(&rx_ring[ns->cur_rx]), ns->base + RXDP); \
332 if (ns->next_rx == ns->next_empty) \
413 static struct ns83820_private *ns; variable
423 cfg = readl(ns->base + CFG) ^ SPDSTS_POLARITY; in phy_intr()
424 if (ns->CFG_cache & CFG_TBI_EN) { in phy_intr()
426 tbisr = readl(ns->base + TBISR); in phy_intr()
427 tanar = readl(ns->base + TANAR); in phy_intr()
428 tanlpar = readl(ns->base + TANLPAR); in phy_intr()
436 writel(readl(ns->base + TXCFG) in phy_intr()
[all …]
/titanic_44/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dwrefresh.c83 WINDOW *ns = __m_screen->_newscr; in wnoutrefresh() local
111 (void) memcpy(&ns->_line[ny][nx], &w->_line[wy][wx], in wnoutrefresh()
115 if (ns->_first[ny] > nx) in wnoutrefresh()
116 ns->_first[ny] = (short) nx; in wnoutrefresh()
118 if (ns->_last[ny] < (nx + dx)) in wnoutrefresh()
119 ns->_last[ny] = (short) (nx + dx); in wnoutrefresh()
121 if (!ns->_line[ny][nx]._f) { in wnoutrefresh()
127 (void) __m_cc_erase(ns, ny, 0, ny, 0); in wnoutrefresh()
134 (void) __m_cc_expand(ns, ny, nx, -1); in wnoutrefresh()
138 if (!__m_cc_islast(ns, ny, nx+dx-1)) { in wnoutrefresh()
[all …]
H A Dprefresh.c78 WINDOW *ns; in pnoutrefresh() local
81 ns = __m_screen->_newscr; in pnoutrefresh()
92 if (ns->_maxy <= smaxr) in pnoutrefresh()
93 smaxr = ns->_maxy-1; in pnoutrefresh()
94 if (ns->_maxx <= smaxc) in pnoutrefresh()
95 smaxc = ns->_maxx-1; in pnoutrefresh()
103 (void) __m_cc_erase(ns, row, sminc, row, smaxc); in pnoutrefresh()
123 (void) copywin(pad, ns, pminr, pminc, sminr, sminc, smaxr, smaxc, 0); in pnoutrefresh()
126 ns->_flags &= ~W_LEAVE_CURSOR; in pnoutrefresh()
127 ns->_flags |= pad->_flags & in pnoutrefresh()
[all …]
/titanic_44/usr/src/lib/print/libprint/common/
H A Dns.c47 normalize_ns_name(char *ns) in normalize_ns_name() argument
49 if (ns == NULL) in normalize_ns_name()
51 else if ((strcasecmp(ns, "files") == 0) || in normalize_ns_name()
52 (strcasecmp(ns, "system") == 0) || in normalize_ns_name()
53 (strcasecmp(ns, "etc") == 0)) in normalize_ns_name()
55 else if (strcasecmp(ns, "nis") == 0) in normalize_ns_name()
57 else if (strcasecmp(ns, "ldap") == 0) in normalize_ns_name()
60 return (ns); in normalize_ns_name()
108 ns_printer_get_list(const char *ns) in ns_printer_get_list() argument
113 (void) setprinterentry(0, (char *)ns); in ns_printer_get_list()
[all …]
/titanic_44/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dwrefresh.c83 WINDOW *ns = __m_screen->_newscr; local
109 (void) __m_cc_erase(ns, ny, nx, ny, nx);
110 (void) __m_cc_erase(ns, ny, nx+dx-1, ny, nx+dx-1);
113 &ns->_line[ny][nx], &w->_line[wy][wx],
117 if (!ns->_line[ny][nx]._f) {
122 (void) __m_cc_erase(ns, ny, 0, ny, 0);
128 (void) __m_cc_expand(ns, ny, nx, -1);
132 if (!__m_cc_islast(ns, ny, nx+dx-1)) {
136 if (ns->_maxx <= nx + dx)
138 ns, ny, nx+dx-1, ny, nx+dx-1
[all …]
H A Dprefresh.c82 WINDOW *ns; local
92 ns = __m_screen->_newscr;
103 if (ns->_maxy <= smaxr)
104 smaxr = ns->_maxy-1;
105 if (ns->_maxx <= smaxc)
106 smaxr = ns->_maxx-1;
114 (void) __m_cc_erase(ns, row, sminc, row, smaxc);
132 (void) copywin(pad, ns, pminr, pminc, sminr, sminc, smaxr, smaxc, 0);
135 ns->_flags &= ~W_LEAVE_CURSOR;
136 ns->_flags |= pad->_flags
[all …]
/titanic_44/usr/src/cmd/oawk/
H A Db.c348 ccl_member(int ns, wchar_t cs, int ne, wchar_t ce, ccl_chars_t *s) in ccl_member() argument
355 if (MLCMPLE(s->cc_ns, s->cc_cs, ns, cs) && in ccl_member()
365 ccln_member(int ns, wchar_t cs, int ne, wchar_t ce, ccl_chars_t *s, int n) in ccln_member() argument
372 if (MLCMPLE(s->cc_ns, s->cc_cs, ns, cs) && in ccln_member()
433 int ns, ne; in cgotofn() local
486 ns = wcsetno(k); in cgotofn()
487 if (! ccln_member(ns, k, ns, k, in cgotofn()
490 ns, k, ns, k); in cgotofn()
492 ssyms[ssmax].cc_ns = ns; in cgotofn()
494 ssyms[ssmax].cc_ne = ns; in cgotofn()
[all …]
/titanic_44/usr/src/uts/common/io/ib/clients/eoib/
H A Deib_mac.c55 eib_node_state_t *ns = ss->ei_node_state; in eib_mac_set_nic_state() local
57 mutex_enter(&ns->ns_lock); in eib_mac_set_nic_state()
59 while ((ns->ns_nic_state & EIB_NIC_STARTING) || in eib_mac_set_nic_state()
60 (ns->ns_nic_state & EIB_NIC_STOPPING)) { in eib_mac_set_nic_state()
61 cv_wait(&ns->ns_cv, &ns->ns_lock); in eib_mac_set_nic_state()
63 ns->ns_nic_state |= flags; in eib_mac_set_nic_state()
65 mutex_exit(&ns->ns_lock); in eib_mac_set_nic_state()
71 eib_node_state_t *ns = ss->ei_node_state; in eib_mac_clr_nic_state() local
73 mutex_enter(&ns->ns_lock); in eib_mac_clr_nic_state()
75 ns->ns_nic_state &= (~flags); in eib_mac_clr_nic_state()
[all …]
/titanic_44/usr/src/uts/common/avs/
H A DMakefile27 ns \
28 ns/dsw \
29 ns/nsctl \
30 ns/rdc \
31 ns/sdbc \
32 ns/solaris \
33 ns/sv \
34 ns/unistat
45 clobber: ns/rdc
/titanic_44/usr/src/lib/libdladm/common/
H A Dusage.c247 add_stat_item(ea_object_t *o, net_stat_t *ns) in add_stat_item() argument
252 (void) strncpy(ns->net_stat_name, o->eo_item.ei_string, in add_stat_item()
261 ns->net_stat_ctime = o->eo_item.ei_uint64; in add_stat_item()
262 _time = ns->net_stat_ctime; in add_stat_item()
265 dissect_time(timebuf, &ns->net_stat_time); in add_stat_item()
268 ns->net_stat_ibytes = o->eo_item.ei_uint64; in add_stat_item()
271 ns->net_stat_obytes = o->eo_item.ei_uint64; in add_stat_item()
274 ns->net_stat_ipackets = o->eo_item.ei_uint64; in add_stat_item()
277 ns->net_stat_opackets = o->eo_item.ei_uint64; in add_stat_item()
280 ns->net_stat_ierrors = o->eo_item.ei_uint64; in add_stat_item()
[all …]
/titanic_44/usr/src/uts/sparc/sdbc/
H A DMakefile52 INC_PATH += -I$(AVSCOMMON)/ns/sdbc
53 CONF_SRCDIR = $(UTSBASE)/common/avs/ns/sdbc
100 $(OBJS_DIR)/sd_mkiob: $(UTSBASE)/common/avs/ns/sdbc/sd_mkiob.sh
101 $(CP) $(UTSBASE)/common/avs/ns/sdbc/sd_mkiob.sh $@
104 $(OBJS_DIR)/sd_iob_impl0.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
106 $(OBJS_DIR)/sd_mkiob 0 512 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
108 $(OBJS_DIR)/sd_iob_impl1.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
110 $(OBJS_DIR)/sd_mkiob 512 1024 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
112 $(OBJS_DIR)/sd_iob_impl2.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
114 $(OBJS_DIR)/sd_mkiob 1024 1536 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
[all …]
/titanic_44/usr/src/uts/intel/sdbc/
H A DMakefile52 INC_PATH += -I$(AVSCOMMON)/ns/sdbc
53 CONF_SRCDIR = $(UTSBASE)/common/avs/ns/sdbc
100 $(OBJS_DIR)/sd_mkiob: $(UTSBASE)/common/avs/ns/sdbc/sd_mkiob.sh
101 $(CP) $(UTSBASE)/common/avs/ns/sdbc/sd_mkiob.sh $@
104 $(OBJS_DIR)/sd_iob_impl0.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
106 $(OBJS_DIR)/sd_mkiob 0 512 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
108 $(OBJS_DIR)/sd_iob_impl1.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
110 $(OBJS_DIR)/sd_mkiob 512 1024 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
112 $(OBJS_DIR)/sd_iob_impl2.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
114 $(OBJS_DIR)/sd_mkiob 1024 1536 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
[all …]
/titanic_44/usr/src/lib/libresolv2/common/resolv/
H A Dres_send.c177 int ns; in res_ourserver_p() local
182 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p()
183 srv = (struct sockaddr_in *)get_nsaddr(statp, ns); in res_ourserver_p()
195 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p()
196 srv6 = (struct sockaddr_in6 *)get_nsaddr(statp, ns); in res_ourserver_p()
308 int gotsomewhere, terrno, tries, v_circuit, resplen, ns, n; in res_nsend() local
342 for (ns = 0; ns < statp->nscount; ns++) { in res_nsend()
343 if (statp->nsaddr_list[ns].sin_family && in res_nsend()
344 !sock_eq((struct sockaddr *)&statp->nsaddr_list[ns], in res_nsend()
345 (struct sockaddr *)&EXT(statp).ext->nsaddrs[ns])) { in res_nsend()
[all …]
/titanic_44/usr/src/uts/common/inet/ip/
H A Dip_netinfo.c253 ip_net_init(ip_stack_t *ipst, netstack_t *ns) in ip_net_init() argument
257 id = net_getnetidbynetstackid(ns->netstack_stackid); in ip_net_init()
670 netstack_t *ns; in ip_getmtu() local
672 ns = neti->netd_stack->nts_netstack; in ip_getmtu()
673 ASSERT(ns != NULL); in ip_getmtu()
674 return (ip_getmtu_impl(phy_ifdata, ifdata, B_FALSE, ns->netstack_ip)); in ip_getmtu()
683 netstack_t *ns; in ipv6_getmtu() local
685 ns = neti->netd_stack->nts_netstack; in ipv6_getmtu()
686 ASSERT(ns != NULL); in ipv6_getmtu()
687 return (ip_getmtu_impl(phy_ifdata, ifdata, B_TRUE, ns->netstack_ip)); in ipv6_getmtu()
[all …]
H A Dspd.c364 netstack_t *ns = ipss->ipsec_netstack; in ipsec_stack_fini() local
381 ITP_REFRELE(node, ns); in ipsec_stack_fini()
387 ipsec_config_flush(ns); in ipsec_stack_fini()
421 ipsec_alg_unreg(algtype, i, ns); in ipsec_stack_fini()
427 ipsid_gc(ns); in ipsec_stack_fini()
428 ipsid_fini(ns); in ipsec_stack_fini()
477 boolean_t global_cleanup, netstack_t *ns) in ipsec_alloc_table() argument
489 ipsec_free_tables(ns->netstack_ipsec) : in ipsec_alloc_table()
500 ipsec_alloc_tables(int kmflag, netstack_t *ns) in ipsec_alloc_tables() argument
503 ipsec_stack_t *ipss = ns->netstack_ipsec; in ipsec_alloc_tables()
[all …]
/titanic_44/usr/src/lib/libresolv/
H A Dres_send.c82 int ns; in _confcheck() local
103 ns = socket(AF_INET, SOCK_STREAM, 0); in _confcheck()
106 if (connect(ns, (struct sockaddr *) &ns_sin, in _confcheck()
108 close(ns); in _confcheck()
112 close(ns); in _confcheck()
131 int try, v_circuit, resplen, ns; local
165 for (ns = 0; ns < _res.nscount; ns++) {
169 ns+1, inet_ntoa(_res.nsaddr_list[ns].sin_addr));
191 if (connect(s, (struct sockaddr *) &_res.nsaddr_list[ns],
253 ns--;
[all …]
/titanic_44/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_kmod.c253 smb_netsvc_t *ns; in smb_kmod_enum_init() local
258 if ((ns = calloc(1, sizeof (smb_netsvc_t))) == NULL) in smb_kmod_enum_init()
263 free(ns); in smb_kmod_enum_init()
276 list_create(&ns->ns_list, sizeof (smb_netsvcitem_t), in smb_kmod_enum_init()
279 ns->ns_ioc = ioc; in smb_kmod_enum_init()
280 ns->ns_ioclen = ioclen; in smb_kmod_enum_init()
281 return (ns); in smb_kmod_enum_init()
288 smb_kmod_enum_fini(smb_netsvc_t *ns) in smb_kmod_enum_fini() argument
297 if (ns == NULL) in smb_kmod_enum_fini()
300 lst = &ns->ns_list; in smb_kmod_enum_fini()
[all …]
/titanic_44/usr/src/cmd/dtrace/test/tst/common/typedef/
H A Dtst.TypedefDataAssign.d97 new_struct ns; variable
105 ns.ch = 'c';
106 ns.in = 4;
107 ns.lg = 4;
115 printf("Struct: %c, %d, %d\n", ns.ch, ns.in, ns.lg);
/titanic_44/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/
H A DPrinterUtil.java48 NameService ns = new NameService("ldap"); in main() local
50 dp = getDefaultPrinter(ns); in main()
52 printers = getPrinterList(ns); in main()
75 NameService ns) throws Exception in getDefaultPrinter() argument
79 String nsarg = ns.getNameService(); in getDefaultPrinter()
164 NameService ns) throws Exception in getPrinterList() argument
171 String nsarg = ns.getNameService(); in getPrinterList()
185 NameService ns) throws Exception in exists() argument
189 String nsname = ns.getNameService(); in exists()
H A DDoPrinterNS.java64 NameService ns = null; in main() local
66 ns = new NameService("nis"); in main()
72 ns.setPasswd(""); in main()
74 Printer p = new Printer(ns); in main()
85 set(action, p, ns); in main()
102 NameService ns) throws Exception in set() argument
104 String nameservice = ns.getNameService(); in set()
109 setNIS(action, p, ns); in set()
112 setNS(action, p, ns); in set()
119 NameService ns) throws Exception in setNIS() argument
[all …]
H A DPrinterDebug.java92 public static void printObj(NameService ns) in printObj() argument
97 String passwd = ns.getPasswd(); in printObj()
101 Debug.message("SVR: \tnameservice:\t" + ns.getNameService()); in printObj()
102 Debug.message("SVR: \tnshost:\t\t" + ns.getNameServiceHost()); in printObj()
103 Debug.message("SVR: \tuser:\t\t" + ns.getUser()); in printObj()
105 Debug.message("SVR: \tboundtonisslave:" + ns.getBoundToNisSlave()); in printObj()
106 Debug.message("SVR: \tisAuth:\t\t" + ns.isAuth()); in printObj()
/titanic_44/usr/src/lib/libast/common/tm/
H A Dtmxduration.c36 Time_t ns; in tmxduration() local
49 ns = tmxdate(s, &last, now) - now; in tmxduration()
52 ns = strtod(s, &last) * TMX_RESOLUTION; in tmxduration()
61 ns = ts - now; in tmxduration()
71 ns = ts - now; in tmxduration()
79 return ns; in tmxduration()
/titanic_44/usr/src/cmd/print/printmgr/com/sun/admin/pm/client/
H A DpmUtility.java134 if (mytop.ns.getNameService().equals("nis") || in doLogin()
135 mytop.ns.getNameService().equals("ldap")) { in doLogin()
137 if (mytop.ns.getNameService().equals("nis")) { in doLogin()
181 mytop.ns.setPasswd(tmpp.trim()); in doLogin()
183 if (mytop.ns.getNameService().equals("ldap")) { in doLogin()
185 mytop.ns.setUser(l.dnField.getText()); in doLogin()
187 mytop.ns.setNameServiceHost(l.serverField.getText()); in doLogin()
191 mytop.ns.checkAuth(); in doLogin()
/titanic_44/usr/src/uts/common/inet/tcp/
H A Dtcp_cluster.c75 netstack_t *ns; in cl_tcp_walk_list() local
79 if ((ns = netstack_find_by_stackid(stack_id)) == NULL) in cl_tcp_walk_list()
83 ns->netstack_tcp); in cl_tcp_walk_list()
84 netstack_rele(ns); in cl_tcp_walk_list()
89 while ((ns = netstack_next(&nh)) != NULL) { in cl_tcp_walk_list()
91 ns->netstack_tcp); in cl_tcp_walk_list()
92 netstack_rele(ns); in cl_tcp_walk_list()

123456789