Lines Matching defs:data

194 #define IS_DATF(a)        (READ_PORT_ULONG(a->stat)&0x2)	/* data filled */
672 u32 data;
682 data = atoh(p, 8);
684 ((data & 0x0f0f0f0f) << 4) | ((data & 0xf0f0f0f0)
798 static int writearm(struct cmdif *cif, u32 addr, u32 data, u32 mask)
809 SEND_WMEM(cif, 0x02, (rptr.retlongs[0] | data));
811 if ((rptr.retlongs[0] & data) == data) {
817 snd_printdd("send arm 0x%x 0x%x 0x%x return %d\n", addr, data, mask,
864 if (IS_DATF(cmdport)) { /* free pending data */
869 if (flags & PARM) /* put data */
1078 struct pcmhw *data = NULL;
1093 (data = runtime->private_data) && data->state != ST_STOP) {
1095 for (j = 0; j < data->pages; j++) {
1096 c = &data->sgdbuf[j];
1103 && (data->state == ST_PLAY)) {
1104 data->state = ST_STOP;
1113 data->pointer += pos;
1114 pos += data->oldpos;
1115 if (data->state != ST_STOP) {
1130 data->oldpos = pos;
1226 err = loadfirmware(cif, chip->fw_entry->data, chip->fw_entry->size);
1348 struct pcmhw *data = get_pcmhwdev(substream);
1353 SEND_GPOS(cif, 0, data->id, &rptr);
1354 if (data->size && runtime->period_size) {
1357 data->id, rptr.retlongs[1], rptr.retlongs[1] % data->size,
1361 if (rptr.retlongs[1] > data->pointer)
1364 rptr.retlongs[1] % data->size);
1368 data->pointer % data->size);
1371 data->size, runtime->period_size);
1381 struct pcmhw *data = get_pcmhwdev(substream);
1389 if (!(data->state & ST_PLAY)) {
1390 SEND_SSTR(cif, data->id, data->sgdlist.addr);
1392 data->state = ST_PLAY;
1393 if (data->mixer != 0xff)
1394 setmixer(cif, data->mixer, 0x7fff, 0x7fff);
1396 data->oldpos = 0;
1397 data->pointer = 0;
1402 if (data->mixer != 0xff)
1403 setmixer(cif, data->mixer, 0, 0);
1404 setmixer(cif, data->mixer, 0, 0);
1405 SEND_KSTR(cif, data->id);
1406 data->state = ST_STOP;
1411 SEND_GPOS(cif, 0, data->id, &rptr);
1418 if (!(data->state & ST_PAUSE)) {
1419 SEND_PSTR(cif, data->id);
1420 data->state |= ST_PAUSE;
1425 if (data->state & ST_PAUSE) {
1426 SEND_SSTR(cif, data->id, data->sgdlist.addr);
1427 data->state &= ~ST_PAUSE;
1443 struct pcmhw *data = get_pcmhwdev(substream);
1450 if (snd_BUG_ON(!cif || !data))
1453 snd_printdd("prepare id %d ch: %d f:0x%x r:%d\n", data->id,
1463 lbuspath = data->paths.noconv;
1465 lbuspath = data->paths.mono;
1469 lbuspath = data->paths.noconv;
1471 lbuspath = data->paths.stereo;
1475 data->sgdlist.area);
1476 if (data->sgdlist.area) {
1486 data->size = size;
1487 data->pages = pages;
1495 c = &data->sgdbuf[i];
1497 p->dwNextLink = cpu_to_le32(data->sgdlist.addr +
1501 c->dwNextLink = cpu_to_le32(data->sgdlist.addr);
1515 data->sgdbuf[i].dwSegLen = cpu_to_le32(size);
1517 if (lbuspath && lbuspath != data->lbuspath) {
1518 if (data->lbuspath)
1519 freelbuspath(cif, data->source, data->lbuspath);
1520 alloclbuspath(cif, data->source, lbuspath,
1521 &data->mixer, data->intdec);
1522 data->lbuspath = lbuspath;
1523 data->rate = 0;
1525 if (data->rate != rate || data->format != format ||
1526 data->channels != channels) {
1527 data->rate = rate;
1528 data->format = format;
1529 data->channels = channels;
1531 (cif, data->mixer, data->id, channels, format)
1532 || setsamplerate(cif, data->intdec, rate))
1544 struct pcmhw *data = get_pcmhwdev(substream);
1545 struct snd_dma_buffer *sgdlist = &data->sgdlist;
1548 snd_printdd("hw params id %d (sgdlist: 0x%p 0x%lx %d)\n", data->id,
1561 data->sgdbuf = (struct sgd *)sgdlist->area;
1568 struct pcmhw *data = get_pcmhwdev(substream);
1571 if (cif && data) {
1572 if (data->lbuspath)
1573 freelbuspath(cif, data->source, data->lbuspath);
1574 data->lbuspath = NULL;
1575 data->source = 0xff;
1576 data->intdec[0] = 0xff;
1577 data->intdec[1] = 0xff;
1579 if (data->sgdlist.area) {
1580 snd_dma_free_pages(&data->sgdlist);
1581 data->sgdlist.area = NULL;
1591 struct pcmhw *data;
1597 data = kzalloc(sizeof(struct pcmhw), GFP_KERNEL);
1598 if (data == NULL)
1600 data->paths = lbus_play_paths[sub_num];
1601 data->id = play_ids[sub_num];
1602 data->source = play_sources[sub_num];
1603 data->intdec[0] = 0xff;
1604 data->intdec[1] = 0xff;
1605 data->state = ST_STOP;
1606 runtime->private_data = data;
1615 struct pcmhw *data;
1620 data = kzalloc(sizeof(struct pcmhw), GFP_KERNEL);
1621 if (data == NULL)
1623 data->paths = lbus_rec_path;
1624 data->id = PADC;
1625 data->source = ACLNK2PADC;
1626 data->intdec[0] = 0xff;
1627 data->intdec[1] = 0xff;
1628 data->state = ST_STOP;
1629 runtime->private_data = data;
1637 struct pcmhw *data = get_pcmhwdev(substream);
1642 kfree(data);
1649 struct pcmhw *data = get_pcmhwdev(substream);
1653 kfree(data);
1891 struct pcmhw *data;
1928 && (data =
1932 data->id, data->mixer, data->source,
1933 data->intdec[0], data->intdec[1]);
1934 if (!(getsamplerate(cif, data->intdec, &rate)))
1940 && (data = chip->capture_substream->runtime->private_data)) {
1943 data->id, data->mixer,
1944 data->source, data->intdec[0], data->intdec[1]);
1945 if (!(getsamplerate(cif, data->intdec, &rate)))