parameters: (periph_list)
return_statement: return list(dma_exclude)
docstring: return list of DMA devices to exclude from DMA
docstring_summary: return list of DMA devices to exclude from DMA
docstring_tokens: return list of DMA devices to exclude from DMA
function: def get_dma_exclude(periph_list):
      '''return list of DMA devices to exclude from DMA'''
      dma_exclude = set()
      for p in dma_exclude_pattern:
          for periph in periph_list:
              if fnmatch.fnmatch(periph, p):
                  dma_exclude.add(periph)
  
      for periph in periph_list:
          if periph in bylabel:
              p = bylabel[periph]
              if p.has_extra('NODMA'):
                  dma_exclude.add(periph)
          if periph in altlabel:
              p = altlabel[periph]
              if p.has_extra('NODMA'):
                  dma_exclude.add(periph)
      return list(dma_exclude)
function_tokens: def get_dma_exclude ( periph_list ) : dma_exclude = set ( ) for p in dma_exclude_pattern : for periph in periph_list : if fnmatch . fnmatch ( periph , p ) : dma_exclude . add ( periph ) for periph in periph_list : if periph in bylabel : p = bylabel [ periph ] if p . has_extra ( 'NODMA' ) : dma_exclude . add ( periph ) if periph in altlabel : p = altlabel [ periph ] if p . has_extra ( 'NODMA' ) : dma_exclude . add ( periph ) return list ( dma_exclude )