Searched refs:wp (Results 1 – 4 of 4) sorted by relevance
/sound/hda/ |
D | hdac_controller.c | 69 bus->rirb.wp = bus->rirb.rp = 0; in snd_hdac_bus_init_cmd_io() 144 unsigned int wp, rp; in snd_hdac_bus_send_cmd() local 151 wp = snd_hdac_chip_readw(bus, CORBWP); in snd_hdac_bus_send_cmd() 152 if (wp == 0xffff) { in snd_hdac_bus_send_cmd() 157 wp++; in snd_hdac_bus_send_cmd() 158 wp %= AZX_MAX_CORB_ENTRIES; in snd_hdac_bus_send_cmd() 161 if (wp == rp) { in snd_hdac_bus_send_cmd() 168 bus->corb.buf[wp] = cpu_to_le32(val); in snd_hdac_bus_send_cmd() 169 snd_hdac_chip_writew(bus, CORBWP, wp); in snd_hdac_bus_send_cmd() 187 unsigned int rp, wp; in snd_hdac_bus_update_rirb() local [all …]
|
D | hdac_bus.c | 134 unsigned int wp; in snd_hdac_bus_queue_event() local 140 wp = (bus->unsol_wp + 1) % HDA_UNSOL_QUEUE_SIZE; in snd_hdac_bus_queue_event() 141 bus->unsol_wp = wp; in snd_hdac_bus_queue_event() 143 wp <<= 1; in snd_hdac_bus_queue_event() 144 bus->unsol_queue[wp] = res; in snd_hdac_bus_queue_event() 145 bus->unsol_queue[wp + 1] = res_ex; in snd_hdac_bus_queue_event()
|
/sound/pci/lola/ |
D | lola.c | 89 unsigned int wp = chip->corb.wp + 1; in corb_send_verb() local 90 wp %= LOLA_CORB_ENTRIES; in corb_send_verb() 91 chip->corb.wp = wp; in corb_send_verb() 92 chip->corb.buf[wp * 2] = cpu_to_le32(data); in corb_send_verb() 93 chip->corb.buf[wp * 2 + 1] = cpu_to_le32(extdata); in corb_send_verb() 94 lola_writew(chip, BAR0, CORBWP, wp); in corb_send_verb() 112 unsigned int rp, wp; in lola_update_rirb() local 115 wp = lola_readw(chip, BAR0, RIRBWP); in lola_update_rirb() 116 if (wp == chip->rirb.wp) in lola_update_rirb() 118 chip->rirb.wp = wp; in lola_update_rirb() [all …]
|
D | lola.h | 212 unsigned short rp, wp; /* read/write pointers */ member
|