Lines Matching refs:image_layout

935 static int otp_print_scu_image(struct otp_image_layout *image_layout)  in otp_print_scu_image()  argument
938 u32 *OTPSCU = (u32 *)image_layout->scu_pro; in otp_print_scu_image()
939 u32 *OTPSCU_IGNORE = (u32 *)image_layout->scu_pro_ignore; in otp_print_scu_image()
1030 static int otp_print_conf_image(struct otp_image_layout *image_layout) in otp_print_conf_image() argument
1033 u32 *OTPCFG = (u32 *)image_layout->conf; in otp_print_conf_image()
1034 u32 *OTPCFG_IGNORE = (u32 *)image_layout->conf_ignore; in otp_print_conf_image()
1219 static int otp_print_strap_image(struct otp_image_layout *image_layout) in otp_print_strap_image() argument
1234 OTPSTRAP = (u32 *)image_layout->strap; in otp_print_strap_image()
1235 OTPSTRAP_PRO = (u32 *)image_layout->strap_pro; in otp_print_strap_image()
1236 OTPSTRAP_IGNORE = (u32 *)image_layout->strap_ignore; in otp_print_strap_image()
1507 static int otp_print_data_image(struct otp_image_layout *image_layout) in otp_print_data_image() argument
1511 buf = (u32 *)image_layout->data; in otp_print_data_image()
1528 static int otp_prog_data(struct otp_image_layout *image_layout, u32 *data) in otp_prog_data() argument
1535 buf = (u32 *)image_layout->data; in otp_prog_data()
1536 buf_ignore = (u32 *)image_layout->data_ignore; in otp_prog_data()
1561 static int otp_prog_strap(struct otp_image_layout *image_layout, struct otpstrap_status *otpstrap) in otp_prog_strap() argument
1573 strap = (u32 *)image_layout->strap; in otp_prog_strap()
1574 strap_pro = (u32 *)image_layout->strap_pro; in otp_prog_strap()
1575 strap_ignore = (u32 *)image_layout->strap_ignore; in otp_prog_strap()
1636 static int otp_prog_conf(struct otp_image_layout *image_layout, u32 *otp_conf) in otp_prog_conf() argument
1642 u32 *conf = (u32 *)image_layout->conf; in otp_prog_conf()
1643 u32 *conf_ignore = (u32 *)image_layout->conf_ignore; in otp_prog_conf()
1698 static int otp_prog_scu_protect(struct otp_image_layout *image_layout, u32 *scu_pro) in otp_prog_scu_protect() argument
1704 u32 *OTPSCU = (u32 *)image_layout->scu_pro; in otp_prog_scu_protect()
1705 u32 *OTPSCU_IGNORE = (u32 *)image_layout->scu_pro_ignore; in otp_prog_scu_protect()
1757 static int otp_check_data_image(struct otp_image_layout *image_layout, u32 *data) in otp_check_data_image() argument
1762 u32 *buf = (u32 *)image_layout->data; in otp_check_data_image()
1763 u32 *buf_ignore = (u32 *)image_layout->data_ignore; in otp_check_data_image()
1766 data_dw = image_layout->data_length / 4; in otp_check_data_image()
1798 static int otp_check_strap_image(struct otp_image_layout *image_layout, struct otpstrap_status *otp… in otp_check_strap_image() argument
1808 strap = (u32 *)image_layout->strap; in otp_check_strap_image()
1809 strap_pro = (u32 *)image_layout->strap_pro; in otp_check_strap_image()
1810 strap_ignore = (u32 *)image_layout->strap_ignore; in otp_check_strap_image()
1835 static int otp_check_conf_image(struct otp_image_layout *image_layout, u32 *otp_conf) in otp_check_conf_image() argument
1837 u32 *conf = (u32 *)image_layout->conf; in otp_check_conf_image()
1838 u32 *conf_ignore = (u32 *)image_layout->conf_ignore; in otp_check_conf_image()
1861 static int otp_check_scu_image(struct otp_image_layout *image_layout, u32 *scu_pro) in otp_check_scu_image() argument
1863 u32 *OTPSCU = (u32 *)image_layout->scu_pro; in otp_check_scu_image()
1864 u32 *OTPSCU_IGNORE = (u32 *)image_layout->scu_pro_ignore; in otp_check_scu_image()
1927 struct otp_image_layout image_layout; in otp_prog_image() local
1960 image_layout.data_length = (int)(OTP_REGION_SIZE(otp_header->data_info) / 2); in otp_prog_image()
1961 image_layout.data = buf + OTP_REGION_OFFSET(otp_header->data_info); in otp_prog_image()
1962 image_layout.data_ignore = image_layout.data + image_layout.data_length; in otp_prog_image()
1964 image_layout.conf_length = (int)(OTP_REGION_SIZE(otp_header->config_info) / 2); in otp_prog_image()
1965 image_layout.conf = buf + OTP_REGION_OFFSET(otp_header->config_info); in otp_prog_image()
1966 image_layout.conf_ignore = image_layout.conf + image_layout.conf_length; in otp_prog_image()
1968 image_layout.strap = buf + OTP_REGION_OFFSET(otp_header->strap_info); in otp_prog_image()
1969 image_layout.strap_length = (int)(OTP_REGION_SIZE(otp_header->strap_info) / 3); in otp_prog_image()
1970 image_layout.strap_pro = image_layout.strap + image_layout.strap_length; in otp_prog_image()
1971 image_layout.strap_ignore = image_layout.strap + 2 * image_layout.strap_length; in otp_prog_image()
1973 image_layout.scu_pro = buf + OTP_REGION_OFFSET(otp_header->scu_protect_info); in otp_prog_image()
1974 image_layout.scu_pro_length = (int)(OTP_REGION_SIZE(otp_header->scu_protect_info) / 2); in otp_prog_image()
1975 image_layout.scu_pro_ignore = image_layout.scu_pro + image_layout.scu_pro_length; in otp_prog_image()
2033 if (otp_check_data_image(&image_layout, data) == OTP_FAILURE) in otp_prog_image()
2046 if (otp_check_conf_image(&image_layout, conf) == OTP_FAILURE) in otp_prog_image()
2058 if (otp_check_strap_image(&image_layout, otpstrap) == OTP_FAILURE) in otp_prog_image()
2071 if (otp_check_scu_image(&image_layout, scu_pro) == OTP_FAILURE) in otp_prog_image()
2080 if (otp_print_data_image(&image_layout) < 0) { in otp_prog_image()
2087 if (otp_print_conf_image(&image_layout) < 0) { in otp_prog_image()
2094 if (otp_print_strap_image(&image_layout) < 0) { in otp_prog_image()
2101 if (otp_print_scu_image(&image_layout) < 0) { in otp_prog_image()
2116 ret = otp_prog_data(&image_layout, data); in otp_prog_image()
2125 ret = otp_prog_strap(&image_layout, otpstrap); in otp_prog_image()
2134 ret = otp_prog_scu_protect(&image_layout, scu_pro); in otp_prog_image()
2143 ret = otp_prog_conf(&image_layout, conf); in otp_prog_image()