(dma_mapping_error(my_device, tbuffer_dma)) { printk(KERN_INFO "dma map error\n"); } memset(tbuffer, 0, 1024); print_hex_dump(KERN_INFO, "data:", DUMP_PREFIX_OFFSET, 32, 1, tbuffer, 1024, false); dma_sync_single_for_device(my_device, tbuffer_dma, 64, DMA_TO_DEVICE); ...
dma_addr = dma_map_single(&c->pdev->dev, ptr, size, direction);if(!dma_mapping_error(&c->pdev->dev, dma_addr)) {#ifdefCONFIG_I2O_EXT_ADAPTEC_DMA64if((sizeof(dma_addr_t) >4) && c->pae_support) { *mptr++ = cpu_to_le32(0x7C020002); *mptr++ = cpu_to_le32(PAGE_SI...
mapping[i +1] = ib_dma_map_page(priv->ca, skb_shinfo(skb)->frags[i].page,0, PAGE_SIZE, DMA_FROM_DEVICE);if(unlikely(ib_dma_mapping_error(priv->ca, mapping[i +1])))gotopartial_error; } rx_ring[id].skb = skb;returnskb; partial_error: ib_dma_unmap_single(priv->ca, mapping...
mapping[i +1] = ib_dma_map_page(priv->ca, skb_shinfo(skb)->frags[i].page,0, PAGE_SIZE, DMA_FROM_DEVICE);if(unlikely(ib_dma_mapping_error(priv->ca, mapping[i +1])))gotopartial_error; } rx_ring[id].skb = skb;returnskb; partial_error: ib_dma_unmap_single(priv->ca, mapping...
在下文中一共展示了pci_dma_mapping_error函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。 示例1: efx_init_rx_buffer_skb ▲点赞 9▼ /** * efx_init_rx_buffer_skb - create new RX buffer using skb-based ...