Searched refs:expect (Results 51 - 75 of 99) sorted by relevance

1234

/linux-master/tools/testing/selftests/net/forwarding/
H A Dvxlan_bridge_1d_ipv6.sh525 local expect=${expects[$key]}
527 ((expect == delta))
528 check_err $? "${counters[$key]}: Expected to capture $expect packets, got $delta."
611 local expect=$1; shift
619 ((expect <= delta && delta <= expect + 5))
620 check_err $? "$capture_dev: Expected to capture $expect packets, got $delta."
718 local expect=$1; shift
731 ((expect <= delta && delta <= expect
[all...]
H A Dbridge_vlan_mcast.sh101 local expect=$1
110 if [ $expect -eq 0 ]; then
192 local expect=$4
207 if [[ $tcstats != $expect || \
208 $(($post_tx_xstats-$pre_tx_xstats)) != $expect || \
H A Dbridge_mdb_max.sh1036 local expect=$1; shift
1043 eval "[[ $max $expect ]]"
1044 check_err $? "$locus: maxgroups attribute expected to be $expect, but was $max"
1046 eval "[[ $n $expect ]]"
1047 check_err $? "$locus: ngroups attribute expected to be $expect, but was $n"
H A Dvxlan_asymmetric.sh501 local expect=$1; shift
504 (( expect == actual ))
505 check_err $? "expected $expect arps got $actual"
/linux-master/tools/testing/selftests/mm/
H A Dkhugepaged.c58 struct mem_ops *ops, bool expect);
497 struct mem_ops *ops, bool expect)
515 if (((bool)ret) == expect)
517 else if (!ops->check_huge(p, expect ? nr_hpages : 0))
526 struct mem_ops *ops, bool expect)
533 __madvise_collapse(msg, p, nr_hpages, ops, expect);
570 struct mem_ops *ops, bool expect)
573 if (expect)
588 if (ops->check_huge(p, expect ? nr_hpages : 0))
496 __madvise_collapse(const char *msg, char *p, int nr_hpages, struct mem_ops *ops, bool expect) argument
525 madvise_collapse(const char *msg, char *p, int nr_hpages, struct mem_ops *ops, bool expect) argument
569 khugepaged_collapse(const char *msg, char *p, int nr_hpages, struct mem_ops *ops, bool expect) argument
/linux-master/drivers/gpu/drm/i915/selftests/
H A Di915_syncmap.c292 * If we then reuse the same set of contexts, we expect to build an
576 bool expect; local
579 expect = seqno_later(last_seqno, seqno);
584 if (i915_syncmap_is_later(&sync, context, seqno) != expect) {
586 context, last_seqno, seqno, expect);
/linux-master/tools/testing/selftests/powerpc/nx-gzip/
H A Dgunz_test.c277 int c, expect, i, cc, rc = 0; local
336 c = GETINPC(inpf); expect = 0x1f; /* ID1 */
337 if (c != expect)
340 c = GETINPC(inpf); expect = 0x8b; /* ID2 */
341 if (c != expect)
344 c = GETINPC(inpf); expect = 0x08; /* CM */
345 if (c != expect)
978 fprintf(stderr, "error: not a gzip file, expect %x, read %x\n",
979 expect, c);
/linux-master/tools/testing/selftests/bpf/verifier/
H A Datomic_fetch.c95 #define __ATOMIC_FETCH_OP_TEST(src_reg, dst_reg, operand1, op, operand2, expect) \
112 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, expect, 2), \
/linux-master/drivers/char/
H A Dnvram.c124 unsigned short expect; local
128 expect = __nvram_read_byte(PC_CKS_LOC)<<8 |
130 return (sum & 0xffff) == expect;
/linux-master/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test.c526 size_t num, expect = 1 << log2_num; local
541 if (num != expect) {
543 res, expect);
/linux-master/drivers/input/tablet/
H A Dwacom_serial4.c167 u8 expect; member in struct:wacom
286 if (wacom->data[0] != '~' || wacom->data[1] != wacom->expect) {
470 wacom->expect = cmd[1];
483 wacom->expect = 0;
/linux-master/include/linux/netfilter/
H A Dnf_conntrack_sip.h120 unsigned int (*expect)(struct sk_buff *skb, member in struct:nf_nat_sip_hooks
/linux-master/drivers/block/drbd/
H A Ddrbd_polymorph_printk.h129 * expect - Make an assertion
133 #define expect(x, exp) ({ \ macro
H A Ddrbd_receiver.c415 if (!expect(device, !(peer_req->flags & EE_CALL_AL_COMPLETE_IO))) {
1878 if (!expect(peer_device, data_size == 0))
1882 if (!expect(peer_device, data_size == 0))
1887 if (!expect(peer_device, IS_ALIGNED(ds, 512)))
1890 if (!expect(peer_device, ds <= (DRBD_MAX_BBIO_SECTORS << 9)))
1892 } else if (!expect(peer_device, ds <= DRBD_MAX_BIO_SIZE))
1988 int digest_size, err, expect; local
2010 expect = min_t(int, data_size, bvec.bv_len);
2011 err = drbd_recv_all_warn(peer_device->connection, mapped, expect);
2015 data_size -= expect;
5284 const int expect = sizeof(struct p_connection_features); local
5971 int expect = header_size; local
[all...]
/linux-master/arch/s390/include/uapi/asm/
H A Ddasd.h220 struct format_data_t expect; member in struct:format_check_t
/linux-master/lib/
H A Datomic64_test.c72 #define TEST_ARGS(bit, op, init, ret, expect, args...) \
76 BUG_ON(atomic##bit##_read(&v) != expect); \
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c6892 struct btf_raw_data expect; member in struct:btf_dedup_test
6908 .expect = {
6930 .expect = {
6992 .expect = {
7049 .expect = {
7090 .expect = {
7144 .expect = {
7204 .expect = {
7252 .expect = {
7290 .expect
[all...]
/linux-master/fs/btrfs/tests/
H A Dextent-io-tests.c353 u8 expect; local
356 expect = bitmap_get_value8(bitmap, ALIGN(i, BITS_PER_BYTE));
359 "bits do not match, start byte 0 bit %lu, byte %lu has 0x%02x expect 0x%02x",
360 i, i / BITS_PER_BYTE, has, expect);
368 u8 expect; local
371 expect = bitmap_get_value8(bitmap, ALIGN(i, BITS_PER_BYTE));
374 "bits do not match, start byte %lu bit %lu, byte %lu has 0x%02x expect 0x%02x",
376 i / BITS_PER_BYTE, has, expect);
/linux-master/kernel/
H A Dstatic_call_inline.c532 int expect; member in struct:static_call_data
549 WARN_ON(static_call(sc_selftest)(scd->val) != scd->expect);
/linux-master/include/net/bluetooth/
H A Dbluetooth.h466 u16 expect; member in struct:bt_skb_cb
480 #define hci_skb_expect(skb) bt_cb((skb))->expect
/linux-master/drivers/net/ethernet/rocker/
H A Drocker_main.c158 const unsigned char *expect, size_t size)
172 if (buf[i] != expect[i]) {
174 buf[i], i, expect[i]);
190 unsigned char *expect; local
200 expect = buf + ROCKER_TEST_DMA_BUF_SIZE;
212 memset(expect, ROCKER_TEST_DMA_FILL_PATTERN, ROCKER_TEST_DMA_BUF_SIZE);
214 dma_handle, buf, expect,
219 memset(expect, 0, ROCKER_TEST_DMA_BUF_SIZE);
221 dma_handle, buf, expect,
228 expect[
155 rocker_dma_test_one(const struct rocker *rocker, struct rocker_wait *wait, u32 test_type, dma_addr_t dma_handle, const unsigned char *buf, const unsigned char *expect, size_t size) argument
[all...]
/linux-master/drivers/hwtracing/intel_th/
H A Dmsu.c708 enum lockout_state expect,
721 if (old != expect) {
728 if (old == expect && new == WIN_LOCKED)
730 else if (old == expect && old == WIN_LOCKED)
737 if (expect == WIN_READY && old == WIN_LOCKED)
741 if (expect == WIN_LOCKED && old == new)
746 expect, old);
707 msc_win_set_lockout(struct msc_window *win, enum lockout_state expect, enum lockout_state new) argument
/linux-master/drivers/iio/adc/
H A Dxilinx-ams.c462 u32 expect = AMS_PS_CSTS_PS_READY; local
470 ret = readl_poll_timeout(ams->base + AMS_PS_CSTS, reg, (reg & expect),
551 u32 expect = AMS_ISR1_EOC_MASK; local
560 writel(expect, ams->base + AMS_ISR_1);
561 ret = readl_poll_timeout(ams->base + AMS_ISR_1, reg, (reg & expect),
/linux-master/tools/testing/selftests/rseq/
H A Dparam_test.c614 intptr_t *targetptr, newval, expect; local
619 expect = (intptr_t)RSEQ_READ_ONCE(list->c[cpu].head);
622 node->next = (struct percpu_list_node *)expect;
624 targetptr, expect, newval, cpu);
/linux-master/drivers/net/ieee802154/
H A Datusb.c197 u8 expect = atusb->tx_ack_seq; local
199 dev_dbg(&usb_dev->dev, "%s (0x%02x/0x%02x)\n", __func__, seq, expect);
200 if (seq == expect) {
209 * unlikely case now that seq == expect is then true, but can

Completed in 353 milliseconds

1234