Lines Matching +full:rpmsg +full:- +full:out
5 * Copyright 2002-2003 Rusty Russell, IBM Corporation
20 #include "devicetable-offsets.h"
41 * module_alias_printf - add auto-generated MODULE_ALIAS()
45 * @fmt: printf(3)-like format
75 n = vsnprintf(new->str, len, fmt, ap); in module_alias_printf()
84 if (append_wildcard && (n == 0 || new->str[n - 1] != '*')) { in module_alias_printf()
85 new->str[n] = '*'; in module_alias_printf()
86 new->str[n + 1] = '\0'; in module_alias_printf()
90 list_for_each_entry(als, &mod->aliases, node) { in module_alias_printf()
91 if (!strcmp(als->str, new->str)) { in module_alias_printf()
97 list_add_tail(&new->node, &mod->aliases); in module_alias_printf()
135 typeof(((struct devid *)0)->f) f = \
143 typeof(((struct devid *)0)->f) *f = ((m) + OFF_##devid##_##f)
162 sprintf(str + len, "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x", in add_uuid()
173 sprintf(str + len, "%02X%02X%02X%02X-%02X%02X-%02X%02X-%02X%02X-%02X%02X%02X%02X%02X%02X", in add_guid()
215 "[%X-%X]", in do_usb_entry()
220 range_lo < 0x9 ? "[%X-9" : "[%X", in do_usb_entry()
223 range_hi > 0xA ? "A-%X]" : "%X]", in do_usb_entry()
227 if (bcdDevice_initial_digits < (sizeof(bcdDevice_lo) * 2 - 1)) in do_usb_entry()
249 /* Returns the previous value, so it works like i++ or i-- */
306 /* Figure out if this entry is in bcd or hex format */ in do_usb_entry_multi()
319 * run-time specification that results in catch-all alias in do_usb_entry_multi()
324 /* Convert numeric bcdDevice range into fnmatch-able pattern(s) */ in do_usb_entry_multi()
325 for (ndigits = sizeof(bcdDevice_lo) * 2 - 1; devlo <= devhi; ndigits--) { in do_usb_entry_multi()
346 incbcd(&devhi, -1, max, in do_usb_entry_multi()
463 mod->name, class_mask); in do_pci_entry()
532 * "acpi:bbsspp" (bb=base-class, ss=sub-class, pp=prog-if)
552 byte_shift = 8 * (3-i); in do_acpi_entry()
664 /* input:b0v0p0e0-eXkXrXaXmXlXsXfXwX where X is comma-separated %02X. */
689 sprintf(alias + strlen(alias), "-e*"); in do_input_entry()
821 sprintf(&guid_name[i * 2], "%02x", guid->b[i]); in do_vmbus_entry()
826 /* Looks like: rpmsg:S */
899 /* Filter out characters we don't want to see in the modalias string */ in dmi_ascii_filter()
945 if (!((phy_id_mask >> (31-i)) & 1)) in do_mdio_entry()
947 else if ((phy_id >> (31-i)) & 1) in do_mdio_entry()
976 'A' + ((vendor >> 2) & 0x3f) - 1, in do_isapnp_entry()
977 'A' + (((vendor & 3) << 3) | ((vendor >> 13) & 7)) - 1, in do_isapnp_entry()
978 'A' + ((vendor >> 8) & 0x1f) - 1, in do_isapnp_entry()
1033 /* Ensure that the string remains NUL-terminated: */ in append_nibble_mask()
1036 /* Advance the caller's end-of-string pointer: */ in append_nibble_mask()
1043 * N is exactly 8 digits, where each is an upper-case hex digit, or
1055 …fatal("%s: Masked-off bit(s) of AMBA device ID are non-zero: id=0x%08X, mask=0x%08X. Please fix t… in do_amba_entry()
1056 mod->name, id, mask); in do_amba_entry()
1060 (id >> (4 * (7 - digit))) & 0xf, in do_amba_entry()
1061 (mask >> (4 * (7 - digit))) & 0xf); in do_amba_entry()
1069 * N is exactly 2 digits, where each is an upper-case hex digit, or
1081 * and feature, but getting those out of the build system here is too
1189 /* Looks like: fsl-mc:vNdN */
1195 module_alias_printf(mod, false, "fsl-mc:v%08Xd%s", vendor, *obj_type); in do_fsl_mc_entry()
1236 "tee:%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x", in do_tee_entry()
1237 uuid->b[0], uuid->b[1], uuid->b[2], uuid->b[3], uuid->b[4], in do_tee_entry()
1238 uuid->b[5], uuid->b[6], uuid->b[7], uuid->b[8], uuid->b[9], in do_tee_entry()
1239 uuid->b[10], uuid->b[11], uuid->b[12], uuid->b[13], uuid->b[14], in do_tee_entry()
1240 uuid->b[15]); in do_tee_entry()
1250 *guid_string, mod->name); in do_wmi_entry()
1293 * N is exactly 2 digits, where each is an upper-case hex digit.
1392 mod->name, name, device_id); in do_table()
1397 for (i = size - id_size; i < size; i++) { in do_table()
1400 mod->name, name); in do_table()
1406 size -= id_size; in do_table()
1431 {"rpmsg", SIZE_rpmsg_device_id, do_rpmsg_entry},
1473 * so we write into the mod->dev_table_buf buffer. */
1484 if (!sym->st_shndx || get_secindex(info, sym) >= info->num_sections) in handle_moddevtable()
1488 if (ELF_ST_TYPE(sym->st_info) != STT_OBJECT) in handle_moddevtable()
1499 typelen = name - type; in handle_moddevtable()
1502 /* Handle all-NULL symbols allocated into .bss */ in handle_moddevtable()
1503 if (info->sechdrs[get_secindex(info, sym)].sh_type & SHT_NOBITS) { in handle_moddevtable()
1504 zeros = calloc(1, sym->st_size); in handle_moddevtable()
1513 if (sym_is(type, typelen, p->device_id)) { in handle_moddevtable()
1514 do_table(name, symval, sym->st_size, p->id_size, in handle_moddevtable()
1515 p->device_id, p->do_entry, mod); in handle_moddevtable()