• Home
  • Raw
  • Download

Lines Matching refs:ptr

594 	void *ptr = NULL;  in dhd_pktgen()  local
602 if ((ret = dhd_var_getbuf(dhd, "pktgen", NULL, 0, &ptr)) != 0) in dhd_pktgen()
604 memcpy(&pktgen, ptr, sizeof(pktgen)); in dhd_pktgen()
753 void *ptr = NULL; in dhd_sd_blocksize() local
780 if ((ret = dhd_var_getbuf(dhd, cmd->name, &func, sizeof(func), &ptr)) >= 0) in dhd_sd_blocksize()
781 printf("Function %d block size: %d\n", func, *(int*)ptr); in dhd_sd_blocksize()
888 char *ptr = NULL; in dhd_sdreg() local
904 sdreg.offset = strtoul(argv[1], &ptr, 0); in dhd_sdreg()
905 if (*ptr && *ptr != '/') { in dhd_sdreg()
911 if (*ptr == '/') { in dhd_sdreg()
912 sdreg.func = strtol((ptr+1), &ptr, 0); in dhd_sdreg()
913 if (*ptr || ((sdreg.func != 2) && sdreg.func != 4)) { in dhd_sdreg()
924 sdreg.value = strtoul(argv[2], &ptr, 0); in dhd_sdreg()
925 if (*ptr) { in dhd_sdreg()
932 ret = dhd_var_getbuf(dhd, argv[0], &sdreg, sizeof(sdreg), (void**)&ptr); in dhd_sdreg()
934 printf("0x%0*x\n", (2 * sdreg.func), *(int *)ptr); in dhd_sdreg()
947 char *ptr; in dhd_membytes() local
1006 addr = strtoul(argv[0], &ptr, 0); in dhd_membytes()
1007 if (*ptr) { in dhd_membytes()
1013 len = strtoul(argv[1], &ptr, 0); in dhd_membytes()
1014 if (*ptr) { in dhd_membytes()
1034 params, (2 * sizeof(int)), (void**)&ptr); in dhd_membytes()
1039 fwrite(ptr + align, sizeof(char), chunk - align, stdout); in dhd_membytes()
1041 dhd_hexdump((uchar*)ptr + align, chunk - align, addr + align); in dhd_membytes()
1088 ptr = buf + strlen(buf) + 1; in dhd_membytes()
1090 memcpy(ptr, params, (2 * sizeof(int))); in dhd_membytes()
1091 ptr += (2 * sizeof(int)); in dhd_membytes()
1095 *ptr++ = *sptr++; in dhd_membytes()
1100 ret = dhd_set(dhd, DHD_SET_VAR, &buf[0], (ptr - buf)); in dhd_membytes()
1522 char *ptr; in dhd_verify_file_bytes() local
1528 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_verify_file_bytes()
1536 dst = (uint8 *)ptr; in dhd_verify_file_bytes()
2172 char *ptr; in dhd_upload()
2179 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_upload()
2186 if (fwrite(ptr, sizeof(char), len, fp) != len) { in dhd_upload()
2283 char *ptr; in dhd_coredump()
2347 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_coredump()
2354 memcpy((char *) &armtrap, ptr, sizeof(trap_t)); in dhd_coredump()
2401 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_coredump()
2408 if (fwrite(ptr, sizeof(char), len, fp) != (uint) len) { in dhd_coredump()
2438 char *ptr; in dhd_consoledump()
2482 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_consoledump()
2489 if (ptr == NULL) { in dhd_consoledump()
2495 start = (unsigned int)((hndrte_cons_t *)ptr)->log.buf; in dhd_consoledump()
2496 size = ((hndrte_cons_t *)ptr)->log.buf_size; in dhd_consoledump()
2510 ret = dhd_var_getbuf(dhd, "membytes", params, 2 * sizeof(int), (void**)&ptr); in dhd_consoledump()
2517 printf("%s", ptr); in dhd_consoledump()
2571 void *ptr = NULL; in dhd_sd_reg() local
2620 if ((ret = dhd_var_getbuf(dhd, cmd->name, &sdreg, sizeof(sdreg), &ptr)) >= 0) in dhd_sd_reg()
2621 printf("0x%x\n", *(int *)ptr); in dhd_sd_reg()
2750 char *ptr; in dhd_version() local
2760 if ((ret = dhd_var_getbuf(dhd, cmd->name, NULL, 0, (void**)&ptr)) < 0) in dhd_version()
2764 printf("%s\n", ptr); in dhd_version()
3024 void *ptr; in dhd_varstr() local
3026 if ((error = dhd_var_getbuf(dhd, cmd->name, NULL, 0, &ptr)) < 0) in dhd_varstr()
3029 str = (char *)ptr; in dhd_varstr()
3044 void *ptr; in dhd_hostreorder_flows() local
3048 if ((ret = dhd_var_getbuf(dhd, cmd->name, NULL, 0, &ptr)) < 0) { in dhd_hostreorder_flows()
3052 flow_id = (uint8 *)ptr; in dhd_hostreorder_flows()