Lines Matching refs:vpd_size
424 int vpd_size; in VpdInit() local
446 vpd_size = VPD_SIZE_YUKON; in VpdInit()
451 vpd_size = VPD_SIZE_GENESIS; in VpdInit()
454 vpd_size = pAC->vpd.rom_size; in VpdInit()
459 if (VpdTransferBlock(pAC, IoC, pAC->vpd.vpd_buf, 0, vpd_size, VPD_READ) in VpdInit()
460 != vpd_size) { in VpdInit()
467 pAC->vpd.vpd_size = vpd_size; in VpdInit()
485 if (r->p_val + r->p_len > pAC->vpd.vpd_buf + vpd_size/2) { in VpdInit()
493 for (i = 0, x = 0; (unsigned)i <= (unsigned)vpd_size/2 - r->p_len; i++) { in VpdInit()
511 if (r->p_val < pAC->vpd.vpd_buf + vpd_size/2) { in VpdInit()
670 int vpd_size; in vpd_mod_endtag() local
675 vpd_size = pAC->vpd.vpd_size; in vpd_mod_endtag()
685 if (etp > pAC->vpd.vpd_buf + vpd_size/2) { in vpd_mod_endtag()
687 p->p_len = (unsigned char)(pAC->vpd.vpd_buf+vpd_size-etp-3-1); in vpd_mod_endtag()
694 p->p_len = (unsigned char)(pAC->vpd.vpd_buf+vpd_size/2-etp-3); in vpd_mod_endtag()
698 for (i = 0, x = 0; i < vpd_size/2 - p->p_len; i++) { in vpd_mod_endtag()
742 int vpd_size; in VpdSetupPara() local
747 vpd_size = pAC->vpd.vpd_size; in VpdSetupPara()
754 etp = pAC->vpd.vpd_buf + (vpd_size - free - 1 - 3); in VpdSetupPara()
759 etp = pAC->vpd.vpd_buf + (vpd_size/2 - free - 4); in VpdSetupPara()
1077 int vpd_size; in VpdDelete() local
1079 vpd_size = pAC->vpd.vpd_size; in VpdDelete()
1091 if (p->p_val < pAC->vpd.vpd_buf + vpd_size/2) { in VpdDelete()
1098 etp = pAC->vpd.vpd_buf + (vpd_size-pAC->vpd.v.vpd_free_rw-1-3); in VpdDelete()
1129 int vpd_size; in VpdUpdate() local
1131 vpd_size = pAC->vpd.vpd_size; in VpdUpdate()
1135 if (VpdTransferBlock(pAC, IoC, pAC->vpd.vpd_buf + vpd_size/2, in VpdUpdate()
1136 vpd_size/2, vpd_size/2, VPD_WRITE) != vpd_size/2) { in VpdUpdate()