Lines Matching refs:h
42 nvbios_vpstate_parse(struct nvkm_bios *b, struct nvbios_vpstate_header *h) in nvbios_vpstate_parse() argument
44 if (!h) in nvbios_vpstate_parse()
47 h->offset = nvbios_vpstate_offset(b); in nvbios_vpstate_parse()
48 if (!h->offset) in nvbios_vpstate_parse()
51 h->version = nvbios_rd08(b, h->offset); in nvbios_vpstate_parse()
52 switch (h->version) { in nvbios_vpstate_parse()
54 h->hlen = nvbios_rd08(b, h->offset + 0x1); in nvbios_vpstate_parse()
55 h->elen = nvbios_rd08(b, h->offset + 0x2); in nvbios_vpstate_parse()
56 h->slen = nvbios_rd08(b, h->offset + 0x3); in nvbios_vpstate_parse()
57 h->scount = nvbios_rd08(b, h->offset + 0x4); in nvbios_vpstate_parse()
58 h->ecount = nvbios_rd08(b, h->offset + 0x5); in nvbios_vpstate_parse()
60 h->base_id = nvbios_rd08(b, h->offset + 0x0f); in nvbios_vpstate_parse()
61 if (h->hlen > 0x10) in nvbios_vpstate_parse()
62 h->boost_id = nvbios_rd08(b, h->offset + 0x10); in nvbios_vpstate_parse()
64 h->boost_id = 0xff; in nvbios_vpstate_parse()
65 if (h->hlen > 0x11) in nvbios_vpstate_parse()
66 h->tdp_id = nvbios_rd08(b, h->offset + 0x11); in nvbios_vpstate_parse()
68 h->tdp_id = 0xff; in nvbios_vpstate_parse()
76 nvbios_vpstate_entry(struct nvkm_bios *b, struct nvbios_vpstate_header *h, in nvbios_vpstate_entry() argument
81 if (!e || !h || idx > h->ecount) in nvbios_vpstate_entry()
84 offset = h->offset + h->hlen + idx * (h->elen + (h->slen * h->scount)); in nvbios_vpstate_entry()