Lines Matching refs:t
477 struct parport_sysctl_table *t; in parport_proc_register() local
480 t = kmemdup(&parport_sysctl_template, sizeof(*t), GFP_KERNEL); in parport_proc_register()
481 if (t == NULL) in parport_proc_register()
484 t->device_dir[0].extra1 = port; in parport_proc_register()
487 t->vars[i].extra1 = port; in parport_proc_register()
489 t->vars[0].data = &port->spintime; in parport_proc_register()
490 t->vars[5].child = t->device_dir; in parport_proc_register()
493 t->vars[6 + i].extra2 = &port->probe_info[i]; in parport_proc_register()
495 t->port_dir[0].procname = port->name; in parport_proc_register()
497 t->port_dir[0].child = t->vars; in parport_proc_register()
498 t->parport_dir[0].child = t->port_dir; in parport_proc_register()
499 t->dev_dir[0].child = t->parport_dir; in parport_proc_register()
501 t->sysctl_header = register_sysctl_table(t->dev_dir); in parport_proc_register()
502 if (t->sysctl_header == NULL) { in parport_proc_register()
503 kfree(t); in parport_proc_register()
504 t = NULL; in parport_proc_register()
506 port->sysctl_table = t; in parport_proc_register()
513 struct parport_sysctl_table *t = port->sysctl_table; in parport_proc_unregister() local
515 unregister_sysctl_table(t->sysctl_header); in parport_proc_unregister()
516 kfree(t); in parport_proc_unregister()
523 struct parport_device_sysctl_table *t; in parport_device_proc_register() local
526 t = kmemdup(&parport_device_sysctl_template, sizeof(*t), GFP_KERNEL); in parport_device_proc_register()
527 if (t == NULL) in parport_device_proc_register()
530 t->dev_dir[0].child = t->parport_dir; in parport_device_proc_register()
531 t->parport_dir[0].child = t->port_dir; in parport_device_proc_register()
532 t->port_dir[0].procname = port->name; in parport_device_proc_register()
533 t->port_dir[0].child = t->devices_root_dir; in parport_device_proc_register()
534 t->devices_root_dir[0].child = t->device_dir; in parport_device_proc_register()
536 t->device_dir[0].procname = device->name; in parport_device_proc_register()
537 t->device_dir[0].child = t->vars; in parport_device_proc_register()
538 t->vars[0].data = &device->timeslice; in parport_device_proc_register()
540 t->sysctl_header = register_sysctl_table(t->dev_dir); in parport_device_proc_register()
541 if (t->sysctl_header == NULL) { in parport_device_proc_register()
542 kfree(t); in parport_device_proc_register()
543 t = NULL; in parport_device_proc_register()
545 device->sysctl_table = t; in parport_device_proc_register()
552 struct parport_device_sysctl_table *t = device->sysctl_table; in parport_device_proc_unregister() local
554 unregister_sysctl_table(t->sysctl_header); in parport_device_proc_unregister()
555 kfree(t); in parport_device_proc_unregister()