Lines Matching defs:parms
1601 rdc_config_t parms;
1633 /* set up parms structure */
1634 parms.command = RDC_CMD_DISABLE;
1635 (void) strncpy(parms.rdc_set->primary.intf, phost, MAX_RDC_HOST_SIZE);
1636 (void) strncpy(parms.rdc_set->primary.file, pvol, NSC_MAXPATH);
1637 (void) strncpy(parms.rdc_set->secondary.intf, shost, MAX_RDC_HOST_SIZE);
1638 (void) strncpy(parms.rdc_set->secondary.file, svol, NSC_MAXPATH);
1640 parms.options = RDC_OPT_FORCE_DISABLE;
1653 if (RDC_IOCTL(RDC_CONFIG, &parms, 0, 0, 0, 0, ustatus) != SPCS_S_OK)
2774 rdc_config_t parms;
2777 parms.command = RDC_CMD_STATUS;
2778 parms.rdc_set->netconfig = NULL;
2779 (void) strncpy(parms.rdc_set->primary.intf, fromhost,
2781 (void) strncpy(parms.rdc_set->secondary.intf, tohost,
2783 (void) strncpy(parms.rdc_set->primary.file, fromfile,
2785 (void) strncpy(parms.rdc_set->secondary.file, tofile,
2788 ret = RDC_IOCTL(RDC_CONFIG, &parms,
2794 (void) strncpy(orig_fbmp, parms.rdc_set->primary.bitmap,
2797 parms.rdc_set->secondary.bitmap, NSC_MAXPATH);
3762 rdc_config_t parms;
3767 parms.command = RDC_CMD_TUNABLE;
3769 p = &parms.rdc_set[0].primary;
3773 p = &parms.rdc_set[0].secondary;
3777 parms.rdc_set[0].autosync = 1;
3778 parms.rdc_set[0].maxqfbas = -1;
3779 parms.rdc_set[0].maxqitems = -1;
3780 parms.rdc_set[0].asyncthr = -1;
3781 parms.rdc_set[0].netconfig = NULL;
3783 if ((RDC_IOCTL(RDC_CONFIG, &parms, NULL, 0, 0, 0, ustat)) !=
3802 rdc_config_t parms;
3829 parms.command = RDC_CMD_STATUS;
3830 parms.rdc_set->netconfig = NULL;
3831 (void) strncpy(parms.rdc_set->primary.intf, fromhost,
3833 (void) strncpy(parms.rdc_set->secondary.intf, tohost,
3835 (void) strncpy(parms.rdc_set->primary.file, fromfile,
3837 (void) strncpy(parms.rdc_set->secondary.file, tofile,
3840 ret = RDC_IOCTL(RDC_CONFIG, &parms,
3846 (void) strncpy(orig_fbmp, parms.rdc_set->primary.bitmap,
3848 (void) strncpy(orig_tbmp, parms.rdc_set->secondary.bitmap,
3850 (void) strncpy(orig_diskq, parms.rdc_set->disk_queue,
3859 (!(parms.rdc_set->flags & RDC_LOGGING))) {
3887 parms.rdc_set->secondary.addr.len = svaddr.len;
3888 parms.rdc_set->secondary.addr.maxlen =
3890 parms.rdc_set->secondary.addr.buf =
3916 parms.rdc_set->primary.addr.len = svaddr.len;
3917 parms.rdc_set->primary.addr.maxlen = svaddr.maxlen;
3918 parms.rdc_set->primary.addr.buf = (void *)svaddr.buf;
3934 parms.rdc_set->netconfig = &knconf;
3936 parms.rdc_set->netconfig = NULL;
3956 (void) strncpy(parms.rdc_set->primary.intf, fromhost,
3958 (void) strncpy(parms.rdc_set->primary.file, fromfile, NSC_MAXPATH);
3959 (void) strncpy(parms.rdc_set->primary.bitmap, frombitmap, NSC_MAXPATH);
3961 (void) strncpy(parms.rdc_set->secondary.intf, tohost,
3963 (void) strncpy(parms.rdc_set->secondary.file, tofile, NSC_MAXPATH);
3964 (void) strncpy(parms.rdc_set->secondary.bitmap, tobitmap, NSC_MAXPATH);
3967 parms.rdc_set->group_name[0] = 0;
3969 (void) strncpy(parms.rdc_set->group_name, group, NSC_MAXPATH);
3979 parms.rdc_set->disk_queue[0] = 0;
3981 (void) strncpy(parms.rdc_set->disk_queue, diskqueue,
3984 parms.rdc_set->maxqfbas = maxqfbas;
3985 parms.rdc_set->maxqitems = maxqitems;
3986 parms.rdc_set->asyncthr = asyncthr;
3992 parms.rdc_set->setid = get_new_cfg_setid(cfg);
3993 if (parms.rdc_set->setid <= 0) {
4004 parms.rdc_set->setid);
4013 parms.rdc_set->setid = get_cfg_setid(cfg, ctag, tohost, tofile);
4014 if (parms.rdc_set->setid <= 0) {
4025 parms.rdc_set->autosync = AUTOSYNC;
4029 parms.rdc_set->syshostid = (int32_t)gethostid();
4031 parms.command = 0;
4032 parms.options = iflag;
4033 parms.command = flag;
4036 parms.options |= RDC_OPT_ASYNC;
4038 parms.options |= RDC_OPT_SYNC;
4041 parms.options |= RDC_OPT_REVERSE;
4043 parms.options |= RDC_OPT_FORWARD;
4051 parms.options |= RDC_OPT_PRIMARY;
4053 parms.rdc_set->direct_file[0] = 0; /* no directfile */
4055 (void) strncpy(parms.rdc_set->direct_file, directfile,
4058 parms.options |= RDC_OPT_SECONDARY;
4059 parms.rdc_set->direct_file[0] = 0; /* no fcal directio */
4063 (parms.options & RDC_OPT_SECONDARY)) {
4074 parms.command = RDC_CMD_STATUS;
4075 ret = RDC_IOCTL(RDC_CONFIG, &parms, NULL, 0, 0, 0, ustatus);
4077 !(parms.rdc_set->flags & RDC_LOGGING)) {
4084 program, rdc_decode_flag(flag, parms.options),
4087 parms.command = RDC_CMD_COPY;
4093 parms.rdc_set->autosync = AUTOSYNC_ON;
4098 parms.rdc_set->autosync = AUTOSYNC_OFF;
4119 parms.rdc_set->autosync = AUTOSYNC_OFF;
4121 parms.command = RDC_CMD_STATUS;
4122 ret = RDC_IOCTL(RDC_CONFIG, &parms, NULL, 0, 0, 0,
4131 parms.rdc_set->autosync = autosync;
4132 parms.rdc_set->maxqfbas = maxqfbas;
4133 parms.rdc_set->maxqitems = maxqitems;
4134 parms.rdc_set->asyncthr = asyncthr;
4140 if (parms.rdc_set->flags & RDC_LOGGING) {
4141 parms.rdc_set->autosync = AUTOSYNC;
4143 parms.rdc_set->autosync = AUTOSYNC_ON;
4146 parms.command = flag;
4151 parms.command = RDC_CMD_TUNABLE;
4152 ret = RDC_IOCTL(RDC_CONFIG, &parms, NULL, 0, 0, 0, ustatus);
4161 parms.rdc_set->autosync = AUTOSYNC;
4162 parms.command = flag;
4166 ret = RDC_IOCTL(RDC_CONFIG, &parms, NULL, 0, 0, 0, ustatus);
4176 program, rdc_decode_flag(flag, parms.options),
4183 parms.options));
4187 program, rdc_decode_flag(flag, parms.options),
4199 parms.command = RDC_CMD_STATUS;
4200 if (RDC_IOCTL(RDC_CONFIG, &parms, NULL, 0, 0, 0, ustatus) ==
4211 * parms contains the kernel picture, and we know
4280 if (parms.rdc_set->flags & RDC_LOGGING) {
4284 if (parms.rdc_set->flags & RDC_ASYNC) {
4300 if (*parms.rdc_set->direct_file) {
4302 parms.rdc_set->direct_file, NSC_MAXPATH);
4320 if (*parms.rdc_set->group_name) {
4321 (void) strncpy(group, parms.rdc_set->group_name,
4340 if (*parms.rdc_set->disk_queue) {
4342 parms.rdc_set->disk_queue, NSC_MAXPATH);
4354 parms.rdc_set->primary.bitmap, NSC_MAXPATH);
4363 parms.rdc_set->secondary.bitmap, NSC_MAXPATH);
4386 program, rdc_decode_flag(flag, parms.options),
4413 program, rdc_decode_flag(flag, parms.options),
4420 rdc_decode_flag(flag, parms.options));
4428 (void) fprintf(stderr, "flags 0x%x\n", parms.rdc_set->flags |
4429 parms.rdc_set->sync_flags | parms.rdc_set->bmap_flags);
4433 program, rdc_decode_flag(flag, parms.options),
4443 if (parms.options & RDC_OPT_PRIMARY) {
4492 parms.command = RDC_CMD_DISABLE;
4493 ret = RDC_IOCTL(RDC_CONFIG, &parms,
4505 rdc_decode_flag(parms.command,
4506 parms.options),
4538 parms.command = RDC_CMD_DISABLE;
4539 ret = RDC_IOCTL(RDC_CONFIG, &parms,
4551 rdc_decode_flag(parms.command,
4552 parms.options),
4596 parms.command = RDC_CMD_DISABLE;
4597 ret = RDC_IOCTL(RDC_CONFIG, &parms,
4609 rdc_decode_flag(parms.command,
4610 parms.options),
4675 if (parms.options & RDC_OPT_PRIMARY) {
4699 parms.command = RDC_CMD_DISABLE;
4700 ret = RDC_IOCTL(RDC_CONFIG, &parms,
4712 rdc_decode_flag(parms.command,
4713 parms.options),
4747 parms.command = RDC_CMD_DISABLE;
4748 ret = RDC_IOCTL(RDC_CONFIG, &parms,
4760 rdc_decode_flag(parms.command,
4761 parms.options),
4796 parms.command = RDC_CMD_DISABLE;
4797 ret = RDC_IOCTL(RDC_CONFIG, &parms,
4809 rdc_decode_flag(parms.command,
4810 parms.options),