Lines Matching defs:tif
189 tusb_interface_t tif;
199 if (copy_from_user(&tif, (void *)l, sizeof(tif))) {
207 if (tif.in_len > 0) {
208 inparms = (caddr_t *) kmalloc(tif.in_len, GFP_KERNEL);
213 rc = copy_from_user(inparms, tif.in_data, tif.in_len);
219 if (tif.out_len > 0) {
220 outparms = (caddr_t *) kmalloc(tif.out_len, GFP_KERNEL);
258 tif.out_rc = rc;
261 /* if outparms then copy outparms into tif.out_data */
263 if (copy_to_user(tif.out_data, outparms, tif.out_len)) {
269 /* copy tif structure into l so that can be used by user program */
270 if (copy_to_user((void *)l, &tif, sizeof(tif))) {
271 printk("tpci: Unsuccessful copy_to_user of tif\n");