lkml.org 
[lkml]   [2008]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 06/10] x86: add check code for map/unmap_sg code

    please use this nice structure init style:

    > + entry->type = DMA_DEBUG_SG;
    > + entry->dev = dev;
    > + entry->cpu_addr = sg_virt(s);
    > + entry->size = s->length;
    > + entry->dev_addr = s->dma_address;
    > + entry->direction = direction;

    here too:

    > + struct dma_debug_entry ref = {
    > + .type = DMA_DEBUG_SG,
    > + .dev = dev,
    > + .cpu_addr = sg_virt(s),
    > + .dev_addr = s->dma_address,
    > + .size = s->length,
    > + .direction = dir,

    Ingo


    \
     
     \ /
      Last update: 2008-11-21 18:01    [W:0.024 / U:0.544 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site