Searched refs:wp (Results 1 – 4 of 4) sorted by relevance
/sound/hda/ |
D | hdac_controller.c | 70 bus->rirb.wp = bus->rirb.rp = 0; in snd_hdac_bus_init_cmd_io() 145 unsigned int wp, rp; in snd_hdac_bus_send_cmd() local 152 wp = snd_hdac_chip_readw(bus, CORBWP); in snd_hdac_bus_send_cmd() 153 if (wp == 0xffff) { in snd_hdac_bus_send_cmd() 158 wp++; in snd_hdac_bus_send_cmd() 159 wp %= AZX_MAX_CORB_ENTRIES; in snd_hdac_bus_send_cmd() 162 if (wp == rp) { in snd_hdac_bus_send_cmd() 169 bus->corb.buf[wp] = cpu_to_le32(val); in snd_hdac_bus_send_cmd() 170 snd_hdac_chip_writew(bus, CORBWP, wp); in snd_hdac_bus_send_cmd() 189 unsigned int rp, wp; in snd_hdac_bus_update_rirb() local [all …]
|
D | hdac_bus.c | 150 unsigned int wp; in snd_hdac_bus_queue_event() local 156 wp = (bus->unsol_wp + 1) % HDA_UNSOL_QUEUE_SIZE; in snd_hdac_bus_queue_event() 157 bus->unsol_wp = wp; in snd_hdac_bus_queue_event() 159 wp <<= 1; in snd_hdac_bus_queue_event() 160 bus->unsol_queue[wp] = res; in snd_hdac_bus_queue_event() 161 bus->unsol_queue[wp + 1] = res_ex; in snd_hdac_bus_queue_event()
|
/sound/pci/lola/ |
D | lola.c | 88 unsigned int wp = chip->corb.wp + 1; in corb_send_verb() local 89 wp %= LOLA_CORB_ENTRIES; in corb_send_verb() 90 chip->corb.wp = wp; in corb_send_verb() 91 chip->corb.buf[wp * 2] = cpu_to_le32(data); in corb_send_verb() 92 chip->corb.buf[wp * 2 + 1] = cpu_to_le32(extdata); in corb_send_verb() 93 lola_writew(chip, BAR0, CORBWP, wp); in corb_send_verb() 111 unsigned int rp, wp; in lola_update_rirb() local 114 wp = lola_readw(chip, BAR0, RIRBWP); in lola_update_rirb() 115 if (wp == chip->rirb.wp) in lola_update_rirb() 117 chip->rirb.wp = wp; in lola_update_rirb() [all …]
|
D | lola.h | 212 unsigned short rp, wp; /* read/write pointers */ member
|