Lines Matching refs:bd
117 static int match_edd(biosdev_data_t *bd);
118 static int match_first_block(biosdev_data_t *bd);
362 fn48_t *bd; in match_edd() local
372 bd = &bdata->fn48_dev_params; in match_edd()
374 if (bd->magic != 0xBEDD || bd->pathinfo_len == 0) { in match_edd()
378 bd->magic, bd->pathinfo_len); in match_edd()
383 if (strncmp(bd->bustype, "PCI", 3) != 0) { in match_edd()
385 (void) printf("was not pci %s\n", bd->bustype); in match_edd()
390 bd->interfacepath.pci.bus, in match_edd()
391 bd->interfacepath.pci.device, in match_edd()
392 bd->interfacepath.pci.function); in match_edd()
395 node = search_tree_match_pcibdf(root_node, bd->interfacepath.pci.bus, in match_edd()
396 bd->interfacepath.pci.device, bd->interfacepath.pci.function); in match_edd()
409 (void) printf("%c", bd->interface_type[i]); in match_edd()
411 bd->interfacepath.pci.channel, in match_edd()
412 bd->devicepath.scsi.target); in match_edd()
415 if (strncmp(bd->interface_type, "SCSI", 4) == 0) { in match_edd()
418 bd->devicepath.scsi.target, bd->devicepath.scsi.lun_lo); in match_edd()
422 } else if ((strncmp(bd->interface_type, "ATAPI", 5) == 0) || in match_edd()
423 (strncmp(bd->interface_type, "ATA", 3) == 0) || in match_edd()
424 (strncmp(bd->interface_type, "SATA", 4) == 0)) { in match_edd()
433 bd->interfacepath.pci.channel); in match_edd()
439 bd->devicepath.ata.chan); in match_edd()
448 bd->interface_type, in match_edd()
454 bd->interface_type, busaddrbuf); in match_edd()
457 if (strncmp(bd->interface_type, "SATA", 4) == 0) { in match_edd()
467 bd->devicepath.ata.chan); in match_edd()
474 " pci-ide\n", bd->interface_type); in match_edd()
478 } else if (strncmp(bd->interface_type, "USB", 3) == 0) { in match_edd()
480 bd->devicepath.usb.usb_serial_id); in match_edd()
484 bd->interface_type); in match_edd()
504 match_first_block(biosdev_data_t *bd) in match_first_block() argument
513 if (!bd->first_block_valid) in match_first_block()
532 if (memcmp(buf, bd->first_block, 512) == 0) { in match_first_block()