/illumos-gate/usr/src/uts/common/io/nvme/ |
H A D | nvme.c | 1814 nvme_shutdown(nvme_t *nvme, int mode, boolean_t quiesce) argument 1820 ASSERT(mode == NVME_CC_SHN_NORMAL || mode == NVME_CC_SHN_ABRUPT); 1823 cc.b.cc_shn = mode & 0x3;
|
/illumos-gate/usr/src/boot/sys/boot/sparc64/loader/ |
H A D | main.c | 324 map_phys(int mode, size_t size, vm_offset_t virt, vm_offset_t phys) argument 328 (uint32_t)(phys >> 32), virt, size, mode));
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_vnops.c | 1044 * we'd support changes to uid, gid, mode, and possibly va_flags. 1196 * to objects under this mount that the uid/gid/mode 1202 * of the fact that the uid/gid/mode is per mount, and 1215 smbfs_access_rwx(vfs_t *vfsp, int vtype, int mode, cred_t *cr) argument 1243 * (mode & VWRITE) && vn_is_readonly(vp) && !IS_DEVVP(vp)) 1245 if ((mode & VWRITE) && 1255 if ((mode & (VWRITE | VREAD | VEXEC)) && 1282 va.va_mode << shift, mode)); 1289 smbfs_accessx(void *arg, int mode, cred_t *cr) argument 1296 return (smbfs_access_rwx(vp->v_vfsp, vp->v_type, mode, c 1305 smbfs_access(vnode_t *vp, int mode, int flags, cred_t *cr, caller_context_t *ct) argument 1809 smbfs_create(vnode_t *dvp, char *nm, struct vattr *va, enum vcexcl exclusive, int mode, vnode_t **vpp, cred_t *cr, int lfaware, caller_context_t *ct, vsecattr_t *vsecp) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/ |
H A D | xattr.c | 119 #include <sys/mode.h> 151 xattr_file_access(vnode_t *vp, int mode, int flags, cred_t *cr, argument 156 if ((np->xattr_view == XATTR_VIEW_READONLY) && (mode & VWRITE)) 1167 xattr_dir_access(vnode_t *vp, int mode, int flags, cred_t *cr, argument 1173 if (mode & VWRITE) { 1183 error = VOP_ACCESS(realvp, mode, flags, cr, ct); 1193 int mode, vnode_t **vpp, cred_t *cr, int flag, caller_context_t *ct, 1211 error = VOP_CREATE(pvp, name, vap, excl, mode, vpp, cr, flag, 1192 xattr_dir_create(vnode_t *dvp, char *name, vattr_t *vap, vcexcl_t excl, int mode, vnode_t **vpp, cred_t *cr, int flag, caller_context_t *ct, vsecattr_t *vsecp) argument
|
/illumos-gate/usr/src/uts/common/io/axf/ |
H A D | axf_usbgem.c | 526 uint8_t mode; local 537 /* set promiscuous mode before changing it. */ 543 mode = RCR_AB; /* accept broadcast packets */ 548 /* promiscious mode implies all multicast and all physical */ 549 mode |= RCR_PRO; 552 mode |= RCR_AMALL; 558 mode |= RCR_AM; 568 * we use promiscious mode instead of changing the 571 mode |= RCR_PRO; 577 lp->rcr |= mode; [all...] |
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | nfs.c | 734 n_long ftype, mode; local 737 mode = ntohl(fp->fa.fa_mode); 738 mode |= nfs_stat_types[ftype & 7]; 740 sb->st_mode = mode; 1383 uint32_t ftype, mode; local 1386 mode = ntohl(fp->fa.fa_mode); 1387 mode |= nfs_stat_types[ftype & 7]; 1389 sb->st_mode = mode;
|
/illumos-gate/usr/src/cmd/auditreduce/ |
H A D | token.c | 508 * file mode adr_u_int (in octal) 515 int32_t mode; local 520 adrm_int32(adr, &mode, 1); 551 * mode adr_int32 (printed in octal) 564 int32_t mode; local 568 adrm_int32(adr, &mode, 1); 598 * mode adr_int32 (printed in octal) 611 int32_t mode; local 615 adrm_int32(adr, &mode, 1); 645 * mode adr_int3 658 int32_t mode; local 839 int32_t uid, gid, cuid, cgid, mode, seq; local [all...] |
/illumos-gate/usr/src/common/bzip2/ |
H A D | bzlib.c | 274 s->mode = BZ_M_RUNNING; 333 s->mode = BZ_M_RUNNING; 432 if (s->mode == BZ_M_RUNNING) { 511 if (s->mode == BZ_M_FINISHING && 516 if (s->mode == BZ_M_FLUSHING && 523 if (s->mode != BZ_M_RUNNING && s->avail_in_expect == 0) { 525 BZ2_compressBlock ( s, (Bool)(s->mode == BZ_M_FINISHING) ); 556 switch (s->mode) { 569 s->mode = BZ_M_FLUSHING; 575 s->mode 1558 bzopen_or_bzdopen( const char *path, int fd, const char *mode, int open_mode) argument [all...] |
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softAttributeUtil.c | 1285 soft_object_t *new_object, CK_ULONG mode, CK_KEY_TYPE key_type) 1480 if (mode == SOFT_CREATE_OBJ) { 1544 if ((mode == SOFT_CREATE_OBJ) && (keytype == (CK_KEY_TYPE)~0UL)) { 1549 if ((mode == SOFT_GEN_KEY) && (keytype == (CK_KEY_TYPE)~0UL)) { 1553 if ((mode == SOFT_GEN_KEY) && (keytype != key_type)) { 1568 if (mode == SOFT_CREATE_OBJ) { 1616 /* mode is SOFT_GEN_KEY */ 1657 if (mode == SOFT_CREATE_OBJ) { 1692 if (mode == SOFT_CREATE_OBJ) { 1726 if (mode 1284 soft_build_public_key_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, soft_object_t *new_object, CK_ULONG mode, CK_KEY_TYPE key_type) argument 1850 soft_build_private_key_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, soft_object_t *new_object, CK_ULONG mode, CK_KEY_TYPE key_type) argument 2518 soft_build_secret_key_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, soft_object_t *new_object, CK_ULONG mode, CK_ULONG key_len, CK_KEY_TYPE key_type) argument 3662 soft_build_key(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, soft_object_t *new_object, CK_OBJECT_CLASS class, CK_KEY_TYPE key_type, CK_ULONG key_len, CK_ULONG mode) argument [all...] |
H A D | softKeystoreUtil.c | 523 acquire_file_lock(int *fd, char *fname, mode_t mode) { argument 527 if ((mode == O_RDWR) || (mode == O_WRONLY)) { 558 *fd = open_nointr(fname, mode|O_NONBLOCK); 579 * Open the keystore description file in the specified mode. 584 open_and_lock_keystore_desc(mode_t mode, boolean_t do_create_keystore, argument 591 /* open the keystore description file in requested mode */ 593 fd = open_nointr(fname, mode|O_NONBLOCK); 599 fd = open_nointr(fname, mode|O_NONBLOCK); 613 if (acquire_file_lock(&fd, fname, mode) ! [all...] |
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_lgrp.c | 1182 * Opens group database with the given mode. 1185 smb_lgrp_db_open(int mode) argument 1190 db = sqlite_open(SMB_LGRP_DB_NAME, mode, &errmsg);
|
/illumos-gate/usr/src/lib/cfgadm_plugins/shp/common/ |
H A D | shp.c | 176 "\t-x led[=[fault|power|active|attn],mode=[on|off|blink]] ap_id [ap_id...]", 219 /* n */ "mode", 889 char *led, *mode; local 926 /* set mode */ 965 mode = PCIEHPC_PROP_VALUE_ON; 967 mode = PCIEHPC_PROP_VALUE_OFF; 969 mode = PCIEHPC_PROP_VALUE_BLINK; 975 led, mode); 980 /* print mode */ 981 DBG(1, ("Print mode\ [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/ |
H A D | cc_file.c | 278 int mode; /* needed for locking code */ member in struct:_krb5_fcc_data 1233 * If we are opening in NOUNLINK mode, we have to check that the 1348 krb5_fcc_open_file (krb5_context context, krb5_ccache id, int mode) argument 1372 switch(mode) { 1393 * If we are opening in NOUNLINK mode, check whether we are opening a 1397 if (mode == FCC_OPEN_AND_ERASE_NOUNLINK) { 1409 data->mode = mode; 1411 if (data->mode == FCC_OPEN_RDONLY) 1426 if (mode [all...] |
/illumos-gate/usr/src/lib/librsm/common/ |
H A D | rsmlib.c | 2490 rsm_barrier_mode_t *mode) 2498 *mode = seg->rsmseg_barmode; 2503 mode)); 2515 rsm_barrier_mode_t mode) 2522 if ((mode == RSM_BARRIER_MODE_IMPLICIT || 2523 mode == RSM_BARRIER_MODE_EXPLICIT)) { 2524 seg->rsmseg_barmode = mode; 2530 mode)); 2533 "bad barrier mode\n")); 2489 rsm_memseg_import_get_mode(rsm_memseg_import_handle_t im_memseg, rsm_barrier_mode_t *mode) argument 2514 rsm_memseg_import_set_mode(rsm_memseg_import_handle_t im_memseg, rsm_barrier_mode_t mode) argument
|
/illumos-gate/usr/src/lib/libshell/common/edit/ |
H A D | vi.c | 177 #define CONTROL -20 /* control mode */ 180 #define INPUT -30 /* input mode */ 181 #define INSERT -35 /* insert mode */ 347 /*** Set raw mode ***/ 508 /* so set raw mode */ 631 /*{ APPEND( char, mode ) 634 * mode = APPEND, shift chars right before appending 639 static void append(Vi_t *vp,int c, int mode) argument 645 if( mode==APPEND || (cur_virt==last_virt && last_virt>=0)) 738 /* return to APPEND/REPLACE mode */ 1054 cdelete(Vi_t *vp,register int nchars, int mode) argument 1101 del_line(register Vi_t *vp, int mode) argument 1141 delmotion(Vi_t *vp,int motion, int mode) argument 1314 getline(register Vi_t* vp,register int mode) argument 1806 refresh(register Vi_t* vp, int mode) argument 2127 search(register Vi_t* vp,register int mode) argument 2298 textmod(register Vi_t *vp,register int c, int mode) argument [all...] |
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | init.c | 802 static void vpath_set(char *str, int mode) argument 812 mount((mode?newp:""),oldp,FS3D_VIEW,0); 985 mode_t mode = nv_getn(np,nfp); local 986 return(fmtperm(mode)); 993 mode_t mode; local 998 mode = *(Sfdouble_t*)val; 1000 mode = *(double*)val; 1003 mode = strperm(val, &last,0); 1005 errormsg(SH_DICT,ERROR_exit(1),"%s: invalid mode string",val); 1006 nv_putv(np,(char*)&mode,NV_INTEGE [all...] |
H A D | io.c | 444 int mode = ((struct checkpt*)sh.jmplist)->mode; local 447 ((struct checkpt*)sh.jmplist)->mode = 0; 453 ((struct checkpt*)sh.jmplist)->mode = mode; 552 ((struct checkpt*)shp->jmplist)->mode = SH_JMPERREXIT; 669 mode_t mode; local 673 mode = (flags & O_CREAT) ? va_arg(ap, int) : 0; 737 if((mode=sh_iocheckfd(shp,fd))==IOCLOSE) 740 if(!(mode 911 io_usename(char *name, int *perm, int mode) argument 1587 sh_ioaccess(int fd,register int mode) argument 1888 int mode = LFLUSHO; local 1889 ioctl(sffileno(sfstderr),TIOCLBIC,&mode); local 1933 pipeexcept(Sfio_t* iop, int mode, void *data, Sfdisc_t* handle) argument 1951 register int mode; local 2146 subexcept(Sfio_t* sp,register int mode, void *data, Sfdisc_t* handle) argument 2327 sh_iogetiop(int fd, int mode) argument [all...] |
H A D | macro.c | 146 * If <mode> greater than 1 file expansion is performed if the result 148 * If <mode> negative, than expansion rules for assignment are applied. 150 char *sh_mactrim(Shell_t *shp, char *str, register int mode) argument 157 mp->arith = (mode==3); 160 mp->pattern = (mode==1||mode==2); 163 if(mode<0) 164 mp->assign = -mode; 175 if(mode==2) 179 if((mode 1031 register int dolg=0, mode=0; local [all...] |
H A D | name.c | 692 long mode, add=0; local 741 mode = (c=='.' || (flags&NV_NOADD))?add:NV_ADD; 743 mode |= HASH_NOSCOPE; 762 if(mode==0) 791 if(np || (np = nv_search(name,root,mode))) 894 mode &= ~HASH_NOSCOPE; 901 n = mode|nv_isarray(np); 902 if(!mode && (flags&NV_ARRAY) && ((c=sp[1])=='*' || c=='@') && sp[2]==']') 963 else if(c==0 && mode && (n=nv_aindex(np))>0) 985 n = mode|((flag 1154 long mode = ((flags&NV_NOADD)?0:NV_ADD); local 3181 hashlook(Dt_t *root, const char *name, int mode,int size) argument [all...] |
H A D | xec.c | 464 int sh_eval(register Sfio_t *iop, int mode) argument 478 if (mode & SH_TOPFUN) 480 mode ^= SH_TOPFUN; 488 if(mode&SH_READEVAL) 494 t = (Shnode_t*)sh_parse(shp,iop,(mode&(SH_READEVAL|SH_FUNEVAL))?mode&SH_FUNEVAL:SH_NL); 495 if(!(mode&SH_FUNEVAL) || !sfreserve(iop,0,0)) 497 if(!(mode&SH_READEVAL)) 500 mode &= ~SH_FUNEVAL; 502 mode 639 unset_instance(Namval_t *nq, Namval_t *node, struct Namref *nr,long mode) argument 1096 long mode; local 2758 long mode; local 2962 sigreset(int mode) argument [all...] |
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_standalone.c | 91 /* The flag indicating if libsldap is in the 'Standalone' mode. */ 100 * in the 'ldap_cachemgr' mode. It is stored by thread as 106 * the the 'ldap_cachemgr' mode indicator. 139 * will be switched to the 'ldap_cachemgr' mode. Within the thread libsldap 145 * the 'ldap_cachemgr' mode is thread private. 165 * This function sets the 'ldap_cachemgr' mode indication. 175 * This function unset the 'ldap_cachemgr' mode indication. 184 * This function checks if the 'ldap_cachemgr' mode indication is set. 196 * This function checks if the process runs in the 'Standalone' mode. 197 * In this mode libslda 203 int mode; local [all...] |
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | drive.c | 48 #include <sys/scsi/generic/mode.h> 1322 struct mode_header_g2 *mode; local 1324 mode = (struct mode_header_g2 *)buff; 1326 bdesclen = (int)convnum(mode->desclen, 2); 1403 /* group 1 mode page */ 1406 cdb->g1_count0 = 0xff; /* max length for mode page */ 1407 cdb->g1_count1 = 0xff; /* max length for mode page */ 1426 * Allocate a buffer for the mode sense headers 1427 * and mode sense data itself. 1474 * return the same data to the drive when issuing a mode selec [all...] |
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlwlan.c | 945 dladm_wlan_mode2str(dladm_wlan_mode_t *mode, char *buf) argument 947 return (dladm_wlan_val2str((uint_t)*mode, mode_vals, 1035 dladm_wlan_str2mode(const char *str, dladm_wlan_mode_t *mode) argument 1042 *mode = (dladm_wlan_mode_t)val;
|
/illumos-gate/usr/src/lib/libdscfg/common/ |
H A D | cfg.c | 1679 cfg_lock(CFGFILE *cfg, CFGLOCK mode) argument 1691 if (mode == CFG_UPGRADE) { 1692 mode = CFG_WRLOCK; 1695 if (mode == CFG_WRLOCK && (cfg->cf[0].cf_flag & CFG_RDONLY)) { 1703 if (mode != CFG_RDLOCK && mode != CFG_WRLOCK) 1707 if (mode == CFG_WRLOCK) 1721 (mode == CFG_RDLOCK))) { 1724 lk.l_type = (mode == CFG_RDLOCK ? F_RDLCK : F_WRLCK); 1745 if (mode 2258 cfg_location(char *location, int mode, char *altroot) argument [all...] |
/illumos-gate/usr/src/lib/libfru/libfru/ |
H A D | libfru.cc | 229 lock_container(lock_mode_t mode, fru_nodehdl_t handle) argument 250 switch (mode) { 1424 int mode) 1480 if ((mode == UPDATE_MODE) && (abs_path_flg != 1)) { 1412 get_payload(fru_nodehdl_t container, const char *seg_name, int instance, const char *field_path, PathDef **pathDef, Ancestor **ancestors, Ancestor **correct, int *tagInstance, int *instLeft, uint8_t **payload, size_t *payloadLen, int mode) argument
|