Lines Matching refs:prg_cpu

414 		d->prg_cpu[i]->control = cpu_to_le32(c | d->buf_size);  in initialize_dma_rcv_ctx()
418 d->prg_cpu[i]->branchAddress = in initialize_dma_rcv_ctx()
421 d->prg_cpu[i]->branchAddress = in initialize_dma_rcv_ctx()
425 d->prg_cpu[i]->address = cpu_to_le32(d->buf_bus[i]); in initialize_dma_rcv_ctx()
426 d->prg_cpu[i]->status = cpu_to_le32(d->buf_size); in initialize_dma_rcv_ctx()
638 d->prg_cpu[idx]->begin.address = 0; in insert_packet()
639 d->prg_cpu[idx]->begin.branchAddress = 0; in insert_packet()
647 d->prg_cpu[idx]->begin.status = cpu_to_le32( in insert_packet()
652 cycleTimer, d->prg_cpu[idx]->begin.status); in insert_packet()
654 d->prg_cpu[idx]->begin.status = 0; in insert_packet()
659 d->prg_cpu[idx]->data[0] = cpu_to_le32(OHCI1394_TCODE_PHY<<4); in insert_packet()
660 d->prg_cpu[idx]->data[1] = cpu_to_le32(packet->header[0]); in insert_packet()
661 d->prg_cpu[idx]->data[2] = cpu_to_le32(packet->header[1]); in insert_packet()
663 d->prg_cpu[idx]->data[0] = packet->speed_code<<16 | in insert_packet()
668 d->prg_cpu[idx]->data[1] = packet->header[0] & 0xFFFF0000; in insert_packet()
671 d->prg_cpu[idx]->data[1] = in insert_packet()
674 d->prg_cpu[idx]->data[2] = packet->header[2]; in insert_packet()
675 d->prg_cpu[idx]->data[3] = packet->header[3]; in insert_packet()
677 packet_swab(d->prg_cpu[idx]->data, packet->tcode); in insert_packet()
682 d->prg_cpu[idx]->begin.control = in insert_packet()
686 d->prg_cpu[idx]->begin.control = in insert_packet()
690 d->prg_cpu[idx]->end.control = in insert_packet()
708 d->prg_cpu[idx]->end.address = cpu_to_le32( in insert_packet()
714 d->prg_cpu[idx]->end.branchAddress = 0; in insert_packet()
715 d->prg_cpu[idx]->end.status = 0; in insert_packet()
720 &(d->prg_cpu[idx]->end.branchAddress); in insert_packet()
723 d->prg_cpu[idx]->begin.control = in insert_packet()
730 d->prg_cpu[idx]->begin.control = in insert_packet()
741 &(d->prg_cpu[idx]->begin.branchAddress); in insert_packet()
745 d->prg_cpu[idx]->data[0] = packet->speed_code<<16 | in insert_packet()
747 d->prg_cpu[idx]->data[1] = packet->header[0] & 0xFFFF0000; in insert_packet()
748 packet_swab(d->prg_cpu[idx]->data, packet->tcode); in insert_packet()
750 d->prg_cpu[idx]->begin.control = in insert_packet()
753 d->prg_cpu[idx]->end.control = in insert_packet()
759 d->prg_cpu[idx]->end.address = cpu_to_le32( in insert_packet()
764 d->prg_cpu[idx]->end.branchAddress = 0; in insert_packet()
765 d->prg_cpu[idx]->end.status = 0; in insert_packet()
770 d->prg_cpu[idx]->data[0], d->prg_cpu[idx]->data[1], in insert_packet()
771 d->prg_cpu[idx]->begin.control, in insert_packet()
772 d->prg_cpu[idx]->begin.address, in insert_packet()
773 d->prg_cpu[idx]->begin.branchAddress, in insert_packet()
774 d->prg_cpu[idx]->begin.status, in insert_packet()
775 d->prg_cpu[idx]->data[0], in insert_packet()
776 d->prg_cpu[idx]->data[1], in insert_packet()
777 d->prg_cpu[idx]->data[2], in insert_packet()
778 d->prg_cpu[idx]->data[3], in insert_packet()
779 d->prg_cpu[idx]->end.control, in insert_packet()
780 d->prg_cpu[idx]->end.address, in insert_packet()
781 d->prg_cpu[idx]->end.branchAddress, in insert_packet()
782 d->prg_cpu[idx]->end.status); in insert_packet()
785 d->branchAddrPtr = &(d->prg_cpu[idx]->end.branchAddress); in insert_packet()
2494 d->prg_cpu[idx]->status = cpu_to_le32(d->buf_size); in insert_dma_buffer()
2495 d->prg_cpu[idx]->branchAddress &= le32_to_cpu(0xfffffff0); in insert_dma_buffer()
2497 d->prg_cpu[idx]->branchAddress |= le32_to_cpu(0x00000001); in insert_dma_buffer()
2566 rescount = le32_to_cpu(d->prg_cpu[idx]->status) & 0xffff; in dma_rcv_tasklet()
2598 if (le32_to_cpu(d->prg_cpu[(idx+1)%d->num_desc]->status) in dma_rcv_tasklet()
2674 rescount = le32_to_cpu(d->prg_cpu[idx]->status) & 0xffff; in dma_rcv_tasklet()
2703 d->prg_cpu[d->sent_ind]->end.status) >> 16; in dma_trm_tasklet()
2706 d->prg_cpu[d->sent_ind]->begin.status) >> 16; in dma_trm_tasklet()
2714 if (((le32_to_cpu(d->prg_cpu[d->sent_ind]->data[0])>>4)&0xf) == 0xa) in dma_trm_tasklet()
2718 (le32_to_cpu(d->prg_cpu[d->sent_ind]->data[0])>>8)&0x3f, in dma_trm_tasklet()
2719 (le32_to_cpu(d->prg_cpu[d->sent_ind]->data[0])>>4)&0xf, in dma_trm_tasklet()
2721 le32_to_cpu(d->prg_cpu[d->sent_ind]->data[1])>>16, in dma_trm_tasklet()
2727 (le32_to_cpu(d->prg_cpu[d->sent_ind]->data[1]) in dma_trm_tasklet()
2729 (le32_to_cpu(d->prg_cpu[d->sent_ind]->data[0]) in dma_trm_tasklet()
2731 (le32_to_cpu(d->prg_cpu[d->sent_ind]->data[0]) in dma_trm_tasklet()
2734 le32_to_cpu(d->prg_cpu[d->sent_ind]->data[3]) in dma_trm_tasklet()
2741 (le32_to_cpu(d->prg_cpu[d->sent_ind]->data[1]) in dma_trm_tasklet()
2743 (le32_to_cpu(d->prg_cpu[d->sent_ind]->data[0]) in dma_trm_tasklet()
2745 (le32_to_cpu(d->prg_cpu[d->sent_ind]->data[0]) in dma_trm_tasklet()
2748 le32_to_cpu(d->prg_cpu[d->sent_ind]->data[3]), in dma_trm_tasklet()
2808 cpu_to_le32(d->prg_cpu[d->sent_ind]->end.address), in dma_trm_tasklet()
2854 if (d->prg_cpu) { in free_dma_rcv_ctx()
2856 if (d->prg_cpu[i] && d->prg_bus[i]) { in free_dma_rcv_ctx()
2857 pci_pool_free(d->prg_pool, d->prg_cpu[i], d->prg_bus[i]); in free_dma_rcv_ctx()
2862 kfree(d->prg_cpu); in free_dma_rcv_ctx()
2901 d->prg_cpu = kmalloc(d->num_desc * sizeof(struct dma_cmd*), in alloc_dma_rcv_ctx()
2905 if (d->prg_cpu == NULL || d->prg_bus == NULL) { in alloc_dma_rcv_ctx()
2910 memset(d->prg_cpu, 0, d->num_desc * sizeof(struct dma_cmd*)); in alloc_dma_rcv_ctx()
2940 d->prg_cpu[i] = pci_pool_alloc(d->prg_pool, SLAB_KERNEL, d->prg_bus+i); in alloc_dma_rcv_ctx()
2943 if (d->prg_cpu[i] != NULL) { in alloc_dma_rcv_ctx()
2944 memset(d->prg_cpu[i], 0, sizeof(struct dma_cmd)); in alloc_dma_rcv_ctx()
3006 if (d->prg_cpu) { in free_dma_trm_ctx()
3008 if (d->prg_cpu[i] && d->prg_bus[i]) { in free_dma_trm_ctx()
3009 pci_pool_free(d->prg_pool, d->prg_cpu[i], d->prg_bus[i]); in free_dma_trm_ctx()
3014 kfree(d->prg_cpu); in free_dma_trm_ctx()
3037 d->prg_cpu = kmalloc(d->num_desc * sizeof(struct at_dma_prg*), in alloc_dma_trm_ctx()
3041 if (d->prg_cpu == NULL || d->prg_bus == NULL) { in alloc_dma_trm_ctx()
3046 memset(d->prg_cpu, 0, d->num_desc * sizeof(struct at_dma_prg*)); in alloc_dma_trm_ctx()
3054 d->prg_cpu[i] = pci_pool_alloc(d->prg_pool, SLAB_KERNEL, d->prg_bus+i); in alloc_dma_trm_ctx()
3057 if (d->prg_cpu[i] != NULL) { in alloc_dma_trm_ctx()
3058 memset(d->prg_cpu[i], 0, sizeof(struct at_dma_prg)); in alloc_dma_trm_ctx()