Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 6102) sorted by relevance

12345678910>>...245

/linux-6.6.21/drivers/gpu/drm/tests/
Ddrm_cmdline_parser_test.c16 struct drm_cmdline_mode mode = { }; in drm_test_cmdline_force_e_only() local
20 &no_connector, &mode)); in drm_test_cmdline_force_e_only()
21 KUNIT_EXPECT_FALSE(test, mode.specified); in drm_test_cmdline_force_e_only()
22 KUNIT_EXPECT_FALSE(test, mode.refresh_specified); in drm_test_cmdline_force_e_only()
23 KUNIT_EXPECT_FALSE(test, mode.bpp_specified); in drm_test_cmdline_force_e_only()
25 KUNIT_EXPECT_FALSE(test, mode.rb); in drm_test_cmdline_force_e_only()
26 KUNIT_EXPECT_FALSE(test, mode.cvt); in drm_test_cmdline_force_e_only()
27 KUNIT_EXPECT_FALSE(test, mode.interlace); in drm_test_cmdline_force_e_only()
28 KUNIT_EXPECT_FALSE(test, mode.margins); in drm_test_cmdline_force_e_only()
29 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
44 mode = drm_analog_tv_mode(priv->drm, in drm_test_modes_analog_tv_ntsc_480i()
48 KUNIT_ASSERT_NOT_NULL(test, mode); in drm_test_modes_analog_tv_ntsc_480i()
50 KUNIT_EXPECT_EQ(test, drm_mode_vrefresh(mode), 60); in drm_test_modes_analog_tv_ntsc_480i()
51 KUNIT_EXPECT_EQ(test, mode->hdisplay, 720); in drm_test_modes_analog_tv_ntsc_480i()
54 KUNIT_EXPECT_EQ(test, mode->hsync_start, 736); in drm_test_modes_analog_tv_ntsc_480i()
63 KUNIT_EXPECT_EQ(test, mode->htotal, 858); in drm_test_modes_analog_tv_ntsc_480i()
65 KUNIT_EXPECT_EQ(test, mode->vdisplay, 480); in drm_test_modes_analog_tv_ntsc_480i()
66 KUNIT_EXPECT_EQ(test, mode->vtotal, 525); in drm_test_modes_analog_tv_ntsc_480i()
72 struct drm_display_mode *expected, *mode; in drm_test_modes_analog_tv_ntsc_480i_inlined() local
[all …]
/linux-6.6.21/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 …]
Dwl1273.c24 enum wl1273_mode mode; member
34 u16 mode; in snd_wl1273_fm_set_i2s_mode() local
41 mode = core->i2s_mode & ~WL1273_IS2_WIDTH & ~WL1273_IS2_RATE; in snd_wl1273_fm_set_i2s_mode()
45 mode |= WL1273_IS2_RATE_48K; in snd_wl1273_fm_set_i2s_mode()
48 mode |= WL1273_IS2_RATE_44_1K; in snd_wl1273_fm_set_i2s_mode()
51 mode |= WL1273_IS2_RATE_32K; in snd_wl1273_fm_set_i2s_mode()
54 mode |= WL1273_IS2_RATE_22_05K; in snd_wl1273_fm_set_i2s_mode()
57 mode |= WL1273_IS2_RATE_16K; in snd_wl1273_fm_set_i2s_mode()
60 mode |= WL1273_IS2_RATE_12K; in snd_wl1273_fm_set_i2s_mode()
63 mode |= WL1273_IS2_RATE_11_025; in snd_wl1273_fm_set_i2s_mode()
[all …]
/linux-6.6.21/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 …]
/linux-6.6.21/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 …]
/linux-6.6.21/drivers/interconnect/imx/
Dimx8mp.c24 .mode = IMX_NOC_MODE_FIXED,
29 .mode = IMX_NOC_MODE_FIXED,
34 .mode = IMX_NOC_MODE_FIXED,
39 .mode = IMX_NOC_MODE_FIXED,
44 .mode = IMX_NOC_MODE_FIXED,
49 .mode = IMX_NOC_MODE_FIXED,
54 .mode = IMX_NOC_MODE_FIXED,
59 .mode = IMX_NOC_MODE_FIXED,
64 .mode = IMX_NOC_MODE_FIXED,
69 .mode = IMX_NOC_MODE_FIXED,
[all …]
/linux-6.6.21/drivers/gpu/ipu-v3/
Dipu-di.c205 u32 h_total = sig->mode.hactive + sig->mode.hsync_len + in ipu_di_sync_config_interlaced()
206 sig->mode.hback_porch + sig->mode.hfront_porch; in ipu_di_sync_config_interlaced()
207 u32 v_total = sig->mode.vactive + sig->mode.vsync_len + in ipu_di_sync_config_interlaced()
208 sig->mode.vback_porch + sig->mode.vfront_porch; in ipu_di_sync_config_interlaced()
220 .cnt_down = sig->mode.hsync_len * 2, in ipu_di_sync_config_interlaced()
227 .cnt_down = sig->mode.vsync_len * 2, in ipu_di_sync_config_interlaced()
240 .offset_count = (sig->mode.vsync_len + in ipu_di_sync_config_interlaced()
241 sig->mode.vback_porch) / 2, in ipu_di_sync_config_interlaced()
243 .repeat_count = sig->mode.vactive / 2, in ipu_di_sync_config_interlaced()
248 .offset_count = sig->mode.hsync_len + in ipu_di_sync_config_interlaced()
[all …]
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/subdev/pci/
Dagp.c31 int mode; member
59 u32 mode = nvkm_pci_rd32(pci, 0x004c); in nvkm_agp_preinit() local
66 if ((mode | pci->agp.mode) & PCI_AGP_COMMAND_FW) { in nvkm_agp_preinit()
67 mode = pci->agp.mode & ~PCI_AGP_COMMAND_FW; in nvkm_agp_preinit()
68 agp_enable(pci->agp.bridge, mode); in nvkm_agp_preinit()
92 agp_enable(pci->agp.bridge, pci->agp.mode); in nvkm_agp_init()
110 int mode = -1; in nvkm_agp_ctor() local
120 mode = 0; in nvkm_agp_ctor()
122 mode = nvkm_longopt(device->cfgopt, "NvAGP", mode); in nvkm_agp_ctor()
132 pci->agp.mode = info.mode; in nvkm_agp_ctor()
[all …]
/linux-6.6.21/net/ipv4/
Dsysctl_net_ipv4.c78 .mode = table->mode, in ipv4_local_port_range()
114 .mode = table->mode, in ipv4_privileged_ports()
174 .mode = table->mode, in ipv4_ping_group_range()
476 .mode = 0644,
483 .mode = 0644,
490 .mode = 0644,
497 .mode = 0644,
504 .mode = 0644,
511 .mode = 0644,
519 .mode = 0644,
[all …]
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
Dpad.c27 nvkm_i2c_pad_mode_locked(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) in nvkm_i2c_pad_mode_locked() argument
29 PAD_TRACE(pad, "-> %s", (mode == NVKM_I2C_PAD_AUX) ? "aux" : in nvkm_i2c_pad_mode_locked()
30 (mode == NVKM_I2C_PAD_I2C) ? "i2c" : "off"); in nvkm_i2c_pad_mode_locked()
31 if (pad->func->mode) in nvkm_i2c_pad_mode_locked()
32 pad->func->mode(pad, mode); in nvkm_i2c_pad_mode_locked()
36 nvkm_i2c_pad_mode(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) in nvkm_i2c_pad_mode() argument
38 PAD_TRACE(pad, "mode %d", mode); in nvkm_i2c_pad_mode()
40 nvkm_i2c_pad_mode_locked(pad, mode); in nvkm_i2c_pad_mode()
41 pad->mode = mode; in nvkm_i2c_pad_mode()
49 if (pad->mode == NVKM_I2C_PAD_OFF) in nvkm_i2c_pad_release()
[all …]
/linux-6.6.21/arch/x86/boot/
Dvideo-mode.c52 int mode_defined(u16 mode) in mode_defined() argument
61 if (mi->mode == mode) in mode_defined()
70 static int raw_set_mode(u16 mode, u16 *real_mode) in raw_set_mode() argument
77 mode &= ~VIDEO_RECALC; in raw_set_mode()
86 if ((mode == nmode && visible) || in raw_set_mode()
87 mode == mi->mode || in raw_set_mode()
88 mode == (mi->y << 8)+mi->x) { in raw_set_mode()
89 *real_mode = mi->mode; in raw_set_mode()
100 if (mode >= card->xmode_first && in raw_set_mode()
101 mode < card->xmode_first+card->xmode_n) { in raw_set_mode()
[all …]
/linux-6.6.21/tools/perf/util/
Ddemangle-java.c45 __demangle_java_sym(const char *str, const char *end, char *buf, int maxlen, int mode) in __demangle_java_sym() argument
62 if (mode == MODE_PREFIX || mode == MODE_TYPE) { in __demangle_java_sym()
63 if (mode == MODE_TYPE) { in __demangle_java_sym()
68 if (mode == MODE_PREFIX) in __demangle_java_sym()
69 mode = MODE_CLASS; in __demangle_java_sym()
71 mode = MODE_CTYPE; in __demangle_java_sym()
83 if (mode == MODE_TYPE) { in __demangle_java_sym()
95 if (mode == MODE_TYPE) { in __demangle_java_sym()
104 if (mode != MODE_TYPE) in __demangle_java_sym()
109 if (mode != MODE_FUNC) in __demangle_java_sym()
[all …]
/linux-6.6.21/drivers/gpu/drm/
Ddrm_modes.c58 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()
93 void drm_mode_destroy(struct drm_device *dev, struct drm_display_mode *mode) in drm_mode_destroy() argument
95 if (!mode) in drm_mode_destroy()
98 kfree(mode); in drm_mode_destroy()
112 struct drm_display_mode *mode) in drm_mode_probed_add() argument
116 list_add_tail(&mode->head, &connector->probed_modes); in drm_mode_probed_add()
326 struct drm_display_mode *mode, in fill_analog_mode() argument
454 mode->clock = pixel_clock_hz / 1000; in fill_analog_mode()
455 mode->hdisplay = hactive; in fill_analog_mode()
[all …]
Ddrm_probe_helper.c70 drm_mode_validate_flag(const struct drm_display_mode *mode, in drm_mode_validate_flag() argument
73 if ((mode->flags & DRM_MODE_FLAG_INTERLACE) && in drm_mode_validate_flag()
77 if ((mode->flags & DRM_MODE_FLAG_DBLSCAN) && in drm_mode_validate_flag()
81 if ((mode->flags & DRM_MODE_FLAG_3D_MASK) && in drm_mode_validate_flag()
89 drm_mode_validate_pipeline(struct drm_display_mode *mode, in drm_mode_validate_pipeline() argument
99 ret = drm_connector_mode_valid(connector, mode, ctx, status); in drm_mode_validate_pipeline()
108 *status = drm_encoder_mode_valid(encoder, mode); in drm_mode_validate_pipeline()
120 mode); in drm_mode_validate_pipeline()
131 *status = drm_crtc_mode_valid(crtc, mode); in drm_mode_validate_pipeline()
147 struct drm_display_mode *mode; in drm_helper_probe_add_cmdline_mode() local
[all …]
/linux-6.6.21/drivers/video/fbdev/
Dmacmodes.c142 const struct fb_videomode *mode; member
223 const struct fb_videomode *mode = NULL; in mac_vmode_to_var() local
228 mode = map->mode; in mac_vmode_to_var()
231 if (!mode) in mac_vmode_to_var()
271 var->xres = mode->xres; in mac_vmode_to_var()
272 var->yres = mode->yres; in mac_vmode_to_var()
273 var->xres_virtual = mode->xres; in mac_vmode_to_var()
274 var->yres_virtual = mode->yres; in mac_vmode_to_var()
277 var->pixclock = mode->pixclock; in mac_vmode_to_var()
278 var->left_margin = mode->left_margin; in mac_vmode_to_var()
[all …]
/linux-6.6.21/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 …]
/linux-6.6.21/tools/spi/
Dspidev_test.c39 static uint32_t mode; variable
131 if (mode & SPI_TX_OCTAL) in transfer()
133 else if (mode & SPI_TX_QUAD) in transfer()
135 else if (mode & SPI_TX_DUAL) in transfer()
137 if (mode & SPI_RX_OCTAL) in transfer()
139 else if (mode & SPI_RX_QUAD) in transfer()
141 else if (mode & SPI_RX_DUAL) in transfer()
143 if (!(mode & SPI_LOOP)) { in transfer()
144 if (mode & (SPI_TX_OCTAL | SPI_TX_QUAD | SPI_TX_DUAL)) in transfer()
146 else if (mode & (SPI_RX_OCTAL | SPI_RX_QUAD | SPI_RX_DUAL)) in transfer()
[all …]
/linux-6.6.21/drivers/gpu/drm/msm/disp/mdp4/
Dmdp4_dsi_encoder.c42 struct drm_display_mode *mode, in mdp4_dsi_encoder_mode_set() argument
50 mode = adjusted_mode; in mdp4_dsi_encoder_mode_set()
52 DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode)); in mdp4_dsi_encoder_mode_set()
55 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in mdp4_dsi_encoder_mode_set()
57 if (mode->flags & DRM_MODE_FLAG_NVSYNC) in mdp4_dsi_encoder_mode_set()
63 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_dsi_encoder_mode_set()
64 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_dsi_encoder_mode_set()
66 vsync_period = mode->vtotal * mode->htotal; in mdp4_dsi_encoder_mode_set()
67 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp4_dsi_encoder_mode_set()
68 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dsi_hsync_skew; in mdp4_dsi_encoder_mode_set()
[all …]
/linux-6.6.21/drivers/video/fbdev/core/
Dmodedb.c548 const struct fb_videomode *mode, unsigned int bpp) in fb_try_mode() argument
553 mode->name ? mode->name : "noname", in fb_try_mode()
554 mode->xres, mode->yres, bpp, mode->refresh); in fb_try_mode()
555 var->xres = mode->xres; in fb_try_mode()
556 var->yres = mode->yres; in fb_try_mode()
557 var->xres_virtual = mode->xres; in fb_try_mode()
558 var->yres_virtual = mode->yres; in fb_try_mode()
563 var->pixclock = mode->pixclock; in fb_try_mode()
564 var->left_margin = mode->left_margin; in fb_try_mode()
565 var->right_margin = mode->right_margin; in fb_try_mode()
[all …]
/linux-6.6.21/drivers/hid/
Dhid-saitek.c33 int mode; member
50 ssc->mode = -1; in saitek_probe()
100 int mode = -1; in saitek_raw_event() local
102 mode = 0; in saitek_raw_event()
104 mode = 1; in saitek_raw_event()
106 mode = 2; in saitek_raw_event()
111 if (mode != ssc->mode) { in saitek_raw_event()
112 hid_dbg(hdev, "entered mode %d\n", mode); in saitek_raw_event()
113 if (ssc->mode != -1) { in saitek_raw_event()
117 ssc->mode = mode; in saitek_raw_event()
[all …]
/linux-6.6.21/include/linux/
Ddebugfs.h75 struct dentry *debugfs_create_file(const char *name, umode_t mode,
78 struct dentry *debugfs_create_file_unsafe(const char *name, umode_t mode,
82 void debugfs_create_file_size(const char *name, umode_t mode,
117 void debugfs_create_u8(const char *name, umode_t mode, struct dentry *parent,
119 void debugfs_create_u16(const char *name, umode_t mode, struct dentry *parent,
121 void debugfs_create_u32(const char *name, umode_t mode, struct dentry *parent,
123 void debugfs_create_u64(const char *name, umode_t mode, struct dentry *parent,
125 void debugfs_create_ulong(const char *name, umode_t mode, struct dentry *parent,
127 void debugfs_create_x8(const char *name, umode_t mode, struct dentry *parent,
129 void debugfs_create_x16(const char *name, umode_t mode, struct dentry *parent,
[all …]
Dwait_bit.h24 typedef int wait_bit_action_f(struct wait_bit_key *key, int mode);
27 …ad *wq_head, struct wait_bit_queue_entry *wbq_entry, wait_bit_action_f *action, unsigned int mode);
28 …ad *wq_head, struct wait_bit_queue_entry *wbq_entry, wait_bit_action_f *action, unsigned int mode);
30 int out_of_line_wait_on_bit(void *word, int, wait_bit_action_f *action, unsigned int mode);
31 int out_of_line_wait_on_bit_timeout(void *word, int, wait_bit_action_f *action, unsigned int mode, …
32 int out_of_line_wait_on_bit_lock(void *word, int, wait_bit_action_f *action, unsigned int mode);
36 int wake_bit_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync, void *key);
49 extern int bit_wait(struct wait_bit_key *key, int mode);
50 extern int bit_wait_io(struct wait_bit_key *key, int mode);
51 extern int bit_wait_timeout(struct wait_bit_key *key, int mode);
[all …]
/linux-6.6.21/drivers/net/ethernet/ibm/emac/
Dzmii.c47 static inline int zmii_valid_mode(int mode) in zmii_valid_mode() argument
49 return mode == PHY_INTERFACE_MODE_MII || in zmii_valid_mode()
50 mode == PHY_INTERFACE_MODE_RMII || in zmii_valid_mode()
51 mode == PHY_INTERFACE_MODE_SMII || in zmii_valid_mode()
52 mode == PHY_INTERFACE_MODE_NA; in zmii_valid_mode()
55 static inline const char *zmii_mode_name(int mode) in zmii_mode_name() argument
57 switch (mode) { in zmii_mode_name()
69 static inline u32 zmii_mode_mask(int mode, int input) in zmii_mode_mask() argument
71 switch (mode) { in zmii_mode_mask()
84 phy_interface_t *mode) in zmii_attach() argument
[all …]
/linux-6.6.21/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 …]

12345678910>>...245