Home
last modified time | relevance | path

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

12345678910>>...12

/illumos-gate/usr/src/uts/common/disp/
H A Dcpucaps.c264 cpucap_t *cap = kmem_zalloc(sizeof (cpucap_t), KM_SLEEP); in cap_alloc() local
266 DISP_LOCK_INIT(&cap->cap_usagelock); in cap_alloc()
267 waitq_init(&cap->cap_waitq); in cap_alloc()
269 return (cap); in cap_alloc()
276 cap_free(cpucap_t *cap) in cap_free() argument
278 if (cap == NULL) in cap_free()
284 ASSERT(!list_link_active(&cap->cap_link)); in cap_free()
285 ASSERT(cap->cap_value == 0); in cap_free()
286 ASSERT(!DISP_LOCK_HELD(&cap->cap_usagelock)); in cap_free()
288 waitq_fini(&cap->cap_waitq); in cap_free()
[all …]
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dcap.c132 } cap; member
169 if (argstate->cap.sec->sec_shdr->sh_info == 0) { in argstate_add_str()
173 EC_WORD(argstate->cap.sec->sec_shndx), in argstate_add_str()
174 argstate->cap.sec->sec_name); in argstate_add_str()
179 argstate->cap.sec->sec_shdr->sh_info, 0); in argstate_add_str()
197 while ((ndx > 0) && (argstate->cap.data[ndx].c_tag == CA_SUNW_NULL)) in cap_group_extents()
199 while ((ndx > 0) && (argstate->cap.data[ndx - 1].c_tag != CA_SUNW_NULL)) in cap_group_extents()
208 while (((ndx + 1) < argstate->cap.num) && in cap_group_extents()
209 (argstate->cap.data[ndx].c_tag != CA_SUNW_NULL)) in cap_group_extents()
211 while (((ndx + 1) < argstate->cap.num) && in cap_group_extents()
[all …]
/illumos-gate/usr/src/stand/lib/fs/common/
H A Dcache.c96 get_cache(cache_t *cap, head_t *chp) in get_cache() argument
111 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()
126 cap->link[Prev] = (cache_t *)chp->aged; in get_cache()
127 cap->link[Next] = chp->aged[Frst]; in get_cache()
128 chp->aged[Frst]->link[Prev] = cap; in get_cache()
129 chp->aged[Frst] = cap; in get_cache()
134 cap = cap->link[Hash+Next]; in get_cache()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dmime.c56 Cap_t* cap; member
107 dropcap(Cap_t* cap) in dropcap() argument
111 while (att = cap->att.next) in dropcap()
113 cap->att.next = att->next; in dropcap()
116 free(cap); in dropcap()
127 Cap_t* cap; in drop() local
129 while (cap = ent->cap) in drop()
131 ent->cap = cap->next; in drop()
132 dropcap(cap); in drop()
145 Cap_t* cap; in mimeset() local
[all …]
/illumos-gate/usr/src/cmd/tput/
H A Dtput.c66 static int outputcap(char *cap, int argc, char **argv);
68 static int getpad(char *cap);
85 char *cap, std_input = FALSE; in main() local
158 cap = argv[optind++]; in main()
160 if (strcmp(cap, "init") == 0) in main()
162 else if (strcmp(cap, "reset") == 0) in main()
164 else if (strcmp(cap, "longname") == 0) in main()
167 exit(outputcap(cap, argc, argv)); in main()
189 cap = v[0]; in main()
192 if (strcmp(cap, "init") == 0) { in main()
[all …]
/illumos-gate/usr/src/cmd/cdrw/
H A Dwrite_image.c101 off_t cap; in write_image() local
114 if ((cap = get_last_possible_lba(target)) <= 0) { in write_image()
115 if ((cap = read_format_capacity(target->d_fd, in write_image()
120 cap = MAX_CD_BLKS; in write_image()
129 cap = read_format_capacity(target->d_fd, in write_image()
134 if (cap < MAX_CD_BLKS) in write_image()
135 cap = MAX_DVD_BLKS; in write_image()
139 cap = (cap + 1 - ti->ti_start_address) * 2048; in write_image()
141 cap *= 2048 + 1; in write_image()
143 if (size > cap) { in write_image()
[all …]
H A Ddumpinfo.c44 size_t cap = 0; in info() local
84 cap = get_last_possible_lba(target); in info()
91 if (cap == 0) in info()
92 cap = read_format_capacity(target->d_fd, &bsize); in info()
99 cap *= target->d_blksize; in info()
103 ((double)cap/ONE_MB_BASE2)); in info()
111 "%.2f GB "), ((double)cap/ONE_GB_BASE10)); in info()
114 cap /= target->d_blksize; in info()
115 (void) printf(gettext("(%u blocks)\n"), (uint_t)cap); in info()
H A Ddevice.c94 uchar_t *cap; in get_device() local
157 cap = (uchar_t *)my_zalloc(18); in get_device()
159 if (get_mode_page(fd, 0x2A, 0, 8, cap)) { in get_device()
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()
168 if (cap[3] & 0x20) in get_device()
173 free(cap); in get_device()
195 cap = (uchar_t *)my_zalloc(8); in get_device()
[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.c177 xdr_rmtcallargs(XDR *xdrs, struct p_rmtcallargs *cap) in xdr_rmtcallargs() argument
184 if (!xdr_u_int(xdrs, (uint_t *)&(cap->prog)) || in xdr_rmtcallargs()
185 !xdr_u_int(xdrs, (uint_t *)&(cap->vers)) || in xdr_rmtcallargs()
186 !xdr_u_int(xdrs, (uint_t *)&(cap->proc))) in xdr_rmtcallargs()
189 IXDR_PUT_U_INT32(buf, cap->prog); in xdr_rmtcallargs()
190 IXDR_PUT_U_INT32(buf, cap->vers); in xdr_rmtcallargs()
191 IXDR_PUT_U_INT32(buf, cap->proc); in xdr_rmtcallargs()
198 if (!xdr_u_int(xdrs, &(cap->args.args_len))) in xdr_rmtcallargs()
201 if (!(*cap->xdr_args)(xdrs, cap->args.args_val)) in xdr_rmtcallargs()
204 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/uts/intel/io/vmm/
H A Dx86.c68 vm_cpuid_capability(struct vm *vm, int vcpuid, enum vm_cpuid_capability cap) in vm_cpuid_capability() argument
72 KASSERT(cap > 0 && cap < VCC_LAST, ("%s: invalid vm_cpu_capability %d", in vm_cpuid_capability()
73 __func__, cap)); in vm_cpuid_capability()
79 switch (cap) { in vm_cpuid_capability()
104 panic("%s: unknown vm_cpu_capability %d", __func__, cap); in vm_cpuid_capability()
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dtgetflag.c46 tgetflag(cap) in tgetflag() argument
47 const char *cap; in tgetflag()
53 __m_trace("tgetflag(%p = \"%.2s\")", cap, cap);
57 if (strcmp(*p, cap) == 0) {
H A Dtgetnum.c46 tgetnum(cap) in tgetnum() argument
47 const char *cap; in tgetnum()
53 __m_trace("tgetnum(%p = \"%.2s\")", cap, cap);
57 if (strcmp(*p, cap) == 0) {
H A Dtigetfla.c46 tigetflag(cap) in tigetflag() argument
47 const char *cap; in tigetflag()
53 __m_trace("tigetflag(%p = \"%s\")", cap, cap);
57 if (strcmp(*p, cap) == 0) {
H A Dtigetnum.c46 tigetnum(cap) in tigetnum() argument
47 const char *cap; in tigetnum()
53 __m_trace("tigetnum(%p = \"%s\")", cap, cap);
57 if (strcmp(*p, cap) == 0) {
H A Dtigetstr.c46 tigetstr(cap) in tigetstr() argument
47 const char *cap; in tigetstr()
53 __m_trace("tigetstr(%p = \"%s\")", cap, cap);
57 if (strcmp(*p, cap) == 0) {
H A Dtgetstr.c52 tgetstr(cap, area) in tgetstr() argument
53 const char *cap; in tgetstr()
59 __m_trace("tgetstr(%p = \"%.2s\", %p)", cap, cap, area);
63 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.c188 static int ds_loopback_set_svc(ds_svc_t *svc, ds_capability_t *cap,
949 if (strcmp(svc->cap.svc_id, svc_id) != 0) in ds_find_svc_by_id_port()
1072 match = negotiate_version(svc->cap.nvers, svc->cap.vers, in ds_handle_reg_req()
1134 DS_EOL, PORTID(port), svc->cap.svc_id, in ds_handle_reg_req()
1152 DS_EOL, PORTID(port), svc->cap.svc_id, new_major); in ds_handle_reg_req()
1199 ver = &(svc->cap.vers[svc->ver_idx]); in ds_handle_reg_ack()
1223 DS_EOL, PORTID(port), svc->cap.svc_id, svc->ver.major, in ds_handle_reg_ack()
1355 "invalid state (%d)" DS_EOL, PORTID(port), svc->cap.svc_id, in ds_handle_reg_nack()
1362 " for %s" DS_EOL, PORTID(port), svc->cap.svc_id); in ds_handle_reg_nack()
1373 DS_EOL, PORTID(port), svc->cap.svc_id); in ds_handle_reg_nack()
[all …]
/illumos-gate/usr/src/test/elf-tests/tests/capabilities/
H A Dobjcap.ksh222 typeset cap="$3"
246 typeset cap="$3"
252 elfedit -e "$cap $cmd" "$input" "$input.edit" >/dev/null 2>/dev/null
257 warn "elfedit -e $cap $cmd $input worked, expected failure"
259 pass "elfedit -e $cap $cmd $input failed correctly"
265 warn "elfedit -e $cap $cmd $input failed with $ret, expected success"
269 ret=$(elfedit -e "$cap -o num" "$input.edit")
271 warn "failed to extract hwcap after elfedit -e $cap $cmd $input"
275 warn "elfedit -e $cap $cmd $input had wrong output " \
278 pass "elfedit -e $cap $cmd $input"
/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/uts/common/fs/nfs/
H A Dnfs4x_dispatch.c119 COMPOUND4args *cap; in rfs4x_dispatch() local
125 cap = (COMPOUND4args *)ap; in rfs4x_dispatch()
131 error = verify_compound_args(cap); in rfs4x_dispatch()
133 rfs4_err_resp(cap, rbp, error); in rfs4x_dispatch()
137 error = rfs4x_sequence_prep(cap, rbp, &cs); in rfs4x_dispatch()
140 rfs4_err_resp(cap, rbp, error); in rfs4x_dispatch()
146 rfs4_compound(cap, rbp, &cs, req, &rpcerr); in rfs4x_dispatch()
/illumos-gate/usr/src/test/bhyve-tests/tests/vmm/
H A Ddefault_capabs.c39 enum vm_cap_type cap; in check_caps() member
42 { .cap = VM_CAP_HALT_EXIT, .enabled = true, }, in check_caps()
43 { .cap = VM_CAP_PAUSE_EXIT, .enabled = false, } in check_caps()
47 const char *capname = vm_capability_type2name(checks[i].cap); in check_caps()
50 if (vm_get_capability(vcpu, checks[i].cap, &val) != 0) { in check_caps()

12345678910>>...12