Lines Matching defs:bd
119 static int match_edd(biosdev_data_t *bd);
120 static int match_first_block(biosdev_data_t *bd);
364 fn48_t *bd;
374 bd = &bdata->fn48_dev_params;
376 if (bd->magic != 0xBEDD || bd->pathinfo_len == 0) {
380 bd->magic, bd->pathinfo_len);
385 if (strncmp(bd->bustype, "PCI", 3) != 0) {
387 (void) printf("was not pci %s\n", bd->bustype);
392 bd->interfacepath.pci.bus,
393 bd->interfacepath.pci.device,
394 bd->interfacepath.pci.function);
397 node = search_tree_match_pcibdf(root_node, bd->interfacepath.pci.bus,
398 bd->interfacepath.pci.device, bd->interfacepath.pci.function);
411 (void) printf("%c", bd->interface_type[i]);
413 bd->interfacepath.pci.channel,
414 bd->devicepath.scsi.target);
417 if (strncmp(bd->interface_type, "SCSI", 4) == 0) {
420 bd->devicepath.scsi.target, bd->devicepath.scsi.lun_lo);
424 } else if ((strncmp(bd->interface_type, "ATAPI", 5) == 0) ||
425 (strncmp(bd->interface_type, "ATA", 3) == 0) ||
426 (strncmp(bd->interface_type, "SATA", 4) == 0)) {
435 bd->interfacepath.pci.channel);
441 bd->devicepath.ata.chan);
450 bd->interface_type,
456 bd->interface_type, busaddrbuf);
459 if (strncmp(bd->interface_type, "SATA", 4) == 0) {
469 bd->devicepath.ata.chan);
476 " pci-ide\n", bd->interface_type);
480 } else if (strncmp(bd->interface_type, "USB", 3) == 0) {
482 bd->devicepath.usb.usb_serial_id);
486 bd->interface_type);
506 match_first_block(biosdev_data_t *bd)
515 if (!bd->first_block_valid)
534 if (memcmp(buf, bd->first_block, 512) == 0) {