Lines Matching refs:p_ctrl
26 flash_hp_enter_pe_cf_mode(flash_hp_instance_ctrl_t *const p_ctrl) PLACE_IN_RAM_SECTION;
30 extern fsp_err_t flash_hp_configuration_area_write(flash_hp_instance_ctrl_t *p_ctrl,
38 static fsp_err_t flash_hp_set_block_protect_ns(flash_hp_instance_ctrl_t *p_ctrl,
42 static fsp_err_t flash_hp_set_block_protect_sec(flash_hp_instance_ctrl_t *p_ctrl,
46 static fsp_err_t flash_hp_set_block_protect_sel(flash_hp_instance_ctrl_t *p_ctrl,
50 static fsp_err_t flash_hp_set_block_protect_ns(flash_hp_instance_ctrl_t *p_ctrl, in flash_hp_set_block_protect_ns() argument
58 fsp_err_t err = flash_hp_enter_pe_cf_mode(p_ctrl); in flash_hp_set_block_protect_ns()
66 err = flash_hp_configuration_area_write(p_ctrl, FLASH_HP_FCU_CONFIG_SET_BPS); in flash_hp_set_block_protect_ns()
74 err = flash_hp_configuration_area_write(p_ctrl, FLASH_HP_FCU_CONFIG_SET_PBPS); in flash_hp_set_block_protect_ns()
91 static fsp_err_t flash_hp_set_block_protect_sec(flash_hp_instance_ctrl_t *p_ctrl, in flash_hp_set_block_protect_sec() argument
98 fsp_err_t err = flash_hp_enter_pe_cf_mode(p_ctrl); in flash_hp_set_block_protect_sec()
106 err = flash_hp_configuration_area_write(p_ctrl, FLASH_HP_FCU_CONFIG_SET_BPS_SEC); in flash_hp_set_block_protect_sec()
114 err = flash_hp_configuration_area_write(p_ctrl, FLASH_HP_FCU_CONFIG_SET_PBPS_SEC); in flash_hp_set_block_protect_sec()
131 static fsp_err_t flash_hp_set_block_protect_sel(flash_hp_instance_ctrl_t *p_ctrl, in flash_hp_set_block_protect_sel() argument
138 fsp_err_t err = flash_hp_enter_pe_cf_mode(p_ctrl); in flash_hp_set_block_protect_sel()
144 err = flash_hp_configuration_area_write(p_ctrl, FLASH_HP_FCU_CONFIG_SET_BPS_SEL); in flash_hp_set_block_protect_sel()
181 flash_hp_instance_ctrl_t *p_ctrl = (flash_hp_instance_ctrl_t *)p_api_ctrl; in R_FLASH_HP_BlockProtectSet() local
189 err = flash_hp_set_block_protect_ns(p_ctrl, bps_val_ns, pbps_val_ns, size); in R_FLASH_HP_BlockProtectSet()
195 err = flash_hp_set_block_protect_sec(p_ctrl, bps_val_sec, pbps_val_sec, size); in R_FLASH_HP_BlockProtectSet()
201 err = flash_hp_set_block_protect_sel(p_ctrl, bps_val_sel, size); in R_FLASH_HP_BlockProtectSet()