Lines Matching refs:otp

342 	struct brcmf_otp_params otp;  member
1902 strscpy(devinfo->otp.module, p, len + 1); in brcmf_pcie_parse_otp_sys_vendor()
1905 strscpy(devinfo->otp.vendor, p, len + 1); in brcmf_pcie_parse_otp_sys_vendor()
1908 strscpy(devinfo->otp.version, p, len + 1); in brcmf_pcie_parse_otp_sys_vendor()
1917 devinfo->otp.module, devinfo->otp.vendor, in brcmf_pcie_parse_otp_sys_vendor()
1918 devinfo->otp.version); in brcmf_pcie_parse_otp_sys_vendor()
1920 if (!devinfo->otp.module[0] || in brcmf_pcie_parse_otp_sys_vendor()
1921 !devinfo->otp.vendor[0] || in brcmf_pcie_parse_otp_sys_vendor()
1922 !devinfo->otp.version[0]) in brcmf_pcie_parse_otp_sys_vendor()
1925 devinfo->otp.valid = true; in brcmf_pcie_parse_otp_sys_vendor()
1930 brcmf_pcie_parse_otp(struct brcmf_pciedev_info *devinfo, u8 *otp, size_t size) in brcmf_pcie_parse_otp() argument
1938 u8 type = otp[p]; in brcmf_pcie_parse_otp()
1939 u8 length = otp[p + 1]; in brcmf_pcie_parse_otp()
1952 &otp[p + 2], in brcmf_pcie_parse_otp()
1976 u16 *otp; in brcmf_pcie_read_otp() local
2016 otp = kcalloc(words, sizeof(u16), GFP_KERNEL); in brcmf_pcie_read_otp()
2017 if (!otp) in brcmf_pcie_read_otp()
2025 otp[idx] = brcmf_pcie_read_reg16(devinfo, base + 2 * idx); in brcmf_pcie_read_otp()
2026 brcmf_dbg(PCIE, "[%8x] 0x%04x\n", base + 2 * idx, otp[idx]); in brcmf_pcie_read_otp()
2034 ret = brcmf_pcie_parse_otp(devinfo, (u8 *)otp, 2 * words); in brcmf_pcie_read_otp()
2035 kfree(otp); in brcmf_pcie_read_otp()
2165 devinfo->otp.valid) { in brcmf_pcie_prepare_fw_request()
2166 const struct brcmf_otp_params *otp = &devinfo->otp; in brcmf_pcie_prepare_fw_request() local
2176 otp->module, otp->vendor, otp->version, in brcmf_pcie_prepare_fw_request()
2180 otp->module, otp->vendor, otp->version); in brcmf_pcie_prepare_fw_request()
2183 otp->module, otp->vendor); in brcmf_pcie_prepare_fw_request()
2186 otp->module); in brcmf_pcie_prepare_fw_request()