Lines Matching refs:sdreg
887 sdreg_t sdreg; in dhd_sdreg() local
893 bzero(&sdreg, sizeof(sdreg)); in dhd_sdreg()
905 sdreg.offset = strtoul(argv[1], &ptr, 0); in dhd_sdreg()
913 sdreg.func = strtol((ptr+1), &ptr, 0); in dhd_sdreg()
914 if (*ptr || ((sdreg.func != 2) && sdreg.func != 4)) { in dhd_sdreg()
920 sdreg.func = 4; in dhd_sdreg()
925 sdreg.value = strtoul(argv[2], &ptr, 0); in dhd_sdreg()
933 ret = dhd_var_getbuf(dhd, argv[0], &sdreg, sizeof(sdreg), (void**)&ptr); in dhd_sdreg()
935 printf("0x%0*x\n", (2 * sdreg.func), *(int *)ptr); in dhd_sdreg()
937 ret = dhd_var_setbuf(dhd, argv[0], &sdreg, sizeof(sdreg)); in dhd_sdreg()
2569 sdreg_t sdreg; in dhd_sd_reg() local
2574 bzero(&sdreg, sizeof(sdreg)); in dhd_sd_reg()
2595 sdreg.func = strtoul(*argv++, &endptr, 0); in dhd_sd_reg()
2604 sdreg.offset = strtoul(*argv++, &endptr, 0); in dhd_sd_reg()
2612 sdreg.value = strtoul(*argv, &endptr, 0); in dhd_sd_reg()
2621 if ((ret = dhd_var_getbuf(dhd, cmd->name, &sdreg, sizeof(sdreg), &ptr)) >= 0) in dhd_sd_reg()
2624 ret = dhd_var_setbuf(dhd, cmd->name, &sdreg, sizeof(sdreg)); in dhd_sd_reg()