Lines Matching refs:atp_dev
2503 struct atp_unit *atp_dev = (struct atp_unit *)&host->hostdata;
2507 if (!atp_dev->id[j][k].prd_table)
2509 pci_free_consistent(atp_dev->pdev, 1024, atp_dev->id[j][k].prd_table, atp_dev->id[j][k].prd_bus);
2510 atp_dev->id[j][k].prd_table = NULL;
2517 struct atp_unit *atp_dev = (struct atp_unit *)&host->hostdata;
2521 atp_dev->id[c][k].prd_table = pci_alloc_consistent(atp_dev->pdev, 1024, &(atp_dev->id[c][k].prd_bus));
2522 if (!atp_dev->id[c][k].prd_table) {
2527 atp_dev->id[c][k].prdaddr = atp_dev->id[c][k].prd_bus;
2528 atp_dev->id[c][k].devsp=0x20;
2529 atp_dev->id[c][k].devtype = 0x7f;
2530 atp_dev->id[c][k].curr_req = NULL;
2533 atp_dev->active_id[c] = 0;
2534 atp_dev->wide_id[c] = 0;
2535 atp_dev->host_id[c] = 0x07;
2536 atp_dev->quhd[c] = 0;
2537 atp_dev->quend[c] = 0;
2538 atp_dev->last_cmd[c] = 0xff;
2539 atp_dev->in_snd[c] = 0;
2540 atp_dev->in_int[c] = 0;
2543 atp_dev->quereq[c][k] = NULL;
2546 atp_dev->id[c][k].curr_req = NULL;
2547 atp_dev->sp[c][k] = 0x04;