/illumos-gate/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rdsib_cm.c | 870 ibt_execution_mode_t mode, ibt_channel_hdl_t *chanhdl) 881 RDS_DPRINTF2("rds_open_rc_channel", "Enter: EP(%p) mode: %d", ep, mode); 927 mode, &ocargs, &ocrets); 955 rds_close_rc_channel(ibt_channel_hdl_t chanhdl, ibt_execution_mode_t mode) argument 960 chanhdl, mode); 962 ret = ibt_close_rc_channel(chanhdl, mode, NULL, 0, NULL, NULL, 0); 869 rds_open_rc_channel(rds_ep_t *ep, ibt_path_info_t *pinfo, ibt_execution_mode_t mode, ibt_channel_hdl_t *chanhdl) argument
|
/illumos-gate/usr/src/uts/common/ipp/meters/ |
H A D | tokenmtddi.c | 128 uint32_t mode; local 287 /* parse mode, if present */ 289 &mode)) != 0) { 292 cfg_parms->colour_aware = (mode == 0) ? B_FALSE : B_TRUE; 395 uint32_t bstats, mode; local 560 /* parse mode */ 561 if (nvlist_lookup_uint32(nvlp, TOKENMT_COLOUR_AWARE, &mode) == 0) { 562 cfg_parms->colour_aware = (mode == 0) ? B_FALSE : B_TRUE; 924 tokenmt0dbg(("tokenmt_info: error adding mode\n"));
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | fem.h | 151 int (*femop_open)(femarg_t *vf, int mode, cred_t *cr, \ 169 int (*femop_access)(femarg_t *vf, int mode, int flags, \ 176 vcexcl_t excl, int mode, vnode_t **vpp, \ 302 extern int vnext_open(femarg_t *vf, int mode, cred_t *cr, 318 extern int vnext_access(femarg_t *vf, int mode, int flags, cred_t *cr, 325 vcexcl_t excl, int mode, vnode_t **vpp, cred_t *cr,
|
/illumos-gate/usr/src/uts/common/fs/lofs/ |
H A D | lofs_vnops.c | 201 int mode, 209 if (mode & VWRITE) { 214 return (VOP_ACCESS(vp, mode, flags, cr, ct)); 668 int mode, 686 error = VOP_CREATE(realvp(dvp), nm, va, exclusive, mode, &vp, cr, flag, 712 if ((error = VOP_ACCESS(dvp, mode, 0, cr, NULL)) == 0) { 199 lo_access( vnode_t *vp, int mode, int flags, struct cred *cr, caller_context_t *ct) argument 663 lo_create( vnode_t *dvp, char *nm, struct vattr *va, enum vcexcl exclusive, int mode, vnode_t **vpp, struct cred *cr, int flag, caller_context_t *ct, vsecattr_t *vsecp) argument
|
/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/uts/common/inet/ipf/ |
H A D | ip_fil_solaris.c | 579 int iplioctl(dev, cmd, data, mode, cp, rp) 587 int mode; 601 dev, cmd, data, mode, cp, rp); 642 error = fr_ioctlswitch(unit, (caddr_t)data, cmd, mode, crgetuid(cp), 653 if (!(mode & FWRITE)) 679 if (!(mode & FWRITE)) { 689 if (!(mode & FWRITE)) 720 if (!(mode & FWRITE)) 729 if (!(mode & FWRITE)) 736 if (!(mode [all...] |
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_hba.c | 137 int32_t mode; local 253 mode = 0; 262 "MSI: %s: mode=%d types=0x%x nintrs=%d", s_type, 390 /* Set mode */ 393 mode = EMLXS_MSI_MODE8; 397 mode = EMLXS_MSI_MODE4; 401 mode = EMLXS_MSI_MODE2; 405 mode = EMLXS_MSI_MODE1; 415 hba->intr_mask = emlxs_msi_mask[mode]; 425 hba->intr_map[i] = emlxs_msi_map[mode][ [all...] |
H A D | emlxs_fcp.c | 915 /* Target mode only uses this routine for linkdowns */ 916 if ((port->mode == MODE_TARGET) && (scope != 0xffffffff) && 1011 if (port->mode == MODE_INITIATOR) { 1015 else if (port->mode == MODE_TARGET) { 1067 if (port->mode == MODE_INITIATOR) { 1071 else if (port->mode == MODE_TARGET) { 1095 if (port->mode == MODE_TARGET) { 1479 char mode[32]; local 1497 /* Check for mode */ 1498 if (port->mode [all...] |
/illumos-gate/usr/src/uts/common/fs/udfs/ |
H A D | udf_inode.c | 39 #include <sys/mode.h> 1560 mode_t mode; local 1575 mode = oip->i_type; 1576 if (mode == VFIFO) { 1579 if ((mode != VREG) && (mode != VDIR) && 1580 (!(mode == VLNK && length == 0))) { 1922 * Check mode permission on inode. Mode is READ, WRITE or EXEC. 1924 * is checked. The applicable mode bits are compared with the 1929 ud_iaccess(struct ud_inode *ip, int32_t mode, struc argument [all...] |
/illumos-gate/usr/src/cmd/format/ |
H A D | startup.c | 796 * Parse a SCSI mode page change specification. 810 int mode; local 836 datafile_error("Unsupported mode page '%s'", id); 869 mode = CHG_MODE_UNDEFINED; 872 mode = CHG_MODE_ABS; 876 mode = CHG_MODE_SET; 880 mode = CHG_MODE_CLR; 883 if (mode == CHG_MODE_UNDEFINED) { 923 cp->mode = mode; [all...] |
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_brand.c | 1048 s10_adjust_ace_mask(void *pair, size_t access_off, size_t pairsize, mode_t mode) argument 1055 if (mode & S_IROTH) 1059 if (mode & S_IWOTH) 1063 if (mode & S_IXOTH) 1198 * The mode shift, mode mask and option mask for acctctl have changed. The 1199 * mode is currently the top full byte and the option is the lower 3 full bytes. 1204 int mode = S10_AC_MODE(cmd); local 1207 switch (mode) { 1209 mode [all...] |
/illumos-gate/usr/src/uts/intel/io/agpgart/ |
H A D | agpgart.c | 1691 * mode. 1791 agp_v2_setup(uint32_t tstatus, uint32_t mstatus, uint32_t mode) argument 1799 * mode: the agp mode to be sent 1804 * set RQ to the min of mode and tstatus 1805 * if mode set a RQ larger than hardware can support, 1810 rq = mode & AGPSTAT_RQ_MASK; 1823 & (mode & AGPSTAT_SBA); 1827 & (mode & AGPSTAT_OVER4G); 1838 & (mode 1867 agp_v3_setup(uint32_t tstatus, uint32_t mstatus, uint32_t mode) argument 1960 agp_setup(agpgart_softstate_t *softstate, uint32_t mode) argument [all...] |
/illumos-gate/usr/src/cmd/dtrace/ |
H A D | dtrace.c | 157 "\t-q set quiet mode (only output explicitly traced data)\n" 161 "\t-v set verbose mode (report stability attributes, arguments)\n" 976 * we're not in quiet mode. 1169 int done = 0, mode = 0; local 1193 * affect our behavior mode (g_mode) and flags used for dtrace_open(). 1229 mode++; 1242 mode++; 1250 mode++; 1256 mode++; 1261 mode [all...] |
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/ |
H A D | lm_hw_access.c | 49 /*The NIG mirror is only used in VMChimney in MF/SI mode. 50 In this mode, we assume that the driver in the host OS loads 516 lm_status_t lm_gpio_write(struct _lm_device_t *pdev, u32_t pin_num, u32_t mode, u8_t port) argument 559 switch (mode) { 602 lm_status_t lm_gpio_mult_write(struct _lm_device_t *pdev, u8_t pins, u32_t mode) argument 621 switch (mode) { 641 DbgMessage(pdev, FATAL , "lm_gpio_mult_write: Invalid GPIO mode %d\n", mode); 665 lm_status_t lm_gpio_int_write(struct _lm_device_t *pdev, u32_t pin_num, u32_t mode, u8_t port) argument 693 switch (mode) [all...] |
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_kutil.c | 509 * locked has already been entered in RW_READER mode. It first tries using the 511 * and reentered in RW_WRITER mode. In that last case a window is opened during 830 krw_t mode) 835 if (mode == RW_WRITER) { 838 ASSERT(mode == RW_READER); 852 * mode. It will: 854 * 1) release the lock and save its current mode. 858 * 3) re-acquire the lock in the mode saved in (1). 865 krw_t mode; local 874 mode 828 smb_rwx_rwdowngrade( smb_rwx_t *rwx, krw_t mode) argument [all...] |
H A D | smb_fsops.c | 73 * Convert the access mask to the open mode (for use 77 * will also translate into an FREAD or FWRITE open mode 87 int mode = 0; local 91 mode |= FREAD; 95 mode |= FWRITE; 98 mode |= FAPPEND; 100 return (mode); 104 smb_fsop_open(smb_node_t *node, int mode, cred_t *cred) argument 111 return (smb_vop_open(&node->vp, mode, cred)); 115 smb_fsop_close(smb_node_t *node, int mode, cred_ argument [all...] |
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | socktpi.c | 970 * Use the same mode as in BSD. In particular this does 5782 sotpi_ioctl(struct sonode *so, int cmd, intptr_t arg, int mode, argument 5819 error = socktpi_plumbioctl(vp, cmd, arg, mode, cr, rvalp); 5830 return (strioctl(vp, cmd, arg, mode, U_TO_K, cr, rvalp)); 5843 (mode & (int)FKIOCTL))) 5860 (mode & (int)FKIOCTL))) 5871 error = so_flip_async(so, vp, mode, cr); 5881 (mode & (int)FKIOCTL))) 5888 error = so_set_siggrp(so, vp, pgrp, mode, cr); 5895 sizeof (pid_t), (mode 6015 socktpi_plumbioctl(struct vnode *vp, int cmd, intptr_t arg, int mode, struct cred *cr, int32_t *rvalp) argument [all...] |
H A D | socksubr.c | 1515 pr_state(uint_t state, uint_t mode) argument 1554 if (mode & SM_PRIV) 1556 if (mode & SM_ATOMIC) 1558 if (mode & SM_ADDR) 1560 if (mode & SM_CONNREQUIRED) 1563 if (mode & SM_FDPASSING) 1565 if (mode & SM_EXDATA) 1567 if (mode & SM_OPTDATA) 1569 if (mode & SM_BYTESTREAM)
|
/illumos-gate/usr/src/uts/common/io/sfe/ |
H A D | sfe.c | 687 uint32_t mode; local 692 DPRINTF(1, (CE_CONT, CONS "%s: %s: called, mc_count:%d, mode:0x%b", 719 mode = RFCR_AAB | RFCR_AAM | RFCR_AAP; 722 mode = RFCR_AAB | RFCR_AAM | RFCR_APM_DP83815; 728 mode = RFCR_AAB | RFCR_MHEN_DP83815 | RFCR_APM_DP83815; 741 mode = RFCR_AAB | RFCR_APM_DP83815 | 775 if (mode & RFCR_APAT_DP83815) { 793 if (mode & RFCR_MHEN_DP83815) { 805 /* Set rx filter mode and enable rx filter */ 806 OUTL(dp, RFCR, RFCR_RFEN | mode); 815 uint32_t mode; local [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/common/fac_prov_ipmi/ |
H A D | fac_prov_ipmi.c | 205 uint32_t mode; local 245 * Set the LED mode 248 &mode)) != 0) { 257 if (mode != TOPO_LED_STATE_OFF && 258 mode != TOPO_LED_STATE_ON) { 260 mode); 280 if (mode == TOPO_LED_STATE_ON) 288 topo_mod_dprintf(mod, "Failed to set LED mode for %s " 296 * Get the LED mode 310 mode [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...] |
/illumos-gate/usr/src/uts/common/io/mii/ |
H A D | mii.c | 580 uint32_t mode; local 622 if (iocp->ioc_count != sizeof (mode)) { 625 mode = mii_get_loopback(mh); 626 bcopy(&mode, mp->b_cont->b_rptr, sizeof (mode)); 634 if (iocp->ioc_count != sizeof (mode)) { 638 bcopy(mp->b_cont->b_rptr, &mode, sizeof (mode)); 639 rv = mii_set_loopback(mh, mode); 781 /* we don't support changing parameters while in loopback mode */ [all...] |
/illumos-gate/usr/src/cmd/audio/audioctl/ |
H A D | audioctl.c | 568 /* non-verbose mode prints don't display the enum values */ 1012 int mode; local 1014 mode = O_WRONLY | O_CREAT | O_EXCL; 1022 mode &= ~O_EXCL; 1023 mode |= O_TRUNC; 1043 if ((fd = open(fname, mode, 0666)) < 0) {
|
/illumos-gate/usr/src/uts/common/io/drm/ |
H A D | drm_sunmod.c | 422 drm_sun_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, argument 438 sizeof (struct vis_identifier), mode)) 452 mode, credp, rvalp, mstate->mis_gfxp); 456 retval = agpmaster_ioctl(dev, cmd, arg, mode, 505 retval = func(dp, arg, fpriv, mode);
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | sem.c | 875 int cvres, needundo, mode; local 976 mode = 0; 978 mode |= op->sem_op ? SEM_A : SEM_R; 986 if (error = ipcperm_access(&sp->sem_perm, mode, CRED())) 1009 if (error = ipcperm_access(&sp->sem_perm, mode, CRED()))
|