• Home
  • Raw
  • Download

Lines Matching refs:error

180 	int error = 0;  in fetch_stats()  local
186 error = copy_to_user(arg, &tmp, sizeof(tmp)); in fetch_stats()
187 if (zero && !error) { in fetch_stats()
192 return error ? -EFAULT : 0; in fetch_stats()
198 int error, len, number, size = 0; in atm_dev_ioctl() local
246 error = ((copy_to_user(buf, tmp_buf, size)) || in atm_dev_ioctl()
250 return error; in atm_dev_ioctl()
291 error = -EFAULT; in atm_dev_ioctl()
298 error = -EFAULT; in atm_dev_ioctl()
308 error = -EEXIST; in atm_dev_ioctl()
318 error = -EPERM; in atm_dev_ioctl()
322 error = -EFAULT; in atm_dev_ioctl()
326 error = ESI_LEN; in atm_dev_ioctl()
331 error = -EPERM; in atm_dev_ioctl()
337 error = fetch_stats(dev, buf, cmd == ATM_GETSTATZ); in atm_dev_ioctl()
338 if (error) in atm_dev_ioctl()
344 error = -EFAULT; in atm_dev_ioctl()
351 error = -EFAULT; in atm_dev_ioctl()
357 error = -EPERM; in atm_dev_ioctl()
370 error = -EPERM; in atm_dev_ioctl()
375 error = -EFAULT; in atm_dev_ioctl()
379 error = atm_add_addr(dev, &addr, in atm_dev_ioctl()
383 error = atm_del_addr(dev, &addr, in atm_dev_ioctl()
390 error = atm_get_addr(dev, buf, len, in atm_dev_ioctl()
393 if (error < 0) in atm_dev_ioctl()
395 size = error; in atm_dev_ioctl()
398 error = put_user(size, sioc_len) ? -EFAULT : 0; in atm_dev_ioctl()
404 error = -EINVAL; in atm_dev_ioctl()
414 error = -EPERM; in atm_dev_ioctl()
422 error = -EINVAL; in atm_dev_ioctl()
429 error = -EINVAL; in atm_dev_ioctl()
435 error = (size == -ENOIOCTLCMD ? -ENOTTY : size); in atm_dev_ioctl()
441 error = put_user(size, sioc_len) ? -EFAULT : 0; in atm_dev_ioctl()
443 error = 0; in atm_dev_ioctl()
446 return error; in atm_dev_ioctl()