Lines Matching refs:mod
160 unsigned char max, struct module *mod) in do_usb_entry() argument
221 buf_printf(&mod->dev_table_buf, in do_usb_entry()
264 static void do_usb_entry_multi(void *symval, struct module *mod) in do_usb_entry_multi() argument
311 do_usb_entry(symval, devlo, ndigits, clo, chi, max, mod); in do_usb_entry_multi()
319 ndigits, clo, max, max, mod); in do_usb_entry_multi()
325 ndigits, 0x0, chi, max, mod); in do_usb_entry_multi()
330 struct module *mod) in do_usb_table() argument
335 device_id_check(mod->name, "usb", size, id_size, symval); in do_usb_table()
341 do_usb_entry_multi(symval + i, mod); in do_usb_table()
344 static void do_of_entry_multi(void *symval, struct module *mod) in do_of_entry_multi() argument
366 buf_printf(&mod->dev_table_buf, "MODULE_ALIAS(\"%s\");\n", alias); in do_of_entry_multi()
369 buf_printf(&mod->dev_table_buf, "MODULE_ALIAS(\"%s\");\n", alias); in do_of_entry_multi()
373 struct module *mod) in do_of_table() argument
378 device_id_check(mod->name, "of", size, id_size, symval); in do_of_table()
384 do_of_entry_multi(symval + i, mod); in do_of_table()
573 struct module *mod) in do_pnp_device_entry() argument
579 device_id_check(mod->name, "pnp", size, id_size, symval); in do_pnp_device_entry()
586 buf_printf(&mod->dev_table_buf, in do_pnp_device_entry()
592 buf_printf(&mod->dev_table_buf, in do_pnp_device_entry()
599 struct module *mod) in do_pnp_card_entries() argument
605 device_id_check(mod->name, "pnp", size, id_size, symval); in do_pnp_card_entries()
644 buf_printf(&mod->dev_table_buf, in do_pnp_card_entries()
650 buf_printf(&mod->dev_table_buf, in do_pnp_card_entries()
1384 struct module *mod) in do_table() argument
1389 device_id_check(mod->name, device_id, size, id_size, symval); in do_table()
1394 if (do_entry(mod->name, symval+i, alias)) { in do_table()
1395 buf_printf(&mod->dev_table_buf, in do_table()
1450 void handle_moddevtable(struct module *mod, struct elf_info *info, in handle_moddevtable() argument
1492 do_usb_table(symval, sym->st_size, mod); in handle_moddevtable()
1494 do_of_table(symval, sym->st_size, mod); in handle_moddevtable()
1496 do_pnp_device_entry(symval, sym->st_size, mod); in handle_moddevtable()
1498 do_pnp_card_entries(symval, sym->st_size, mod); in handle_moddevtable()
1507 p->device_id, p->do_entry, mod); in handle_moddevtable()
1516 void add_moddevtable(struct buffer *buf, struct module *mod) in add_moddevtable() argument
1519 buf_write(buf, mod->dev_table_buf.p, mod->dev_table_buf.pos); in add_moddevtable()
1520 free(mod->dev_table_buf.p); in add_moddevtable()