Lines Matching +defs:mode +defs:name
100 const char *mode, *name;
103 /* We require at least a "mode" hint. */
104 name = device_get_name(dev);
106 if (resource_string_value(name, unit, "mode", &mode) != 0)
109 /* Set the mode and default I/O resources for each mode. */
111 if (strcasecmp(mode, "KCS") == 0) {
116 } else if (strcasecmp(mode, "SMIC") == 0) {
121 } else if (strcasecmp(mode, "BT") == 0) {
127 device_printf(dev, "Invalid mode %s\n", mode);
141 if (resource_int_value(name, unit, "port", &val) == 0 && val != 0) {
144 } else if (resource_int_value(name, unit, "maddr", &val) == 0 &&
151 if (resource_int_value(name, unit, "spacing", &val) == 0) {
175 const char *mode;
189 mode = "KCS";
193 mode = "SMIC";
196 device_printf(dev, "BT mode is unsupported\n");
204 device_printf(dev, "%s mode found at %s 0x%jx alignment 0x%x on %s\n",
205 mode, info.io_mode ? "io" : "mem",