Lines Matching refs:scierr

289 	int scierr = 0;  in check_write_secvio_config()  local
296 scierr = sc_seco_secvio_config(-1, id, SC_WRITE_CONF, &d1, &d2, &d3, in check_write_secvio_config()
298 if (scierr != SC_ERR_NONE) { in check_write_secvio_config()
318 return scierr; in check_write_secvio_config()
326 int scierr = 0; in apply_snvs_config() local
368 scierr = check_write_secvio_config(SC_CONF_OFFSET_OF(lp.tamper_filt_cfg), in apply_snvs_config()
373 if (scierr != SC_ERR_NONE) in apply_snvs_config()
377 scierr = check_write_secvio_config(SC_CONF_OFFSET_OF(lp.act_tamper1_cfg), in apply_snvs_config()
383 if (scierr != SC_ERR_NONE) in apply_snvs_config()
387 scierr = check_write_secvio_config(SC_CONF_OFFSET_OF(lp.act_tamper_routing_ctl1), in apply_snvs_config()
391 if (scierr != SC_ERR_NONE) in apply_snvs_config()
395 scierr = SC_CHECK_WRITE1(SC_CONF_OFFSET_OF(lp.act_tamper_clk_ctl), in apply_snvs_config()
397 if (scierr != SC_ERR_NONE) in apply_snvs_config()
401 scierr = SC_CHECK_WRITE1(SC_CONF_OFFSET_OF(lp.act_tamper_ctl), in apply_snvs_config()
403 if (scierr != SC_ERR_NONE) in apply_snvs_config()
407 scierr = check_write_secvio_config(SC_CONF_OFFSET_OF(lp.tamper_det_cfg), in apply_snvs_config()
411 if (scierr != SC_ERR_NONE) in apply_snvs_config()
415 scierr = SC_CHECK_WRITE1(SC_CONF_OFFSET_OF(lp.secvio_ctl), in apply_snvs_config()
417 if (scierr != SC_ERR_NONE) in apply_snvs_config()
421 scierr = SC_CHECK_WRITE1(SC_CONF_OFFSET_OF(hp.secvio_ctl), in apply_snvs_config()
423 if (scierr != SC_ERR_NONE) in apply_snvs_config()
427 scierr = SC_CHECK_WRITE1(SC_CONF_OFFSET_OF(hp.lock), &cnf->hp.lock); in apply_snvs_config()
428 if (scierr != SC_ERR_NONE) in apply_snvs_config()
431 scierr = SC_CHECK_WRITE1(SC_CONF_OFFSET_OF(lp.lock), &cnf->lp.lock); in apply_snvs_config()
432 if (scierr != SC_ERR_NONE) in apply_snvs_config()
436 return (scierr == SC_ERR_NONE) ? 0 : -EIO; in apply_snvs_config()
441 int scierr = sc_seco_secvio_dgo_config(-1, _id, _access, _pdata); in dgo_write() local
443 if (scierr != SC_ERR_NONE) { in dgo_write()
448 return scierr; in dgo_write()
453 int scierr = 0; in apply_snvs_dgo_config() local
472 if (scierr != SC_ERR_NONE) in apply_snvs_dgo_config()
476 if (scierr != SC_ERR_NONE) in apply_snvs_dgo_config()
480 if (scierr != SC_ERR_NONE) in apply_snvs_dgo_config()
484 if (scierr != SC_ERR_NONE) in apply_snvs_dgo_config()
488 if (scierr != SC_ERR_NONE) in apply_snvs_dgo_config()
493 if (scierr != SC_ERR_NONE) in apply_snvs_dgo_config()
497 return (scierr == SC_ERR_NONE) ? 0 : -EIO; in apply_snvs_dgo_config()
502 int scierr = sc_pad_set(-1, _pad, _value); in pad_write() local
504 if (scierr != SC_ERR_NONE) { in pad_write()
509 return scierr; in pad_write()
514 int scierr = 0; in apply_tamper_pin_list_config() local
523 if (scierr != SC_ERR_NONE) in apply_tamper_pin_list_config()
528 return (scierr == SC_ERR_NONE) ? 0 : -EIO; in apply_tamper_pin_list_config()
756 int scierr = 0; in do_snvs_clear_status() local
767 scierr = check_write_secvio_config(SC_CONF_OFFSET_OF(lp.status), in do_snvs_clear_status()
770 if (scierr != SC_ERR_NONE) in do_snvs_clear_status()
773 scierr = check_write_secvio_config(SC_CONF_OFFSET_OF(lp.tamper_det_status), in do_snvs_clear_status()
776 if (scierr != SC_ERR_NONE) in do_snvs_clear_status()
780 return (scierr == SC_ERR_NONE) ? 0 : 1; in do_snvs_clear_status()
796 int scierr; in do_snvs_sec_status() local
867 scierr = sc_pad_get(-1, pad_id, &data[0]); in do_snvs_sec_status()
868 if (scierr == 0) in do_snvs_sec_status()
879 scierr = sc_misc_otp_fuse_read(-1, fuse_id, &data[0]); in do_snvs_sec_status()
880 if (scierr == 0) in do_snvs_sec_status()
891 scierr = sc_seco_secvio_config(-1, reg->id, 0, &data[0], in do_snvs_sec_status()
894 if (scierr == 0) { in do_snvs_sec_status()
911 scierr = sc_seco_secvio_dgo_config(-1, dgo_id, 0, &data[0]); in do_snvs_sec_status()
912 if (scierr == 0) in do_snvs_sec_status()