Lines Matching refs:barker

252 	struct i2400m_barker_db *barker;  in i2400m_barker_db_add()  local
260 barker = i2400m_barker_db + i2400m_barker_db_used++; in i2400m_barker_db_add()
261 barker->data[0] = le32_to_cpu(barker_id); in i2400m_barker_db_add()
262 barker->data[1] = le32_to_cpu(barker_id); in i2400m_barker_db_add()
263 barker->data[2] = le32_to_cpu(barker_id); in i2400m_barker_db_add()
264 barker->data[3] = le32_to_cpu(barker_id); in i2400m_barker_db_add()
326 unsigned barker; in i2400m_barker_db_init() local
338 if (sscanf(token, "%x", &barker) != 1 in i2400m_barker_db_init()
339 || barker > 0xffffffff) { in i2400m_barker_db_init()
347 if (barker == 0) { in i2400m_barker_db_init()
352 result = i2400m_barker_db_add(barker); in i2400m_barker_db_init()
391 struct i2400m_barker_db *barker; in i2400m_is_boot_barker() local
400 if (i2400m->barker && in i2400m_is_boot_barker()
401 !memcmp(buf, i2400m->barker, sizeof(i2400m->barker->data))) in i2400m_is_boot_barker()
405 barker = &i2400m_barker_db[i]; in i2400m_is_boot_barker()
406 BUILD_BUG_ON(sizeof(barker->data) != 16); in i2400m_is_boot_barker()
407 if (memcmp(buf, barker->data, sizeof(barker->data))) in i2400m_is_boot_barker()
410 if (i2400m->barker == NULL) { in i2400m_is_boot_barker()
411 i2400m->barker = barker; in i2400m_is_boot_barker()
413 i, le32_to_cpu(barker->data[0])); in i2400m_is_boot_barker()
414 if (barker->data[0] == le32_to_cpu(I2400M_NBOOT_BARKER)) in i2400m_is_boot_barker()
418 } else if (i2400m->barker != barker) { in i2400m_is_boot_barker()
422 le32_to_cpu(i2400m->barker->data[0]), in i2400m_is_boot_barker()
423 le32_to_cpu(barker->data[0])); in i2400m_is_boot_barker()
427 i, le32_to_cpu(barker->data[0])); in i2400m_is_boot_barker()
928 if (i2400m->barker != NULL) { in i2400m_bootrom_init()
931 le32_to_cpu(i2400m->barker->data[0])); in i2400m_bootrom_init()
935 struct i2400m_barker_db *barker = &i2400m_barker_db[i]; in i2400m_bootrom_init() local
936 memcpy(cmd, barker->data, sizeof(barker->data)); in i2400m_bootrom_init()
944 i, le32_to_cpu(barker->data[0])); in i2400m_bootrom_init()
968 memcpy(cmd, i2400m->barker->data, sizeof(i2400m->barker->data)); in i2400m_bootrom_init()
1323 u32 barker = le32_to_cpu(i2400m->barker->data[0]) in i2400m_bcf_hdr_match() local
1329 if (barker == I2400M_SBOOT_BARKER && module_id == 0) in i2400m_bcf_hdr_match()
1331 if (module_id == barker) in i2400m_bcf_hdr_match()
1342 u32 barker = le32_to_cpu(i2400m->barker->data[0]); in i2400m_bcf_hdr_find() local
1344 d_printf(2, dev, "finding BCF header for barker %08x\n", barker); in i2400m_bcf_hdr_find()
1345 if (barker == I2400M_NBOOT_BARKER) { in i2400m_bcf_hdr_find()
1362 barker); in i2400m_bcf_hdr_find()