• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/wimax/i2400m/

Lines Matching defs:barker

59  * reboot barker (4 le32 words with the same value). We ack it by
60 * sending the same barker to the device. The device acks with a
61 * reboot ack barker (4 le32 words with value I2400M_ACK_BARKER) and
91 * waiting for a reboot barker, that means maybe we are already in
92 * boot mode, so we send a reboot barker.
206 * A barker is what the device sends indicating he is ready to be
208 * barkers. Depending on the barker, it might mean the device wants
242 * Add a barker to the database
252 struct i2400m_barker_db *barker;
260 barker = i2400m_barker_db + i2400m_barker_db_used++;
261 barker->data[0] = le32_to_cpu(barker_id);
262 barker->data[1] = le32_to_cpu(barker_id);
263 barker->data[2] = le32_to_cpu(barker_id);
264 barker->data[3] = le32_to_cpu(barker_id);
279 * Helper function to add all the known stable barkers to the barker
302 * Initialize the barker database
326 unsigned barker;
336 if (sscanf(token, "%x", &barker) != 1
337 || barker > 0xffffffff) {
345 if (barker == 0) {
350 result = i2400m_barker_db_add(barker);
366 * Recognize a boot barker
368 * @buf: buffer where the boot barker.
373 * barker, this function will set i2400m->barker to point to the right
374 * barker database entry. Subsequent calls to the function will result
375 * in verifying that the same type of boot barker is returned when the
378 * Return: 0 if @buf matches a known boot barker. -ENOENT if the
379 * buffer in @buf doesn't match any boot barker in the database or
387 struct i2400m_barker_db *barker;
394 /* Short circuit if we have already discovered the barker
396 if (i2400m->barker
397 && !memcmp(buf, i2400m->barker, sizeof(i2400m->barker->data))) {
398 unsigned index = (i2400m->barker - i2400m_barker_db)
399 / sizeof(*i2400m->barker);
400 d_printf(2, dev, "boot barker cache-confirmed #%u/%08x\n",
401 index, le32_to_cpu(i2400m->barker->data[0]));
406 barker = &i2400m_barker_db[i];
407 BUILD_BUG_ON(sizeof(barker->data) != 16);
408 if (memcmp(buf, barker->data, sizeof(barker->data)))
411 if (i2400m->barker == NULL) {
412 i2400m->barker = barker;
413 d_printf(1, dev, "boot barker set to #%u/%08x\n",
414 i, le32_to_cpu(barker->data[0]));
415 if (barker->data[0] == le32_to_cpu(I2400M_NBOOT_BARKER))
419 } else if (i2400m->barker != barker) {
421 "reports a different boot barker "
423 le32_to_cpu(i2400m->barker->data[0]),
424 le32_to_cpu(barker->data[0]));
427 d_printf(2, dev, "boot barker confirmed #%u/%08x\n",
428 i, le32_to_cpu(barker->data[0]));
470 d_printf(6, dev, "boot-mode cmd %d: HW boot barker\n", opcode);
476 d_printf(3, dev, "boot-mode cmd %d: HW reboot ack barker\n",
765 * Indicate if the device emitted a reboot barker that indicates
842 * I2400M_BRI_SOFT: a reboot barker has been seen
846 * for a reboot barker notification. This is a one shot; if
858 * a. (1) send a reboot command and (2) get a reboot barker
860 * b. (1) echo/ack the reboot sending the reboot barker back and (2)
861 * getting an ack barker in return
870 * the reboot barker (the device might send different ones depending
872 * echo/ack reboot barker being sent back, it doesn't understand
915 * i2400m->barker and we are good to go.
917 d_printf(4, dev, "device reboot: got reboot barker\n");
920 d_printf(4, dev, "device reboot: got ack barker - whatever\n");
926 * the barker is, we just send them all. Cold reset
929 if (i2400m->barker != NULL) {
930 dev_err(dev, "device boot: reboot barker timed out, "
932 le32_to_cpu(i2400m->barker->data[0]));
936 struct i2400m_barker_db *barker = &i2400m_barker_db[i];
937 memcpy(cmd, barker->data, sizeof(barker->data));
942 dev_warn(dev, "device boot: got ack barker "
943 "after sending echo/ack barker "
945 i, le32_to_cpu(barker->data[0]));
959 "for reboot barker - rebooting\n", result);
969 memcpy(cmd, i2400m->barker->data, sizeof(i2400m->barker->data));
974 d_printf(4, dev, "reboot ack: got reboot barker - retrying\n");
979 d_printf(4, dev, "reboot ack: got ack barker - good\n");
996 "reboot ack barker - rebooting\n", result);
999 d_printf(2, dev, "device reboot ack: got ack barker - boot done\n");
1316 * Match a barker to a BCF header module ID
1318 * The device sends a barker which tells the firmware loader which
1325 u32 barker = le32_to_cpu(i2400m->barker->data[0])
1331 if (barker == I2400M_SBOOT_BARKER && module_id == 0)
1333 if (module_id == barker)
1344 u32 barker = le32_to_cpu(i2400m->barker->data[0]);
1346 d_printf(2, dev, "finding BCF header for barker %08x\n", barker);
1347 if (barker == I2400M_NBOOT_BARKER) {
1350 "barker\n", 0, le32_to_cpu(bcf_hdr->module_id));
1363 dev_err(dev, "cannot find a matching BCF header for barker %08x\n",
1364 barker);
1418 * that matches the barker that the device sent when it