Lines Matching refs:wp
688 struct k_work *wp = &ctx->work; in ZTEST() local
694 k_work_init(wp, rel_handler); in ZTEST()
697 rc = k_work_submit_to_queue(&coophi_queue, wp); in ZTEST()
712 zassert_equal(k_work_cancel(wp), K_WORK_RUNNING | K_WORK_CANCELING, in ZTEST()
726 zassert_true(k_work_cancel_sync(wp, &work_sync)); in ZTEST()
741 rc = k_work_busy_get(wp); in ZTEST()
751 struct k_work *wp = &ctx->work; in ZTEST() local
757 k_work_init(wp, rel_handler); in ZTEST()
760 rc = k_work_submit_to_queue(&coophi_queue, wp); in ZTEST()
775 zassert_true(k_work_cancel_sync(wp, &work_sync)); in ZTEST()
801 rc = k_work_busy_get(wp); in ZTEST()
878 struct k_work *wp = &ctx->work; in ZTEST() local
886 k_work_init(wp, delay_handler); in ZTEST()
889 rc = k_work_submit_to_queue(&coophi_queue, wp); in ZTEST()
983 struct k_work *wp = &dwork.work; /* whitebox testing */ in ZTEST() local
990 zassert_equal(k_work_busy_get(wp), 0); in ZTEST()
991 zassert_equal(wp->flags & K_WORK_DELAYABLE, K_WORK_DELAYABLE, in ZTEST()
999 rc = k_work_busy_get(wp); in ZTEST()
1014 zassert_equal(k_work_busy_get(wp), 0); in ZTEST()
1091 struct k_work *wp = &dwork.work; /* whitebox testing */ in ZTEST() local
1096 zassert_equal(k_work_busy_get(wp), 0); in ZTEST()
1101 rc = k_work_busy_get(wp); in ZTEST()
1118 zassert_equal(k_work_busy_get(wp), 0); in ZTEST()
1133 struct k_work *wp = &dwork.work; /* whitebox testing */ in ZTEST() local
1140 zassert_equal(k_work_busy_get(wp), 0); in ZTEST()
1141 zassert_equal(wp->flags & K_WORK_DELAYABLE, K_WORK_DELAYABLE, in ZTEST()
1150 zassert_equal(k_work_busy_get(wp), K_WORK_DELAYED); in ZTEST()
1160 zassert_equal(k_work_busy_get(wp), K_WORK_DELAYED); in ZTEST()
1168 zassert_equal(k_work_busy_get(wp), 0); in ZTEST()
1184 struct k_work *wp = &dwork.work; /* whitebox testing */ in ZTEST() local
1189 zassert_equal(k_work_busy_get(wp), 0); in ZTEST()
1194 zassert_equal(k_work_busy_get(wp), K_WORK_QUEUED); in ZTEST()
1204 zassert_equal(k_work_busy_get(wp), K_WORK_RUNNING); in ZTEST()
1211 zassert_equal(k_work_busy_get(wp), K_WORK_QUEUED | K_WORK_RUNNING, in ZTEST()
1221 zassert_equal(k_work_busy_get(wp), in ZTEST()
1233 zassert_equal(k_work_busy_get(wp), K_WORK_DELAYED | K_WORK_RUNNING, in ZTEST()
1245 zassert_equal(k_work_busy_get(wp), K_WORK_DELAYED, in ZTEST()
1258 zassert_equal(k_work_busy_get(wp), K_WORK_RUNNING, in ZTEST()