Lines Matching refs:buf
198 void __user *buf; in atm_dev_ioctl() local
215 buf = compat_ptr(cbuf); in atm_dev_ioctl()
220 if (get_user(buf, &iobuf->buffer)) in atm_dev_ioctl()
243 error = ((copy_to_user(buf, tmp_buf, size)) || in atm_dev_ioctl()
260 buf = compat_ptr(carg); in atm_dev_ioctl()
271 if (get_user(buf, &sioc->arg)) in atm_dev_ioctl()
287 if (copy_to_user(buf, dev->type, size)) { in atm_dev_ioctl()
294 if (copy_to_user(buf, dev->esi, size)) { in atm_dev_ioctl()
318 if (copy_from_user(esi, buf, ESI_LEN)) { in atm_dev_ioctl()
334 error = fetch_stats(dev, buf, cmd == ATM_GETSTATZ); in atm_dev_ioctl()
340 if (copy_to_user(buf, &dev->ci_range, size)) { in atm_dev_ioctl()
347 if (copy_to_user(buf, &dev->link_rate, size)) { in atm_dev_ioctl()
371 if (copy_from_user(&addr, buf, sizeof(addr))) { in atm_dev_ioctl()
387 error = atm_get_addr(dev, buf, len, in atm_dev_ioctl()
398 if (__ATM_LM_XTRMT((int) (unsigned long) buf) && in atm_dev_ioctl()
399 __ATM_LM_XTLOC((int) (unsigned long) buf) > in atm_dev_ioctl()
400 __ATM_LM_XTRMT((int) (unsigned long) buf)) { in atm_dev_ioctl()
422 size = dev->ops->compat_ioctl(dev, cmd, buf); in atm_dev_ioctl()
429 size = dev->ops->ioctl(dev, cmd, buf); in atm_dev_ioctl()