Lines Matching refs:iget_p

152 static void print_intr_info(pcitool_intr_get_t *iget_p);
1409 print_intr_info(pcitool_intr_get_t *iget_p)
1413 for (i = 0; i < iget_p->num_devs; i++) {
1414 if (iget_p->flags & PCITOOL_INTR_FLAG_GET_MSI)
1416 iget_p->cpu_id, iget_p->msi & 0xff,
1417 iget_p->dev[i].driver_name, iget_p->dev[i].dev_inst,
1418 iget_p->dev[i].path);
1421 iget_p->cpu_id, iget_p->ino & 0xff,
1422 iget_p->dev[i].driver_name, iget_p->dev[i].dev_inst,
1423 iget_p->dev[i].path);
1438 pcitool_intr_get_t *iget_p = *iget_pp;
1456 if (ioctl(fd, PCITOOL_DEVICE_GET_INTR, iget_p) != 0) {
1473 strstatus(iget_p->status));
1480 if (iget_p->num_devs == 0) {
1485 if (iget_p->num_devs_ret < iget_p->num_devs) {
1486 iget_p = *iget_pp =
1487 realloc(iget_p, PCITOOL_IGET_SIZE(iget_p->num_devs));
1488 iget_p->num_devs_ret = iget_p->num_devs;
1490 if (ioctl(fd, PCITOOL_DEVICE_GET_INTR, iget_p) != 0) {
1498 strstatus(iget_p->status));
1505 print_intr_info(iget_p);
1521 pcitool_intr_get_t *iget_p = malloc(PCITOOL_IGET_SIZE(INIT_NUM_DEVS));
1523 iget_p->num_devs_ret = INIT_NUM_DEVS;
1524 iget_p->user_version = PCITOOL_VERSION;
1528 iget_p->msi = input_args_p->intr_msi;
1529 iget_p->flags = PCITOOL_INTR_FLAG_GET_MSI;
1530 rval = get_single_interrupt(fd, &iget_p, input_args_p);
1552 bzero(iget_p, sizeof (pcitool_intr_get_t));
1553 iget_p->num_devs_ret = INIT_NUM_DEVS;
1554 iget_p->user_version = PCITOOL_VERSION;
1555 iget_p->flags = PCITOOL_INTR_FLAG_GET_MSI;
1556 iget_p->msi = msi;
1558 fd, &iget_p, input_args_p);
1563 iget_p->ino = input_args_p->intr_ino;
1564 iget_p->cpu_id = input_args_p->old_cpu;
1565 rval = get_single_interrupt(fd, &iget_p, input_args_p);
1577 free(iget_p);
1593 bzero(iget_p,
1595 iget_p->num_devs_ret = INIT_NUM_DEVS;
1596 iget_p->user_version = PCITOOL_VERSION;
1597 iget_p->cpu_id = cpu_id;
1598 iget_p->ino = ino;
1600 fd, &iget_p, input_args_p);
1607 bzero(iget_p,
1609 iget_p->num_devs_ret = INIT_NUM_DEVS;
1610 iget_p->user_version = PCITOOL_VERSION;
1611 iget_p->cpu_id = input_args_p->old_cpu;
1612 iget_p->ino = ino;
1614 fd, &iget_p, input_args_p);
1619 free(iget_p);