Lines Matching refs:otp

350 	struct brcmf_otp_params otp;  member
1924 strscpy(devinfo->otp.module, p, len + 1); in brcmf_pcie_parse_otp_sys_vendor()
1927 strscpy(devinfo->otp.vendor, p, len + 1); in brcmf_pcie_parse_otp_sys_vendor()
1930 strscpy(devinfo->otp.version, p, len + 1); in brcmf_pcie_parse_otp_sys_vendor()
1939 devinfo->otp.module, devinfo->otp.vendor, in brcmf_pcie_parse_otp_sys_vendor()
1940 devinfo->otp.version); in brcmf_pcie_parse_otp_sys_vendor()
1942 if (!devinfo->otp.module[0] || in brcmf_pcie_parse_otp_sys_vendor()
1943 !devinfo->otp.vendor[0] || in brcmf_pcie_parse_otp_sys_vendor()
1944 !devinfo->otp.version[0]) in brcmf_pcie_parse_otp_sys_vendor()
1947 devinfo->otp.valid = true; in brcmf_pcie_parse_otp_sys_vendor()
1952 brcmf_pcie_parse_otp(struct brcmf_pciedev_info *devinfo, u8 *otp, size_t size) in brcmf_pcie_parse_otp() argument
1960 u8 type = otp[p]; in brcmf_pcie_parse_otp()
1961 u8 length = otp[p + 1]; in brcmf_pcie_parse_otp()
1974 &otp[p + 2], in brcmf_pcie_parse_otp()
1998 u16 *otp; in brcmf_pcie_read_otp() local
2049 otp = kcalloc(words, sizeof(u16), GFP_KERNEL); in brcmf_pcie_read_otp()
2050 if (!otp) in brcmf_pcie_read_otp()
2058 otp[idx] = brcmf_pcie_read_reg16(devinfo, base + 2 * idx); in brcmf_pcie_read_otp()
2059 brcmf_dbg(PCIE, "[%8x] 0x%04x\n", base + 2 * idx, otp[idx]); in brcmf_pcie_read_otp()
2067 ret = brcmf_pcie_parse_otp(devinfo, (u8 *)otp, 2 * words); in brcmf_pcie_read_otp()
2068 kfree(otp); in brcmf_pcie_read_otp()
2204 devinfo->otp.valid) { in brcmf_pcie_prepare_fw_request()
2205 const struct brcmf_otp_params *otp = &devinfo->otp; in brcmf_pcie_prepare_fw_request() local
2215 otp->module, otp->vendor, otp->version, in brcmf_pcie_prepare_fw_request()
2219 otp->module, otp->vendor, otp->version); in brcmf_pcie_prepare_fw_request()
2222 otp->module, otp->vendor); in brcmf_pcie_prepare_fw_request()
2225 otp->module); in brcmf_pcie_prepare_fw_request()