Home
last modified time | relevance | path

Searched refs:rdwr_pa (Results 1 – 1 of 1) sorted by relevance

/linux-2.4.37.9/drivers/i2c/
Di2c-dev.c189 struct i2c_msg *rdwr_pa; in i2cdev_ioctl() local
231 rdwr_pa = (struct i2c_msg *) in i2cdev_ioctl()
235 if (rdwr_pa == NULL) return -ENOMEM; in i2cdev_ioctl()
237 if (copy_from_user(rdwr_pa, rdwr_arg.msgs, in i2cdev_ioctl()
239 kfree(rdwr_pa); in i2cdev_ioctl()
246 kfree(rdwr_pa); in i2cdev_ioctl()
254 if (rdwr_pa[i].len > 8192) { in i2cdev_ioctl()
258 data_ptrs[i] = rdwr_pa[i].buf; in i2cdev_ioctl()
259 rdwr_pa[i].buf = kmalloc(rdwr_pa[i].len, GFP_KERNEL); in i2cdev_ioctl()
260 if(rdwr_pa[i].buf == NULL) in i2cdev_ioctl()
[all …]