Lines Matching refs:tuple
477 struct sdio_func_tuple *tuple; in ssb_sdio_get_invariants() local
484 tuple = bus->host_sdio->tuples; in ssb_sdio_get_invariants()
485 while (tuple) { in ssb_sdio_get_invariants()
486 switch (tuple->code) { in ssb_sdio_get_invariants()
488 switch (tuple->data[0]) { in ssb_sdio_get_invariants()
490 GOTO_ERROR_ON((tuple->size != 7) && in ssb_sdio_get_invariants()
491 (tuple->data[1] != 6), in ssb_sdio_get_invariants()
494 mac = tuple->data + 2; in ssb_sdio_get_invariants()
503 switch (tuple->data[0]) { in ssb_sdio_get_invariants()
505 GOTO_ERROR_ON(tuple->size != 2, in ssb_sdio_get_invariants()
507 sprom->revision = tuple->data[1]; in ssb_sdio_get_invariants()
510 GOTO_ERROR_ON((tuple->size != 5) && in ssb_sdio_get_invariants()
511 (tuple->size != 7), in ssb_sdio_get_invariants()
513 bi->vendor = tuple->data[1] | in ssb_sdio_get_invariants()
514 (tuple->data[2]<<8); in ssb_sdio_get_invariants()
517 GOTO_ERROR_ON(tuple->size != 2, in ssb_sdio_get_invariants()
519 sprom->board_rev = tuple->data[1]; in ssb_sdio_get_invariants()
522 GOTO_ERROR_ON((tuple->size != 9) && in ssb_sdio_get_invariants()
523 (tuple->size != 10), in ssb_sdio_get_invariants()
525 sprom->pa0b0 = tuple->data[1] | in ssb_sdio_get_invariants()
526 ((u16)tuple->data[2] << 8); in ssb_sdio_get_invariants()
527 sprom->pa0b1 = tuple->data[3] | in ssb_sdio_get_invariants()
528 ((u16)tuple->data[4] << 8); in ssb_sdio_get_invariants()
529 sprom->pa0b2 = tuple->data[5] | in ssb_sdio_get_invariants()
530 ((u16)tuple->data[6] << 8); in ssb_sdio_get_invariants()
531 sprom->itssi_a = tuple->data[7]; in ssb_sdio_get_invariants()
532 sprom->itssi_bg = tuple->data[7]; in ssb_sdio_get_invariants()
533 sprom->maxpwr_a = tuple->data[8]; in ssb_sdio_get_invariants()
534 sprom->maxpwr_bg = tuple->data[8]; in ssb_sdio_get_invariants()
540 GOTO_ERROR_ON(tuple->size != 2, in ssb_sdio_get_invariants()
542 sprom->country_code = tuple->data[1]; in ssb_sdio_get_invariants()
545 GOTO_ERROR_ON(tuple->size != 2, in ssb_sdio_get_invariants()
547 sprom->ant_available_a = tuple->data[1]; in ssb_sdio_get_invariants()
548 sprom->ant_available_bg = tuple->data[1]; in ssb_sdio_get_invariants()
551 GOTO_ERROR_ON(tuple->size != 2, in ssb_sdio_get_invariants()
553 sprom->antenna_gain.a0 = tuple->data[1]; in ssb_sdio_get_invariants()
554 sprom->antenna_gain.a1 = tuple->data[1]; in ssb_sdio_get_invariants()
555 sprom->antenna_gain.a2 = tuple->data[1]; in ssb_sdio_get_invariants()
556 sprom->antenna_gain.a3 = tuple->data[1]; in ssb_sdio_get_invariants()
559 GOTO_ERROR_ON((tuple->size != 3) && in ssb_sdio_get_invariants()
560 (tuple->size != 5), in ssb_sdio_get_invariants()
562 sprom->boardflags_lo = tuple->data[1] | in ssb_sdio_get_invariants()
563 ((u16)tuple->data[2] << 8); in ssb_sdio_get_invariants()
566 GOTO_ERROR_ON(tuple->size != 5, in ssb_sdio_get_invariants()
568 sprom->gpio0 = tuple->data[1]; in ssb_sdio_get_invariants()
569 sprom->gpio1 = tuple->data[2]; in ssb_sdio_get_invariants()
570 sprom->gpio2 = tuple->data[3]; in ssb_sdio_get_invariants()
571 sprom->gpio3 = tuple->data[4]; in ssb_sdio_get_invariants()
580 tuple = tuple->next; in ssb_sdio_get_invariants()