Home | History | Annotate | Download | only in tools

Lines Matching refs:array

242 	uint8_t array[8];
251 memset(array, 0, sizeof(array));
252 array[0] = def & 0xff;
253 array[1] = def >> 8;
255 err = transport_read(transport, CSR_VARID_GET_NEXT_BUILDDEF, array, 8);
261 nextdef = array[2] | (array[3] << 8);
276 uint8_t array[8];
284 memset(array, 0, sizeof(array));
285 array[0] = handle & 0xff;
286 array[1] = handle >> 8;
288 err = transport_read(transport, CSR_VARID_CRYPT_KEY_LENGTH, array, 8);
294 handle = array[0] | (array[1] << 8);
295 keylen = array[2] | (array[3] << 8);
304 uint8_t array[8];
310 memset(array, 0, sizeof(array));
312 err = transport_read(transport, CSR_VARID_BT_CLOCK, array, 8);
318 clock = array[2] | (array[3] << 8) | (array[0] << 16) | (array[1] << 24);
327 uint8_t array[8];
333 memset(array, 0, sizeof(array));
335 err = transport_read(transport, CSR_VARID_RAND, array, 8);
341 rand = array[0] | (array[1] << 8);
350 uint8_t array[8];
357 memset(array, 0, sizeof(array));
359 err = transport_read(transport, CSR_VARID_CHIPREV, array, 8);
365 rev = array[0] | (array[1] << 8);
410 uint8_t array[130];
417 memset(array, 0, sizeof(array));
419 err = transport_read(transport, CSR_VARID_READ_BUILD_NAME, array, 128);
426 name[i] = array[(i * 2) + 4];
435 uint8_t array[8];
441 memset(array, 0, sizeof(array));
443 err = transport_read(transport, CSR_VARID_PANIC_ARG, array, 8);
449 error = array[0] | (array[1] << 8);
459 uint8_t array[8];
465 memset(array, 0, sizeof(array));
467 err = transport_read(transport, CSR_VARID_FAULT_ARG, array, 8);
473 error = array[0] | (array[1] << 8);
503 uint8_t array[8];
518 memset(array, 0, sizeof(array));
519 array[0] = channel & 0xff;
520 array[1] = channel >> 8;
522 return transport_write(transport, CSR_VARID_SINGLE_CHAN, array, 8);
532 uint8_t array[8];
544 memset(array, 0, sizeof(array));
545 array[0] = 0x04;
546 array[1] = 0x00;
547 array[2] = freq & 0xff;
548 array[3] = freq >> 8;
549 array[4] = level & 0xff;
550 array[5] = level >> 8;
552 return transport_write(transport, CSR_VARID_RADIOTEST, array, 8);
557 uint8_t array[8];
571 memset(array, 0, sizeof(array));
572 array[0] = test & 0xff;
573 array[1] = test >> 8;
574 array[2] = freq & 0xff;
575 array[3] = freq >> 8;
576 array[4] = level & 0xff;
577 array[5] = level >> 8;
579 return transport_write(transport, CSR_VARID_RADIOTEST, array, 8);
584 uint8_t array[8];
591 memset(array, 0, sizeof(array));
592 array[0] = stores[i] & 0xff;
593 array[1] = stores[i] >> 8;
595 err = transport_read(transport, CSR_VARID_PS_MEMORY_TYPE, array, 8);
599 type = array[2] + (array[3] << 8);
670 uint8_t array[128];
675 memset(array, 0, sizeof(array));
692 memset(array, 0, sizeof(array));
693 array[0] = pskey & 0xff;
694 array[1] = pskey >> 8;
695 array[2] = stores & 0xff;
696 array[3] = stores >> 8;
698 err = transport_read(transport, CSR_VARID_PS_SIZE, array, 8);
702 length = array[2] + (array[3] << 8);
703 if (length + 6 > (int) sizeof(array) / 2)
706 memset(array, 0, sizeof(array));
707 array[0] = pskey & 0xff;
708 array[1] = pskey >> 8;
709 array[2] = length & 0xff;
710 array[3] = length >> 8;
711 array[4] = stores & 0xff;
712 array[5] = stores >> 8;
714 err = transport_read(transport, CSR_VARID_PS, array, (length + 3) * 2);
720 value = array[6] | (array[7] << 8);
725 val32 = array[8] | (array[9] << 8) | (array[6] << 16) | (array[7] << 24);
732 printf(" 0x%02x%02x", array[(i * 2) + 6], array[(i * 2) + 7]);
745 uint8_t array[128];
750 memset(arrayarray));
767 memset(array, 0, sizeof(array));
768 array[0] = pskey & 0xff;
769 array[1] = pskey >> 8;
770 array[2] = stores & 0xff;
771 array[3] = stores >> 8;
773 err = transport_read(transport, CSR_VARID_PS_SIZE, array, 8);
777 length = array[2] + (array[3] << 8);
778 if (length + 6 > (int) sizeof(array) / 2)
781 memset(array, 0, sizeof(array));
782 array[0] = pskey & 0xff;
783 array[1] = pskey >> 8;
784 array[2] = length & 0xff;
785 array[3] = length >> 8;
786 array[4] = stores & 0xff;
787 array[5] = stores >> 8;
804 array[6] = value & 0xff;
805 array[7] = value >> 8;
819 array[6] = (val32 & 0xff0000) >> 16;
820 array[7] = val32 >> 24;
821 array[8] = val32 & 0xff;
822 array[9] = (val32 & 0xff00) >> 8;
833 array[i + 6] = strtol(argv[i] + 2, NULL, 16);
835 array[i + 6] = atoi(argv[i]);
839 err = transport_write(transport, CSR_VARID_PS, array, (length + 3) * 2);
851 uint8_t array[8];
870 memset(array, 0, sizeof(array));
871 array[0] = pskey & 0xff;
872 array[1] = pskey >> 8;
873 array[2] = stores & 0xff;
874 array[3] = stores >> 8;
876 err = transport_write(transport, CSR_VARID_PS_CLR_STORES, array, 8);
888 uint8_t array[8];
895 memset(array, 0, sizeof(array));
896 array[0] = pskey & 0xff;
897 array[1] = pskey >> 8;
898 array[2] = stores & 0xff;
899 array[3] = stores >> 8;
901 err = transport_read(transport, CSR_VARID_PS_NEXT, array, 8);
905 pskey = array[4] + (array[5] << 8);
909 memset(array, 0, sizeof(array));
910 array[0] = pskey & 0xff;
911 array[1] = pskey >> 8;
912 array[2] = stores & 0xff;
913 array[3] = stores >> 8;
915 err = transport_read(transport, CSR_VARID_PS_SIZE, array, 8);
919 length = array[2] + (array[3] << 8);
933 uint8_t array[256];
941 memset(array, 0, sizeof(array));
942 array[0] = pskey & 0xff;
943 array[1] = pskey >> 8;
944 array[2] = stores & 0xff;
945 array[3] = stores >> 8;
947 err = transport_read(transport, CSR_VARID_PS_NEXT, array, 8);
951 pskey = array[4] + (array[5] << 8);
955 memset(array, 0, sizeof(array));
956 array[0] = pskey & 0xff;
957 array[1] = pskey >> 8;
958 array[2] = stores & 0xff;
959 array[3] = stores >> 8;
961 err = transport_read(transport, CSR_VARID_PS_SIZE, array, 8);
965 length = array[2] + (array[3] << 8);
966 if (length + 6 > (int) sizeof(array) / 2)
969 memset(array, 0, sizeof(array));
970 array[0] = pskey & 0xff;
971 array[1] = pskey >> 8;
972 array[2] = length & 0xff;
973 array[3] = length >> 8;
974 array[4] = stores & 0xff;
975 array[5] = stores >> 8;
977 err = transport_read(transport, CSR_VARID_PS, array, (length + 3) * 2);
990 printf(" %02x%02x", array[(i * 2) + 7], array[(i * 2) + 6]);
1002 uint8_t array[256];
1011 memset(array, 0, sizeof(array));
1012 size = sizeof(array) - 6;
1014 while (psr_get(&pskey, array + 6, &size) == 0) {
1027 array[0] = pskey & 0xff;
1028 array[1] = pskey >> 8;
1029 array[2] = length & 0xff;
1030 array[3] = length >> 8;
1031 array[4] = stores & 0xff;
1032 array[5] = stores >> 8;
1034 err = transport_write(transport, CSR_VARID_PS, array, size + 6);
1038 memset(array, 0, sizeof(array));
1039 size = sizeof(array) - 6;
1050 uint8_t array[256];
1058 while (psr_get(&pskey, array, &size) == 0) {
1061 printf(" 0x%02x", array[i]);