/illumos-gate/usr/src/uts/sun4u/io/pci/ |
H A D | pci_tools.c | 114 static int pcitool_intr_get_max_ino(uint32_t *arg, int mode); 115 static int pcitool_get_intr(dev_info_t *dip, void *arg, int mode, pci_t *pci_p); 116 static int pcitool_set_intr(dev_info_t *dip, void *arg, int mode, pci_t *pci_p); 253 pcitool_intr_info(dev_info_t *dip, void *arg, int mode) argument 259 if (ddi_copyin(arg, &intr_info, sizeof (pcitool_intr_info_t), mode) != 272 if (ddi_copyout(&intr_info, arg, sizeof (pcitool_intr_info_t), mode) != 290 pcitool_get_intr(dev_info_t *dip, void *arg, int mode, pci_t *pci_p) argument 306 if (ddi_copyin(arg, &partial_iget, PCITOOL_IGET_SIZE(0), mode) != 342 if (ddi_copyin(arg, iget, iget_kmem_alloc_size, mode) != 393 PCITOOL_IGET_SIZE(num_devs_ret), mode); 412 pcitool_set_intr(dev_info_t *dip, void *arg, int mode, pci_t *pci_p) argument 512 pcitool_intr_admn(dev_t dev, void *arg, int cmd, int mode) argument 622 pcitool_bus_reg_ops(dev_t dev, void *arg, int cmd, int mode) argument 834 pcitool_dev_reg_ops(dev_t dev, void *arg, int cmd, int mode) argument [all...] |
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | sbbc.c | 1123 sbbc_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, argument 1152 sizeof (struct ssc_sbbc_regio), mode)) { 1192 sizeof (struct ssc_sbbc_regio), mode)) { 1219 sbbcregs.len, mode)) {
|
H A D | todds1287.c | 455 ds1287_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, argument 507 sizeof (int), mode) != 0) {
|
/illumos-gate/usr/src/uts/sun4u/montecarlo/io/ |
H A D | pcf8574_nct.c | 486 * Set the current operating mode to NORMAL_MODE. 578 * To begin with we set the mode to I2C_RD. 874 call_copyin(caddr_t arg, struct pcf8574_unit *unitp, int mode) argument 883 sizeof (i2c_transfer_t), mode) != DDI_SUCCESS) { 907 i2ct.i2c_wlen, mode) != DDI_SUCCESS) { 916 call_copyout(caddr_t arg, struct pcf8574_unit *unitp, int mode) argument 942 ((intptr_t)arg + uskip), 3*sizeof (uint16_t), mode) 955 sizeof (i2c_transfer_t), mode) != DDI_SUCCESS) { 964 i2ctp->i2c_rlen - i2ctp->i2c_r_resid, mode) 976 int mode, cred_ 975 pcf8574_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, int *rvalp) argument [all...] |
H A D | pcf8591_nct.c | 401 call_copyin(caddr_t arg, struct pcf8591_unit *unitp, int mode) argument 410 sizeof (i2c_transfer_t), mode) != DDI_SUCCESS) { 434 i2ct.i2c_wlen, mode) != DDI_SUCCESS) { 443 call_copyout(caddr_t arg, struct pcf8591_unit *unitp, int mode) argument 470 ((intptr_t)arg + uskip), 3*sizeof (uint16_t), mode) 483 sizeof (i2c_transfer_t), mode) != DDI_SUCCESS) { 493 i2c_actlen, mode) != DDI_SUCCESS) { 515 pcf8591_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, argument 548 (caddr_t)arg, sizeof (uint8_t), mode) != DDI_SUCCESS) { 558 sizeof (uint8_t), mode) ! [all...] |
/illumos-gate/usr/src/uts/sun4u/montecarlo/io/ttymux_dacf/ |
H A D | ttymux_dacf.c | 423 * mode the device will support. 470 find_obp_consoles(sm_mux_state_t *ms, io_mode_t mode) argument 478 if (mode == FORINPUT) 480 else if (mode == FOROUTPUT) 508 cn->sm_mode |= mode; 510 if (mode == FORINPUT) 794 io_mode_t *mode) 816 *mode = 0; 819 *mode = FORINPUT; 821 *mode | 793 validate_reservation(dacf_infohdl_t di, dev_info_t **dip, dev_t *dev, io_mode_t *mode) argument 845 io_mode_t mode; local [all...] |
/illumos-gate/usr/src/uts/intel/io/heci/ |
H A D | heci_main.c | 111 static int heci_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, 1243 heci_ioctl(dev_t devt, int cmd, intptr_t arg, int mode, cred_t *cr, int *rval) argument 1277 if (ddi_copyin(u_msg, &k_msg, sizeof (k_msg), mode)) { 1282 if (ddi_model_convert_from(mode & FMODELS) == DDI_MODEL_ILP32) { 1294 file_ext, mode); 1300 file, mode); 1305 rets = heci_ioctl_wd(dev, if_num, k_msg, file_ext, mode); 1310 rets = heci_ioctl_bypass_wd(dev, if_num, k_msg, file_ext, mode);
|
/illumos-gate/usr/src/uts/intel/io/pci/ |
H A D | pci_pci.c | 981 ppb_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, argument 995 return (pcie_ioctl(ppb_p->dip, dev, cmd, arg, mode, credp, 998 return ((pcihp_get_cb_ops())->cb_ioctl(dev, cmd, arg, mode, credp,
|
/illumos-gate/usr/src/uts/i86xpv/io/ |
H A D | privcmd_hcall.c | 1178 do_privcmd_hypercall(void *uarg, int mode, cred_t *cr, int *rval) argument 1183 if (ddi_copyin(uarg, hc, sizeof (*hc), mode))
|
/illumos-gate/usr/src/uts/intel/io/agpgart/ |
H A D | agptarget.c | 77 off_t gm_regoff; /* mode selection register offset */ 626 agp_target_ioctl(dev_t dev, int cmd, intptr_t data, int mode, argument 634 if (!(mode & FKIOCTL)) { 659 if (ddi_copyout(&type, (void *)data, sizeof (int), mode)) { 677 sizeof (size_t), mode)) { 703 sizeof (i_agp_info_t), mode)) { 723 sizeof (uint32_t), mode)) { 736 sizeof (uint32_t), mode)) {
|
/illumos-gate/usr/src/uts/intel/io/agpmaster/ |
H A D | agpmaster.c | 416 agpmaster_ioctl(dev_t dev, int cmd, intptr_t data, int mode, cred_t *cred, argument 433 if (!(mode & FKIOCTL)) { 439 (void *)data, sizeof (int), mode)) 443 if (!(mode & FKIOCTL)) { 452 sizeof (uint32_t), mode)) 460 if (!(mode & FKIOCTL)) { 478 sizeof (agp_info_t), mode)) 482 if (!(mode & FKIOCTL)) { 489 if (ddi_copyin((void *)data, &base, sizeof (uint32_t), mode)) 498 if (!(mode [all...] |
/illumos-gate/usr/src/cmd/logadm/ |
H A D | main.c | 133 "(default is: -t '$file.$n', owner/group/mode taken from log file)\n"\ 139 " -m mode new empty log file mode\n"\ 567 /* absurdly long buffer lengths for holding user/group/mode strings */ 584 const char *mode; local 708 /* determine owner, group, mode for empty log file */ 724 mode = opts_optarg(opts, "m"); 728 mode = modebuf; 734 docmd(opts, NULL, Chmod, mode, fname, NULL);
|
/illumos-gate/usr/src/cmd/lp/model/ |
H A D | lp.tell.c | 161 int mode = 0; local 276 printf( "start lp.tell for %s key %d mode %s %s\n", 324 mode = atoi(ptr3+1); 328 printer,trayNum,paperType,mode,pagesPrinted); 333 paperType, mode, pagesPrinted);
|
/illumos-gate/usr/src/cmd/lvm/metassist/controller/ |
H A D | metassist.c | 98 static int write_temp_file(char *text, mode_t mode, char **file); 1254 * @param mode 1266 mode_t mode, 1298 if (mode != 0) { 1299 if (chmod(*file, mode)) { 1264 write_temp_file( char *text, mode_t mode, char **file) argument
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_domain.c | 640 * Lock the cache with the specified mode. 649 smb_dcache_lock(int mode) argument 659 if (mode == SMB_DCACHE_RDLOCK) { 680 if (mode == SMB_DCACHE_RDLOCK)
|
/illumos-gate/usr/src/uts/common/cpr/ |
H A D | cpr_misc.c | 45 #define cpr_open(path, mode, vpp) (vn_open(path, UIO_SYSSPACE, \ 46 mode, 0600, vpp, CRCREAT, 0)) 749 cpr_open_deffile(int mode, vnode_t **vpp) argument 753 if (error = cpr_open(cpr_default_path, mode, vpp)) 811 * If the cpr default file is invalid, then we must not be in reusable mode 812 * if it is valid, it tells us our mode
|
/illumos-gate/usr/src/uts/common/fs/bootfs/ |
H A D | bootfs_vnops.c | 151 bootfs_access(vnode_t *vp, int mode, int flags, cred_t *cr, argument 164 bpn->bvn_attr.va_mode << shift, mode));
|
/illumos-gate/usr/src/uts/common/fs/fifofs/ |
H A D | fifovnops.c | 726 * check to make sure we are still in fast mode 799 * FIFO is in streams mode.. let the stream head handle it 835 * Note: SW_SNDZERO can't be set in fast mode 869 * Note: we will be in streams mode if SW_SNDZERO is set 892 * if we are not in fast mode, let streams handle it 947 * check to make sure we're still in fast mode 1005 * allowed to go from fast mode to stream mode. 1013 * check to make sure we're still in fast mode 1038 * from fast mode t 1115 fifo_ioctl(vnode_t *vp, int cmd, intptr_t arg, int mode, cred_t *cr, int *rvalp, caller_context_t *ct) argument 1130 fifo_fastioctl(vnode_t *vp, int cmd, intptr_t arg, int mode, cred_t *cr, int *rvalp) argument 1388 fifo_strioctl(vnode_t *vp, int cmd, intptr_t arg, int mode, cred_t *cr, int *rvalp) argument 1551 fifo_access(vnode_t *vp, int mode, int flags, cred_t *crp, caller_context_t *ct) argument 1565 fifo_create(struct vnode *dvp, char *name, vattr_t *vap, enum vcexcl excl, int mode, struct vnode **vpp, struct cred *cr, int flag, caller_context_t *ct, vsecattr_t *vsecp) argument [all...] |
/illumos-gate/usr/src/cmd/format/ |
H A D | hardware_structs.h | 104 struct chg_list *dtype_chglist; /* mode sense/select */ 195 * SCSI mode sense page, before issuing a mode select on that 201 int pageno; /* mode sense page no. */ 203 int mode; /* see below */ member in struct:chg_list
|
/illumos-gate/usr/src/cmd/ptools/pfiles/ |
H A D | pfiles.c | 222 mode_t mode; local 227 mode = info->pr_mode; 229 switch (mode & S_IFMT) { 241 (void) sprintf(s, "0x%.4x ", (int)mode & S_IFMT); 245 (void) printf("%4d: %s mode:0%.3o", info->pr_fd, s, 246 (int)mode & ~S_IFMT); 251 if ((mode & S_IFMT) == S_IFPORT) { 270 (mode & (S_IFMT|S_ENFMT|S_IXGRP)) == (S_IFREG|S_ENFMT), 271 (mode & S_IFMT) == S_IFDOOR); 276 if ((mode [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | physmem.c | 760 physmem_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, argument
|
/illumos-gate/usr/src/uts/common/xen/io/ |
H A D | xpvtap.c | 56 static int xpvtap_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, 444 xpvtap_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *cred, argument
|
/illumos-gate/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc.c | 64 static int rdcioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *crp, 296 cmn_err(CE_NOTE, "!SNDR bitmap mode override"); 302 "!SNDR: unknown bitmap mode %d - autodetecting mode", 467 convert_ioctl_args(int cmd, intptr_t arg, int mode, _rdc_ioctl_t *args) argument 471 if (ddi_copyin((void *)arg, &args32, sizeof (_rdc_ioctl32_t), mode)) 529 rdc_status_copy32(const void *arg, void *usetp, size_t size, int mode) argument 567 return (ddi_copyout(&set32, usetp, size, mode)); 575 rdcstatus(_rdc_ioctl_t *args, int mode) argument 586 if (ddi_model_convert_from(mode 668 rdcioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *crp, int *rvp) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/dev/ |
H A D | sdev_zvolops.c | 816 int mode, struct vnode **vpp, struct cred *cred, int flag, 829 else if (vp->v_type == VDIR && (mode & VWRITE)) 832 error = VOP_ACCESS(vp, mode, 0, cred, ct); 815 devzvol_create(struct vnode *dvp, char *nm, struct vattr *vap, vcexcl_t excl, int mode, struct vnode **vpp, struct cred *cred, int flag, caller_context_t *ct, vsecattr_t *vsecp) argument
|
/illumos-gate/usr/src/uts/common/io/arn/ |
H A D | arn_calib.c | 799 enum wireless_mode mode = ath9k_hw_chan2wmode(ah, chan); local 800 nf = NOISE_FLOOR[mode];
|