Lines Matching full:tuple

478 	struct sdio_func_tuple *tuple;  in ssb_sdio_get_invariants()  local
485 tuple = bus->host_sdio->tuples; in ssb_sdio_get_invariants()
486 while (tuple) { in ssb_sdio_get_invariants()
487 switch (tuple->code) { in ssb_sdio_get_invariants()
489 switch (tuple->data[0]) { in ssb_sdio_get_invariants()
491 GOTO_ERROR_ON((tuple->size != 7) && in ssb_sdio_get_invariants()
492 (tuple->data[1] != 6), in ssb_sdio_get_invariants()
495 mac = tuple->data + 2; in ssb_sdio_get_invariants()
503 case 0x80: /* vendor specific tuple */ in ssb_sdio_get_invariants()
504 switch (tuple->data[0]) { in ssb_sdio_get_invariants()
506 GOTO_ERROR_ON(tuple->size != 2, in ssb_sdio_get_invariants()
508 sprom->revision = tuple->data[1]; in ssb_sdio_get_invariants()
511 GOTO_ERROR_ON((tuple->size != 5) && in ssb_sdio_get_invariants()
512 (tuple->size != 7), in ssb_sdio_get_invariants()
514 bi->vendor = tuple->data[1] | in ssb_sdio_get_invariants()
515 (tuple->data[2]<<8); in ssb_sdio_get_invariants()
518 GOTO_ERROR_ON(tuple->size != 2, in ssb_sdio_get_invariants()
520 sprom->board_rev = tuple->data[1]; in ssb_sdio_get_invariants()
523 GOTO_ERROR_ON((tuple->size != 9) && in ssb_sdio_get_invariants()
524 (tuple->size != 10), in ssb_sdio_get_invariants()
526 sprom->pa0b0 = tuple->data[1] | in ssb_sdio_get_invariants()
527 ((u16)tuple->data[2] << 8); in ssb_sdio_get_invariants()
528 sprom->pa0b1 = tuple->data[3] | in ssb_sdio_get_invariants()
529 ((u16)tuple->data[4] << 8); in ssb_sdio_get_invariants()
530 sprom->pa0b2 = tuple->data[5] | in ssb_sdio_get_invariants()
531 ((u16)tuple->data[6] << 8); in ssb_sdio_get_invariants()
532 sprom->itssi_a = tuple->data[7]; in ssb_sdio_get_invariants()
533 sprom->itssi_bg = tuple->data[7]; in ssb_sdio_get_invariants()
534 sprom->maxpwr_a = tuple->data[8]; in ssb_sdio_get_invariants()
535 sprom->maxpwr_bg = tuple->data[8]; in ssb_sdio_get_invariants()
541 GOTO_ERROR_ON(tuple->size != 2, in ssb_sdio_get_invariants()
543 sprom->country_code = tuple->data[1]; in ssb_sdio_get_invariants()
546 GOTO_ERROR_ON(tuple->size != 2, in ssb_sdio_get_invariants()
548 sprom->ant_available_a = tuple->data[1]; in ssb_sdio_get_invariants()
549 sprom->ant_available_bg = tuple->data[1]; in ssb_sdio_get_invariants()
552 GOTO_ERROR_ON(tuple->size != 2, in ssb_sdio_get_invariants()
554 sprom->antenna_gain.a0 = tuple->data[1]; in ssb_sdio_get_invariants()
555 sprom->antenna_gain.a1 = tuple->data[1]; in ssb_sdio_get_invariants()
556 sprom->antenna_gain.a2 = tuple->data[1]; in ssb_sdio_get_invariants()
557 sprom->antenna_gain.a3 = tuple->data[1]; in ssb_sdio_get_invariants()
560 GOTO_ERROR_ON((tuple->size != 3) && in ssb_sdio_get_invariants()
561 (tuple->size != 5), in ssb_sdio_get_invariants()
563 sprom->boardflags_lo = tuple->data[1] | in ssb_sdio_get_invariants()
564 ((u16)tuple->data[2] << 8); in ssb_sdio_get_invariants()
567 GOTO_ERROR_ON(tuple->size != 5, in ssb_sdio_get_invariants()
569 sprom->gpio0 = tuple->data[1]; in ssb_sdio_get_invariants()
570 sprom->gpio1 = tuple->data[2]; in ssb_sdio_get_invariants()
571 sprom->gpio2 = tuple->data[3]; in ssb_sdio_get_invariants()
572 sprom->gpio3 = tuple->data[4]; in ssb_sdio_get_invariants()
581 tuple = tuple->next; in ssb_sdio_get_invariants()