Lines Matching refs:env__sf_config

47 def sf_prepare(u_boot_console, env__sf_config):  argument
62 probe_id = env__sf_config.get('id', 0)
63 speed = env__sf_config.get('speed', 0)
89 assert 'offset' in env__sf_config, \
91 sf_params['len'] = env__sf_config.get('len', sf_params['erase_size'])
93 assert not env__sf_config['offset'] % sf_params['erase_size'], \
98 assert not (env__sf_config.get('writeable', False) and
99 'crc32' in env__sf_config), \
104 def sf_read(u_boot_console, env__sf_config, sf_params): argument
119 offset = env__sf_config['offset']
122 crc_expected = env__sf_config.get('crc32', None)
140 def sf_update(u_boot_console, env__sf_config, sf_params): argument
153 offset = env__sf_config['offset']
163 crc_readback = sf_read(u_boot_console, env__sf_config, sf_params)
170 def test_sf_read(u_boot_console, env__sf_config): argument
171 sf_params = sf_prepare(u_boot_console, env__sf_config)
172 sf_read(u_boot_console, env__sf_config, sf_params)
177 def test_sf_read_twice(u_boot_console, env__sf_config): argument
178 sf_params = sf_prepare(u_boot_console, env__sf_config)
180 crc1 = sf_read(u_boot_console, env__sf_config, sf_params)
182 crc2 = sf_read(u_boot_console, env__sf_config, sf_params)
189 def test_sf_erase(u_boot_console, env__sf_config): argument
190 if not env__sf_config.get('writeable', False):
193 sf_params = sf_prepare(u_boot_console, env__sf_config)
195 offset = env__sf_config['offset']
206 crc_read = sf_read(u_boot_console, env__sf_config, sf_params)
212 def test_sf_update(u_boot_console, env__sf_config): argument
213 if not env__sf_config.get('writeable', False):
216 sf_params = sf_prepare(u_boot_console, env__sf_config)
217 sf_update(u_boot_console, env__sf_config, sf_params)