• Home
  • Raw
  • Download

Lines Matching refs:crc

700 	struct crc_data *crc = NULL;  in save_image_lzo()  local
725 crc = kzalloc(sizeof(*crc), GFP_KERNEL); in save_image_lzo()
726 if (!crc) { in save_image_lzo()
753 init_waitqueue_head(&crc->go); in save_image_lzo()
754 init_waitqueue_head(&crc->done); in save_image_lzo()
757 crc->crc32 = &handle->crc32; in save_image_lzo()
759 crc->unc[thr] = data[thr].unc; in save_image_lzo()
760 crc->unc_len[thr] = &data[thr].unc_len; in save_image_lzo()
763 crc->thr = kthread_run(crc32_threadfn, crc, "image_crc32"); in save_image_lzo()
764 if (IS_ERR(crc->thr)) { in save_image_lzo()
765 crc->thr = NULL; in save_image_lzo()
815 crc->run_threads = thr; in save_image_lzo()
816 atomic_set_release(&crc->ready, 1); in save_image_lzo()
817 wake_up(&crc->go); in save_image_lzo()
860 wait_event(crc->done, atomic_read_acquire(&crc->stop)); in save_image_lzo()
861 atomic_set(&crc->stop, 0); in save_image_lzo()
874 if (crc) { in save_image_lzo()
875 if (crc->thr) in save_image_lzo()
876 kthread_stop(crc->thr); in save_image_lzo()
877 kfree(crc); in save_image_lzo()
1191 struct crc_data *crc = NULL; in load_image_lzo() local
1216 crc = kzalloc(sizeof(*crc), GFP_KERNEL); in load_image_lzo()
1217 if (!crc) { in load_image_lzo()
1246 init_waitqueue_head(&crc->go); in load_image_lzo()
1247 init_waitqueue_head(&crc->done); in load_image_lzo()
1250 crc->crc32 = &handle->crc32; in load_image_lzo()
1252 crc->unc[thr] = data[thr].unc; in load_image_lzo()
1253 crc->unc_len[thr] = &data[thr].unc_len; in load_image_lzo()
1256 crc->thr = kthread_run(crc32_threadfn, crc, "image_crc32"); in load_image_lzo()
1257 if (IS_ERR(crc->thr)) { in load_image_lzo()
1258 crc->thr = NULL; in load_image_lzo()
1345 if (crc->run_threads) { in load_image_lzo()
1346 wait_event(crc->done, atomic_read_acquire(&crc->stop)); in load_image_lzo()
1347 atomic_set(&crc->stop, 0); in load_image_lzo()
1348 crc->run_threads = 0; in load_image_lzo()
1431 crc->run_threads = thr + 1; in load_image_lzo()
1432 atomic_set_release(&crc->ready, 1); in load_image_lzo()
1433 wake_up(&crc->go); in load_image_lzo()
1439 crc->run_threads = thr; in load_image_lzo()
1440 atomic_set_release(&crc->ready, 1); in load_image_lzo()
1441 wake_up(&crc->go); in load_image_lzo()
1445 if (crc->run_threads) { in load_image_lzo()
1446 wait_event(crc->done, atomic_read_acquire(&crc->stop)); in load_image_lzo()
1447 atomic_set(&crc->stop, 0); in load_image_lzo()
1469 if (crc) { in load_image_lzo()
1470 if (crc->thr) in load_image_lzo()
1471 kthread_stop(crc->thr); in load_image_lzo()
1472 kfree(crc); in load_image_lzo()