Lines Matching refs:dioctl

185 	divert_ioctl dioctl;  in isdn_divert_ioctl_unlocked()  local
191 if (copy_from_user(&dioctl, (void __user *) arg, sizeof(dioctl))) in isdn_divert_ioctl_unlocked()
196 dioctl.drv_version = DIVERT_IIOC_VERSION; /* set version */ in isdn_divert_ioctl_unlocked()
200 if ((dioctl.getid.drvid = divert_if.name_to_drv(dioctl.getid.drvnam)) < 0) in isdn_divert_ioctl_unlocked()
205 cp = divert_if.drv_to_name(dioctl.getid.drvid); in isdn_divert_ioctl_unlocked()
210 strcpy(dioctl.getid.drvnam, cp); in isdn_divert_ioctl_unlocked()
214 if (!(rulep = getruleptr(dioctl.getsetrule.ruleidx))) in isdn_divert_ioctl_unlocked()
216 dioctl.getsetrule.rule = *rulep; /* copy data */ in isdn_divert_ioctl_unlocked()
220 if (!(rulep = getruleptr(dioctl.getsetrule.ruleidx))) in isdn_divert_ioctl_unlocked()
223 *rulep = dioctl.getsetrule.rule; /* copy data */ in isdn_divert_ioctl_unlocked()
229 return (insertrule(dioctl.getsetrule.ruleidx, &dioctl.getsetrule.rule)); in isdn_divert_ioctl_unlocked()
233 return (deleterule(dioctl.getsetrule.ruleidx)); in isdn_divert_ioctl_unlocked()
237 return (deflect_extern_action(dioctl.fwd_ctrl.subcmd, in isdn_divert_ioctl_unlocked()
238 dioctl.fwd_ctrl.callid, in isdn_divert_ioctl_unlocked()
239 dioctl.fwd_ctrl.to_nr)); in isdn_divert_ioctl_unlocked()
244 if (!divert_if.drv_to_name(dioctl.cf_ctrl.drvid)) in isdn_divert_ioctl_unlocked()
246 if (strnlen(dioctl.cf_ctrl.msn, sizeof(dioctl.cf_ctrl.msn)) == in isdn_divert_ioctl_unlocked()
247 sizeof(dioctl.cf_ctrl.msn)) in isdn_divert_ioctl_unlocked()
249 if (strnlen(dioctl.cf_ctrl.fwd_nr, sizeof(dioctl.cf_ctrl.fwd_nr)) == in isdn_divert_ioctl_unlocked()
250 sizeof(dioctl.cf_ctrl.fwd_nr)) in isdn_divert_ioctl_unlocked()
252 if ((i = cf_command(dioctl.cf_ctrl.drvid, in isdn_divert_ioctl_unlocked()
254 dioctl.cf_ctrl.cfproc, in isdn_divert_ioctl_unlocked()
255 dioctl.cf_ctrl.msn, in isdn_divert_ioctl_unlocked()
256 dioctl.cf_ctrl.service, in isdn_divert_ioctl_unlocked()
257 dioctl.cf_ctrl.fwd_nr, in isdn_divert_ioctl_unlocked()
258 &dioctl.cf_ctrl.procid))) in isdn_divert_ioctl_unlocked()
265 return copy_to_user((void __user *)arg, &dioctl, sizeof(dioctl)) ? -EFAULT : 0; in isdn_divert_ioctl_unlocked()