• Home
  • Raw
  • Download

Lines Matching refs:ptr

570 	void *ptr = NULL;  in dhd_pktgen()  local
578 if ((ret = dhd_var_getbuf(dhd, "pktgen", NULL, 0, &ptr)) != 0) in dhd_pktgen()
580 memcpy(&pktgen, ptr, sizeof(pktgen)); in dhd_pktgen()
729 void *ptr = NULL; in dhd_sd_blocksize() local
756 if ((ret = dhd_var_getbuf(dhd, cmd->name, &func, sizeof(func), &ptr)) >= 0) in dhd_sd_blocksize()
757 printf("Function %d block size: %d\n", func, *(int*)ptr); in dhd_sd_blocksize()
864 char *ptr = NULL; in dhd_sdreg() local
880 sdreg.offset = strtoul(argv[1], &ptr, 0); in dhd_sdreg()
881 if (*ptr && *ptr != '/') { in dhd_sdreg()
887 if (*ptr == '/') { in dhd_sdreg()
888 sdreg.func = strtol((ptr+1), &ptr, 0); in dhd_sdreg()
889 if (*ptr || ((sdreg.func != 2) && sdreg.func != 4)) { in dhd_sdreg()
900 sdreg.value = strtoul(argv[2], &ptr, 0); in dhd_sdreg()
901 if (*ptr) { in dhd_sdreg()
908 ret = dhd_var_getbuf(dhd, argv[0], &sdreg, sizeof(sdreg), (void**)&ptr); in dhd_sdreg()
910 printf("0x%0*x\n", (2 * sdreg.func), *(int *)ptr); in dhd_sdreg()
923 char *ptr; in dhd_membytes() local
981 addr = strtoul(argv[0], &ptr, 0); in dhd_membytes()
982 if (*ptr) { in dhd_membytes()
988 len = strtoul(argv[1], &ptr, 0); in dhd_membytes()
989 if (*ptr) { in dhd_membytes()
1007 params, (2 * sizeof(int)), (void**)&ptr); in dhd_membytes()
1012 fwrite(ptr + align, sizeof(char), chunk - align, stdout); in dhd_membytes()
1014 dhd_hexdump((uchar*)ptr + align, chunk - align, addr + align); in dhd_membytes()
1060 ptr = buf + strlen(buf) + 1; in dhd_membytes()
1062 memcpy(ptr, params, (2 * sizeof(int))); in dhd_membytes()
1063 ptr += (2 * sizeof(int)); in dhd_membytes()
1067 *ptr++ = *sptr++; in dhd_membytes()
1072 ret = dhd_set(dhd, DHD_SET_VAR, &buf[0], (ptr - buf)); in dhd_membytes()
1995 char *ptr; in dhd_upload()
2002 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_upload()
2009 if (fwrite(ptr, sizeof(*ptr), len, fp) != len) { in dhd_upload()
2068 void *ptr = NULL; in dhd_sd_reg() local
2117 if ((ret = dhd_var_getbuf(dhd, cmd->name, &sdreg, sizeof(sdreg), &ptr)) >= 0) in dhd_sd_reg()
2118 printf("0x%x\n", *(int *)ptr); in dhd_sd_reg()
2244 char *ptr; in dhd_version() local
2254 if ((ret = dhd_var_getbuf(dhd, cmd->name, NULL, 0, (void**)&ptr)) < 0) in dhd_version()
2258 printf("%s\n", ptr); in dhd_version()
2518 void *ptr; in dhd_varstr() local
2520 if ((error = dhd_var_getbuf(dhd, cmd->name, NULL, 0, &ptr)) < 0) in dhd_varstr()
2523 str = (char *)ptr; in dhd_varstr()