Lines Matching defs:batch
1379 void __user *uvalues = u64_to_user_ptr(attr->batch.values);
1380 void __user *ukeys = u64_to_user_ptr(attr->batch.keys);
1381 void *ubatch = u64_to_user_ptr(attr->batch.in_batch);
1382 u32 batch, max_count, size, bucket_size;
1393 elem_map_flags = attr->batch.elem_flags;
1398 map_flags = attr->batch.flags;
1402 max_count = attr->batch.count;
1406 if (put_user(0, &uattr->batch.count))
1409 batch = 0;
1410 if (ubatch && copy_from_user(&batch, ubatch, sizeof(batch)))
1413 if (batch >= htab->n_buckets)
1445 b = &htab->buckets[batch];
1543 if (!bucket_cnt && (batch + 1 < htab->n_buckets)) {
1544 batch++;
1559 batch++;
1560 if (batch >= htab->n_buckets) {
1570 /* copy # of entries and next batch */
1571 ubatch = u64_to_user_ptr(attr->batch.out_batch);
1572 if (copy_to_user(ubatch, &batch, sizeof(batch)) ||
1573 put_user(total, &uattr->batch.count))