Lines Matching defs:lx
91 printk("id 0x%lx state %d\n", rtlx->id, rtlx->state);
114 printk(KERN_ERR "no valid RTLX id at 0x%p 0x%lx\n",
303 struct rtlx_channel *lx;
309 lx = &rtlx->channel[index];
313 lx_write = lx->lx_write;
317 (size_t)(lx_write + lx->buffer_size - lx->lx_read)
318 % lx->buffer_size);
321 fl = min(count, (size_t)lx->buffer_size - lx->lx_read);
323 failed = copy_to_user(buff, lx->lx_buffer + lx->lx_read, fl);
329 failed = copy_to_user(buff + fl, lx->lx_buffer, count - fl);
335 lx->lx_read = (lx->lx_read + count) % lx->buffer_size;