Lines Matching defs:tif
242 tmod_interface_t tif;
255 * between user and kernel space, using the tif
260 if (copy_from_user(&tif, (void *)l, sizeof(tif))) {
268 if (tif.in_len > 0) {
269 inparms = (caddr_t *) kmalloc(tif.in_len, GFP_KERNEL);
274 rc = copy_from_user(inparms, tif.in_data, tif.in_len);
280 if (tif.out_len > 0) {
281 outparms = (caddr_t *) kmalloc(tif.out_len, GFP_KERNEL);
370 tif.out_rc = rc;
374 * setup the rest of tif pointer for returning to
378 /* if outparms then copy outparms into tif.out_data */
380 if (copy_to_user(tif.out_data, outparms, tif.out_len)) {
387 /* copy tif structure into l so that can be used by user program */
388 if (copy_to_user((void *)l, &tif, sizeof(tif))) {
389 printk("tbase: Unsuccessful copy_to_user of tif\n");