Lines Matching refs:t

380 	struct parport_sysctl_table *t;  in parport_proc_register()  local
383 t = kmalloc(sizeof(*t), GFP_KERNEL); in parport_proc_register()
384 if (t == NULL) in parport_proc_register()
386 memcpy(t, &parport_sysctl_template, sizeof(*t)); in parport_proc_register()
388 t->device_dir[0].extra1 = port; in parport_proc_register()
391 t->vars[i].extra1 = port; in parport_proc_register()
393 t->vars[0].data = &port->spintime; in parport_proc_register()
394 t->vars[5].child = t->device_dir; in parport_proc_register()
397 t->vars[6 + i].extra2 = &port->probe_info[i]; in parport_proc_register()
399 t->port_dir[0].procname = port->name; in parport_proc_register()
400 t->port_dir[0].ctl_name = port->number + 1; /* nb 0 isn't legal here */ in parport_proc_register()
402 t->port_dir[0].child = t->vars; in parport_proc_register()
403 t->parport_dir[0].child = t->port_dir; in parport_proc_register()
404 t->dev_dir[0].child = t->parport_dir; in parport_proc_register()
406 t->sysctl_header = register_sysctl_table(t->dev_dir, 0); in parport_proc_register()
407 if (t->sysctl_header == NULL) { in parport_proc_register()
408 kfree(t); in parport_proc_register()
409 t = NULL; in parport_proc_register()
411 port->sysctl_table = t; in parport_proc_register()
418 struct parport_sysctl_table *t = port->sysctl_table; in parport_proc_unregister() local
420 unregister_sysctl_table(t->sysctl_header); in parport_proc_unregister()
421 kfree(t); in parport_proc_unregister()
428 struct parport_device_sysctl_table *t; in parport_device_proc_register() local
431 t = kmalloc(sizeof(*t), GFP_KERNEL); in parport_device_proc_register()
432 if (t == NULL) in parport_device_proc_register()
434 memcpy(t, &parport_device_sysctl_template, sizeof(*t)); in parport_device_proc_register()
436 t->dev_dir[0].child = t->parport_dir; in parport_device_proc_register()
437 t->parport_dir[0].child = t->port_dir; in parport_device_proc_register()
438 t->port_dir[0].procname = port->name; in parport_device_proc_register()
439 t->port_dir[0].ctl_name = port->number + 1; /* nb 0 isn't legal here */ in parport_device_proc_register()
440 t->port_dir[0].child = t->devices_root_dir; in parport_device_proc_register()
441 t->devices_root_dir[0].child = t->device_dir; in parport_device_proc_register()
445 t->device_dir[0].ctl_name = in parport_device_proc_register()
453 t->device_dir[0].ctl_name = 1; in parport_device_proc_register()
457 t->device_dir[0].procname = device->name; in parport_device_proc_register()
458 t->device_dir[0].extra1 = device; in parport_device_proc_register()
459 t->device_dir[0].child = t->vars; in parport_device_proc_register()
460 t->vars[0].data = &device->timeslice; in parport_device_proc_register()
462 t->sysctl_header = register_sysctl_table(t->dev_dir, 0); in parport_device_proc_register()
463 if (t->sysctl_header == NULL) { in parport_device_proc_register()
464 kfree(t); in parport_device_proc_register()
465 t = NULL; in parport_device_proc_register()
467 device->sysctl_table = t; in parport_device_proc_register()
474 struct parport_device_sysctl_table *t = device->sysctl_table; in parport_device_proc_unregister() local
476 unregister_sysctl_table(t->sysctl_header); in parport_device_proc_unregister()
477 kfree(t); in parport_device_proc_unregister()