Lines Matching defs:bus_id
48 char bus_id[DASD_BUS_ID_SIZE];
99 dasd_hash_busid(const char *bus_id)
104 for (i = 0; (i < DASD_BUS_ID_SIZE) && *bus_id; i++, bus_id++)
105 hash += *bus_id;
316 char bus_id[DASD_BUS_ID_SIZE + 1];
360 sprintf(bus_id, "%01x.%01x.%04x", from_id0, from_id1, from++);
361 devmap = dasd_add_busid(bus_id, features);
411 dasd_add_busid(const char *bus_id, int features)
421 hash = dasd_hash_busid(bus_id);
423 if (strncmp(tmp->bus_id, bus_id, DASD_BUS_ID_SIZE) == 0) {
428 /* This bus_id is new. */
430 strscpy(new->bus_id, bus_id, DASD_BUS_ID_SIZE);
443 dasd_find_busid_locked(const char *bus_id)
449 hash = dasd_hash_busid(bus_id);
451 if (strncmp(tmp->bus_id, bus_id, DASD_BUS_ID_SIZE) == 0) {
460 * Find devmap for device with given bus_id.
463 dasd_find_busid(const char *bus_id)
468 devmap = dasd_find_busid_locked(bus_id);
477 dasd_busid_known(const char *bus_id)
479 return IS_ERR(dasd_find_busid(bus_id)) ? -ENOENT : 0;
2099 /* current bus_id already included, nothing to do */