Lines Matching refs:ptr
595 void *ptr = NULL; in dhd_pktgen() local
603 if ((ret = dhd_var_getbuf(dhd, "pktgen", NULL, 0, &ptr)) != 0) in dhd_pktgen()
605 memcpy(&pktgen, ptr, sizeof(pktgen)); in dhd_pktgen()
754 void *ptr = NULL; in dhd_sd_blocksize() local
781 if ((ret = dhd_var_getbuf(dhd, cmd->name, &func, sizeof(func), &ptr)) >= 0) in dhd_sd_blocksize()
782 printf("Function %d block size: %d\n", func, *(int*)ptr); in dhd_sd_blocksize()
889 char *ptr = NULL; in dhd_sdreg() local
905 sdreg.offset = strtoul(argv[1], &ptr, 0); in dhd_sdreg()
906 if (*ptr && *ptr != '/') { in dhd_sdreg()
912 if (*ptr == '/') { 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()
925 sdreg.value = strtoul(argv[2], &ptr, 0); in dhd_sdreg()
926 if (*ptr) { 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()
948 char *ptr; in dhd_membytes() local
1007 addr = strtoul(argv[0], &ptr, 0); in dhd_membytes()
1008 if (*ptr) { in dhd_membytes()
1014 len = strtoul(argv[1], &ptr, 0); in dhd_membytes()
1015 if (*ptr) { in dhd_membytes()
1035 params, (2 * sizeof(int)), (void**)&ptr); in dhd_membytes()
1040 fwrite(ptr + align, sizeof(char), chunk - align, stdout); in dhd_membytes()
1042 dhd_hexdump((uchar*)ptr + align, chunk - align, addr + align); in dhd_membytes()
1089 ptr = buf + strlen(buf) + 1; in dhd_membytes()
1091 memcpy(ptr, params, (2 * sizeof(int))); in dhd_membytes()
1092 ptr += (2 * sizeof(int)); in dhd_membytes()
1096 *ptr++ = *sptr++; in dhd_membytes()
1101 ret = dhd_set(dhd, DHD_SET_VAR, &buf[0], (ptr - buf)); in dhd_membytes()
1523 char *ptr; in dhd_verify_file_bytes() local
1529 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_verify_file_bytes()
1537 dst = (uint8 *)ptr; in dhd_verify_file_bytes()
2173 char *ptr; in dhd_upload()
2180 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_upload()
2187 if (fwrite(ptr, sizeof(char), len, fp) != len) { in dhd_upload()
2284 char *ptr; in dhd_coredump()
2348 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_coredump()
2355 memcpy((char *) &armtrap, ptr, sizeof(trap_t)); in dhd_coredump()
2402 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_coredump()
2409 if (fwrite(ptr, sizeof(char), len, fp) != (uint) len) { in dhd_coredump()
2439 char *ptr; in dhd_consoledump()
2483 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_consoledump()
2490 if (ptr == NULL) { in dhd_consoledump()
2496 start = (unsigned int)((hndrte_cons_t *)ptr)->log.buf; in dhd_consoledump()
2497 size = ((hndrte_cons_t *)ptr)->log.buf_size; in dhd_consoledump()
2511 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_consoledump()
2518 printf("%s", ptr); in dhd_consoledump()
2572 void *ptr = NULL; in dhd_sd_reg() local
2621 if ((ret = dhd_var_getbuf(dhd, cmd->name, &sdreg, sizeof(sdreg), &ptr)) >= 0) in dhd_sd_reg()
2622 printf("0x%x\n", *(int *)ptr); in dhd_sd_reg()
2751 char *ptr; in dhd_version() local
2761 if ((ret = dhd_var_getbuf(dhd, cmd->name, NULL, 0, (void**)&ptr)) < 0) in dhd_version()
2765 printf("%s\n", ptr); in dhd_version()
3025 void *ptr; in dhd_varstr() local
3027 if ((error = dhd_var_getbuf(dhd, cmd->name, NULL, 0, &ptr)) < 0) in dhd_varstr()
3030 str = (char *)ptr; in dhd_varstr()
3045 void *ptr; in dhd_hostreorder_flows() local
3049 if ((ret = dhd_var_getbuf(dhd, cmd->name, NULL, 0, &ptr)) < 0) { in dhd_hostreorder_flows()
3053 flow_id = (uint8 *)ptr; in dhd_hostreorder_flows()