Lines Matching refs:count
545 int count;
558 count = request->count;
570 DRM_DEBUG("count: %d\n", count);
597 if (count < 0 || count > 4096) {
603 entry->buflist = kmalloc(count * sizeof(*entry->buflist), GFP_KERNEL);
609 (void) memset(entry->buflist, 0, count * sizeof(*entry->buflist));
616 while (entry->buf_count < count) {
633 /* Set count correctly so we free the proper amount. */
634 entry->buf_count = count;
680 request->count = entry->buf_count;
696 int count;
715 count = request->count;
727 DRM_DEBUG("count: %d\n", count);
754 if (count < 0 || count > 4096) {
760 entry->buflist = kmalloc(count * sizeof(*entry->buflist),
767 (void) memset(entry->buflist, 0, count * sizeof(*entry->buflist));
774 while (entry->buf_count < count) {
791 /* Set count correctly so we free the proper amount. */
792 entry->buf_count = count;
835 request->count = entry->buf_count;
899 int count;
915 for (i = 0, count = 0; i < DRM_MAX_ORDER + 1; i++) {
917 ++count;
920 DRM_DEBUG("count = %d\n", count);
922 if (request->count >= count) {
923 for (i = 0, count = 0; i < DRM_MAX_ORDER + 1; i++) {
926 &request->list[count];
929 if (copy_to_user(&to->count,
949 ++count;
953 request->count = count;
1031 DRM_DEBUG("%d\n", request->count);
1032 for (i = 0; i < request->count; i++) {
1097 if (request->count >= dma->buf_count) {
1184 request->count = dma->buf_count;
1185 DRM_DEBUG("%d buffers, retcode = %d\n", request->count, retcode);