Home
last modified time | relevance | path

Searched refs:read_idx (Results 1 – 3 of 3) sorted by relevance

/linux-2.6.39/drivers/usb/misc/
Diowarrior.c91 atomic_t read_idx; member
160 int read_idx; in iowarrior_callback() local
182 read_idx = atomic_read(&dev->read_idx); in iowarrior_callback()
185 if ((intr_idx != read_idx) in iowarrior_callback()
200 if (read_idx == aux_idx) { in iowarrior_callback()
202 read_idx = (++read_idx == MAX_INTERRUPT_BUFFER) ? 0 : read_idx; in iowarrior_callback()
203 atomic_set(&dev->read_idx, read_idx); in iowarrior_callback()
268 int intr_idx, read_idx; in read_index() local
270 read_idx = atomic_read(&dev->read_idx); in read_index()
273 return (read_idx == intr_idx ? -1 : read_idx); in read_index()
[all …]
/linux-2.6.39/drivers/staging/hv/
Dvmbus_api.h66 u32 read_idx; member
Dvmbus_drv.c293 info->inbound.read_idx = debug_info.inbound.current_read_index; in get_channel_info()
302 info->outbound.read_idx = debug_info.outbound.current_read_index; in get_channel_info()
372 return sprintf(buf, "%d\n", device_info.outbound.read_idx); in vmbus_show_device_attr()
384 return sprintf(buf, "%d\n", device_info.inbound.read_idx); in vmbus_show_device_attr()