Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 192) sorted by relevance

12345678

/drivers/base/test/
Dproperty-entry-test.c10 static void pe_test_uints(struct kunit *test) in pe_test_uints() argument
28 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in pe_test_uints()
31 KUNIT_EXPECT_EQ(test, error, 1); in pe_test_uints()
34 KUNIT_EXPECT_EQ(test, error, 0); in pe_test_uints()
35 KUNIT_EXPECT_EQ(test, val_u8, 8); in pe_test_uints()
38 KUNIT_EXPECT_EQ(test, error, 0); in pe_test_uints()
39 KUNIT_EXPECT_EQ(test, array_u8[0], 8); in pe_test_uints()
42 KUNIT_EXPECT_NE(test, error, 0); in pe_test_uints()
45 KUNIT_EXPECT_NE(test, error, 0); in pe_test_uints()
48 KUNIT_EXPECT_NE(test, error, 0); in pe_test_uints()
[all …]
/drivers/thunderbolt/
Dtest.c31 static void kunit_ida_init(struct kunit *test, struct ida *ida) in kunit_ida_init() argument
33 kunit_alloc_resource(test, __ida_init, __ida_destroy, GFP_KERNEL, ida); in kunit_ida_init()
36 static struct tb_switch *alloc_switch(struct kunit *test, u64 route, in alloc_switch() argument
43 sw = kunit_kzalloc(test, sizeof(*sw), GFP_KERNEL); in alloc_switch()
55 sw->ports = kunit_kzalloc(test, size, GFP_KERNEL); in alloc_switch()
64 kunit_ida_init(test, &sw->ports[i].in_hopids); in alloc_switch()
65 kunit_ida_init(test, &sw->ports[i].out_hopids); in alloc_switch()
72 static struct tb_switch *alloc_host(struct kunit *test) in alloc_host() argument
76 sw = alloc_switch(test, 0, 7, 13); in alloc_host()
154 static struct tb_switch *alloc_host_usb4(struct kunit *test) in alloc_host_usb4() argument
[all …]
/drivers/mmc/core/
Dmmc_test.c179 static int mmc_test_set_blksize(struct mmc_test_card *test, unsigned size) in mmc_test_set_blksize() argument
181 return mmc_set_blocklen(test->card, size); in mmc_test_set_blksize()
190 static void mmc_test_prepare_sbc(struct mmc_test_card *test, in mmc_test_prepare_sbc() argument
193 struct mmc_card *card = test->card; in mmc_test_prepare_sbc()
210 static void mmc_test_prepare_mrq(struct mmc_test_card *test, in mmc_test_prepare_mrq() argument
226 if (!mmc_card_blockaddr(test->card)) in mmc_test_prepare_mrq()
245 mmc_test_prepare_sbc(test, mrq, blocks); in mmc_test_prepare_mrq()
247 mmc_set_data_timeout(mrq->data, test->card); in mmc_test_prepare_mrq()
259 static int mmc_test_wait_busy(struct mmc_test_card *test) in mmc_test_wait_busy() argument
269 cmd.arg = test->card->rca << 16; in mmc_test_wait_busy()
[all …]
/drivers/misc/
Dpci_endpoint_test.c130 static inline u32 pci_endpoint_test_readl(struct pci_endpoint_test *test, in pci_endpoint_test_readl() argument
133 return readl(test->base + offset); in pci_endpoint_test_readl()
136 static inline void pci_endpoint_test_writel(struct pci_endpoint_test *test, in pci_endpoint_test_writel() argument
139 writel(value, test->base + offset); in pci_endpoint_test_writel()
142 static inline u32 pci_endpoint_test_bar_readl(struct pci_endpoint_test *test, in pci_endpoint_test_bar_readl() argument
145 return readl(test->bar[bar] + offset); in pci_endpoint_test_bar_readl()
148 static inline void pci_endpoint_test_bar_writel(struct pci_endpoint_test *test, in pci_endpoint_test_bar_writel() argument
151 writel(value, test->bar[bar] + offset); in pci_endpoint_test_bar_writel()
156 struct pci_endpoint_test *test = dev_id; in pci_endpoint_test_irqhandler() local
159 reg = pci_endpoint_test_readl(test, PCI_ENDPOINT_TEST_STATUS); in pci_endpoint_test_irqhandler()
[all …]
/drivers/mmc/host/
Dsdhci-of-aspeed-test.c6 static void aspeed_sdhci_phase_ddr52(struct kunit *test) in aspeed_sdhci_phase_ddr52() argument
10 KUNIT_EXPECT_EQ(test, 0, in aspeed_sdhci_phase_ddr52()
12 KUNIT_EXPECT_EQ(test, 0, in aspeed_sdhci_phase_ddr52()
14 KUNIT_EXPECT_EQ(test, 1, in aspeed_sdhci_phase_ddr52()
16 KUNIT_EXPECT_EQ(test, 1, in aspeed_sdhci_phase_ddr52()
18 KUNIT_EXPECT_EQ(test, 2, in aspeed_sdhci_phase_ddr52()
20 KUNIT_EXPECT_EQ(test, 3, in aspeed_sdhci_phase_ddr52()
22 KUNIT_EXPECT_EQ(test, 14, in aspeed_sdhci_phase_ddr52()
24 KUNIT_EXPECT_EQ(test, 15, in aspeed_sdhci_phase_ddr52()
26 KUNIT_EXPECT_EQ(test, 15, in aspeed_sdhci_phase_ddr52()
[all …]
/drivers/iio/test/
Diio-test-format.c15 static void iio_test_iio_format_value_integer(struct kunit *test) in iio_test_iio_format_value_integer() argument
17 char *buf = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL); in iio_test_iio_format_value_integer()
23 IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "42\n"); in iio_test_iio_format_value_integer()
27 IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "-23\n"); in iio_test_iio_format_value_integer()
31 IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "0\n"); in iio_test_iio_format_value_integer()
35 IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "2147483647\n"); in iio_test_iio_format_value_integer()
39 IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "-2147483648\n"); in iio_test_iio_format_value_integer()
42 static void iio_test_iio_format_value_fixedpoint(struct kunit *test) in iio_test_iio_format_value_fixedpoint() argument
44 char *buf = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL); in iio_test_iio_format_value_fixedpoint()
53 IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "1.000010\n"); in iio_test_iio_format_value_fixedpoint()
[all …]
/drivers/base/power/
Dqos-test.c9 static void freq_qos_test_min(struct kunit *test) in freq_qos_test_min() argument
20 KUNIT_EXPECT_EQ(test, ret, 1); in freq_qos_test_min()
22 KUNIT_EXPECT_EQ(test, ret, 1); in freq_qos_test_min()
24 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MIN), 2000); in freq_qos_test_min()
27 KUNIT_EXPECT_EQ(test, ret, 1); in freq_qos_test_min()
28 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MIN), 1000); in freq_qos_test_min()
31 KUNIT_EXPECT_EQ(test, ret, 1); in freq_qos_test_min()
32 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MIN), in freq_qos_test_min()
37 static void freq_qos_test_maxdef(struct kunit *test) in freq_qos_test_maxdef() argument
46 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MAX), in freq_qos_test_maxdef()
[all …]
/drivers/spi/
Dspi-loopback-test.c536 struct spi_test *test) in spi_test_check_elapsed_time() argument
542 for (i = 0; i < test->transfer_count; i++) { in spi_test_check_elapsed_time()
543 struct spi_transfer *xfer = test->transfers + i; in spi_test_check_elapsed_time()
554 if (test->elapsed_time < estimated_time) { in spi_test_check_elapsed_time()
557 test->elapsed_time, estimated_time); in spi_test_check_elapsed_time()
671 struct spi_test *test) in spi_test_fill_pattern() argument
673 struct spi_transfer *xfers = test->transfers; in spi_test_fill_pattern()
687 for (i = 0; i < test->transfer_count; i++) { in spi_test_fill_pattern()
699 switch (test->fill_option) { in spi_test_fill_pattern()
701 *tx_buf = test->fill_pattern; in spi_test_fill_pattern()
[all …]
/drivers/of/unittest-data/
Dtests-overlay.dtsi7 /* test bus */
8 unittest_test_bus: test-bus {
13 unittest100: test-unittest100 {
19 unittest101: test-unittest101 {
25 unittest0: test-unittest0 {
31 unittest1: test-unittest1 {
37 unittest2: test-unittest2 {
43 unittest3: test-unittest3 {
49 unittest5: test-unittest5 {
55 unittest6: test-unittest6 {
[all …]
Dtests-platform.dtsi9 test-device@0 {
10 compatible = "test-device";
17 compatible = "test-sub-device";
22 test-device@1 {
23 compatible = "test-device";
30 compatible = "test-sub-device",
31 "test-compat2",
32 "test-compat3";
/drivers/usb/musb/
Dmusb_debugfs.c118 unsigned test; in musb_test_mode_show() local
121 test = musb_readb(musb->mregs, MUSB_TESTMODE); in musb_test_mode_show()
125 if (test == (MUSB_TEST_FORCE_HOST | MUSB_TEST_FORCE_FS)) in musb_test_mode_show()
128 else if (test == (MUSB_TEST_FORCE_HOST | MUSB_TEST_FORCE_HS)) in musb_test_mode_show()
131 else if (test == MUSB_TEST_FORCE_HOST) in musb_test_mode_show()
134 else if (test == MUSB_TEST_FIFO_ACCESS) in musb_test_mode_show()
137 else if (test == MUSB_TEST_FORCE_FS) in musb_test_mode_show()
140 else if (test == MUSB_TEST_FORCE_HS) in musb_test_mode_show()
143 else if (test == MUSB_TEST_PACKET) in musb_test_mode_show()
146 else if (test == MUSB_TEST_K) in musb_test_mode_show()
[all …]
/drivers/net/ethernet/intel/igc/
Digc_diag.c84 struct igc_reg_test *test = reg_test; in igc_reg_test() local
112 while (test->reg) { in igc_reg_test()
113 for (i = 0; i < test->array_len; i++) { in igc_reg_test()
114 switch (test->test_type) { in igc_reg_test()
117 test->reg + (i * 0x40), in igc_reg_test()
118 test->mask, in igc_reg_test()
119 test->write); in igc_reg_test()
123 test->reg + (i * 0x40), in igc_reg_test()
124 test->mask, in igc_reg_test()
125 test->write); in igc_reg_test()
[all …]
/drivers/net/wireguard/selftest/
Dratelimiter.c35 int *test) in timings_test() argument
54 ++(*test); in timings_test()
62 ++(*test); in timings_test()
75 ++(*test); in timings_test()
84 ++(*test); in timings_test()
98 int *test) in capacity_test() argument
107 ++(*test); in capacity_test()
113 ++(*test); in capacity_test()
122 int test = 0, trials; in wg_ratelimiter_selftest() local
134 ++test; in wg_ratelimiter_selftest()
[all …]
Dallowedips.c472 #define test(version, mem, ipa, ipb, ipc, ipd) do { \ macro
548 test(4, a, 192, 168, 4, 20); in wg_allowedips_selftest()
549 test(4, a, 192, 168, 4, 0); in wg_allowedips_selftest()
550 test(4, b, 192, 168, 4, 4); in wg_allowedips_selftest()
551 test(4, c, 192, 168, 200, 182); in wg_allowedips_selftest()
552 test(4, c, 192, 95, 5, 68); in wg_allowedips_selftest()
553 test(4, e, 192, 95, 5, 96); in wg_allowedips_selftest()
554 test(6, d, 0x26075300, 0x60006b00, 0, 0xc05f0543); in wg_allowedips_selftest()
555 test(6, c, 0x26075300, 0x60006b00, 0, 0xc02e01ee); in wg_allowedips_selftest()
556 test(6, f, 0x26075300, 0x60006b01, 0, 0); in wg_allowedips_selftest()
[all …]
/drivers/scsi/aic7xxx/
Daic79xx.seq52 test SEQINTCODE, 0xFF jz idle_loop;
65 test ERROR, 0xFF jz no_error_set;
70 test SCSISEQ0, ENSELO|ENARBO jnz idle_loop_checkbus;
71 test SEQ_FLAGS2, SELECTOUT_QFROZEN jz check_waiting_list;
82 test SSTAT0, SELDO|SELINGO jnz idle_loop_checkbus;
109 * ENSELO is cleared by a SELDO, so we must test for SELDO
112 test SSTAT0, SELDO jnz select_out;
115 test SSTAT0, SELDO jnz select_out;
117 test SSTAT0, SELDI jnz select_in;
118 test SCSIPHASE, ~DATA_PHASE_MASK jz idle_loop_check_nonpackreq;
[all …]
Daic7xxx.seq81 test SCSISEQ, ENSELO jnz poll_for_selection;
84 test SCSISEQ, ENSELO jnz poll_for_selection;
91 test SSTAT0, SELDO|SELDI jnz selection;
96 test QOFF_CTLSTA, SCB_AVAIL jz poll_for_work_loop;
159 test SSTAT0, SELDO|SELDI jz poll_for_selection;
176 test SSTAT0, SELDI|SELDO jz bus_free_sel;
177 test SSTAT0,SELDO jnz select_out;
181 test SSTAT0, TARGET jz initiator_reselect;
221 test SBLKCTL, SELBUSB jz . + 2;
236 test SCSISIGI, ATNI jz target_busfree;
[all …]
/drivers/media/test-drivers/
DKconfig4 bool "V4L test drivers"
9 source "drivers/media/test-drivers/vimc/Kconfig"
11 source "drivers/media/test-drivers/vivid/Kconfig"
21 This is a virtual test device for the memory-to-memory driver
24 source "drivers/media/test-drivers/vicodec/Kconfig"
29 bool "DVB test drivers"
32 Enables DVB test drivers.
34 This enables the DVB test drivers. They are meant as an aid for
40 source "drivers/media/test-drivers/vidtv/Kconfig"
/drivers/net/wireless/mediatek/mt76/mt7615/
Dtestmode.c70 if (mphy->test.state != MT76_TM_STATE_OFF) in mt7615_tm_set_tx_power()
71 tx_power = mphy->test.tx_power; in mt7615_tm_set_tx_power()
101 u32 *b = phy->test.reg_backup; in mt7615_tm_reg_backup_restore()
106 if (phy->mt76->test.state == MT76_TM_STATE_OFF) { in mt7615_tm_reg_backup_restore()
124 phy->test.reg_backup = b; in mt7615_tm_reg_backup_restore()
141 mt7615_mcu_set_sku_en(phy, phy->mt76->test.state == MT76_TM_STATE_OFF); in mt7615_tm_init()
175 struct mt76_testmode_data *td = &phy->mt76->test; in mt7615_tm_set_tx_antenna()
230 struct sk_buff *skb = phy->mt76->test.tx_skb; in mt7615_tm_set_tx_frames()
246 struct mt76_testmode_data *td = &phy->mt76->test; in mt7615_tm_update_params()
247 bool en = phy->mt76->test.state != MT76_TM_STATE_OFF; in mt7615_tm_update_params()
[all …]
/drivers/media/radio/
Dradio-cadet.c164 unsigned freq = 0, test, fifo = 0; in cadet_getfreq() local
177 test = 12500; in cadet_getfreq()
180 freq += test; in cadet_getfreq()
181 test = test << 1; in cadet_getfreq()
192 unsigned test; in cadet_settune() local
198 test = 0; in cadet_settune()
199 test = (fifo >> 23) & 0x02; /* Align data for SDO */ in cadet_settune()
200 test |= 0x1c; /* SDM=1, SWE=1, SEN=1, SCK=0 */ in cadet_settune()
202 outb(test, dev->io + 1); /* Initialize for write */ in cadet_settune()
204 test |= 0x01; /* Toggle SCK High */ in cadet_settune()
[all …]
/drivers/net/wireless/mediatek/mt76/mt7915/
Dtestmode.c73 if (phy->mt76->test.state != MT76_TM_STATE_OFF) in mt7915_tm_set_tx_power()
74 tx_power = phy->mt76->test.tx_power; in mt7915_tm_set_tx_power()
155 .testmode_en = !(phy->mt76->test.state == MT76_TM_STATE_OFF), in mt7915_tm_set_slot_time()
259 struct mt76_testmode_data *td = &mphy->test; in mt7915_tm_set_tx_len()
339 u32 *b = phy->test.reg_backup; in mt7915_tm_reg_backup_restore()
342 if (phy->mt76->test.state == MT76_TM_STATE_OFF) { in mt7915_tm_reg_backup_restore()
355 phy->test.reg_backup = b; in mt7915_tm_reg_backup_restore()
417 struct mt76_testmode_data *td = &phy->mt76->test; in mt7915_tm_set_tx_frames()
431 phy->test.spe_idx = td->tx_spe_idx; in mt7915_tm_set_tx_frames()
437 phy->test.spe_idx = spe_idx_map[tx_ant]; in mt7915_tm_set_tx_frames()
[all …]
/drivers/staging/r8188eu/include/
Drtw_efuse.h114 u16 Efuse_GetCurrentSize(struct adapter *adapter, u8 efusetype, bool test);
116 void ReadEFuseByte(struct adapter *adapter, u16 _offset, u8 *pbuf, bool test);
119 u8 efuse_OneByteRead(struct adapter *adapter, u16 addr, u8 *data, bool test);
120 u8 efuse_OneByteWrite(struct adapter *adapter, u16 addr, u8 data, bool test);
123 int Efuse_PgPacketRead(struct adapter *adapt, u8 offset, u8 *data, bool test);
125 bool test);
128 u8 word_en, u8 *data, bool test);
131 void EFUSE_ShadowMapUpdate(struct adapter *adapter, u8 efusetype, bool test);
/drivers/soc/fsl/qbman/
DKconfig32 Compile the BMan self-test code. These tests will
37 bool "High-level API self-test"
43 to the cpu(s) the test executes on).
48 Compile self-test code for QMan.
51 bool "QMan high-level self-test"
57 the cpu(s) the test executes on).
60 bool "QMan 'hot potato' data-stashing self-test"
64 This performs a "hot potato" style test enqueuing/dequeuing a frame
/drivers/rtc/
Dlib_test.c33 static void rtc_time64_to_tm_test_date_range(struct kunit *test) in rtc_time64_to_tm_test_date_range() argument
60 KUNIT_ASSERT_EQ_MSG(test, year - 1900, result.tm_year, FAIL_MSG); in rtc_time64_to_tm_test_date_range()
61 KUNIT_ASSERT_EQ_MSG(test, month - 1, result.tm_mon, FAIL_MSG); in rtc_time64_to_tm_test_date_range()
62 KUNIT_ASSERT_EQ_MSG(test, mday, result.tm_mday, FAIL_MSG); in rtc_time64_to_tm_test_date_range()
63 KUNIT_ASSERT_EQ_MSG(test, yday, result.tm_yday, FAIL_MSG); in rtc_time64_to_tm_test_date_range()
/drivers/accessibility/speakup/
Dspeakup_audptr.c129 unsigned char test = 0; in synth_version() local
133 synth_id[test] = synth->io_ops->synth_in(synth); in synth_version()
134 if (synth_id[test] == 'A') { in synth_version()
137 synth_id[++test] = synth->io_ops->synth_in(synth); in synth_version()
138 } while (synth_id[test] != '\n' && test < 32); in synth_version()
139 synth_id[++test] = 0x00; in synth_version()
/drivers/net/wireless/ti/wl12xx/
Dcmd.h20 struct wl1271_cmd_test_header test; member
35 struct wl1271_cmd_test_header test; member
50 struct wl1271_cmd_test_header test; member
66 struct wl1271_cmd_test_header test; member
85 struct wl1271_cmd_test_header test; member

12345678