Lines Matching refs:prg_p

139 static int probe_dev(int fd, pcitool_reg_t *prg_p,
146 static int bytedump_get(int fd, int cmd, pcitool_reg_t *prg_p,
149 static int do_single_access(int fd, int cmd, pcitool_reg_t *prg_p,
590 probe_dev(int fd, pcitool_reg_t *prg_p, pcitool_uiargs_t *input_args_p) in probe_dev() argument
601 } else if (supports_ari(fd, prg_p->bus_no) == SUCCESS) { in probe_dev()
621 prg_p->func_no = func & 0x7; in probe_dev()
622 prg_p->dev_no = (func >> 3) & 0x1f; in probe_dev()
624 prg_p->func_no = func; in probe_dev()
642 prg_p->status = PCITOOL_SUCCESS; in probe_dev()
643 prg_p->offset = 0; in probe_dev()
644 prg_p->data = 0; in probe_dev()
645 prg_p->user_version = PCITOOL_VERSION; in probe_dev()
646 if (((rval = ioctl(fd, PCITOOL_DEVICE_GET_REG, prg_p)) != 0) || in probe_dev()
647 (prg_p->data == 0xffffffff)) { in probe_dev()
656 (prg_p->status == PCITOOL_OUT_OF_RANGE)) { in probe_dev()
665 (prg_p->status == PCITOOL_IO_ERROR)) { in probe_dev()
675 (prg_p->status != PCITOOL_INVALID_ADDRESS)) && in probe_dev()
676 (prg_p->data != 0xffffffff)) { in probe_dev()
697 } else if (prg_p->data == 0) { in probe_dev()
701 config_hdr.dwords[0] = (uint32_t)prg_p->data; in probe_dev()
704 if ((rval = get_config_header(fd, prg_p->bus_no, in probe_dev()
705 prg_p->dev_no, prg_p->func_no, &config_hdr)) != in probe_dev()
711 print_probe_info(&config_hdr, prg_p, in probe_dev()
1015 bytedump_get(int fd, int cmd, pcitool_reg_t *prg_p, in bytedump_get() argument
1032 uint32_t dump_end = prg_p->offset + input_args_p->bytedump_amt; in bytedump_get()
1033 uint32_t dump_curr = prg_p->offset; in bytedump_get()
1069 local_prg = *prg_p; /* Make local copy. */ in bytedump_get()
1265 do_single_access(int fd, int cmd, pcitool_reg_t *prg_p, in do_single_access() argument
1281 if ((rval = ioctl(fd, cmd, prg_p)) != SUCCESS) { in do_single_access()
1286 strerror(errno), strstatus(prg_p->status)); in do_single_access()
1299 if (prg_p->phys_addr == 0) in do_single_access()
1300 prg_p->phys_addr = input_args_p->offset; in do_single_access()
1304 prg_p->phys_addr, input_args_p->size, in do_single_access()
1305 (input_args_p->big_endian ? "big" : "little"), prg_p->data); in do_single_access()
1309 (void) printf("0x%" PRIx64 "\n", prg_p->data); in do_single_access()