Home
last modified time | relevance | path

Searched +full:num +full:- +full:cs (Results 1 – 25 of 60) sorted by relevance

123

/illumos-gate/usr/src/cmd/cron/
H A Dparse.c52 (x) = (x) * 10 + (line[cursor] - '0'); \
80 assert(upper - lower <= MAX_ELEMENTS); in next_field()
94 uint_t num = 0, num2 = 0, step = 0; in next_field() local
117 num = lower; in next_field()
125 READNUMBER(num); in next_field()
127 if (num < lower || num > upper) { in next_field()
132 if (line[cursor] == '-') { in next_field()
146 ADDELEMENT(num); in next_field()
169 if (num <= num2) { in next_field()
170 for (i = num; i <= num2; i += step) { in next_field()
[all …]
/illumos-gate/usr/src/common/mc/mc-amd/
H A Dmcamd_rowcol.c34 * Convenience structures to stash MC and CS properties in.
37 mcamd_prop_t num; /* corresponding chip number */ member
42 mcamd_prop_t csbnkmap_reg; /* chip-select bank map */
43 mcamd_prop_t intlven; /* Node-intlv mask */
44 mcamd_prop_t intlvsel; /* Node-intlv selection for this node */
45 mcamd_prop_t csintlvfctr; /* cs intlv factor on this node */
46 mcamd_prop_t bnkswzl; /* bank-swizzle mode */
47 mcamd_prop_t sparecs; /* spare cs#, if any */
48 mcamd_prop_t badcs; /* substituted cs#, if any */
52 mcamd_prop_t num; /* chip-select number */ member
[all …]
H A Dmcamd_unumtopa.c40 * Any cs info it has will not be used - we will reconstruct cs info.
41 * This is because cs is not in the topology used for diagnosis.
48 uint64_t num, holesz; in mcamd_unumtopa() local
51 "mc %d dimm %d offset 0x%llx\n", unump->unum_chip, unump->unum_mc, in mcamd_unumtopa()
52 unump->unum_dimms[0], unump->unum_offset); in mcamd_unumtopa()
54 if (!MCAMD_RC_OFFSET_VALID(unump->unum_offset)) { in mcamd_unumtopa()
67 mc, MCAMD_PROP_NUM, &num, in mcamd_unumtopa()
71 "failed to lookup num, dramhole for MC 0x%p\n", mc); in mcamd_unumtopa()
74 if (num == unump->unum_chip) in mcamd_unumtopa()
79 "no match for MC %d\n", unump->unum_chip); in mcamd_unumtopa()
[all …]
H A Dmcamd_rowcol_impl.h36 #define MC_PC_ALL -1 /* marker used in tables */
40 ((size_t)bam->bam_sizemb * MC_CS_SCALE * ((width) == 128 ? 2 : 1))
46 #define BIT(val, num) ((val) & 1ULL << num) argument
49 ((val) & (((2ULL << (high)) - 1) & ~((1ULL << (low)) - 1)))
51 #define SETBIT(var, num) (var |= (1ULL << (num))) argument
53 #define BITVAL(var, num) ((BIT(var, num) >> (num)) & 1ULL) argument
58 #define MC_RC_CSMODES 16 /* max number of cs bankaddr modes */
80 int csi_factor; /* cs interleave factor */
81 int csi_hibit; /* first non-offset bit in addr */
87 (csidp->csi_factor && n >= csidp->csi_lobit && \
[all …]
H A Dmcamd_api.h33 * kernel or userland consumer of this interface (such as the mc-amd driver).
75 #define MCAMD_PROPSTR_NUM "num"
79 #define MCAMD_PROPSTR_BASE_ADDR "base-addr"
86 #define MCAMD_PROPSTR_LIM_ADDR "lim-addr"
88 #define MCAMD_PROPSTR_ILEN "node-ilen"
90 #define MCAMD_PROPSTR_ILSEL "node-ilsel"
92 #define MCAMD_PROPSTR_CSINTLVFCTR "cs-intlv-factor"
94 #define MCAMD_PROPSTR_DRAMHOLE_SIZE "dram-hole-size"
96 #define MCAMD_PROPSTR_ACCESS_WIDTH "access-width"
98 #define MCAMD_PROPSTR_CSBANKMAPREG "bank-mapping"
[all …]
/illumos-gate/usr/src/cmd/oawk/
H A Db.c44 #define type(v) v->nobj
45 #define left(v) v->narg[0]
46 #define right(v) v->narg[1]
47 #define parent(v) v->nnext
189 if (c == '-' && i > 0) { in cclenter()
295 return (-1); in first()
345 int /* is cs thru ce in s? */
346 ccl_member(int ns, wchar_t cs, int ne, wchar_t ce, ccl_chars_t *s) in ccl_member() argument
349 * The specified range(cs, ce) must be beside the range between in ccl_member()
350 * s->cc_start and s->cc_end to determine member. in ccl_member()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip_amd.c48 { PGNAME(CS), TOPO_STABILITY_PRIVATE, TOPO_STABILITY_PRIVATE, 1 };
127 * Called when there is no memory-controller driver to provide topology
129 * for the chip revision. The memory-controller node has already been
132 * We create a tree of dram-channel and chip-select nodes below the
133 * memory-controller node. There will be two dram channels and 8 chip-selects
142 int chan, cs; in amd_generic_mc_create() local
158 return (-1); in amd_generic_mc_create()
170 return (-1); in amd_generic_mc_create()
178 return (-1); in amd_generic_mc_create()
189 if (topo_node_label_set(chnode, NULL, &err) == -1) in amd_generic_mc_create()
[all …]
/illumos-gate/usr/src/cmd/svc/startd/
H A Dcontract.c66 if (sigsend(P_CTID, ctid, sig) == -1 && errno != ESRCH) { in contract_kill()
70 return (-1); in contract_kill()
80 ctid_t ctid, configd_ctid = -1; in contract_init()
95 return (-1); in contract_init()
103 return (-1); in contract_init()
113 return (-1); in contract_init()
123 return (-1); in contract_init()
130 return (-1); in contract_init()
138 st->st_initial = 1; in contract_init()
140 return (-1); in contract_init()
[all …]
/illumos-gate/usr/src/uts/intel/sys/
H A Dmc_amd.h42 * AMD cpu module and the mc-amd driver.
46 * The mc-amd driver exports an nvlist to userland, where the primary
52 * In the initial mc-amd implementation this nvlist was not versioned;
54 * of a "mcamd-nvlist-version member.
60 * -------------------- --------------- ---------------------------------------
61 * mcamd-nvlist-version uint8 Exported nvlist version number
62 * num uint64 Chip id of this memory controller
66 * ecc-type string "ChipKill 128/16" or "Normal 64/8"
67 * base-addr uint64 Node base address
68 * lim-addr uint64 Node limit address
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/newfs/
H A Dnewfs.c78 #define POWEROF2(num) (((num) & ((num) - 1)) == 0) argument
122 static int minfree = -1; /* free space threshold */
131 static int rot = -1; /* rotational delay (msecs) */
133 static int maxcontig = -1; /* maximum number of contig blocks */
141 * based on the size/type of the disk and is used only for non-EFI labeled
214 maxcontig = number("maxcontig", optarg, NR_NONE, -1); in main()
313 fatal(gettext("-%c: unknown flag"), optopt); in main()
318 /* The raw-special-device itself. If not, print usage message. */ in main()
319 if ((argc - optind) != 1) { in main()
366 * of devices with SMI labels (that is, non-EFI labels), the in main()
[all …]
/illumos-gate/usr/src/cmd/fs.d/udfs/mkfs/
H A Dmkfs.c35 * make file system for udfs (UDF - ISO13346)
39 * mkfs [-F FSType] [-V] [-m] [options]
40 * [-o specific_options] special size
43 * N - no create
44 * label - volume label
45 * psize - physical block size
82 #define POWEROF2(num) (((num) & ((num) - 1)) == 0) argument
170 static int32_t part_unalloc = -1;
173 /* Set by readvolseq for -m option */
213 gettext("mkfs -F udfs ")); in main()
[all …]
/illumos-gate/usr/src/lib/brand/shared/brand/i386/
H A Dhandler.S32 pushl $_CONST(. - brand_handler_table); \
69 addl $_GLOBAL_OFFSET_TABLE_ + [. - 9b], r
72 * %eax - userland return address
74 * | --------------------------------------
77 * --------------------------------------
91 mov %cs, EH_LOCALS_GREG(CS)(%ebp)
114 shrl $4, %eax /* table_offset/size = syscall num */
115 movl %eax, EH_LOCALS_GREG(EAX)(%ebp) /* save syscall num */
152 rep; smovl /* copy: (%esi) -> (%edi) */
153 /* copy: %ecx 32-bit words */
/illumos-gate/usr/src/lib/libjedec/common/
H A Dlibjedec.h23 * o JEDEC JEP-106 vendor data
25 * (JESD402-1)
47 * JEDEC operating temperature ranges. These are defined in JESD402-1B
127 * parse the overall SPD data structure. These represent a top-level failure and
162 * categories. Fatal errors set a value in the spd_error_t below. Non-fatal
166 * The keys are all dot delineated to create a few different top-level
169 * "meta" -- Which includes information about the SPD, encoding, and things like
172 * "dram" -- Parameters that are specific to the SDRAM dies present. What one
177 * "channel" -- Parameters that are tied to an implementation of a channel. DDR4
179 * sub-channels.
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dmagic.c4 * Copyright (c) 1985-2011 AT&T Intellectual Property *
10 * http://www.eclipse.org/org/documents/epl-v10.html *
32 static const char id[] = "\n@(#)$Id: magic library (AT&T Research) 2011-03-09 $\0\n";
82 unsigned long num; member
292 if (off + siz <= mp->fbsz) in getdata()
293 return mp->fbuf + off; in getdata()
294 if (off < mp->xoff || off + siz > mp->xoff + mp->xbsz) in getdata()
296 if (off + siz > mp->fbmx) in getdata()
299 if (sfseek(mp->fp, n, SEEK_SET) != n) in getdata()
301 if ((mp->xbsz = sfread(mp->fp, mp->xbuf, sizeof(mp->xbuf) - 1)) < 0) in getdata()
[all …]
/illumos-gate/usr/src/uts/intel/io/mc-amd/
H A Dmcamd_drv.c62 * Set to prevent mc-amd from attaching.
68 * dimms. Unfortunately, no memory-controller register indicates the
70 * of slots per cpu, and chip-select lines per slot, The following may be set
86 * The values range from 0x00-0x16 as described in the BKDG. Zero
106 if (mc->mc_snapshot == NULL) in mc_snapshot_destroy()
109 kmem_free(mc->mc_snapshot, mc->mc_snapshotsz); in mc_snapshot_destroy()
110 mc->mc_snapshot = NULL; in mc_snapshot_destroy()
111 mc->mc_snapshotsz = 0; in mc_snapshot_destroy()
112 mc->mc_snapshotgen++; in mc_snapshot_destroy()
120 if (mc->mc_snapshot != NULL) in mc_snapshot_update()
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/mkfs/
H A Dmkfs.c30 * University Copyright- Copyright (c) 1982, 1986, 1988
34 * University Acknowledgment- Portions of this document are derived from
53 * make file system for cylinder-group style file systems
57 * mkfs [-F FSType] [-V] [-G [-P]] [-M dirname] [-m] [options]
58 * [-o specific_options] special size
65 * N - no create
66 * nsect - The number of sectors per track
67 * ntrack - The number of tracks per cylinder
68 * bsize - block size
69 * fragsize - fragment size
[all …]
/illumos-gate/usr/src/uts/common/pcmcia/sys/
H A Dcs_priv.h39 * typedef for function pointers to quiet lint and cc -v
41 typedef int32_t (f_t)(int32_t, ...); /* for lint - cc -v quieting */
76 * Macros to manipulate bits - only does up to uint32_t size
101 * XXX - what does PCMCIA specify as the max time here??
115 * CS_RC1_DELAY - delay between writing COR and switching socket
117 * CS_RC2_DELAY - delay after switching socket to IO mode
120 * CS_RQ_DELAY - amount of time that the RESET bit in the COR is
123 #define CS_RC1_DELAY 20 /* COR->IO delay in mS */
124 #define CS_RC2_DELAY 300 /* post-COR delay in mS */
140 acq = !MUTEX_HELD(&sp->client_lock); \
[all …]
/illumos-gate/usr/src/lib/brand/shared/brand/amd64/
H A Dhandler.S31 pushq $_CONST(. - brand_handler_table); \
65 * %rax - userland return address
67 * | --------------------------------------
70 * --------------------------------------
93 movw %cs, %cx
126 shrq $4, %rax /* table_offset/size = syscall num */
127 movq %rax, EH_LOCALS_GREG(REG_RAX)(%rbp) /* save syscall num */
/illumos-gate/usr/src/boot/i386/btx/btx/
H A Dbtx.S108 .set _TSSIO,MEM_MAP-MEM_TSS # TSS I/O base
109 .set _TSSLM,MEM_TSS_END-MEM_TSS # TSS limit
110 .set _IDTLM,MEM_TSS-MEM_IDT-1 # IDT limit
126 .word PAG_CNT-MEM_ORG>>0xc # Paging control
127 .word break-start # Text size
144 mov $(MEM_ORG-MEM_IDT)/2,%cx # Words to zero
145 rep # Zero-fill
156 stosw # Store CS
199 ljmp $SEL_SCODE,$init.8 # To 32-bit code
202 movb $SEL_SDATA,%cl # To 32-bit
[all …]
/illumos-gate/usr/src/lib/iconv_modules/utf-8/
H A Dalias30 # case-insensitive matches. Conventionally most items here are capitalized, but
34 ISO8859-1 8859-1
35 ISO-8859-1 8859-1
36 ISO8859_1 8859-1
37 ISO_8859_1 8859-1
38 iso-ir-100 8859-1
39 ISO_8859-1 8859-1
40 latin1 8859-1
41 l1 8859-1
42 IBM819 8859-1
[all …]
/illumos-gate/usr/src/uts/common/pcmcia/nexus/
H A Dpcmcia.c73 #include <pcmcia/sys/cs.h>
108 int ls_error; /* error for CS return */
172 char *pcmcia_default_pm_mode = "parental-suspend-resume";
176 * disk tape pci sbus scsi token-ring isa keyboard display mouse
178 * floppy(controller) fddi isdn atm ide pccard video-in video-out
180 * network -> ethernet, token-ring, etc.
190 "video", /* no spec for video-out yet */
205 * The following should be 2^^n - 1
218 * XXX - See comments in cs.c
254 * non-DDI compliant functions are listed here
[all …]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_callback.c86 nfs_fh4 nfs4_deleg_anyfh = { sizeof (nfs4_deleg_fh)-1, nfs4_deleg_fh };
144 list_node_t linkage; /* linkage into per-zone port list */
172 struct compound_state *cs, struct nfs4_callback_globals *ncg) in cb_getattr() argument
174 CB_GETATTR4args *args = &argop->nfs_cb_argop4_u.opcbgetattr; in cb_getattr()
175 CB_GETATTR4res *resp = &resop->nfs_cb_resop4_u.opcbgetattr; in cb_getattr()
187 ncg->nfs4_callback_stats.cb_getattr.value.ui64++; in cb_getattr()
195 *cs->statusp = resp->status = cb4_getattr_fail; in cb_getattr()
200 resp->obj_attributes.attrmask = 0; in cb_getattr()
202 mutex_enter(&ncg->nfs4_cb_lock); in cb_getattr()
203 sp = ncg->nfs4prog2server[req->rq_prog - NFS4_CALLBACK]; in cb_getattr()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/fac_prov_ipmi/
H A Dfac_prov_ipmi.c226 return (-1); in ipmi_platform_message()
234 return (-1); in ipmi_platform_message()
242 return (-1); in ipmi_platform_message()
261 return (-1); in ipmi_platform_message()
271 return (-1); in ipmi_platform_message()
274 pem.ipem_sensor_type = csp->is_cs_type; in ipmi_platform_message()
275 pem.ipem_sensor_num = csp->is_cs_number; in ipmi_platform_message()
276 pem.ipem_event_type = csp->is_cs_reading_type; in ipmi_platform_message()
299 return (-1); in ipmi_platform_message()
305 if ((reading = ipmi_get_sensor_reading(hdl, csp->is_cs_number)) in ipmi_platform_message()
[all …]
/illumos-gate/usr/src/uts/sun4u/io/
H A Dsbd.c155 * Recall that non-zero return value terminates operation, however
174 default: return (-1); in _cmd2index()
308 * multiple boards. Users wanting multi-board access
448 * Alternative would be to dynamically fini and re-init the in _init()
538 switch (hp->h_cmd) { in sbd_ioctl()
549 switch (hp->h_cmd) { in sbd_ioctl()
558 mutex_enter(&SBDH2BD(hp->h_sbd)->sb_mutex); in sbd_ioctl()
570 * been set at this point - it is 0. in sbd_ioctl()
572 rv = DEVSET_IN_SET(HD2MACHHD(hp)->sh_devset, in sbd_ioctl()
593 switch (hp->h_cmd) { in sbd_ioctl()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_modapi.c56 * re-initialized by the target activation callbacks.
73 for (i = frac_digits; i; i--) in mdb_snprintfrac()
76 frac = mul * numerator / denom - mul * whole; in mdb_snprintfrac()
81 mdb_nicenum(uint64_t num, char *buf) in mdb_nicenum() argument
83 uint64_t n = num; in mdb_nicenum()
97 } else if (n < 10 && (num & (num - 1)) != 0) { in mdb_nicenum()
99 num, 1ULL << 10 * index, 2); in mdb_nicenum()
101 } else if (n < 100 && (num & (num - 1)) != 0) { in mdb_nicenum()
103 num, 1ULL << 10 * index, 1); in mdb_nicenum()
114 const char *sign = (delta < 0) ? "-" : "+"; in mdb_nicetime()
[all …]

123