Lines Matching defs:phdr
780 struct qib_pio_header *phdr;
823 phdr = &dev->pio_hdrs[tx->hdr_inx];
824 phdr->pbc[0] = cpu_to_le32(plen);
825 phdr->pbc[1] = cpu_to_le32(control);
826 memcpy(&phdr->hdr, hdr, hdrwords << 2);
838 phdr = kmalloc(tx->hdr_dwords << 2, GFP_ATOMIC);
839 if (!phdr)
841 phdr->pbc[0] = cpu_to_le32(plen);
842 phdr->pbc[1] = cpu_to_le32(control);
843 memcpy(&phdr->hdr, hdr, hdrwords << 2);
844 qib_copy_from_sge((u32 *) &phdr->hdr + hdrwords, ss, len);
846 tx->txreq.addr = dma_map_single(&dd->pcidev->dev, phdr,
850 tx->align_buf = phdr;
857 kfree(phdr);