taglinefilesource code
dmap133drivers/sound/audio.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dmap144drivers/sound/audio.cp = dmap->qtail;
dmap146drivers/sound/audio.cfor (i = dmap->qlen; i < dmap->nbufs; i++)
dmap148drivers/sound/audio.cmemset (dmap->raw_buf + p * dmap->fragment_size,
dmap149drivers/sound/audio.cdmap->neutral_byte,
dmap150drivers/sound/audio.cdmap->fragment_size);
dmap152drivers/sound/audio.cp = (p + 1) % dmap->nbufs;
dmap155drivers/sound/audio.cdmap->flags |= DMA_CLEAN;
dmap522drivers/sound/dev_table.hint sound_alloc_dmap (int dev, struct dma_buffparms *dmap, int chan);
dmap523drivers/sound/dev_table.hvoid sound_free_dmap (int dev, struct dma_buffparms *dmap);
dmap524drivers/sound/dev_table.hextern int sound_map_buffer (int dev, struct dma_buffparms *dmap, buffmem_desc *info);
dmap529drivers/sound/dev_table.hint sound_start_dma (  int dev, struct dma_buffparms *dmap, int chan,
dmap532drivers/sound/dev_table.hvoid sound_dma_intr (int dev, struct dma_buffparms *dmap, int chan);
dmap64drivers/sound/dmabuf.creorganize_buffers (int dev, struct dma_buffparms *dmap, int recording)
dmap75drivers/sound/dmabuf.cif (dmap->fragment_size == 0)
dmap83drivers/sound/dmabuf.cdmap->neutral_byte = NEUTRAL8;
dmap85drivers/sound/dmabuf.cdmap->neutral_byte = NEUTRAL16;
dmap119drivers/sound/dmabuf.cif (dmap->subdivision == 0)  /* Not already set */
dmap121drivers/sound/dmabuf.cdmap->subdivision = 1;  /* Init to the default value */
dmap124drivers/sound/dmabuf.cdmap->subdivision = 4;  /* Use shorter fragments when recording */
dmap128drivers/sound/dmabuf.cbsz /= dmap->subdivision;
dmap133drivers/sound/dmabuf.cdmap->fragment_size = bsz;
dmap141drivers/sound/dmabuf.cif (dmap->fragment_size > (audio_devs[dev]->buffsize / 2))
dmap142drivers/sound/dmabuf.cdmap->fragment_size = (audio_devs[dev]->buffsize / 2);
dmap143drivers/sound/dmabuf.cbsz = dmap->fragment_size;
dmap154drivers/sound/dmabuf.cif (n > dmap->max_fragments)
dmap155drivers/sound/dmabuf.cn = dmap->max_fragments;
dmap156drivers/sound/dmabuf.cdmap->nbufs = n;
dmap157drivers/sound/dmabuf.cdmap->bytes_in_use = n * bsz;
dmap159drivers/sound/dmabuf.cmemset (dmap->raw_buf,
dmap160drivers/sound/dmabuf.cdmap->neutral_byte,
dmap161drivers/sound/dmabuf.cdmap->bytes_in_use);
dmap163drivers/sound/dmabuf.cfor (i = 0; i < dmap->nbufs; i++)
dmap165drivers/sound/dmabuf.cdmap->counts[i] = 0;
dmap168drivers/sound/dmabuf.cdmap->flags |= DMA_ALLOC_DONE | DMA_EMPTY;
dmap172drivers/sound/dmabuf.cdma_init_buffers (int dev, struct dma_buffparms *dmap)
dmap174drivers/sound/dmabuf.cif (dmap == audio_devs[dev]->dmap_out)
dmap183drivers/sound/dmabuf.cdmap->flags = DMA_BUSY;  /* Other flags off */
dmap184drivers/sound/dmabuf.cdmap->qlen = dmap->qhead = dmap->qtail = 0;
dmap185drivers/sound/dmabuf.cdmap->nbufs = 1;
dmap186drivers/sound/dmabuf.cdmap->bytes_in_use = audio_devs[dev]->buffsize;
dmap188drivers/sound/dmabuf.cdmap->dma_mode = DMODE_NONE;
dmap189drivers/sound/dmabuf.cdmap->mapping_flags = 0;
dmap190drivers/sound/dmabuf.cdmap->neutral_byte = NEUTRAL8;
dmap191drivers/sound/dmabuf.cdmap->cfrag = -1;
dmap192drivers/sound/dmabuf.cdmap->closing = 0;
dmap196drivers/sound/dmabuf.copen_dmap (int dev, int mode, struct dma_buffparms *dmap, int chan)
dmap198drivers/sound/dmabuf.cif (dmap->flags & DMA_BUSY)
dmap204drivers/sound/dmabuf.cif ((err = sound_alloc_dmap (dev, dmap, chan)) < 0)
dmap208drivers/sound/dmabuf.cif (dmap->raw_buf == NULL)
dmap217drivers/sound/dmabuf.cdmap->open_mode = mode;
dmap218drivers/sound/dmabuf.cdmap->subdivision = dmap->underrun_count = 0;
dmap219drivers/sound/dmabuf.cdmap->fragment_size = 0;
dmap220drivers/sound/dmabuf.cdmap->max_fragments = 65536;  /* Just a large value */
dmap221drivers/sound/dmabuf.cdmap->byte_counter = 0;
dmap223drivers/sound/dmabuf.cdma_init_buffers (dev, dmap);
dmap229drivers/sound/dmabuf.cclose_dmap (int dev, struct dma_buffparms *dmap, int chan)
dmap233drivers/sound/dmabuf.cif (dmap->flags & DMA_BUSY)
dmap234drivers/sound/dmabuf.cdmap->dma_mode = DMODE_NONE;
dmap235drivers/sound/dmabuf.cdmap->flags &= ~DMA_BUSY;
dmap238drivers/sound/dmabuf.csound_free_dmap (dev, dmap);
dmap468drivers/sound/dmabuf.cactivate_recording (int dev, struct dma_buffparms *dmap)
dmap473drivers/sound/dmabuf.cif (dmap->flags & DMA_RESTART)
dmap476drivers/sound/dmabuf.cdmap->flags &= ~DMA_RESTART;
dmap479drivers/sound/dmabuf.cif (dmap->dma_mode == DMODE_OUTPUT)  /* Direction change */
dmap483drivers/sound/dmabuf.cdmap->dma_mode = DMODE_NONE;
dmap486drivers/sound/dmabuf.cif (!(dmap->flags & DMA_ALLOC_DONE))
dmap487drivers/sound/dmabuf.creorganize_buffers (dev, dmap, 1);
dmap489drivers/sound/dmabuf.cif (!dmap->dma_mode)
dmap494drivers/sound/dmabuf.cdmap->fragment_size, dmap->nbufs)) < 0)
dmap498drivers/sound/dmabuf.cdmap->dma_mode = DMODE_INPUT;
dmap501drivers/sound/dmabuf.cif (!(dmap->flags & DMA_ACTIVE))
dmap503drivers/sound/dmabuf.caudio_devs[dev]->start_input (dev, dmap->raw_buf_phys +
dmap504drivers/sound/dmabuf.cdmap->qtail * dmap->fragment_size,
dmap505drivers/sound/dmabuf.cdmap->fragment_size, 0,
dmap507drivers/sound/dmabuf.c!(dmap->flags & DMA_STARTED));
dmap508drivers/sound/dmabuf.cdmap->flags |= DMA_ACTIVE | DMA_STARTED;
dmap521drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_in;
dmap530drivers/sound/dmabuf.celse if (!dmap->qlen)
dmap534drivers/sound/dmabuf.cif ((err = activate_recording (dev, dmap)) < 0)
dmap589drivers/sound/dmabuf.cif (!dmap->qlen)
dmap592drivers/sound/dmabuf.c*buf = &dmap->raw_buf[dmap->qhead * dmap->fragment_size + dmap->counts[dmap->qhead]];
dmap593drivers/sound/dmabuf.c*len = dmap->fragment_size - dmap->counts[dmap->qhead];
dmap595drivers/sound/dmabuf.creturn dmap->qhead;
dmap601drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_in;
dmap603drivers/sound/dmabuf.cint             p = dmap->counts[dmap->qhead] + c;
dmap610drivers/sound/dmabuf.celse if (p >= dmap->fragment_size)
dmap612drivers/sound/dmabuf.cdmap->counts[dmap->qhead] = 0;
dmap613drivers/sound/dmabuf.cif (dmap->qlen <= 0 || dmap->qlen > dmap->nbufs)
dmap615drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dmap616drivers/sound/dmabuf.cdmap->qlen--;
dmap617drivers/sound/dmabuf.cdmap->qhead = (dmap->qhead + 1) % dmap->nbufs;
dmap620drivers/sound/dmabuf.cdmap->counts[dmap->qhead] = p;
dmap626drivers/sound/dmabuf.cdma_subdivide (int dev, struct dma_buffparms *dmap, caddr_t arg, int fact)
dmap630drivers/sound/dmabuf.cfact = dmap->subdivision;
dmap636drivers/sound/dmabuf.cif (dmap->subdivision != 0 ||
dmap637drivers/sound/dmabuf.cdmap->fragment_size)  /* Too late to change */
dmap646drivers/sound/dmabuf.cdmap->subdivision = fact;
dmap651drivers/sound/dmabuf.cdma_set_fragment (int dev, struct dma_buffparms *dmap, caddr_t arg, int fact)
dmap658drivers/sound/dmabuf.cif (dmap->subdivision != 0 ||
dmap659drivers/sound/dmabuf.cdmap->fragment_size)  /* Too late to change */
dmap679drivers/sound/dmabuf.cdmap->fragment_size = (1 << bytes);
dmap680drivers/sound/dmabuf.cdmap->max_fragments = count;
dmap682drivers/sound/dmabuf.cif (dmap->fragment_size > audio_devs[dev]->buffsize)
dmap683drivers/sound/dmabuf.cdmap->fragment_size = audio_devs[dev]->buffsize;
dmap685drivers/sound/dmabuf.cif (dmap->fragment_size == audio_devs[dev]->buffsize &&
dmap687drivers/sound/dmabuf.cdmap->fragment_size /= 2;  /* Needs at least 2 buffers */
dmap689drivers/sound/dmabuf.cdmap->subdivision = 1;  /* Disable SNDCTL_DSP_SUBDIVIDE */
dmap694drivers/sound/dmabuf.cget_buffer_pointer (int dev, int chan, struct dma_buffparms *dmap)
dmap701drivers/sound/dmabuf.cif (!(dmap->flags & DMA_ACTIVE))
dmap714drivers/sound/dmabuf.creturn dmap->bytes_in_use - pos;
dmap717drivers/sound/dmabuf.cpos = dmap->fragment_size - pos;
dmap802drivers/sound/dmabuf.cstruct dma_buffparms *dmap = dmap_out;
dmap807drivers/sound/dmabuf.cdmap = dmap_in;
dmap809drivers/sound/dmabuf.cif (dmap->mapping_flags & DMA_MAP_MAPPED)
dmap812drivers/sound/dmabuf.cif (!(dmap->flags & DMA_ALLOC_DONE))
dmap813drivers/sound/dmabuf.creorganize_buffers (dev, dmap, (cmd == SNDCTL_DSP_GETISPACE));
dmap815drivers/sound/dmabuf.cinfo->fragstotal = dmap->nbufs;
dmap818drivers/sound/dmabuf.cinfo->fragments = dmap->qlen;
dmap825drivers/sound/dmabuf.cinfo->fragments = dmap->nbufs - dmap->qlen;
dmap841drivers/sound/dmabuf.celse if (info->fragments > dmap->nbufs)
dmap842drivers/sound/dmabuf.cinfo->fragments = dmap->nbufs;
dmap844drivers/sound/dmabuf.cinfo->fragsize = dmap->fragment_size;
dmap845drivers/sound/dmabuf.cinfo->bytes = info->fragments * dmap->fragment_size;
dmap847drivers/sound/dmabuf.cif (cmd == SNDCTL_DSP_GETISPACE && dmap->qlen)
dmap848drivers/sound/dmabuf.cinfo->bytes -= dmap->counts[dmap->qhead];
dmap1002drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dmap1004drivers/sound/dmabuf.cif (dmap->qlen >= dmap->nbufs)  /* No space at all */
dmap1012drivers/sound/dmabuf.cmax = dmap->max_fragments;
dmap1013drivers/sound/dmabuf.clen = dmap->qlen;
dmap1035drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dmap1037drivers/sound/dmabuf.cdmap->flags &= ~DMA_CLEAN;
dmap1045drivers/sound/dmabuf.cif (dmap->dma_mode == DMODE_INPUT)  /* Direction change */
dmap1048drivers/sound/dmabuf.cdmap->dma_mode = DMODE_NONE;
dmap1050drivers/sound/dmabuf.celse if (dmap->flags & DMA_RESTART)  /* Restart buffering */
dmap1056drivers/sound/dmabuf.cdmap->flags &= ~(DMA_RESTART | DMA_EMPTY);
dmap1058drivers/sound/dmabuf.cif (!(dmap->flags & DMA_ALLOC_DONE))
dmap1059drivers/sound/dmabuf.creorganize_buffers (dev, dmap, 0);
dmap1061drivers/sound/dmabuf.cif (!dmap->dma_mode)
dmap1065drivers/sound/dmabuf.cdmap->dma_mode = DMODE_OUTPUT;
dmap1067drivers/sound/dmabuf.cdmap->fragment_size, dmap->nbufs)) < 0)
dmap1139drivers/sound/dmabuf.c*buf = dmap->raw_buf + dmap->qtail * dmap->fragment_size;
dmap1140drivers/sound/dmabuf.c*size = dmap->fragment_size;
dmap1141drivers/sound/dmabuf.cdmap->counts[dmap->qtail] = 0;
dmap1143drivers/sound/dmabuf.creturn dmap->qtail;
dmap1149drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dmap1151drivers/sound/dmabuf.cif (dmap->cfrag < 0)
dmap1154drivers/sound/dmabuf.c*dma_buf = dmap->raw_buf + dmap->qtail * dmap->fragment_size;
dmap1155drivers/sound/dmabuf.c*buf_ptr = dmap->counts[dmap->qtail];
dmap1156drivers/sound/dmabuf.c*buf_size = dmap->fragment_size;
dmap1157drivers/sound/dmabuf.creturn *buf_no = dmap->cfrag;
dmap1163drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dmap1165drivers/sound/dmabuf.cif (buff_no == dmap->qtail)
dmap1167drivers/sound/dmabuf.cdmap->cfrag = buff_no;
dmap1168drivers/sound/dmabuf.cdmap->counts[buff_no] = l;
dmap1171drivers/sound/dmabuf.cdmap->cfrag = -1;
dmap1178drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dmap1180drivers/sound/dmabuf.cdmap->cfrag = -1;
dmap1188drivers/sound/dmabuf.cl = dmap->fragment_size;
dmap1189drivers/sound/dmabuf.cdmap->counts[dmap->qtail] = l;
dmap1190drivers/sound/dmabuf.cdmap->flags &= ~DMA_RESTART;
dmap1191drivers/sound/dmabuf.cdmap->qtail = (dmap->qtail + 1) % dmap->nbufs;
dmap1197drivers/sound/dmabuf.cdmap->qlen++;
dmap1198drivers/sound/dmabuf.cif (dmap->qlen <= 0 || dmap->qlen > dmap->nbufs)
dmap1200drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dmap1202drivers/sound/dmabuf.cdmap->counts[dmap->qtail] = l;
dmap1203drivers/sound/dmabuf.cif (l < dmap->fragment_size)
dmap1205drivers/sound/dmabuf.cint             p = dmap->fragment_size * dmap->qtail;
dmap1207drivers/sound/dmabuf.cmemset (dmap->raw_buf + p + l,
dmap1208drivers/sound/dmabuf.cdmap->neutral_byte,
dmap1209drivers/sound/dmabuf.cdmap->fragment_size - l);
dmap1212drivers/sound/dmabuf.cif ((l != dmap->fragment_size) &&
dmap1215drivers/sound/dmabuf.cdmap->flags |= DMA_RESTART;
dmap1217drivers/sound/dmabuf.cdmap->flags &= ~DMA_RESTART;
dmap1219drivers/sound/dmabuf.cdmap->qtail = (dmap->qtail + 1) % dmap->nbufs;
dmap1222drivers/sound/dmabuf.cif (!(dmap->flags & DMA_ACTIVE))
dmap1224drivers/sound/dmabuf.cdmap->flags |= DMA_ACTIVE;
dmap1225drivers/sound/dmabuf.caudio_devs[dev]->output_block (dev, dmap->raw_buf_phys +
dmap1226drivers/sound/dmabuf.cdmap->qhead * dmap->fragment_size,
dmap1227drivers/sound/dmabuf.cdmap->counts[dmap->qhead], 0,
dmap1229drivers/sound/dmabuf.c!(dmap->flags & DMA_STARTED));
dmap1230drivers/sound/dmabuf.cdmap->flags |= DMA_STARTED;
dmap1243drivers/sound/dmabuf.cstruct dma_buffparms *dmap;
dmap1249drivers/sound/dmabuf.cdmap = audio_devs[dev]->dmap_out;
dmap1254drivers/sound/dmabuf.cdmap = audio_devs[dev]->dmap_in;
dmap1272drivers/sound/dmabuf.cset_dma_addr (chan, dmap->raw_buf_phys);
dmap1273drivers/sound/dmabuf.cset_dma_count (chan, dmap->bytes_in_use);
dmap1318drivers/sound/dmabuf.cpolish_buffers (struct dma_buffparms *dmap)
dmap1323drivers/sound/dmabuf.ci = dmap->qhead;
dmap1325drivers/sound/dmabuf.cp = dmap->fragment_size * i;
dmap1327drivers/sound/dmabuf.cif (i == dmap->cfrag)
dmap1329drivers/sound/dmabuf.cl = dmap->fragment_size - dmap->counts[i];
dmap1332drivers/sound/dmabuf.cl = dmap->fragment_size;
dmap1336drivers/sound/dmabuf.cmemset (dmap->raw_buf + p,
dmap1337drivers/sound/dmabuf.cdmap->neutral_byte,
dmap1343drivers/sound/dmabuf.cforce_restart (int dev, struct dma_buffparms *dmap)
dmap1351drivers/sound/dmabuf.cdmap->flags &= ~DMA_ACTIVE;
dmap1353drivers/sound/dmabuf.cdmap->flags |= DMA_RESTART;
dmap1355drivers/sound/dmabuf.cdmap->flags &= ~DMA_RESTART;
dmap1372drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dmap1374drivers/sound/dmabuf.cdmap->byte_counter += dmap->counts[dmap->qhead];
dmap1380drivers/sound/dmabuf.cif (dmap->mapping_flags & DMA_MAP_MAPPED)
dmap1384drivers/sound/dmabuf.cdmap->qhead = (dmap->qhead + 1) % dmap->nbufs;
dmap1385drivers/sound/dmabuf.cdmap->qlen++;    /* Yes increment it (don't decrement) */
dmap1386drivers/sound/dmabuf.cdmap->flags &= ~DMA_ACTIVE;
dmap1387drivers/sound/dmabuf.cdmap->counts[dmap->qhead] = dmap->fragment_size;
dmap1391drivers/sound/dmabuf.caudio_devs[dev]->output_block (dev, dmap->raw_buf_phys +
dmap1392drivers/sound/dmabuf.cdmap->qhead * dmap->fragment_size,
dmap1393drivers/sound/dmabuf.cdmap->counts[dmap->qhead], 1,
dmap1399drivers/sound/dmabuf.cdmap->flags |= DMA_ACTIVE;
dmap1403drivers/sound/dmabuf.cif (dmap->qlen <= 0 || dmap->qlen > dmap->nbufs)
dmap1406drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dmap1410drivers/sound/dmabuf.cdmap->qlen--;
dmap1411drivers/sound/dmabuf.cdmap->qhead = (dmap->qhead + 1) % dmap->nbufs;
dmap1412drivers/sound/dmabuf.cdmap->flags &= ~DMA_ACTIVE;
dmap1414drivers/sound/dmabuf.cif (event_type == 1 && dmap->qlen < 1)
dmap1416drivers/sound/dmabuf.cdmap->underrun_count++;
dmap1418drivers/sound/dmabuf.cif (!(dmap->flags & DMA_CLEAN) &&
dmap1419drivers/sound/dmabuf.c(audio_devs[dev]->flags & DMA_SYNCING || dmap->underrun_count > 5 || dmap->flags & DMA_EMPTY))
dmap1421drivers/sound/dmabuf.cdmap->qlen = 0;
dmap1422drivers/sound/dmabuf.cforce_restart (dev, dmap);
dmap1426drivers/sound/dmabuf.cif (dmap->closing)
dmap1428drivers/sound/dmabuf.cpolish_buffers (dmap);
dmap1433drivers/sound/dmabuf.cdmap->qlen++;
dmap1434drivers/sound/dmabuf.cdmap->qtail = (dmap->qtail + 1) % dmap->nbufs;
dmap1436drivers/sound/dmabuf.cif (!(dmap->flags & DMA_EMPTY))
dmap1437drivers/sound/dmabuf.cpolish_buffers (dmap);
dmap1439drivers/sound/dmabuf.cdmap->cfrag = -1;
dmap1440drivers/sound/dmabuf.cdmap->flags |= DMA_EMPTY;
dmap1441drivers/sound/dmabuf.cdmap->counts[dmap->qtail] = dmap->fragment_size;
dmap1445drivers/sound/dmabuf.cif (dmap->qlen)
dmap1450drivers/sound/dmabuf.cif (dmap->counts[dmap->qhead] == 0)
dmap1451drivers/sound/dmabuf.cdmap->counts[dmap->qhead] = dmap->fragment_size;
dmap1453drivers/sound/dmabuf.caudio_devs[dev]->output_block (dev, dmap->raw_buf_phys +
dmap1454drivers/sound/dmabuf.cdmap->qhead * dmap->fragment_size,
dmap1455drivers/sound/dmabuf.cdmap->counts[dmap->qhead], 1,
dmap1461drivers/sound/dmabuf.cdmap->flags |= DMA_ACTIVE;
dmap1481drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_in;
dmap1483drivers/sound/dmabuf.cdmap->byte_counter += dmap->fragment_size;
dmap1489drivers/sound/dmabuf.cif (dmap->mapping_flags & DMA_MAP_MAPPED)
dmap1491drivers/sound/dmabuf.cdmap->qtail = (dmap->qtail + 1) % dmap->nbufs;
dmap1492drivers/sound/dmabuf.cdmap->qlen++;
dmap1496drivers/sound/dmabuf.caudio_devs[dev]->start_input (dev, dmap->raw_buf_phys +
dmap1497drivers/sound/dmabuf.cdmap->qtail * dmap->fragment_size,
dmap1498drivers/sound/dmabuf.cdmap->fragment_size, 1,
dmap1505drivers/sound/dmabuf.cdmap->flags |= DMA_ACTIVE;
dmap1507drivers/sound/dmabuf.celse if (dmap->qlen == (dmap->nbufs - 1))
dmap1510drivers/sound/dmabuf.cdmap->underrun_count++;
dmap1521drivers/sound/dmabuf.cdmap->flags &= ~DMA_ACTIVE;
dmap1523drivers/sound/dmabuf.cdmap->flags |= DMA_RESTART;
dmap1525drivers/sound/dmabuf.cdmap->flags &= ~DMA_RESTART;
dmap1530drivers/sound/dmabuf.cdmap->qlen++;
dmap1531drivers/sound/dmabuf.cif (dmap->qlen <= 0 || dmap->qlen > dmap->nbufs)
dmap1533drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dmap1534drivers/sound/dmabuf.cdmap->qtail = (dmap->qtail + 1) % dmap->nbufs;
dmap1539drivers/sound/dmabuf.caudio_devs[dev]->start_input (dev, dmap->raw_buf_phys +
dmap1540drivers/sound/dmabuf.cdmap->qtail * dmap->fragment_size,
dmap1541drivers/sound/dmabuf.cdmap->fragment_size, 1,
dmap1548drivers/sound/dmabuf.cdmap->flags |= DMA_ACTIVE;
dmap1627drivers/sound/dmabuf.cstruct dma_buffparms *dmap;
dmap1633drivers/sound/dmabuf.cdmap = audio_devs[dev]->dmap_in;
dmap1635drivers/sound/dmabuf.cif (dmap->mapping_flags & DMA_MAP_MAPPED)
dmap1637drivers/sound/dmabuf.cif (dmap->qlen)
dmap1649drivers/sound/dmabuf.cif (dmap->dma_mode != DMODE_INPUT)
dmap1651drivers/sound/dmabuf.cif ((audio_devs[dev]->flags & DMA_DUPLEX) && !dmap->qlen &&
dmap1659drivers/sound/dmabuf.cactivate_recording (dev, dmap);
dmap1665drivers/sound/dmabuf.cif (!dmap->qlen)
dmap1679drivers/sound/dmabuf.cdmap = audio_devs[dev]->dmap_out;
dmap1681drivers/sound/dmabuf.cif (dmap->mapping_flags & DMA_MAP_MAPPED)
dmap1683drivers/sound/dmabuf.cif (dmap->qlen)
dmap1695drivers/sound/dmabuf.cif (dmap->dma_mode == DMODE_INPUT)
dmap1700drivers/sound/dmabuf.cif (dmap->dma_mode == DMODE_NONE)
dmap238drivers/sound/soundcard.cstruct dma_buffparms *dmap = NULL;
dmap261drivers/sound/soundcard.cdmap = audio_devs[dev]->dmap_in;
dmap265drivers/sound/soundcard.cdmap = audio_devs[dev]->dmap_out;
dmap273drivers/sound/soundcard.cif (dmap == NULL)
dmap279drivers/sound/soundcard.cif (dmap->raw_buf == NULL)
dmap285drivers/sound/soundcard.cif (dmap->mapping_flags)
dmap299drivers/sound/soundcard.cif (size != dmap->bytes_in_use)
dmap302drivers/sound/soundcard.csize, dmap->bytes_in_use);
dmap306drivers/sound/soundcard.cif (remap_page_range (vma_get_start (vma), dmap->raw_buf_phys,
dmap314drivers/sound/soundcard.cdmap->mapping_flags |= DMA_MAP_MAPPED;
dmap316drivers/sound/soundcard.cmemset (dmap->raw_buf,
dmap317drivers/sound/soundcard.cdmap->neutral_byte,
dmap318drivers/sound/soundcard.cdmap->bytes_in_use);
dmap611drivers/sound/soundcard.csound_alloc_dmap (int dev, struct dma_buffparms *dmap, int chan)
dmap616drivers/sound/soundcard.cdmap->mapping_flags &= ~DMA_MAP_MAPPED;
dmap618drivers/sound/soundcard.cif (dmap->raw_buf != NULL)
dmap629drivers/sound/soundcard.cdmap->raw_buf = NULL;
dmap687drivers/sound/soundcard.cdmap->raw_buf = start_addr;
dmap688drivers/sound/soundcard.cdmap->raw_buf_phys = virt_to_bus (start_addr);
dmap699drivers/sound/soundcard.csound_free_dmap (int dev, struct dma_buffparms *dmap)
dmap701drivers/sound/soundcard.cif (dmap->raw_buf == NULL)
dmap704drivers/sound/soundcard.cif (dmap->mapping_flags & DMA_MAP_MAPPED)
dmap715drivers/sound/soundcard.cstart_addr = (unsigned long) dmap->raw_buf;
dmap723drivers/sound/soundcard.cfree_pages ((unsigned long) dmap->raw_buf, sz);
dmap725drivers/sound/soundcard.cdmap->raw_buf = NULL;
dmap729drivers/sound/soundcard.csound_map_buffer (int dev, struct dma_buffparms *dmap, buffmem_desc * info)