Home
last modified time | relevance | path

Searched +full:open +full:- +full:pic (Results 1 – 25 of 39) sorted by relevance

12

/illumos-gate/usr/src/lib/libsasl/lib/
H A Ddlopen.c6 /* dlopen.c--Unix dlopen() dynamic loader interface
12 * Copyright (c) 1998-2003 Carnegie Mellon University. All rights reserved.
33 * Pittsburgh, PA 15213-3890
34 * (412) 268-4387, fax: (412) 268-7395
35 * tech-transfer@andrew.cmu.edu
64 #ifndef PIC
76 # define NAMLEN(dirent) strlen((dirent)->d_name)
79 # define NAMLEN(dirent) (dirent)->d_namlen
182 * case we are cross-compiling */ in _sasl_locate_entry()
260 __sasl_log(gctx, gctx->server_global_callbacks.callbacks == NULL ? in _sasl_plugin_load()
[all …]
/illumos-gate/usr/src/uts/sun4u/pcbe/
H A Dopl_pcbe.c63 * This open source software license conforms to the BSD License template.
123 uint32_t opl_pic; /* unshifted raw %pic value */
139 * +----------+-----+-----+------+----+
141 * +----------+-----+-----+------+----+
144 * +----+----+--- -+----+-----+---+-----+-----+----+----+----+
146 * +----+----+-----+----+-----+---+-----+-----+----+----+----+
155 * Performance Instrumentation Counter (PIC)
157 * each PIC is accessed using PCR.SC as a select field.
159 * +------------------------+--------------------------+
161 * +------------------------+--------------------------+
[all …]
H A Dus234_pcbe.c63 * This open source software license conforms to the BSD License template.
124 uint32_t us_pic; /* unshifted raw %pic value */
137 #define PIC0_MASK (((uint64_t)1 << 32) - 1)
577 "(Part No. 802-7220-02) "
645 return (-1); in us_pcbe_init()
649 * Initialize the list of events for each PIC. in us_pcbe_init()
655 for (n = events[i]; n->bits != NT_END; n++) in us_pcbe_init()
656 size += strlen(n->name) + 1; in us_pcbe_init()
657 for (gevp = generic_events[i]; gevp->name != NULL; gevp++) in us_pcbe_init()
658 size += strlen(gevp->name) + 1; in us_pcbe_init()
[all …]
/illumos-gate/usr/src/uts/sun4u/sunfire/io/
H A Dac.c43 #include <sys/open.h>
114 ac_open, /* open */
155 static kmutex_t ac_attachcnt_mutex; /* ac_attachcnt lock - attach/detach */
264 softsp->dip = devi; in ac_attach()
267 softsp->pdip = ddi_get_parent(softsp->dip); in ac_attach()
268 if ((softsp->board = (int)ddi_getprop(DDI_DEV_T_ANY, softsp->pdip, in ac_attach()
269 DDI_PROP_DONTPASS, OBP_BOARDNUM, -1)) == -1) { in ac_attach()
279 if (ddi_map_regs(softsp->dip, 0, (caddr_t *)&softsp->ac_base, 0, 0)) { in ac_attach()
285 softsp->ac_id = (uint32_t *)softsp->ac_base; in ac_attach()
286 softsp->ac_memctl = (uint64_t *)((char *)softsp->ac_base + in ac_attach()
[all …]
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_cache_door.c37 #if defined(PIC) || defined(lint)
45 * 1) Never use 0,1 or 2; if we get this from the open
58 * closed it underneath us or where the nscd dies or re-execs itself
59 * and we're a multi-threaded application. Note that we cannot protect
60 * the application if it closes the fd and it is multi-threaded.
73 * Returns 0 if the door call reached the server, -1 if contact was not made.
79 static int doorfd = -1;
92 * the first time in we try and open and validate the door. in __ns_ldap_trydoorcall_getfd()
104 if (doorfd == -1) { in __ns_ldap_trydoorcall_getfd()
108 if ((doorfd = open(LDAP_CACHE_DOOR, O_RDONLY, 0)) in __ns_ldap_trydoorcall_getfd()
[all …]
/illumos-gate/usr/src/cmd/busstat/
H A Dbusstat.c124 "open /dev/kstat\n"), pgmname); in main()
140 (void) print_dev(argc, argv[argc-1]); in main()
242 int inst_num = -1; in print_evt()
253 * use a default value of -1 for the kstat_lookup which causes in print_evt()
290 cnt_data = (kstat_named_t *)cnt_ksp->ks_data; in print_evt()
298 if (cnt_ksp->ks_ndata <= 1) { in print_evt()
304 for (i = 1; i < cnt_ksp->ks_ndata; i++) { in print_evt()
309 "pic kstat data structure for %s\n"), in print_evt()
310 pgmname, cnt_ksp->ks_module); in print_evt()
317 "pic kstat.\n"), pgmname); in print_evt()
[all …]
/illumos-gate/usr/src/uts/sun4u/io/
H A Dsysiosbus.c174 * from 1 - 15, so we'll pattern the priorities after the 4M. We map Fusion
179 -1, 2, 3, 5, 7, 9, 11, 13, /* Slot 0 sbus level 1 - 7 */
180 -1, 2, 3, 5, 7, 9, 11, 13, /* Slot 1 sbus level 1 - 7 */
181 -1, 2, 3, 5, 7, 9, 11, 13, /* Slot 2 sbus level 1 - 7 */
182 -1, 2, 3, 5, 7, 9, 11, 13, /* Slot 3 sbus level 1 - 7 */
186 -1, /* Not in use */
188 -1, -1, -1, /* Not in use */
192 -1, -1, -1, /* Not is use */
327 nodev, /* open */
367 static kmutex_t sbus_attachcnt_mutex; /* sbus_attachcnt lock - attach/detach */
[all …]
H A Dpic16f747.c28 * Driver to map the PIC for the chicago platform.
37 #include <sys/open.h>
40 #include <sys/pic.h>
186 *result = (void *)softc->dip; in pic_getinfo()
220 (void) sprintf(name, "env-monitor%d", inst); in pic_attach()
239 softc->dip = dip; in pic_attach()
240 mutex_init(&softc->mutex, NULL, MUTEX_DRIVER, NULL); in pic_attach()
252 res = ddi_regs_map_setup(dip, 0, (caddr_t *)&softc->cmd_reg, in pic_attach()
253 0, 0x42, &dev_attr, &softc->cmd_handle); in pic_attach()
308 (void) ddi_regs_map_free(&softc->cmd_handle); in pic_detach()
[all …]
/illumos-gate/usr/src/uts/sun4v/pcbe/
H A Dniagara2_pcbe.c62 * This open source software license conforms to the BSD License template.
131 uint32_t pcbe_pic; /* unshifted raw %pic value */
188 { "MD5_SHA-1_SHA-256_op", 0x608, 0xff },
194 { "MD5_SHA-1_SHA-256_busy_cycle", 0x708, 0xff },
201 { "MD5_SHA-1_SHA-256_op", 0x608, 0x3f },
207 { "MD5_SHA-1_SHA-256_busy_cycle", 0x708, 0x3f },
302 for (evp = ni2_events; evp->name != NULL; evp++) in ni2_pcbe_init()
303 evlist_sz += strlen(evp->name) + 1; in ni2_pcbe_init()
305 for (gevp = ni2_generic_events; gevp->name != NULL; gevp++) in ni2_pcbe_init()
306 evlist_sz += strlen(gevp->name) + 1; in ni2_pcbe_init()
[all …]
H A Dniagara_pcbe.c63 * This open source software license conforms to the BSD License template.
123 uint32_t pcbe_pic; /* unshifted raw %pic value */
213 * Initialize the list of events for each PIC. in ni_pcbe_init()
219 for (n = events[i]; n->bits != NT_END; n++) in ni_pcbe_init()
220 size += strlen(n->name) + 1; in ni_pcbe_init()
221 for (gevp = generic_events[i]; gevp->name != NULL; gevp++) in ni_pcbe_init()
222 size += strlen(gevp->name) + 1; in ni_pcbe_init()
225 for (n = events[i]; n->bits != NT_END; n++) { in ni_pcbe_init()
226 (void) strcat(pic_events[i], n->name); in ni_pcbe_init()
229 for (gevp = generic_events[i]; gevp->name != NULL; gevp++) { in ni_pcbe_init()
[all …]
/illumos-gate/usr/src/uts/intel/sys/
H A Dmc_intel.h37 #define MCINTEL_NVLIST_VERSTR "mcintel-nvlist-version"
43 #define MCINTEL_NVLIST_MEM "memory-controller"
44 #define MCINTEL_NVLIST_NMEM "memory-controllers"
45 #define MCINTEL_NVLIST_MC "memory-channels"
46 #define MCINTEL_NVLIST_DIMMS "memory-dimms"
47 #define MCINTEL_NVLIST_DIMMSZ "memory-dimm-size"
48 #define MCINTEL_NVLIST_NRANKS "dimm-max-ranks"
49 #define MCINTEL_NVLIST_NDIMMS "dimm-max-dimms"
50 #define MCINTEL_NVLIST_RANKS "dimm-ranks"
51 #define MCINTEL_NVLIST_1ST_RANK "dimm-start-rank"
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/chicago/envd/
H A Dpiclenvd.c27 * This file contains the environmental PICL plug-in module.
59 #include <sys/open.h>
181 static int pm_fd = -1; /* PM device file descriptor */
186 * Envd plug-in verbose flag set by SUNW_PICLENVD_DEBUG environment var
204 SYSTEM_FAN_SPEED_MIN, SYSTEM_FAN_SPEED_MAX, -1, -1,
208 SYSTEM_FAN_SPEED_MIN, SYSTEM_FAN_SPEED_MAX, -1, -1,
212 SYSTEM_FAN_SPEED_MIN, SYSTEM_FAN_SPEED_MAX, -1, -1,
216 SYSTEM_FAN_SPEED_MIN, SYSTEM_FAN_SPEED_MAX, -1, -1,
220 SYSTEM_FAN_SPEED_MIN, SYSTEM_FAN_SPEED_MAX, -1, -1,
228 DISK0_ID, -1,
[all …]
/illumos-gate/usr/src/lib/libcpc/common/
H A Dlibcpc.c60 static int cpc_valid_event(cpc_t *cpc, uint_t pic, const char *ev);
87 if (syscall(SYS_cpc, -1, -1, -1, -1, -1) != -1) { in cpc_open()
105 cpc->cpc_npic = syscall(SYS_cpc, CPC_NPIC, -1, 0, 0, 0); in cpc_open()
106 cpc->cpc_caps = syscall(SYS_cpc, CPC_CAPS, -1, 0, 0, 0); in cpc_open()
108 if (syscall(SYS_cpc, CPC_IMPL_NAME, -1, &cpc->cpc_cciname, 0, 0) != 0) in cpc_open()
110 if (syscall(SYS_cpc, CPC_CPUREF, -1, &cpc->cpc_cpuref, 0, 0) != 0) in cpc_open()
114 if ((cpc->cpc_attrlist = cpc_get_list(CPC_LIST_ATTRS, 0)) == NULL) { in cpc_open()
119 if ((cpc->cpc_evlist = malloc(cpc->cpc_npic * sizeof (char *))) == in cpc_open()
121 free(cpc->cpc_attrlist); in cpc_open()
126 for (i = 0; i < cpc->cpc_npic; i++) { in cpc_open()
[all …]
/illumos-gate/usr/src/lib/nsswitch/files/common/
H A Dfiles_common.c31 * Common code and structures used by name-service-switch "files" backends.
56 if (be->f == 0) {
57 if (be->filename == 0) {
61 if ((be->f = fopen(be->filename, "rF")) == 0) {
65 rewind(be->f);
76 if (be->f != 0) {
77 (void) fclose(be->f);
78 be->f = 0;
80 if (be->buf != 0) {
81 free(be->buf);
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dcpc.c30 * thread-specific data to export CPU performance counters
33 * There are three access methods exported - the 'shared' device
49 * models to co-exist in a reasonable way.
55 #include <sys/open.h>
101 if (curproc->p_agenttp == curthread) { in cpc()
107 * have to grab p_lock because no-one else can change in cpc()
112 ASSERT(t->t_tid == lwpid && ttolwp(t) != NULL); in cpc()
116 if (t->t_cpc_set == NULL && (cmd == CPC_SAMPLE || cmd == CPC_RELE)) in cpc()
142 if (t->t_cpc_set != NULL) in cpc()
143 (void) kcpc_unbind(t->t_cpc_set); in cpc()
[all …]
/illumos-gate/usr/src/uts/sun4u/io/i2c/clients/
H A Dpic16f819.c28 #include <sys/open.h> /* for open params. */
58 pic16f819_open, /* open */
102 &mod_driverops, /* type of module - driver */
151 (void) i2c_transfer_alloc(unitp->pic16f819_hdl, &i2c_tran_pointer, in pic16f819_get()
157 i2c_tran_pointer->i2c_flags = I2C_WR_RD; in pic16f819_get()
158 i2c_tran_pointer->i2c_wbuf[0] = (uchar_t)reg; in pic16f819_get()
159 err = i2c_transfer(unitp->pic16f819_hdl, i2c_tran_pointer); in pic16f819_get()
162 unitp->pic16f819_name, reg)); in pic16f819_get()
164 *byte = i2c_tran_pointer->i2c_rbuf[0]; in pic16f819_get()
167 i2c_transfer_free(unitp->pic16f819_hdl, i2c_tran_pointer); in pic16f819_get()
[all …]
/illumos-gate/usr/src/lib/libcpc/sparc/
H A Dconf_ultra.c44 * Note that in the current draft of [2], there is some re-use
46 * register - this may change before FCS.
51 * [2] "UltraSPARC-III Programmer's Reference Manual," April 1999.
53 * [4] "UltraSPARC-IIIi Programmer's Reference Manual," November 2000.
54 * [5] "UltraSPARC-IV+ Programmer's Reference Manual," October 2004.
60 #define V_US3_I (1u << 3) /* specific to UltraSPARC-IIIi */
61 #define V_US4_PLUS (1u << 4) /* specific to UltraSPARC-IV+ */
397 #define MAPCPUVER(cpuver) (cpuvermap[(cpuver) - CPC_ULTRA1])
404 cpuver -= CPC_ULTRA1; in validargs()
415 if (!validargs(cpuver, regno) || n->ver != MAPCPUVER(cpuver)) in versionmatch()
[all …]
/illumos-gate/usr/src/uts/common/sys/ib/adapters/hermon/
H A Dhermon_misc.h32 * for the Hermon Miscellaneous routines - Address Handle, Multicast,
33 * Protection Domain, port-related, statistics (kstat) routines, and
74 (((&((state)->ts_rsrc_hdl[HERMON_UDAV]))->rsrc_loc == \
92 * of QP per multicast group is set to 248 (256 4-byte slots minus the 8 slots
102 ((((state)->hs_cfg_profile->cp_num_qp_per_mcg) + 8) << 2)
114 * hash table (as a power-of-2), which is set to 16 by default. This value
179 * for 32-bit kernels.
187 * user level (uDAPL, OPEN verbs) won't ever do the unmapping of them we don't
192 * Other facts: the DBrs for Hermon are only two per qp - one for the Receive
194 * only need the ONE for the SRQ. Also, although the RQ/SRQ DBr is only 4-bytes
[all …]
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dlibld.msg36 # TRANSLATION_NOTE -- Beginning of USAGE message
54 # usage: ld [-6:abc:.....] file(s)
55 # [-a] create an absolute file
56 # [-b] do not create special PIC relocations in executables
57 # [-c file] record configuration 'file'
59 @ MSG_ARG_USAGE "usage: ld [-%s] file(s)\n"
60 @ MSG_ARG_DETAIL_3 "\t[-32]\t\tenforce a 32-bit link-edit\n"
61 @ MSG_ARG_DETAIL_6 "\t[-64]\t\tenforce a 64-bit link-edit\n"
62 @ MSG_ARG_DETAIL_A "\t[-a]\t\tcreate an absolute file\n"
63 @ MSG_ARG_DETAIL_B "\t[-b]\t\tdo not create special PIC relocations in executables\n"
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dpci.h47 #define PCI_CONF_SUBCLASS 0xA /* sub-class code, 1 byte */
182 #define PCI_STAT_FBBC 0x80 /* Fast Back-to-Back Capable */
209 #define PCI_CLASS_NONE 0x0 /* class code for pre-2.0 devices */
229 * PCI Sub-class codes - base class 0x0 (no new devices should use this code).
235 * PCI Sub-class codes - base class 0x1 (mass storage controllers)
245 #define PCI_MASS_NVME 0x8 /* Non-Volatile memory controller */
278 * PCI Sub-class codes - base class 0x2 (Network controllers)
290 * PCI Sub-class codes - base class 03 (display controllers)
304 * PCI Sub-class codes - base class 0x4 (multi-media devices)
313 * PCI Sub-class codes - base class 0x5 (memory controllers)
[all …]
/illumos-gate/usr/src/uts/common/dtrace/
H A Ddcpc.c45 * ---------------------------------------
72 * first-come, first-served basis. Only a finite amount of hardware resource
80 * counters are made available on a first-come, first-served basis. As with
81 * cpustat, the cpc provider has priority over per-LWP libcpc usage (e.g.
82 * cputrack(1)). Invoking the cpc provider will cause all existing per-LWP
91 int dcpc_picno; /* pic this event is programmed in */
108 * DCPC_MIN_OVF_DEFAULT or the value that dcpc-min-overflow is set to in
125 * which contains the pic(s) that have overflowed.
149 dtrace_probe(dcpc_actv_reqs[i]->dcpc_id, in dcpc_fire()
150 CPU->cpu_cpcprofile_pc, in dcpc_fire()
[all …]
/illumos-gate/usr/src/cmd/abi/appcert/scripts/
H A Dsymprof.pl1 #!/usr/perl5/bin/perl -w
34 # The dynamic profiling is done by running ldd -r on the binary with
79 if (! defined($working_dir) || ! -d $working_dir) {
113 if (defined($tmp_prof_dir) && -d $tmp_prof_dir) {
127 if (! -d $tmp_prof_dir) {
135 # - $dir will be each one of these object directories.
136 # - $path_to_object will be the corresponding actual path
141 my $cnt = -1;
154 if (! -f $path_to_object) {
168 if (! $block_max || $last_i >= $binary_count - 1) {
[all …]
/illumos-gate/usr/src/lib/libc/sparcv9/
H A DMakefile.com43 $(LIBCDIR)/capabilities/sun4u-opl/sparcv9/pics/symcap.o \
44 $(LIBCDIR)/capabilities/sun4u-us3-hwcap1/sparcv9/pics/symcap.o \
45 $(LIBCDIR)/capabilities/sun4u-us3-hwcap2/sparcv9/pics/symcap.o \
46 $(LIBCDIR)/capabilities/sun4v-hwcap1/sparcv9/pics/symcap.o \
47 $(LIBCDIR)/capabilities/sun4v-hwcap2/sparcv9/pics/symcap.o
172 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
331 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
649 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
904 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
941 open.o \
[all …]
/illumos-gate/usr/src/boot/sys/sys/
H A Delf_common.h1 /*-
88 #define OHW_R4KEOP 0x00000001 /* patch for R4000 branch at end-of-page bug */
90 #define OHW_R5KEOP 0x00000004 /* patch for R5000 branch at end-of-page bug */
97 #define OHWA0_R4KEOP_CHECKED 0x00000001 /* object checked for R4000 end-of-page bug */
98 #define OHWA0_R4KEOP_CLEAN 0x00000002 /* object verified clean for R4000 end-of-page bug */
105 #define OGP_SELF 0x00010000 /* GP group is self-contained */
108 * The header for GNU-style hash sections.
147 #define ELFCLASS32 1 /* 32-bit architecture. */
148 #define ELFCLASS64 2 /* 64-bit architecture. */
152 #define ELFDATA2LSB 1 /* 2's complement little-endian. */
[all …]
/illumos-gate/usr/src/uts/intel/pcbe/
H A Dcore_pcbe.c63 * This open source software license conforms to the BSD License template.
68 * Performance Counter Back-End for Intel processors supporting Architectural
112 #define CORE_GPC 0 /* General-Purpose Counter (GPC) */
113 #define CORE_FFC 1 /* Fixed-Function Counter (FFC) */
142 * Fixed-function counter attributes
163 #define BITMASK_XBITS(x) ((1ull << (x)) - 1ull)
166 * Only the lower 32-bits can be written to in the general-purpose
170 * The fixed-function counters do not have this restriction.
262 * general-purpose counters on processors that are of Penryn and Merom Family
418 * If any of the pic specific events require privileges, make sure to add a
[all …]

12