Home
last modified time | relevance | path

Searched refs:cap (Results 1 – 25 of 284) sorted by relevance

12345678910>>...12

/illumos-gate/usr/src/uts/common/disp/
H A Dcpucaps.c269 return (cap); in cap_alloc()
311 cap->cap_below = cap->cap_above = 0; in cap_enable()
389 cap->cap_kstat->ks_private = cap; in cap_project_enable()
443 cap->cap_kstat->ks_private = cap; in cap_zone_enable()
478 for (cap = list_head(l); cap != NULL; cap = list_next(l, cap)) { in cap_walk()
497 if (cap->cap_usage >= cap->cap_value) { in cap_poke_waitq()
522 ASSERT(cap->cap_project->kpj_cpucap == cap); in cap_project_usage_walker()
708 cap->cap_above = cap->cap_below = 0; in cpucaps_zone_set()
895 cap->cap_above = cap->cap_below = 0; in cpucaps_project_set()
1005 if (cap->cap_usage > cap->cap_maxusage) in caps_charge_adjust()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/vmm/intel/
H A Dept.c64 #define EPT_SUPPORTS_EXEC_ONLY(cap) ((cap) & (1UL << 0)) argument
65 #define EPT_PWL4(cap) ((cap) & (1UL << 6)) argument
66 #define EPT_MEMORY_TYPE_WB(cap) ((cap) & (1UL << 14)) argument
67 #define EPT_PDE_SUPERPAGE(cap) ((cap) & (1UL << 16)) /* 2MB pages */ argument
68 #define EPT_PDPTE_SUPERPAGE(cap) ((cap) & (1UL << 17)) /* 1GB pages */ argument
69 #define INVEPT_SUPPORTED(cap) ((cap) & (1UL << 20)) argument
70 #define AD_BITS_SUPPORTED(cap) ((cap) & (1UL << 21)) argument
71 #define INVVPID_SUPPORTED(cap) ((cap) & (1UL << 32)) argument
96 uint64_t cap; in ept_init() local
107 if (!EPT_PWL4(cap) || in ept_init()
[all …]
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dcap.c130 } cap; member
224 Cap *cap = argstate->cap.data + ndx; in cap_group_id() local
226 for (; ndx <= argstate->cap.grp_end_ndx; ndx++, cap++) { in cap_group_id()
334 Cap *cap = argstate->cap.data; in process_args() local
342 for (i = 0; i < argstate->cap.num; i++, cap++) in process_args()
356 argstate->cap.grp_end_ndx = argstate->cap.num - 1; in process_args()
388 Cap *cap; in print_cap() local
424 cap = &argstate->cap.data[ndx]; in print_cap()
769 Cap *cap; in cmd_body() local
781 cap = argstate.cap.data; in cmd_body()
[all …]
/illumos-gate/usr/src/stand/lib/fs/common/
H A Dcache.c111 while (cap) { in get_cache()
117 if ((x_dev == cap->dev) && (*chp->cmp)(cap)) { in get_cache()
123 cap->link[Next]->link[Prev] = cap->link[Prev]; in get_cache()
124 cap->link[Prev]->link[Next] = cap->link[Next]; in get_cache()
134 cap = cap->link[Hash+Next]; in get_cache()
172 cap->link[Prev]->link[Next] = cap->link[Next]; in reclaim_cache()
173 cap->link[Next]->link[Prev] = cap->link[Prev]; in reclaim_cache()
178 *(cap->chn) = cap->link[Hash+Next]; in reclaim_cache()
183 bkmem_free((caddr_t)cap->data, cap->size); in reclaim_cache()
195 cpp = cap; in reclaim_cache()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dmime.c116 free(cap); in dropcap()
129 while (cap = ent->cap) in drop()
131 ent->cap = cap->next; in drop()
157 cap = 0; in mimeset()
241 if (cap) in mimeset()
249 if (!cap->test && !dup->test || cap->test && dup->test && streq(cap->test, dup->test)) in mimeset()
256 ent->cap = cap; in mimeset()
271 ent->cap = ent->pac = cap; in mimeset()
351 for (cap = ent->cap; cap; cap = cap->next) in list()
644 cap = ent->cap; in mimeview()
[all …]
/illumos-gate/usr/src/cmd/tput/
H A Dtput.c189 cap = v[0]; in main()
440 getpad(char *cap) in getpad() argument
448 while (*cap) { in getpad()
449 if ((cap[0] == '$') && (cap[1] == '<')) { in getpad()
450 cap++; in getpad()
451 cap++; in getpad()
454 cap++; in getpad()
455 while (*cap == '.' || *cap == '/' || *cap == '*' || in getpad()
457 cap++; in getpad()
459 cap++; in getpad()
[all …]
/illumos-gate/usr/src/cmd/cdrw/
H A Dwrite_image.c103 off_t cap; in write_image() local
116 if ((cap = get_last_possible_lba(target)) <= 0) { in write_image()
117 if ((cap = read_format_capacity(target->d_fd, in write_image()
122 cap = MAX_CD_BLKS; in write_image()
131 cap = read_format_capacity(target->d_fd, in write_image()
136 if (cap < MAX_CD_BLKS) in write_image()
137 cap = MAX_DVD_BLKS; in write_image()
141 cap = (cap + 1 - ti->ti_start_address) * 2048; in write_image()
143 cap *= 2048 + 1; in write_image()
145 if (size > cap) { in write_image()
[all …]
H A Ddumpinfo.c46 size_t cap = 0; in info() local
86 cap = get_last_possible_lba(target); in info()
93 if (cap == 0) in info()
94 cap = read_format_capacity(target->d_fd, &bsize); in info()
101 cap *= target->d_blksize; in info()
105 ((double)cap/ONE_MB_BASE2)); in info()
113 "%.2f GB "), ((double)cap/ONE_GB_BASE10)); in info()
116 cap /= target->d_blksize; in info()
117 (void) printf(gettext("(%u blocks)\n"), (uint_t)cap); in info()
H A Ddevice.c94 uchar_t *cap; in get_device() local
160 if (cap[2] & 0x10) in get_device()
162 if (cap[3] & 0x10) in get_device()
164 if (cap[5] & 0x4) in get_device()
166 if (cap[2] & 0x20) in get_device()
173 free(cap); in get_device()
209 if (cap[5] & 1) { in get_device()
211 if (cap[5] & 2) in get_device()
281 free(cap); in get_device()
911 cap[7]); in get_media_type()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dddifm.h53 #define DDI_FM_DEFAULT_CAP(cap) (cap == DDI_FM_NOT_CAPABLE) argument
54 #define DDI_FM_EREPORT_CAP(cap) (cap & DDI_FM_EREPORT_CAPABLE) argument
55 #define DDI_FM_ACC_ERR_CAP(cap) (cap & DDI_FM_ACCCHK_CAPABLE) argument
56 #define DDI_FM_DMA_ERR_CAP(cap) (cap & DDI_FM_DMACHK_CAPABLE) argument
57 #define DDI_FM_ERRCB_CAP(cap) (cap & DDI_FM_ERRCB_CAPABLE) argument
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dpmap_prot.c179 xdr_rmtcallargs(XDR *xdrs, struct p_rmtcallargs *cap) in xdr_rmtcallargs() argument
186 if (!xdr_u_int(xdrs, (uint_t *)&(cap->prog)) || in xdr_rmtcallargs()
187 !xdr_u_int(xdrs, (uint_t *)&(cap->vers)) || in xdr_rmtcallargs()
188 !xdr_u_int(xdrs, (uint_t *)&(cap->proc))) in xdr_rmtcallargs()
191 IXDR_PUT_U_INT32(buf, cap->prog); in xdr_rmtcallargs()
192 IXDR_PUT_U_INT32(buf, cap->vers); in xdr_rmtcallargs()
193 IXDR_PUT_U_INT32(buf, cap->proc); in xdr_rmtcallargs()
200 if (!xdr_u_int(xdrs, &(cap->args.args_len))) in xdr_rmtcallargs()
203 if (!(*cap->xdr_args)(xdrs, cap->args.args_val)) in xdr_rmtcallargs()
206 cap->args.args_len = position - argposition; in xdr_rmtcallargs()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/impl/
H A Dscsi_capabilities.c40 scsi_ifgetcap(struct scsi_address *ap, char *cap, int whom) in scsi_ifgetcap() argument
49 capability = (*A_TO_TRAN(ap)->tran_getcap)(ap, cap, whom); in scsi_ifgetcap()
52 if (cap != NULL) { in scsi_ifgetcap()
53 ckey = scsi_hba_lookup_capstr(cap); in scsi_ifgetcap()
93 scsi_ifsetcap(struct scsi_address *ap, char *cap, int value, int whom) in scsi_ifsetcap() argument
98 rval = (*A_TO_TRAN(ap)->tran_setcap)(ap, cap, value, whom); in scsi_ifsetcap()
100 cidx = scsi_hba_lookup_capstr(cap); in scsi_ifsetcap()
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dtgetflag.c48 tgetflag(cap) in tgetflag() argument
49 const char *cap; in tgetflag()
55 __m_trace("tgetflag(%p = \"%.2s\")", cap, cap);
59 if (strcmp(*p, cap) == 0) {
H A Dtgetnum.c48 tgetnum(cap) in tgetnum() argument
49 const char *cap; in tgetnum()
55 __m_trace("tgetnum(%p = \"%.2s\")", cap, cap);
59 if (strcmp(*p, cap) == 0) {
H A Dtigetfla.c48 tigetflag(cap) in tigetflag() argument
49 const char *cap; in tigetflag()
55 __m_trace("tigetflag(%p = \"%s\")", cap, cap);
59 if (strcmp(*p, cap) == 0) {
H A Dtigetnum.c48 tigetnum(cap) in tigetnum() argument
49 const char *cap; in tigetnum()
55 __m_trace("tigetnum(%p = \"%s\")", cap, cap);
59 if (strcmp(*p, cap) == 0) {
H A Dtigetstr.c48 tigetstr(cap) in tigetstr() argument
49 const char *cap; in tigetstr()
55 __m_trace("tigetstr(%p = \"%s\")", cap, cap);
59 if (strcmp(*p, cap) == 0) {
H A Dtgetstr.c54 tgetstr(cap, area) in tgetstr() argument
55 const char *cap; in tgetstr()
61 __m_trace("tgetstr(%p = \"%.2s\", %p)", cap, cap, area);
65 if (strcmp(*p, cap) == 0) {
/illumos-gate/usr/src/cmd/virtinfo/
H A Dvirtinfo.c57 virtinfo_cap_to_impl(int cap) in virtinfo_cap_to_impl() argument
59 if (cap & V12N_CAP_IMPL_LDOMS) in virtinfo_cap_to_impl()
68 int cap; in main() local
134 cap = v12n_capabilities(); in main()
135 if ((cap & V12N_CAP_SUPPORTED) == 0) { in main()
138 } else if ((cap & V12N_CAP_ENABLED) == 0) { in main()
141 virtinfo_cap_to_impl(cap)); in main()
155 if (roles == -1 || (cap & V12N_CAP_IMPL_LDOMS) == 0) { in main()
/illumos-gate/usr/src/uts/sun4v/io/
H A Dds_common.c1072 match = negotiate_version(svc->cap.nvers, svc->cap.vers, in ds_handle_reg_req()
2093 DS_FREE(svc->cap.svc_id, strlen(svc->cap.svc_id) + 1); in ds_svc_free()
2506 if ((cap->svc_id == NULL) || (cap->vers == NULL) || (cap->nvers == 0)) { in ds_ucap_init()
2579 (void) memcpy(&svc->cap, cap, sizeof (ds_capability_t)); in ds_ucap_init()
2582 svc->cap.svc_id = ds_strdup(cap->svc_id); in ds_ucap_init()
2585 svc->cap.vers = DS_MALLOC(cap->nvers * sizeof (ds_ver_t)); in ds_ucap_init()
2586 (void) memcpy(svc->cap.vers, cap->vers, cap->nvers * sizeof (ds_ver_t)); in ds_ucap_init()
3109 match = negotiate_version(cap->nvers, cap->vers, in ds_loopback_set_svc()
3210 newsvc->cap.svc_id = ds_strdup(svc->cap.svc_id); in ds_svc_clone()
3212 (void) memcpy(newsvc->cap.vers, svc->cap.vers, in ds_svc_clone()
[all …]
/illumos-gate/usr/src/test/util-tests/tests/mdb/
H A DMakefile40 format/tst.format-cap-E.mdb \
41 format/tst.format-cap-E.mdb.out \
42 format/tst.format-cap-G.mdb \
43 format/tst.format-cap-G.mdb.out \
44 format/tst.format-cap-J.mdb \
45 format/tst.format-cap-J.mdb.out \
46 format/tst.format-cap-P.mdb \
47 format/tst.format-cap-P.mdb.out \
48 format/tst.format-cap-R.mdb \
49 format/tst.format-cap-R.mdb.out \
/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_phy.c231 uint32_t cap = 0; in sfxge_phy_lp_cap_test() local
238 efx_phy_lp_cap_get(sp->s_enp, &cap); in sfxge_phy_lp_cap_test()
243 return (cap & (1 << field)); in sfxge_phy_lp_cap_test()
315 uint32_t cap = 0; in sfxge_phy_cap_test() local
324 efx_phy_adv_cap_get(enp, flag, &cap); in sfxge_phy_cap_test()
333 return ((cap & (1 << field)) ? 1 : 0); in sfxge_phy_cap_test()
342 uint32_t cap; in sfxge_phy_cap_set() local
356 efx_phy_adv_cap_get(enp, EFX_PHY_CAP_CURRENT, &cap); in sfxge_phy_cap_set()
359 cap |= (1 << field); in sfxge_phy_cap_set()
361 cap &= ~(1 << field); in sfxge_phy_cap_set()
[all …]
/illumos-gate/usr/src/uts/common/fs/tmpfs/
H A Dtmp_subr.c193 u_longlong_t cap; in tmp_convnum() local
201 cap = (u_longlong_t)curproc->p_zone->zone_max_swap_ctl; in tmp_convnum()
202 if (cap == UINT64_MAX) { in tmp_convnum()
207 cap = TOTAL_AVAILABLE_SWAP; in tmp_convnum()
210 cap = btop(cap); in tmp_convnum()
213 num = ptob(cap * num / 100); in tmp_convnum()
/illumos-gate/usr/src/cmd/cron/
H A Dpermit.c99 FILE *cap; local
102 if ((cap = fopen(filename, "r")) == NULL)
104 while (fgets(line, UNAMESIZE, cap) != NULL) {
111 fclose(cap);
115 fclose(cap);
/illumos-gate/usr/src/uts/sun/io/dada/impl/
H A Ddcd_capabilities.c41 dcd_ifgetcap(struct dcd_address *ap, char *cap, int whom)
44 return (*A_TO_TRAN(ap)->tran_getcap)(ap, cap, whom);
48 dcd_ifsetcap(struct dcd_address *ap, char *cap, int value, int whom)
51 return (*A_TO_TRAN(ap)->tran_setcap)(ap, cap, value, whom);

12345678910>>...12