Lines Matching refs:slice_ent

388 			      struct qaic_attach_slice_entry *slice_ent)  in qaic_map_one_slice()  argument
394 ret = clone_range_of_sgt_for_slice(qdev, &sgt, bo->sgt, slice_ent->size, slice_ent->offset); in qaic_map_one_slice()
410 slice->no_xfer = !slice_ent->size; in qaic_map_one_slice()
415 slice->size = slice_ent->size; in qaic_map_one_slice()
416 slice->offset = slice_ent->offset; in qaic_map_one_slice()
418 ret = encode_reqs(qdev, slice, slice_ent); in qaic_map_one_slice()
554 static int qaic_validate_req(struct qaic_device *qdev, struct qaic_attach_slice_entry *slice_ent, in qaic_validate_req() argument
560 if (!(slice_ent[i].db_len == 32 || slice_ent[i].db_len == 16 || in qaic_validate_req()
561 slice_ent[i].db_len == 8 || slice_ent[i].db_len == 0) || in qaic_validate_req()
562 invalid_sem(&slice_ent[i].sem0) || invalid_sem(&slice_ent[i].sem1) || in qaic_validate_req()
563 invalid_sem(&slice_ent[i].sem2) || invalid_sem(&slice_ent[i].sem3)) in qaic_validate_req()
566 if (slice_ent[i].offset + slice_ent[i].size > total_size) in qaic_validate_req()
915 struct qaic_attach_slice_entry *slice_ent) in qaic_attach_slicing_bo() argument
920 ret = qaic_map_one_slice(qdev, bo, &slice_ent[i]); in qaic_attach_slicing_bo()
937 struct qaic_attach_slice_entry *slice_ent; in qaic_attach_slice_bo_ioctl() local
952 arg_size = args->hdr.count * sizeof(*slice_ent); in qaic_attach_slice_bo_ioctl()
953 if (arg_size / args->hdr.count != sizeof(*slice_ent)) in qaic_attach_slice_bo_ioctl()
983 slice_ent = kzalloc(arg_size, GFP_KERNEL); in qaic_attach_slice_bo_ioctl()
984 if (!slice_ent) { in qaic_attach_slice_bo_ioctl()
989 ret = copy_from_user(slice_ent, user_data, arg_size); in qaic_attach_slice_bo_ioctl()
1001 ret = qaic_validate_req(qdev, slice_ent, args->hdr.count, obj->size); in qaic_attach_slice_bo_ioctl()
1026 ret = qaic_attach_slicing_bo(qdev, bo, &args->hdr, slice_ent); in qaic_attach_slice_bo_ioctl()
1037 kfree(slice_ent); in qaic_attach_slice_bo_ioctl()
1052 kfree(slice_ent); in qaic_attach_slice_bo_ioctl()