Home
last modified time | relevance | path

Searched full:mode (Results 1 – 25 of 13524) sorted by relevance

12345678910>>...541

/kernel/linux/linux-5.10/drivers/gpu/drm/selftests/
Dtest-drm_cmdline_parser.c22 struct drm_cmdline_mode mode = { }; in drm_cmdline_test_force_e_only() local
26 &mode)); in drm_cmdline_test_force_e_only()
27 FAIL_ON(mode.specified); in drm_cmdline_test_force_e_only()
28 FAIL_ON(mode.refresh_specified); in drm_cmdline_test_force_e_only()
29 FAIL_ON(mode.bpp_specified); in drm_cmdline_test_force_e_only()
31 FAIL_ON(mode.rb); in drm_cmdline_test_force_e_only()
32 FAIL_ON(mode.cvt); in drm_cmdline_test_force_e_only()
33 FAIL_ON(mode.interlace); in drm_cmdline_test_force_e_only()
34 FAIL_ON(mode.margins); in drm_cmdline_test_force_e_only()
35 FAIL_ON(mode.force != DRM_FORCE_ON); in drm_cmdline_test_force_e_only()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/tests/
Ddrm_cmdline_parser_test.c17 struct drm_cmdline_mode mode = { }; in drm_test_cmdline_force_e_only() local
21 &no_connector, &mode)); in drm_test_cmdline_force_e_only()
22 KUNIT_EXPECT_FALSE(test, mode.specified); in drm_test_cmdline_force_e_only()
23 KUNIT_EXPECT_FALSE(test, mode.refresh_specified); in drm_test_cmdline_force_e_only()
24 KUNIT_EXPECT_FALSE(test, mode.bpp_specified); in drm_test_cmdline_force_e_only()
26 KUNIT_EXPECT_FALSE(test, mode.rb); in drm_test_cmdline_force_e_only()
27 KUNIT_EXPECT_FALSE(test, mode.cvt); in drm_test_cmdline_force_e_only()
28 KUNIT_EXPECT_FALSE(test, mode.interlace); in drm_test_cmdline_force_e_only()
29 KUNIT_EXPECT_FALSE(test, mode.margins); in drm_test_cmdline_force_e_only()
30 KUNIT_EXPECT_EQ(test, mode.force, DRM_FORCE_ON); in drm_test_cmdline_force_e_only()
[all …]
Ddrm_modes_test.c42 struct drm_display_mode *mode; in drm_test_modes_analog_tv_ntsc_480i() local
45 mode = drm_analog_tv_mode(priv->drm, in drm_test_modes_analog_tv_ntsc_480i()
49 KUNIT_ASSERT_NOT_NULL(test, mode); in drm_test_modes_analog_tv_ntsc_480i()
51 ret = drm_kunit_add_mode_destroy_action(test, mode); in drm_test_modes_analog_tv_ntsc_480i()
54 KUNIT_EXPECT_EQ(test, drm_mode_vrefresh(mode), 60); in drm_test_modes_analog_tv_ntsc_480i()
55 KUNIT_EXPECT_EQ(test, mode->hdisplay, 720); in drm_test_modes_analog_tv_ntsc_480i()
58 KUNIT_EXPECT_EQ(test, mode->hsync_start, 736); in drm_test_modes_analog_tv_ntsc_480i()
67 KUNIT_EXPECT_EQ(test, mode->htotal, 858); in drm_test_modes_analog_tv_ntsc_480i()
69 KUNIT_EXPECT_EQ(test, mode->vdisplay, 480); in drm_test_modes_analog_tv_ntsc_480i()
70 KUNIT_EXPECT_EQ(test, mode->vtotal, 525); in drm_test_modes_analog_tv_ntsc_480i()
[all …]
/kernel/linux/linux-6.6/sound/soc/codecs/
Dwcd-clsh-v2.c14 int mode; member
134 int mode) in wcd_clsh_set_buck_mode() argument
137 if (mode == CLS_H_HIFI) in wcd_clsh_set_buck_mode()
148 int mode) in wcd_clsh_v3_set_buck_mode() argument
150 if (mode == CLS_H_HIFI || mode == CLS_H_LOHIFI || in wcd_clsh_v3_set_buck_mode()
151 mode == CLS_AB_HIFI || mode == CLS_AB_LOHIFI) in wcd_clsh_v3_set_buck_mode()
162 int mode) in wcd_clsh_set_flyback_mode() argument
165 if (mode == CLS_H_HIFI) in wcd_clsh_set_flyback_mode()
176 int mode, in wcd_clsh_buck_ctrl() argument
196 int mode, in wcd_clsh_v3_buck_ctrl() argument
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dwcd-clsh-v2.c14 int mode; member
127 int mode) in wcd_clsh_set_buck_mode() argument
130 if (mode == CLS_H_HIFI) in wcd_clsh_set_buck_mode()
141 int mode) in wcd_clsh_set_flyback_mode() argument
144 if (mode == CLS_H_HIFI) in wcd_clsh_set_flyback_mode()
155 int mode, in wcd_clsh_buck_ctrl() argument
174 int mode, in wcd_clsh_flyback_ctrl() argument
195 static void wcd_clsh_set_gain_path(struct wcd_clsh_ctrl *ctrl, int mode) in wcd_clsh_set_gain_path() argument
200 switch (mode) { in wcd_clsh_set_gain_path()
223 int mode) in wcd_clsh_set_hph_mode() argument
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_modes.c49 * drm_mode_debug_printmodeline - print a mode to dmesg
50 * @mode: mode to print
52 * Describe @mode using DRM_DEBUG.
54 void drm_mode_debug_printmodeline(const struct drm_display_mode *mode) in drm_mode_debug_printmodeline() argument
56 DRM_DEBUG_KMS("Modeline " DRM_MODE_FMT "\n", DRM_MODE_ARG(mode)); in drm_mode_debug_printmodeline()
61 * drm_mode_create - create a new display mode
68 * Pointer to new mode on success, NULL on error.
83 * drm_mode_destroy - remove a mode
85 * @mode: mode to remove
87 * Release @mode's unique ID, then free it @mode structure itself using kfree.
[all …]
/kernel/linux/linux-5.10/Documentation/driver-api/usb/
Dtypec_bus.rst2 API for USB Type-C Alternate Mode drivers
11 every alternate mode, so every alternate mode will need a custom driver.
14 modes by using the SVID and the mode number.
17 mode a port supports, and separate device for every alternate mode the partner
19 mode devices, and the port alternate mode devices must be handled by the port
22 When a new partner alternate mode device is registered, it is linked to the
23 alternate mode device of the port that the partner is attached to, that has
24 matching SVID and mode. Communication between the port driver and alternate mode
27 The port alternate mode devices are used as a proxy between the partner and the
28 alternate mode drivers, so the port drivers are only expected to pass the SVID
[all …]
/kernel/linux/linux-6.6/Documentation/driver-api/usb/
Dtypec_bus.rst2 API for USB Type-C Alternate Mode drivers
11 every alternate mode, so every alternate mode will need a custom driver.
14 modes by using the SVID and the mode number.
17 mode a port supports, and separate device for every alternate mode the partner
19 mode devices, and the port alternate mode devices must be handled by the port
22 When a new partner alternate mode device is registered, it is linked to the
23 alternate mode device of the port that the partner is attached to, that has
24 matching SVID and mode. Communication between the port driver and alternate mode
27 The port alternate mode devices are used as a proxy between the partner and the
28 alternate mode drivers, so the port drivers are only expected to pass the SVID
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/
Ddrm_modes.c53 * drm_mode_debug_printmodeline - print a mode to dmesg
54 * @mode: mode to print
56 * Describe @mode using DRM_DEBUG.
58 void drm_mode_debug_printmodeline(const struct drm_display_mode *mode) in drm_mode_debug_printmodeline() argument
60 DRM_DEBUG_KMS("Modeline " DRM_MODE_FMT "\n", DRM_MODE_ARG(mode)); in drm_mode_debug_printmodeline()
65 * drm_mode_create - create a new display mode
72 * Pointer to new mode on success, NULL on error.
87 * drm_mode_destroy - remove a mode
89 * @mode: mode to remove
91 * Release @mode's unique ID, then free it @mode structure itself using kfree.
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
Dtest_xdp_redirect_multi.sh78 local mode=$1
81 if [ "$mode" = "xdpegress" ]; then
82 mode="xdpdrv"
96 ip -n ${NS[$i]} link set veth0 $mode obj \
106 local mode=$1
109 ip netns exec ${NS[2]} tcpdump -e -i veth0 -nn -l -e &> ${LOG_DIR}/mac_ns1-2_${mode}.log &
110 ip netns exec ${NS[3]} tcpdump -e -i veth0 -nn -l -e &> ${LOG_DIR}/mac_ns1-3_${mode}.log &
117 grep -q "${veth_mac[2]} > ff:ff:ff:ff:ff:ff" ${LOG_DIR}/mac_ns1-2_${mode}.log && \
118 test_pass "$mode mac ns1-2" || test_fail "$mode mac ns1-2"
119 grep -q "${veth_mac[3]} > ff:ff:ff:ff:ff:ff" ${LOG_DIR}/mac_ns1-3_${mode}.log && \
[all …]
/kernel/linux/linux-5.10/include/linux/
Dphylink.h21 MLO_AN_FIXED, /* Fixed-link mode */
25 static inline bool phylink_autoneg_inband(unsigned int mode) in phylink_autoneg_inband() argument
27 return mode == MLO_AN_INBAND; in phylink_autoneg_inband()
35 * @interface: link &typedef phy_interface_t mode
37 * @duplex: link duplex mode, one of DUPLEX_* constants.
66 * if MAC link is at %MLO_AN_FIXED mode.
68 * if MAC link is at %MLO_AN_FIXED mode.
84 * @mac_config: configure the MAC for the selected mode and state.
98 int (*mac_prepare)(struct phylink_config *config, unsigned int mode,
100 void (*mac_config)(struct phylink_config *config, unsigned int mode,
[all …]
/kernel/linux/linux-5.10/Documentation/admin-guide/
Dsvga.rst4 Video Mode Selection Support 2.13
12 This small document describes the "Video Mode Selection" feature which
21 enter ``scan`` on the video mode prompt, pick the mode you want to use,
22 remember its mode ID (the four-digit hexadecimal number) and then
25 The video mode to be used is selected by a kernel parameter which can be
31 NORMAL_VGA - Standard 80x25 mode available on all display adapters.
33 EXTENDED_VGA - Standard 8-pixel font mode: 80x43 on EGA, 80x50 on VGA.
35 ASK_VGA - Display a video mode menu upon startup (see below).
40 mode list displayed may vary as the kernel version changes, because the
42 better to use absolute mode numbers instead.
[all …]
/kernel/linux/linux-6.6/Documentation/admin-guide/
Dsvga.rst4 Video Mode Selection Support 2.13
12 This small document describes the "Video Mode Selection" feature which
21 enter ``scan`` on the video mode prompt, pick the mode you want to use,
22 remember its mode ID (the four-digit hexadecimal number) and then
25 The video mode to be used is selected by a kernel parameter which can be
31 NORMAL_VGA - Standard 80x25 mode available on all display adapters.
33 EXTENDED_VGA - Standard 8-pixel font mode: 80x43 on EGA, 80x50 on VGA.
35 ASK_VGA - Display a video mode menu upon startup (see below).
40 mode list displayed may vary as the kernel version changes, because the
42 better to use absolute mode numbers instead.
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/gma500/
Dmdfld_tmd_vid.c37 struct drm_display_mode *mode; in tmd_vid_get_config_mode() local
42 mode = kzalloc(sizeof(*mode), GFP_KERNEL); in tmd_vid_get_config_mode()
43 if (!mode) in tmd_vid_get_config_mode()
47 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in tmd_vid_get_config_mode()
48 mode->vdisplay = (ti->vactive_hi << 8) | ti->vactive_lo; in tmd_vid_get_config_mode()
49 mode->hsync_start = mode->hdisplay + \ in tmd_vid_get_config_mode()
52 mode->hsync_end = mode->hsync_start + \ in tmd_vid_get_config_mode()
55 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in tmd_vid_get_config_mode()
57 mode->vsync_start = \ in tmd_vid_get_config_mode()
58 mode->vdisplay + ((ti->vsync_offset_hi << 8) | \ in tmd_vid_get_config_mode()
[all …]
/kernel/linux/linux-5.10/drivers/ide/
Dide-xfer-mode.c21 * ide_xfer_verbose - return IDE mode names
22 * @mode: transfer mode
24 * Returns a constant string giving the name of the mode
28 const char *ide_xfer_verbose(u8 mode) in ide_xfer_verbose() argument
31 u8 i = mode & 0xf; in ide_xfer_verbose()
33 if (mode >= XFER_UDMA_0 && mode <= XFER_UDMA_7) in ide_xfer_verbose()
35 else if (mode >= XFER_MW_DMA_0 && mode <= XFER_MW_DMA_4) in ide_xfer_verbose()
37 else if (mode >= XFER_SW_DMA_0 && mode <= XFER_SW_DMA_2) in ide_xfer_verbose()
39 else if (mode >= XFER_PIO_0 && mode <= XFER_PIO_6) in ide_xfer_verbose()
41 else if (mode == XFER_PIO_SLOW) in ide_xfer_verbose()
[all …]
/kernel/linux/linux-6.6/arch/x86/boot/
Dvideo-mode.c10 * arch/i386/boot/video-mode.c
12 * Set the video mode. This is separated out into a different
27 int do_restore; /* Screen contents changed during mode flip */
28 int graphic_mode; /* Graphic mode with linear frame buffer */
30 /* Probe the video drivers and have them generate their mode lists. */
51 /* Test if a mode is defined */
52 int mode_defined(u16 mode) in mode_defined() argument
61 if (mi->mode == mode) in mode_defined()
69 /* Set mode (without recalc) */
70 static int raw_set_mode(u16 mode, u16 *real_mode) in raw_set_mode() argument
[all …]
/kernel/linux/linux-5.10/arch/x86/boot/
Dvideo-mode.c10 * arch/i386/boot/video-mode.c
12 * Set the video mode. This is separated out into a different
27 int do_restore; /* Screen contents changed during mode flip */
28 int graphic_mode; /* Graphic mode with linear frame buffer */
30 /* Probe the video drivers and have them generate their mode lists. */
51 /* Test if a mode is defined */
52 int mode_defined(u16 mode) in mode_defined() argument
61 if (mi->mode == mode) in mode_defined()
69 /* Set mode (without recalc) */
70 static int raw_set_mode(u16 mode, u16 *real_mode) in raw_set_mode() argument
[all …]
/kernel/linux/linux-5.10/drivers/scsi/aic94xx/
Daic94xx_reg_def.h22 #define CSEQ_MODE_PAGE_SIZE 0x200 /* CSEQ mode page size */
23 #define LmSEQ_MODE_PAGE_SIZE 0x200 /* LmSEQ mode page size */
497 * 16 modes, each mode is 512 bytes.
502 #define CSEQm_CIO_REG(Mode, Reg) \ argument
504 ((u32) (Mode) * CSEQ_MODE_PAGE_SIZE) + (u32) (Reg))
552 #define CMnSCBPTR(Mode) CSEQm_CIO_REG(Mode, MnSCBPTR) argument
554 #define CMnDDBPTR(Mode) CSEQm_CIO_REG(Mode, MnDDBPTR) argument
556 #define CMnSCRATCHPAGE(Mode) CSEQm_CIO_REG(Mode, MnSCRATCHPAGE) argument
562 /* mode 0-7 */
564 #define CMnREQMBX(Mode) CSEQm_CIO_REG(Mode, 0x30) argument
[all …]
/kernel/linux/linux-6.6/drivers/scsi/aic94xx/
Daic94xx_reg_def.h22 #define CSEQ_MODE_PAGE_SIZE 0x200 /* CSEQ mode page size */
23 #define LmSEQ_MODE_PAGE_SIZE 0x200 /* LmSEQ mode page size */
497 * 16 modes, each mode is 512 bytes.
502 #define CSEQm_CIO_REG(Mode, Reg) \ argument
504 ((u32) (Mode) * CSEQ_MODE_PAGE_SIZE) + (u32) (Reg))
552 #define CMnSCBPTR(Mode) CSEQm_CIO_REG(Mode, MnSCBPTR) argument
554 #define CMnDDBPTR(Mode) CSEQm_CIO_REG(Mode, MnDDBPTR) argument
556 #define CMnSCRATCHPAGE(Mode) CSEQm_CIO_REG(Mode, MnSCRATCHPAGE) argument
562 /* mode 0-7 */
564 #define CMnREQMBX(Mode) CSEQm_CIO_REG(Mode, 0x30) argument
[all …]
/kernel/linux/linux-6.6/include/linux/
Dphylink.h22 MLO_AN_FIXED, /* Fixed-link mode */
25 /* PCS "negotiation" mode.
28 * PHYLINK_PCS_NEG_INBAND_DISABLED - inband mode disabled, e.g.
30 * PHYLINK_PCS_NEG_INBAND_ENABLED - inband mode enabled
32 * PHYLINK_PCS_NEG_INBAND - inband mode selected
33 * PHYLINK_PCS_NEG_ENABLED - negotiation mode enabled
96 static inline bool phylink_autoneg_inband(unsigned int mode) in phylink_autoneg_inband() argument
98 return mode == MLO_AN_INBAND; in phylink_autoneg_inband()
102 * phylink_pcs_neg_mode() - helper to determine PCS inband mode
103 * @mode: one of %MLO_AN_FIXED, %MLO_AN_PHY, %MLO_AN_INBAND.
[all …]
/kernel/linux/linux-5.10/drivers/phy/hisilicon/
Dphy-histb-combphy.c49 struct histb_combphy_mode mode; member
73 static int is_mode_fixed(struct histb_combphy_mode *mode) in is_mode_fixed() argument
75 return (mode->fixed != PHY_NONE) ? true : false; in is_mode_fixed()
80 struct histb_combphy_mode *mode = &priv->mode; in histb_combphy_set_mode() local
84 if (is_mode_fixed(mode)) in histb_combphy_set_mode()
87 switch (mode->select) { in histb_combphy_set_mode()
101 return regmap_update_bits(syscon, mode->reg, mode->mask, in histb_combphy_set_mode()
102 hw_sel << mode->shift); in histb_combphy_set_mode()
168 struct histb_combphy_mode *mode = &priv->mode; in histb_combphy_xlate() local
175 mode->select = args->args[0]; in histb_combphy_xlate()
[all …]
/kernel/linux/linux-6.6/drivers/phy/hisilicon/
Dphy-histb-combphy.c50 struct histb_combphy_mode mode; member
74 static int is_mode_fixed(struct histb_combphy_mode *mode) in is_mode_fixed() argument
76 return (mode->fixed != PHY_NONE) ? true : false; in is_mode_fixed()
81 struct histb_combphy_mode *mode = &priv->mode; in histb_combphy_set_mode() local
85 if (is_mode_fixed(mode)) in histb_combphy_set_mode()
88 switch (mode->select) { in histb_combphy_set_mode()
102 return regmap_update_bits(syscon, mode->reg, mode->mask, in histb_combphy_set_mode()
103 hw_sel << mode->shift); in histb_combphy_set_mode()
169 struct histb_combphy_mode *mode = &priv->mode; in histb_combphy_xlate() local
176 mode->select = args->args[0]; in histb_combphy_xlate()
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/reset/
Dreboot-mode.yaml4 $id: http://devicetree.org/schemas/power/reset/reboot-mode.yaml#
7 title: Generic reboot mode core map
13 This driver get reboot mode arguments and call the write
18 All mode properties are vendor specific, it is a indication to tell
20 as mode-xxx = <magic> (xxx is mode name, magic should be a non-zero value).
23 - normal: Normal reboot mode, system reboot with command "reboot".
24 - recovery: Android Recovery mode, it is a mode to format the device or update a new image.
25 …- bootloader: Android fastboot mode, it's a mode to re-flash partitions on the Android based devic…
26 - loader: A bootloader mode, it's a mode used to download image on Rockchip platform,
30 mode-normal:
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/reset/
Dreboot-mode.yaml4 $id: http://devicetree.org/schemas/power/reset/reboot-mode.yaml#
7 title: Generic reboot mode core map
13 This driver get reboot mode arguments and call the write
18 All mode properties are vendor specific, it is a indication to tell
20 as mode-xxx = <magic> (xxx is mode name, magic should be a non-zero value).
23 - normal: Normal reboot mode, system reboot with command "reboot".
24 - recovery: Android Recovery mode, it is a mode to format the device or update a new image.
25 …- bootloader: Android fastboot mode, it's a mode to re-flash partitions on the Android based devic…
26 - loader: A bootloader mode, it's a mode used to download image on Rockchip platform,
30 mode-normal:
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath5k/
Deeprom.c41 unsigned int mode) in ath5k_eeprom_bin2freq() argument
48 if (mode == AR5K_EEPROM_MODE_11A) { in ath5k_eeprom_bin2freq()
190 unsigned int mode) in ath5k_eeprom_read_ants() argument
198 ee->ee_switch_settling[mode] = (val >> 8) & 0x7f; in ath5k_eeprom_read_ants()
199 ee->ee_atn_tx_rx[mode] = (val >> 2) & 0x3f; in ath5k_eeprom_read_ants()
200 ee->ee_ant_control[mode][i] = (val << 4) & 0x3f; in ath5k_eeprom_read_ants()
203 ee->ee_ant_control[mode][i++] |= (val >> 12) & 0xf; in ath5k_eeprom_read_ants()
204 ee->ee_ant_control[mode][i++] = (val >> 6) & 0x3f; in ath5k_eeprom_read_ants()
205 ee->ee_ant_control[mode][i++] = val & 0x3f; in ath5k_eeprom_read_ants()
208 ee->ee_ant_control[mode][i++] = (val >> 10) & 0x3f; in ath5k_eeprom_read_ants()
[all …]

12345678910>>...541