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