• Home
  • Raw
  • Download

Lines Matching refs:esize

39 		size_t esize, gfp_t gfp_mask)  in __kfifo_alloc()  argument
49 fifo->esize = esize; in __kfifo_alloc()
57 fifo->data = kmalloc(size * esize, gfp_mask); in __kfifo_alloc()
74 fifo->esize = 0; in __kfifo_free()
81 unsigned int size, size_t esize) in __kfifo_init() argument
83 size /= esize; in __kfifo_init()
90 fifo->esize = esize; in __kfifo_init()
107 unsigned int esize = fifo->esize; in kfifo_copy_in() local
111 if (esize != 1) { in kfifo_copy_in()
112 off *= esize; in kfifo_copy_in()
113 size *= esize; in kfifo_copy_in()
114 len *= esize; in kfifo_copy_in()
146 unsigned int esize = fifo->esize; in kfifo_copy_out() local
150 if (esize != 1) { in kfifo_copy_out()
151 off *= esize; in kfifo_copy_out()
152 size *= esize; in kfifo_copy_out()
153 len *= esize; in kfifo_copy_out()
194 unsigned int esize = fifo->esize; in kfifo_copy_from_user() local
199 if (esize != 1) { in kfifo_copy_from_user()
200 off *= esize; in kfifo_copy_from_user()
201 size *= esize; in kfifo_copy_from_user()
202 len *= esize; in kfifo_copy_from_user()
208 ret = DIV_ROUND_UP(ret + len - l, esize); in kfifo_copy_from_user()
212 ret = DIV_ROUND_UP(ret, esize); in kfifo_copy_from_user()
219 *copied = len - ret * esize; in kfifo_copy_from_user()
229 unsigned int esize = fifo->esize; in __kfifo_from_user() local
232 if (esize != 1) in __kfifo_from_user()
233 len /= esize; in __kfifo_from_user()
256 unsigned int esize = fifo->esize; in kfifo_copy_to_user() local
259 if (esize != 1) { in kfifo_copy_to_user()
260 off *= esize; in kfifo_copy_to_user()
261 size *= esize; in kfifo_copy_to_user()
262 len *= esize; in kfifo_copy_to_user()
268 ret = DIV_ROUND_UP(ret + len - l, esize); in kfifo_copy_to_user()
272 ret = DIV_ROUND_UP(ret, esize); in kfifo_copy_to_user()
279 *copied = len - ret * esize; in kfifo_copy_to_user()
289 unsigned int esize = fifo->esize; in __kfifo_to_user() local
292 if (esize != 1) in __kfifo_to_user()
293 len /= esize; in __kfifo_to_user()
352 unsigned int esize = fifo->esize; in setup_sgl() local
357 if (esize != 1) { in setup_sgl()
358 off *= esize; in setup_sgl()
359 size *= esize; in setup_sgl()
360 len *= esize; in setup_sgl()