Searched refs:dioctl (Results 1 - 1 of 1) sorted by relevance

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

Completed in 80 milliseconds