test_mode
module_param_named_unsafe(test_mode, ivpu_test_mode, int, 0644);
MODULE_PARM_DESC(test_mode, "Test mode mask. See IVPU_TEST_MODE_* macros.");
struct drm_display_mode *test_mode;
test_mode = drm_mode_duplicate(connector->dev, mode);
if (!test_mode)
drm_mode_set_crtcinfo(test_mode, 0);
stream = create_validate_stream_for_sink(connector, test_mode,
drm_mode_destroy(connector->dev, test_mode);
struct phy_test_mode test_mode;
char test_mode[32] = {0};
ret = simple_write_to_buffer(test_mode, sizeof(test_mode) - 1, ppos,
if (sysfs_streq(test_mode, ad9467_test_modes[mode]))
unsigned int test_mode)
ret = ad9467_spi_write(st, AN877_ADC_REG_TEST_IO, test_mode);
u32 test_mode; // Automated firmware test mode
u8 test_mode;
rtsx_pci_read_register(pcr, RTS5261_FW_CFG_INFO0, &test_mode);
if (test_mode & RTS5261_FW_EXPRESS_TEST_MASK) {
const u32 test_mode,
reg_val = (prbs_sel << 20) | (test_mode << 16) | (rx_dft_ena << 2);
int mt7615_mcu_set_test_param(struct mt7615_dev *dev, u8 param, bool test_mode,
.test_mode_en = test_mode,
int mt7615_mcu_set_test_param(struct mt7615_dev *dev, u8 param, bool test_mode,
int mt7915_mcu_set_test_param(struct mt7915_dev *dev, u8 param, bool test_mode,
.test_mode_en = test_mode,
int mt7915_mcu_set_test_param(struct mt7915_dev *dev, u8 param, bool test_mode,
temp |= PORT_TEST_MODE(pdev->test_mode);
pdev->test_mode = tmode;
u16 test_mode;
u8 test_mode;
if (ci->test_mode)
hw_port_test_set(ci, ci->test_mode);
ci->test_mode = tmode;
u8 test_mode;
if (role == USB_ROLE_NONE && hsotg->test_mode) {
hsotg->test_mode = wIndex >> 8;
if (hsotg->test_mode) {
ret = dwc2_hsotg_set_test_mode(hsotg, hsotg->test_mode);
hsotg->test_mode);
hsotg->test_mode = 0;
u8 test_mode;
dwc->test_mode = true;
if (dwc->test_mode) {
dwc->test_mode = false;
int test_mode;
test_mode = udc->test_mode;
switch (test_mode) {
dev_err(dev, "Invalid test mode: 0x%04x\n", test_mode);
udc->test_mode = le16_to_cpu(crq->wIndex);
u16 test_mode;
u8 test_mode;
bdc->test_mode = wIndex >> 8;
if (bdc->test_mode) {
dev_dbg(bdc->dev, "test_mode:%d\n", bdc->test_mode);
bdc->test_mode = 0;
switch (bdc->test_mode) {
usb2_pm |= bdc->test_mode << 28;
bdc->test_mode = false;
seq_printf(seq, "test_mode = %d\n", dev->test_mode);
control |= GR_CONTROL_TM | (dev->test_mode << GR_CONTROL_TS_POS);
dev->test_mode = test;
u8 test_mode;
usb3->test_mode = le16_to_cpu(ctrl->wIndex) >> 8;
u16 test_mode;
val |= USB20_CON_B2_TSTMOD(usb3->test_mode);
if (!usb3->test_mode)
usb3->test_mode = 0;
if (usb3->test_mode)
u8 test_mode = le16_to_cpu(udc->setup.wIndex) >> 8;
test_mode);
u16 test_mode = 0;
test_mode = (wIndex & 0xff00) >> 8;
if (test_mode > USB_TEST_FORCE_ENABLE ||
test_mode < USB_TEST_J)
retval = xhci_enter_test_mode(xhci, test_mode, wIndex,
u16 test_mode, u16 wIndex)
temp |= test_mode << PORT_TEST_MODE_SHIFT;
xhci->test_mode = test_mode;
if (test_mode == USB_TEST_FORCE_ENABLE)
u16 test_mode, u16 wIndex, unsigned long *flags)
test_mode, wIndex + 1);
xhci_port_set_test_mode(xhci, test_mode, wIndex);
if (!xhci->test_mode) {
if (xhci->test_mode == USB_TEST_FORCE_ENABLE &&
xhci->test_mode = 0;
u16 test_mode;
unsigned test_mode:1;
mtu->test_mode = false;
mtu->test_mode = true;
if (mtu->test_mode) {
unsigned test_mode:1;
musb->test_mode = true;
else if (musb->test_mode) {
snprintf(task_name, sizeof(task_name), "%s_test", test_mode);
static char test_mode[12] = "irq";
module_param_string(test_mode, test_mode, 12, 0444);
MODULE_PARM_DESC(test_mode, "Mode of the test such as preempt, irq, or alternate (default irq)");
if (!strcmp(test_mode, "irq"))
else if (!strcmp(test_mode, "preempt"))
else if (!strcmp(test_mode, "alternate")) {
struct bpf_map *xskmap, enum test_mode mode)
struct ifobject *ifobj_rx, enum test_mode mode,
static u32 mode_to_xdp_flags(enum test_mode mode)
enum test_mode mode;
enum test_mode mode;
struct ifobject *ifobj_rx, enum test_mode mode,
static void test_xsk(const struct test_spec *test_to_run, enum test_mode mode)
static __always_inline int test_common(enum test_mode mode)
if (test_mode < RQSL_MODE_AA || test_mode > RQSL_MODE_ABBCCA) {
pr_err("Invalid mode %d\n", test_mode);
pr_err("Mode = %s\n", rqsl_mode_names[test_mode]);
if (ncpus < test_mode + 2)
static int test_mode = RQSL_MODE_AA;
module_param(test_mode, int, 0644);
MODULE_PARM_DESC(test_mode,
int mode = READ_ONCE(test_mode);
static enum test_mode opt_mode = TEST_MODE_ALL;
enum test_mode test_mode)
ret = call_clone3(flags, size, test_mode);
enum test_mode test_mode;
.test_mode = CLONE3_ARGS_NO_TEST,
.test_mode = CLONE3_ARGS_NO_TEST,
.test_mode = CLONE3_ARGS_NO_TEST,
.test_mode = CLONE3_ARGS_NO_TEST,
.test_mode = CLONE3_ARGS_NO_TEST,
.test_mode = CLONE3_ARGS_INVAL_EXIT_SIGNAL_BIG,
.test_mode = CLONE3_ARGS_INVAL_EXIT_SIGNAL_NEG,
.test_mode = CLONE3_ARGS_INVAL_EXIT_SIGNAL_CSIG,
.test_mode = CLONE3_ARGS_INVAL_EXIT_SIGNAL_NSIG,
.test_mode = CLONE3_ARGS_ALL_0,
.test_mode = CLONE3_ARGS_ALL_0,
.test_mode = CLONE3_ARGS_ALL_0,
.test_mode = CLONE3_ARGS_NO_TEST,
.test_mode = CLONE3_ARGS_NO_TEST,
.test_mode = CLONE3_ARGS_NO_TEST,
.test_mode = CLONE3_ARGS_NO_TEST,
.test_mode = CLONE3_ARGS_NO_TEST,
.test_mode = CLONE3_ARGS_NO_TEST,
.test_mode = CLONE3_ARGS_NO_TEST,
static int call_clone3(uint64_t flags, size_t size, enum test_mode test_mode)
tests[i].test_mode),
switch (test_mode) {
enum test_mode mode;