• Home
  • Raw
  • Download

Lines Matching refs:alias

59 	int (*do_entry)(const char *filename, void *symval, char *alias);
162 char alias[500]; in do_usb_entry() local
175 strcpy(alias, "usb:"); in do_usb_entry()
176 ADD(alias, "v", match_flags&USB_DEVICE_ID_MATCH_VENDOR, in do_usb_entry()
178 ADD(alias, "p", match_flags&USB_DEVICE_ID_MATCH_PRODUCT, in do_usb_entry()
181 strcat(alias, "d"); in do_usb_entry()
183 sprintf(alias + strlen(alias), "%0*X", in do_usb_entry()
186 sprintf(alias + strlen(alias), "%X", range_lo); in do_usb_entry()
189 sprintf(alias + strlen(alias), in do_usb_entry()
194 sprintf(alias + strlen(alias), in do_usb_entry()
197 sprintf(alias + strlen(alias), in do_usb_entry()
203 strcat(alias, "*"); in do_usb_entry()
205 ADD(alias, "dc", match_flags&USB_DEVICE_ID_MATCH_DEV_CLASS, in do_usb_entry()
207 ADD(alias, "dsc", match_flags&USB_DEVICE_ID_MATCH_DEV_SUBCLASS, in do_usb_entry()
209 ADD(alias, "dp", match_flags&USB_DEVICE_ID_MATCH_DEV_PROTOCOL, in do_usb_entry()
211 ADD(alias, "ic", match_flags&USB_DEVICE_ID_MATCH_INT_CLASS, in do_usb_entry()
213 ADD(alias, "isc", match_flags&USB_DEVICE_ID_MATCH_INT_SUBCLASS, in do_usb_entry()
215 ADD(alias, "ip", match_flags&USB_DEVICE_ID_MATCH_INT_PROTOCOL, in do_usb_entry()
217 ADD(alias, "in", match_flags&USB_DEVICE_ID_MATCH_INT_NUMBER, in do_usb_entry()
220 add_wildcard(alias); in do_usb_entry()
222 "MODULE_ALIAS(\"%s\");\n", alias); in do_usb_entry()
346 char alias[500]; in do_of_entry_multi() local
354 len = sprintf(alias, "of:N%sT%s", (*name)[0] ? *name : "*", in do_of_entry_multi()
358 sprintf(&alias[len], "%sC%s", (*type)[0] ? "*" : "", in do_of_entry_multi()
362 for (tmp = alias; tmp && *tmp; tmp++) in do_of_entry_multi()
366 buf_printf(&mod->dev_table_buf, "MODULE_ALIAS(\"%s\");\n", alias); in do_of_entry_multi()
367 strcat(alias, "C"); in do_of_entry_multi()
368 add_wildcard(alias); in do_of_entry_multi()
369 buf_printf(&mod->dev_table_buf, "MODULE_ALIAS(\"%s\");\n", alias); in do_of_entry_multi()
389 void *symval, char *alias) in do_hid_entry() argument
396 sprintf(alias, "hid:"); in do_hid_entry()
397 ADD(alias, "b", bus != HID_BUS_ANY, bus); in do_hid_entry()
398 ADD(alias, "g", group != HID_GROUP_ANY, group); in do_hid_entry()
399 ADD(alias, "v", vendor != HID_ANY_ID, vendor); in do_hid_entry()
400 ADD(alias, "p", product != HID_ANY_ID, product); in do_hid_entry()
407 void *symval, char *alias) in do_ieee1394_entry() argument
415 strcpy(alias, "ieee1394:"); in do_ieee1394_entry()
416 ADD(alias, "ven", match_flags & IEEE1394_MATCH_VENDOR_ID, in do_ieee1394_entry()
418 ADD(alias, "mo", match_flags & IEEE1394_MATCH_MODEL_ID, in do_ieee1394_entry()
420 ADD(alias, "sp", match_flags & IEEE1394_MATCH_SPECIFIER_ID, in do_ieee1394_entry()
422 ADD(alias, "ver", match_flags & IEEE1394_MATCH_VERSION, in do_ieee1394_entry()
425 add_wildcard(alias); in do_ieee1394_entry()
431 void *symval, char *alias) in do_pci_entry() argument
444 strcpy(alias, "pci:"); in do_pci_entry()
445 ADD(alias, "v", vendor != PCI_ANY_ID, vendor); in do_pci_entry()
446 ADD(alias, "d", device != PCI_ANY_ID, device); in do_pci_entry()
447 ADD(alias, "sv", subvendor != PCI_ANY_ID, subvendor); in do_pci_entry()
448 ADD(alias, "sd", subdevice != PCI_ANY_ID, subdevice); in do_pci_entry()
465 ADD(alias, "bc", baseclass_mask == 0xFF, baseclass); in do_pci_entry()
466 ADD(alias, "sc", subclass_mask == 0xFF, subclass); in do_pci_entry()
467 ADD(alias, "i", interface_mask == 0xFF, interface); in do_pci_entry()
468 add_wildcard(alias); in do_pci_entry()
474 void *symval, char *alias) in do_ccw_entry() argument
482 strcpy(alias, "ccw:"); in do_ccw_entry()
483 ADD(alias, "t", match_flags&CCW_DEVICE_ID_MATCH_CU_TYPE, in do_ccw_entry()
485 ADD(alias, "m", match_flags&CCW_DEVICE_ID_MATCH_CU_MODEL, in do_ccw_entry()
487 ADD(alias, "dt", match_flags&CCW_DEVICE_ID_MATCH_DEVICE_TYPE, in do_ccw_entry()
489 ADD(alias, "dm", match_flags&CCW_DEVICE_ID_MATCH_DEVICE_MODEL, in do_ccw_entry()
491 add_wildcard(alias); in do_ccw_entry()
497 void *symval, char *alias) in do_ap_entry() argument
501 sprintf(alias, "ap:t%02X*", dev_type); in do_ap_entry()
507 void *symval, char *alias) in do_css_entry() argument
511 sprintf(alias, "css:t%01X", type); in do_css_entry()
517 void *symval, char *alias) in do_serio_entry() argument
524 strcpy(alias, "serio:"); in do_serio_entry()
525 ADD(alias, "ty", type != SERIO_ANY, type); in do_serio_entry()
526 ADD(alias, "pr", proto != SERIO_ANY, proto); in do_serio_entry()
527 ADD(alias, "id", id != SERIO_ANY, id); in do_serio_entry()
528 ADD(alias, "ex", extra != SERIO_ANY, extra); in do_serio_entry()
530 add_wildcard(alias); in do_serio_entry()
542 void *symval, char *alias) in do_acpi_entry() argument
549 sprintf(alias, "acpi*:%s:*", *id); in do_acpi_entry()
554 sprintf(&alias[cnt], "acpi*:"); in do_acpi_entry()
560 sprintf(&alias[cnt], "%02x", in do_acpi_entry()
563 sprintf(&alias[cnt], "??"); in do_acpi_entry()
566 sprintf(&alias[cnt], ":*"); in do_acpi_entry()
659 void *symval, char *alias) in do_pcmcia_entry() argument
674 strcpy(alias, "pcmcia:"); in do_pcmcia_entry()
675 ADD(alias, "m", match_flags & PCMCIA_DEV_ID_MATCH_MANF_ID, in do_pcmcia_entry()
677 ADD(alias, "c", match_flags & PCMCIA_DEV_ID_MATCH_CARD_ID, in do_pcmcia_entry()
679 ADD(alias, "f", match_flags & PCMCIA_DEV_ID_MATCH_FUNC_ID, in do_pcmcia_entry()
681 ADD(alias, "fn", match_flags & PCMCIA_DEV_ID_MATCH_FUNCTION, in do_pcmcia_entry()
683 ADD(alias, "pfn", match_flags & PCMCIA_DEV_ID_MATCH_DEVICE_NO, in do_pcmcia_entry()
685 ADD(alias, "pa", match_flags & PCMCIA_DEV_ID_MATCH_PROD_ID1, (*prod_id_hash)[0]); in do_pcmcia_entry()
686 ADD(alias, "pb", match_flags & PCMCIA_DEV_ID_MATCH_PROD_ID2, (*prod_id_hash)[1]); in do_pcmcia_entry()
687 ADD(alias, "pc", match_flags & PCMCIA_DEV_ID_MATCH_PROD_ID3, (*prod_id_hash)[2]); in do_pcmcia_entry()
688 ADD(alias, "pd", match_flags & PCMCIA_DEV_ID_MATCH_PROD_ID4, (*prod_id_hash)[3]); in do_pcmcia_entry()
690 add_wildcard(alias); in do_pcmcia_entry()
695 char *alias) in do_vio_entry() argument
701 sprintf(alias, "vio:T%sS%s", (*type)[0] ? *type : "*", in do_vio_entry()
705 for (tmp = alias; tmp && *tmp; tmp++) in do_vio_entry()
709 add_wildcard(alias); in do_vio_entry()
715 static void do_input(char *alias, in do_input() argument
724 sprintf(alias + strlen(alias), "%X,*", i); in do_input()
729 char *alias) in do_input_entry() argument
746 sprintf(alias, "input:"); in do_input_entry()
748 ADD(alias, "b", flags & INPUT_DEVICE_ID_MATCH_BUS, bustype); in do_input_entry()
749 ADD(alias, "v", flags & INPUT_DEVICE_ID_MATCH_VENDOR, vendor); in do_input_entry()
750 ADD(alias, "p", flags & INPUT_DEVICE_ID_MATCH_PRODUCT, product); in do_input_entry()
751 ADD(alias, "e", flags & INPUT_DEVICE_ID_MATCH_VERSION, version); in do_input_entry()
753 sprintf(alias + strlen(alias), "-e*"); in do_input_entry()
755 do_input(alias, *evbit, 0, INPUT_DEVICE_ID_EV_MAX); in do_input_entry()
756 sprintf(alias + strlen(alias), "k*"); in do_input_entry()
758 do_input(alias, *keybit, in do_input_entry()
761 sprintf(alias + strlen(alias), "r*"); in do_input_entry()
763 do_input(alias, *relbit, 0, INPUT_DEVICE_ID_REL_MAX); in do_input_entry()
764 sprintf(alias + strlen(alias), "a*"); in do_input_entry()
766 do_input(alias, *absbit, 0, INPUT_DEVICE_ID_ABS_MAX); in do_input_entry()
767 sprintf(alias + strlen(alias), "m*"); in do_input_entry()
769 do_input(alias, *mscbit, 0, INPUT_DEVICE_ID_MSC_MAX); in do_input_entry()
770 sprintf(alias + strlen(alias), "l*"); in do_input_entry()
772 do_input(alias, *ledbit, 0, INPUT_DEVICE_ID_LED_MAX); in do_input_entry()
773 sprintf(alias + strlen(alias), "s*"); in do_input_entry()
775 do_input(alias, *sndbit, 0, INPUT_DEVICE_ID_SND_MAX); in do_input_entry()
776 sprintf(alias + strlen(alias), "f*"); in do_input_entry()
778 do_input(alias, *ffbit, 0, INPUT_DEVICE_ID_FF_MAX); in do_input_entry()
779 sprintf(alias + strlen(alias), "w*"); in do_input_entry()
781 do_input(alias, *swbit, 0, INPUT_DEVICE_ID_SW_MAX); in do_input_entry()
786 char *alias) in do_eisa_entry() argument
790 sprintf(alias, EISA_DEVICE_MODALIAS_FMT "*", *sig); in do_eisa_entry()
792 strcat(alias, "*"); in do_eisa_entry()
798 char *alias) in do_parisc_entry() argument
805 strcpy(alias, "parisc:"); in do_parisc_entry()
806 ADD(alias, "t", hw_type != PA_HWTYPE_ANY_ID, hw_type); in do_parisc_entry()
807 ADD(alias, "hv", hversion != PA_HVERSION_ANY_ID, hversion); in do_parisc_entry()
808 ADD(alias, "rev", hversion_rev != PA_HVERSION_REV_ANY_ID, hversion_rev); in do_parisc_entry()
809 ADD(alias, "sv", sversion != PA_SVERSION_ANY_ID, sversion); in do_parisc_entry()
811 add_wildcard(alias); in do_parisc_entry()
817 void *symval, char *alias) in do_sdio_entry() argument
823 strcpy(alias, "sdio:"); in do_sdio_entry()
824 ADD(alias, "c", class != (__u8)SDIO_ANY_ID, class); in do_sdio_entry()
825 ADD(alias, "v", vendor != (__u16)SDIO_ANY_ID, vendor); in do_sdio_entry()
826 ADD(alias, "d", device != (__u16)SDIO_ANY_ID, device); in do_sdio_entry()
827 add_wildcard(alias); in do_sdio_entry()
833 void *symval, char *alias) in do_ssb_entry() argument
839 strcpy(alias, "ssb:"); in do_ssb_entry()
840 ADD(alias, "v", vendor != SSB_ANY_VENDOR, vendor); in do_ssb_entry()
841 ADD(alias, "id", coreid != SSB_ANY_ID, coreid); in do_ssb_entry()
842 ADD(alias, "rev", revision != SSB_ANY_REV, revision); in do_ssb_entry()
843 add_wildcard(alias); in do_ssb_entry()
849 void *symval, char *alias) in do_bcma_entry() argument
856 strcpy(alias, "bcma:"); in do_bcma_entry()
857 ADD(alias, "m", manuf != BCMA_ANY_MANUF, manuf); in do_bcma_entry()
858 ADD(alias, "id", id != BCMA_ANY_ID, id); in do_bcma_entry()
859 ADD(alias, "rev", rev != BCMA_ANY_REV, rev); in do_bcma_entry()
860 ADD(alias, "cl", class != BCMA_ANY_CLASS, class); in do_bcma_entry()
861 add_wildcard(alias); in do_bcma_entry()
867 char *alias) in do_virtio_entry() argument
872 strcpy(alias, "virtio:"); in do_virtio_entry()
873 ADD(alias, "d", device != VIRTIO_DEV_ANY_ID, device); in do_virtio_entry()
874 ADD(alias, "v", vendor != VIRTIO_DEV_ANY_ID, vendor); in do_virtio_entry()
876 add_wildcard(alias); in do_virtio_entry()
887 char *alias) in do_vmbus_entry() argument
896 strcpy(alias, "vmbus:"); in do_vmbus_entry()
897 strcat(alias, guid_name); in do_vmbus_entry()
904 char *alias) in do_rpmsg_entry() argument
907 sprintf(alias, RPMSG_DEVICE_MODALIAS_FMT, *name); in do_rpmsg_entry()
914 char *alias) in do_i2c_entry() argument
917 sprintf(alias, I2C_MODULE_PREFIX "%s", *name); in do_i2c_entry()
924 char *alias) in do_spi_entry() argument
927 sprintf(alias, SPI_MODULE_PREFIX "%s", *name); in do_spi_entry()
963 char *alias) in do_dmi_entry() argument
967 sprintf(alias, "dmi*"); in do_dmi_entry()
973 sprintf(alias + strlen(alias), ":%s*", in do_dmi_entry()
975 dmi_ascii_filter(alias + strlen(alias), in do_dmi_entry()
977 strcat(alias, "*"); in do_dmi_entry()
982 strcat(alias, ":"); in do_dmi_entry()
987 void *symval, char *alias) in do_platform_entry() argument
990 sprintf(alias, PLATFORM_MODULE_PREFIX "%s", *name); in do_platform_entry()
995 void *symval, char *alias) in do_mdio_entry() argument
1001 alias += sprintf(alias, MDIO_MODULE_PREFIX); in do_mdio_entry()
1005 *(alias++) = '?'; in do_mdio_entry()
1007 *(alias++) = '1'; in do_mdio_entry()
1009 *(alias++) = '0'; in do_mdio_entry()
1013 *alias = 0; in do_mdio_entry()
1020 char *alias) in do_zorro_entry() argument
1023 strcpy(alias, "zorro:"); in do_zorro_entry()
1024 ADD(alias, "i", id != ZORRO_WILDCARD, id); in do_zorro_entry()
1030 void *symval, char *alias) in do_isapnp_entry() argument
1034 sprintf(alias, "pnp:d%c%c%c%x%x%x%x*", in do_isapnp_entry()
1045 void *symval, char *alias) in do_ipack_entry() argument
1050 strcpy(alias, "ipack:"); in do_ipack_entry()
1051 ADD(alias, "f", format != IPACK_ANY_FORMAT, format); in do_ipack_entry()
1052 ADD(alias, "v", vendor != IPACK_ANY_ID, vendor); in do_ipack_entry()
1053 ADD(alias, "d", device != IPACK_ANY_ID, device); in do_ipack_entry()
1054 add_wildcard(alias); in do_ipack_entry()
1107 void *symval, char *alias) in do_amba_entry() argument
1110 char *p = alias; in do_amba_entry()
1119 p += sprintf(alias, "amba:d"); in do_amba_entry()
1135 void *symval, char *alias) in do_mips_cdmm_entry() argument
1139 sprintf(alias, "mipscdmm:t%02X*", type); in do_mips_cdmm_entry()
1150 char *alias) in do_x86cpu_entry() argument
1157 strcpy(alias, "cpu:type:x86,"); in do_x86cpu_entry()
1158 ADD(alias, "ven", vendor != X86_VENDOR_ANY, vendor); in do_x86cpu_entry()
1159 ADD(alias, "fam", family != X86_FAMILY_ANY, family); in do_x86cpu_entry()
1160 ADD(alias, "mod", model != X86_MODEL_ANY, model); in do_x86cpu_entry()
1161 strcat(alias, ":feature:*"); in do_x86cpu_entry()
1163 sprintf(alias + strlen(alias), "%04X*", feature); in do_x86cpu_entry()
1168 static int do_cpu_entry(const char *filename, void *symval, char *alias) in do_cpu_entry() argument
1172 sprintf(alias, "cpu:type:*:feature:*%04X*", feature); in do_cpu_entry()
1178 char *alias) in do_mei_entry() argument
1184 sprintf(alias, MEI_CL_MODULE_PREFIX); in do_mei_entry()
1185 sprintf(alias + strlen(alias), "%s:", (*name)[0] ? *name : "*"); in do_mei_entry()
1186 add_uuid(alias, *uuid); in do_mei_entry()
1187 ADD(alias, ":", version != MEI_CL_VERSION_ANY, version); in do_mei_entry()
1189 strcat(alias, ":*"); in do_mei_entry()
1196 void *symval, char *alias) in do_rio_entry() argument
1203 strcpy(alias, "rapidio:"); in do_rio_entry()
1204 ADD(alias, "v", vid != RIO_ANY_ID, vid); in do_rio_entry()
1205 ADD(alias, "d", did != RIO_ANY_ID, did); in do_rio_entry()
1206 ADD(alias, "av", asm_vid != RIO_ANY_ID, asm_vid); in do_rio_entry()
1207 ADD(alias, "ad", asm_did != RIO_ANY_ID, asm_did); in do_rio_entry()
1209 add_wildcard(alias); in do_rio_entry()
1215 char *alias) in do_ulpi_entry() argument
1220 sprintf(alias, "ulpi:v%04xp%04x", vendor, product); in do_ulpi_entry()
1226 static int do_hda_entry(const char *filename, void *symval, char *alias) in do_hda_entry() argument
1232 strcpy(alias, "hdaudio:"); in do_hda_entry()
1233 ADD(alias, "v", vendor_id != 0, vendor_id); in do_hda_entry()
1234 ADD(alias, "r", rev_id != 0, rev_id); in do_hda_entry()
1235 ADD(alias, "a", api_version != 0, api_version); in do_hda_entry()
1237 add_wildcard(alias); in do_hda_entry()
1242 static int do_sdw_entry(const char *filename, void *symval, char *alias) in do_sdw_entry() argument
1247 strcpy(alias, "sdw:"); in do_sdw_entry()
1248 ADD(alias, "m", mfg_id != 0, mfg_id); in do_sdw_entry()
1249 ADD(alias, "p", part_id != 0, part_id); in do_sdw_entry()
1251 add_wildcard(alias); in do_sdw_entry()
1257 char *alias) in do_fsl_mc_entry() argument
1262 sprintf(alias, "fsl-mc:v%08Xd%s", vendor, *obj_type); in do_fsl_mc_entry()
1267 static int do_tbsvc_entry(const char *filename, void *symval, char *alias) in do_tbsvc_entry() argument
1275 strcpy(alias, "tbsvc:"); in do_tbsvc_entry()
1277 sprintf(alias + strlen(alias), "k%s", *protocol_key); in do_tbsvc_entry()
1279 strcat(alias + strlen(alias), "k*"); in do_tbsvc_entry()
1280 ADD(alias, "p", match_flags & TBSVC_MATCH_PROTOCOL_ID, protocol_id); in do_tbsvc_entry()
1281 ADD(alias, "v", match_flags & TBSVC_MATCH_PROTOCOL_VERSION, in do_tbsvc_entry()
1283 ADD(alias, "r", match_flags & TBSVC_MATCH_PROTOCOL_REVISION, in do_tbsvc_entry()
1286 add_wildcard(alias); in do_tbsvc_entry()
1291 static int do_typec_entry(const char *filename, void *symval, char *alias) in do_typec_entry() argument
1296 sprintf(alias, "typec:id%04X", svid); in do_typec_entry()
1297 ADD(alias, "m", mode != TYPEC_ANY_MODE, mode); in do_typec_entry()
1303 static int do_tee_entry(const char *filename, void *symval, char *alias) in do_tee_entry() argument
1307 sprintf(alias, "tee:%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x", in do_tee_entry()
1313 add_wildcard(alias); in do_tee_entry()
1318 static int do_wmi_entry(const char *filename, void *symval, char *alias) in do_wmi_entry() argument
1329 len = snprintf(alias, ALIAS_SIZE, WMI_MODULE_PREFIX "%s", *guid_string); in do_wmi_entry()
1350 int (*do_entry)(const char *filename, void *symval, char *alias), in do_table() argument
1354 char alias[ALIAS_SIZE]; in do_table() local
1361 if (do_entry(mod->name, symval+i, alias)) { in do_table()
1363 "MODULE_ALIAS(\"%s\");\n", alias); in do_table()