Lines Matching refs:p0

665 	struct test_data_var *p0;  in item_alloc_preemption()  local
669 p0 = (struct test_data_var *)mpsc_pbuf_alloc(&buffer, 10, K_NO_WAIT); in item_alloc_preemption()
670 zassert_true(p0); in item_alloc_preemption()
671 p0->hdr.len = 10; in item_alloc_preemption()
690 mpsc_pbuf_commit(&buffer, (union mpsc_pbuf_generic *)p0); in item_alloc_preemption()
789 struct test_data_var *p0; in overwrite_while_claimed() local
802 p0 = (struct test_data_var *)mpsc_pbuf_claim(&buffer); in overwrite_while_claimed()
803 zassert_true(p0); in overwrite_while_claimed()
804 zassert_equal(p0->hdr.len, fill_len); in overwrite_while_claimed()
806 exp_dropped_data[0] = p0->hdr.data + 1; /* next packet is dropped */ in overwrite_while_claimed()
808 exp_dropped_data[1] = p0->hdr.data + 2; /* next packet is dropped */ in overwrite_while_claimed()
816 mpsc_pbuf_free(&buffer, (union mpsc_pbuf_generic *)p0); in overwrite_while_claimed()
819 p0 = (struct test_data_var *)mpsc_pbuf_claim(&buffer); in overwrite_while_claimed()
820 zassert_true(p0); in overwrite_while_claimed()
821 zassert_equal(p0->hdr.len, fill_len); in overwrite_while_claimed()
822 zassert_equal(p0->hdr.data, i + drop_cnt + 1); in overwrite_while_claimed()
823 mpsc_pbuf_free(&buffer, (union mpsc_pbuf_generic *)p0); in overwrite_while_claimed()
826 p0 = (struct test_data_var *)mpsc_pbuf_claim(&buffer); in overwrite_while_claimed()
827 zassert_true(p0); in overwrite_while_claimed()
828 zassert_equal(p0->hdr.len, len); in overwrite_while_claimed()
830 p0 = (struct test_data_var *)mpsc_pbuf_claim(&buffer); in overwrite_while_claimed()
831 zassert_is_null(p0); in overwrite_while_claimed()
842 struct test_data_var *p0; in overwrite_while_claimed2() local
855 p0 = (struct test_data_var *)mpsc_pbuf_claim(&buffer); in overwrite_while_claimed2()
856 zassert_true(p0); in overwrite_while_claimed2()
857 zassert_equal(p0->hdr.len, fill_len); in overwrite_while_claimed2()
859 exp_dropped_data[0] = p0->hdr.data + 1; /* next packet is dropped */ in overwrite_while_claimed2()
861 exp_dropped_data[1] = p0->hdr.data + 2; /* next packet is dropped */ in overwrite_while_claimed2()
863 exp_dropped_data[2] = p0->hdr.data + 3; /* next packet is dropped */ in overwrite_while_claimed2()
872 mpsc_pbuf_free(&buffer, (union mpsc_pbuf_generic *)p0); in overwrite_while_claimed2()
875 p0 = (struct test_data_var *)mpsc_pbuf_claim(&buffer); in overwrite_while_claimed2()
876 zassert_true(p0); in overwrite_while_claimed2()
877 zassert_equal(p0->hdr.len, fill_len); in overwrite_while_claimed2()
878 zassert_equal(p0->hdr.data, i + drop_cnt + 1); in overwrite_while_claimed2()
879 mpsc_pbuf_free(&buffer, (union mpsc_pbuf_generic *)p0); in overwrite_while_claimed2()
882 p0 = (struct test_data_var *)mpsc_pbuf_claim(&buffer); in overwrite_while_claimed2()
883 zassert_true(p0); in overwrite_while_claimed2()
884 zassert_equal(p0->hdr.len, len); in overwrite_while_claimed2()
886 p0 = (struct test_data_var *)mpsc_pbuf_claim(&buffer); in overwrite_while_claimed2()
887 zassert_is_null(p0); in overwrite_while_claimed2()
988 void t_entry(void *p0, void *p1, void *p2) in t_entry() argument
990 struct mpsc_pbuf_buffer *buffer = p0; in t_entry()