Home
last modified time | relevance | path

Searched refs:vhdr (Results 1 – 4 of 4) sorted by relevance

/freebsd-10-stable/sys/dev/drm2/radeon/
Dradeon_bios.c642 VFCT_IMAGE_HEADER *vhdr; local
667 vhdr = &vbios->VbiosHeader;
669 vhdr->PCIBus, vhdr->PCIDevice, vhdr->PCIFunction,
670 vhdr->VendorID, vhdr->DeviceID, vhdr->ImageLength);
672 if (vhdr->PCIBus != rdev->ddev->pci_bus ||
673 vhdr->PCIDevice != rdev->ddev->pci_slot ||
674 vhdr->PCIFunction != rdev->ddev->pci_func ||
675 vhdr->VendorID != rdev->ddev->pci_vendor ||
676 vhdr->DeviceID != rdev->ddev->pci_device) {
681 if (vfct->VBIOSImageOffset + sizeof(VFCT_IMAGE_HEADER) + vhdr->ImageLength > tbl_size) {
[all …]
/freebsd-10-stable/sys/geom/vinum/
Dgeom_vinum_drive.c266 struct gv_hdr *vhdr, *hdr; in gv_save_config() local
273 vhdr = g_malloc(GV_HDR_LEN, M_WAITOK | M_ZERO); in gv_save_config()
274 vhdr->magic = GV_MAGIC; in gv_save_config()
275 vhdr->config_length = GV_CFG_LEN; in gv_save_config()
302 g_free(vhdr); in gv_save_config()
307 bcopy(&hdr->label, &vhdr->label, sizeof(struct gv_label)); in gv_save_config()
318 error = gv_write_header(cp, vhdr); in gv_save_config()
351 g_free(vhdr); in gv_save_config()
Dgeom_vinum.c589 struct gv_hdr vhdr; in gv_taste() local
614 error = gv_read_header(cp, &vhdr); in gv_taste()
/freebsd-10-stable/contrib/wpa/src/radius/
Dradius.c898 struct radius_attr_vendor *vhdr; in radius_msg_get_vendor_attr() local
917 while (left >= sizeof(*vhdr)) { in radius_msg_get_vendor_attr()
918 vhdr = (struct radius_attr_vendor *) pos; in radius_msg_get_vendor_attr()
919 if (vhdr->vendor_length > left || in radius_msg_get_vendor_attr()
920 vhdr->vendor_length < sizeof(*vhdr)) { in radius_msg_get_vendor_attr()
924 if (vhdr->vendor_type != subtype) { in radius_msg_get_vendor_attr()
925 pos += vhdr->vendor_length; in radius_msg_get_vendor_attr()
926 left -= vhdr->vendor_length; in radius_msg_get_vendor_attr()
930 len = vhdr->vendor_length - sizeof(*vhdr); in radius_msg_get_vendor_attr()
934 os_memcpy(data, pos + sizeof(*vhdr), len); in radius_msg_get_vendor_attr()
[all …]