Lines Matching refs:mbuf
383 void *mbuf = NULL;
408 mbuf = kmalloc(_IOC_SIZE(cmd), GFP_KERNEL);
409 if (NULL == mbuf)
411 parg = mbuf;
429 /* Note: v4l2_ext_controls fits in sbuf[] so mbuf is still NULL. */
430 mbuf = kmalloc(ctrls_size, GFP_KERNEL);
432 if (NULL == mbuf)
435 if (copy_from_user(mbuf, user_ptr, ctrls_size))
437 p->controls = mbuf;
449 if (p->count && err == 0 && copy_to_user(user_ptr, mbuf, ctrls_size))
467 kfree(mbuf);
2076 void *mbuf = NULL;
2095 mbuf = kmalloc(_IOC_SIZE(cmd), GFP_KERNEL);
2096 if (NULL == mbuf)
2098 parg = mbuf;
2126 /* Note: v4l2_ext_controls fits in sbuf[] so mbuf is still NULL. */
2127 mbuf = kmalloc(ctrls_size, GFP_KERNEL);
2129 if (NULL == mbuf)
2132 if (copy_from_user(mbuf, user_ptr, ctrls_size))
2134 p->controls = mbuf;
2146 if (p->count && err == 0 && copy_to_user(user_ptr, mbuf, ctrls_size))
2164 kfree(mbuf);