Home
last modified time | relevance | path

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

12345678910>>...238

/Linux-v5.15/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 …]
/Linux-v5.15/sound/soc/codecs/
Dwcd-clsh-v2.c14 int mode; member
140 int mode) in wcd_clsh_set_buck_mode() argument
143 if (mode == CLS_H_HIFI) in wcd_clsh_set_buck_mode()
154 int mode) in wcd_clsh_v3_set_buck_mode() argument
156 if (mode == CLS_H_HIFI || mode == CLS_H_LOHIFI || in wcd_clsh_v3_set_buck_mode()
157 mode == CLS_AB_HIFI || mode == CLS_AB_LOHIFI) in wcd_clsh_v3_set_buck_mode()
168 int mode) in wcd_clsh_set_flyback_mode() argument
171 if (mode == CLS_H_HIFI) in wcd_clsh_set_flyback_mode()
182 int mode, in wcd_clsh_buck_ctrl() argument
202 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-v5.15/tools/testing/selftests/bpf/
Dtest_xdp_redirect_multi.sh73 local mode=$1
76 if [ "$mode" = "xdpegress" ]; then
77 mode="xdpdrv"
90 ip -n ns$i link set veth0 $mode obj \
100 local mode=$1
103 ip netns exec ns2 tcpdump -e -i veth0 -nn -l -e &> mac_ns1-2_${mode}.log &
104 ip netns exec ns3 tcpdump -e -i veth0 -nn -l -e &> mac_ns1-3_${mode}.log &
111 grep -q "${veth_mac[2]} > ff:ff:ff:ff:ff:ff" mac_ns1-2_${mode}.log && \
112 test_pass "$mode mac ns1-2" || test_fail "$mode mac ns1-2"
113 grep -q "${veth_mac[3]} > ff:ff:ff:ff:ff:ff" mac_ns1-3_${mode}.log && \
[all …]
/Linux-v5.15/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-v5.15/net/ipv4/
Dsysctl_net_ipv4.c85 .mode = table->mode, in ipv4_local_port_range()
121 .mode = table->mode, in ipv4_privileged_ports()
181 .mode = table->mode, in ipv4_ping_group_range()
491 .mode = 0644,
498 .mode = 0644,
505 .mode = 0644,
512 .mode = 0644,
519 .mode = 0644,
526 .mode = 0644,
534 .mode = 0644,
[all …]
/Linux-v5.15/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-v5.15/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-v5.15/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-v5.15/drivers/gpu/drm/
Ddrm_modes.c54 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()
89 void drm_mode_destroy(struct drm_device *dev, struct drm_display_mode *mode) in drm_mode_destroy() argument
91 if (!mode) in drm_mode_destroy()
94 kfree(mode); in drm_mode_destroy()
108 struct drm_display_mode *mode) in drm_mode_probed_add() argument
112 list_add_tail(&mode->head, &connector->probed_modes); in drm_mode_probed_add()
740 void drm_mode_set_name(struct drm_display_mode *mode) in drm_mode_set_name() argument
742 bool interlaced = !!(mode->flags & DRM_MODE_FLAG_INTERLACE); in drm_mode_set_name()
744 snprintf(mode->name, DRM_DISPLAY_MODE_LEN, "%dx%d%s", in drm_mode_set_name()
[all …]
/Linux-v5.15/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-v5.15/kernel/
Dsysctl.c209 .mode = table->mode, in bpf_stats_handler()
1752 .mode = table->mode, in proc_do_static_key()
1778 .mode = 0644,
1786 .mode = 0644,
1797 .mode = 0644,
1808 .mode = 0644,
1818 .mode = 0644,
1825 .mode = 0644,
1832 .mode = 0644,
1839 .mode = 0644,
[all …]
/Linux-v5.15/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-v5.15/include/linux/
Ddebugfs.h69 struct dentry *debugfs_create_file(const char *name, umode_t mode,
72 struct dentry *debugfs_create_file_unsafe(const char *name, umode_t mode,
76 void debugfs_create_file_size(const char *name, umode_t mode,
107 void debugfs_create_u8(const char *name, umode_t mode, struct dentry *parent,
109 void debugfs_create_u16(const char *name, umode_t mode, struct dentry *parent,
111 void debugfs_create_u32(const char *name, umode_t mode, struct dentry *parent,
113 void debugfs_create_u64(const char *name, umode_t mode, struct dentry *parent,
115 void debugfs_create_ulong(const char *name, umode_t mode, struct dentry *parent,
117 void debugfs_create_x8(const char *name, umode_t mode, struct dentry *parent,
119 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 …]
Dphylink.h25 static inline bool phylink_autoneg_inband(unsigned int mode) in phylink_autoneg_inband() argument
27 return mode == MLO_AN_INBAND; in phylink_autoneg_inband()
100 int (*mac_prepare)(struct phylink_config *config, unsigned int mode,
102 void (*mac_config)(struct phylink_config *config, unsigned int mode,
104 int (*mac_finish)(struct phylink_config *config, unsigned int mode,
107 void (*mac_link_down)(struct phylink_config *config, unsigned int mode,
110 struct phy_device *phy, unsigned int mode,
182 int mac_prepare(struct phylink_config *config, unsigned int mode,
257 void mac_config(struct phylink_config *config, unsigned int mode,
274 int mac_finish(struct phylink_config *config, unsigned int mode,
[all …]
/Linux-v5.15/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-v5.15/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 …]
/Linux-v5.15/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-v5.15/Documentation/devicetree/bindings/power/reset/
Dnvmem-reboot-mode.txt1 NVMEM reboot mode driver
3 This driver gets reboot mode magic value from reboot-mode driver
4 and stores it in a NVMEM cell named "reboot-mode". Then the bootloader
9 - compatible: should be "nvmem-reboot-mode".
10 - nvmem-cells: A phandle to the reboot mode provided by a nvmem device.
11 - nvmem-cell-names: Should be "reboot-mode".
13 The rest of the properties should follow the generic reboot-mode description
14 found in reboot-mode.txt
17 reboot-mode {
18 compatible = "nvmem-reboot-mode";
[all …]
/Linux-v5.15/drivers/gpu/drm/msm/disp/mdp4/
Dmdp4_dsi_encoder.c40 struct drm_display_mode *mode, in mdp4_dsi_encoder_mode_set() argument
48 mode = adjusted_mode; in mdp4_dsi_encoder_mode_set()
50 DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode)); in mdp4_dsi_encoder_mode_set()
53 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in mdp4_dsi_encoder_mode_set()
55 if (mode->flags & DRM_MODE_FLAG_NVSYNC) in mdp4_dsi_encoder_mode_set()
61 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_dsi_encoder_mode_set()
62 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_dsi_encoder_mode_set()
64 vsync_period = mode->vtotal * mode->htotal; in mdp4_dsi_encoder_mode_set()
65 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp4_dsi_encoder_mode_set()
66 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dsi_hsync_skew; in mdp4_dsi_encoder_mode_set()
[all …]
/Linux-v5.15/drivers/video/fbdev/core/
Dmodedb.c543 const struct fb_videomode *mode, unsigned int bpp) in fb_try_mode() argument
548 mode->name ? mode->name : "noname", in fb_try_mode()
549 mode->xres, mode->yres, bpp, mode->refresh); in fb_try_mode()
550 var->xres = mode->xres; in fb_try_mode()
551 var->yres = mode->yres; in fb_try_mode()
552 var->xres_virtual = mode->xres; in fb_try_mode()
553 var->yres_virtual = mode->yres; in fb_try_mode()
558 var->pixclock = mode->pixclock; in fb_try_mode()
559 var->left_margin = mode->left_margin; in fb_try_mode()
560 var->right_margin = mode->right_margin; in fb_try_mode()
[all …]
/Linux-v5.15/drivers/net/ethernet/ibm/emac/
Dzmii.c45 static inline int zmii_valid_mode(int mode) in zmii_valid_mode() argument
47 return mode == PHY_INTERFACE_MODE_MII || in zmii_valid_mode()
48 mode == PHY_INTERFACE_MODE_RMII || in zmii_valid_mode()
49 mode == PHY_INTERFACE_MODE_SMII || in zmii_valid_mode()
50 mode == PHY_INTERFACE_MODE_NA; in zmii_valid_mode()
53 static inline const char *zmii_mode_name(int mode) in zmii_mode_name() argument
55 switch (mode) { in zmii_mode_name()
67 static inline u32 zmii_mode_mask(int mode, int input) in zmii_mode_mask() argument
69 switch (mode) { in zmii_mode_mask()
82 phy_interface_t *mode) in zmii_attach() argument
[all …]
/Linux-v5.15/arch/mips/include/asm/octeon/
Dcvmx-spi.h49 int (*reset_cb) (int interface, cvmx_spi_mode_t mode);
52 int (*calendar_setup_cb) (int interface, cvmx_spi_mode_t mode,
56 int (*clock_detect_cb) (int interface, cvmx_spi_mode_t mode,
60 int (*training_cb) (int interface, cvmx_spi_mode_t mode, int timeout);
63 int (*calendar_sync_cb) (int interface, cvmx_spi_mode_t mode,
67 int (*interface_up_cb) (int interface, cvmx_spi_mode_t mode);
97 extern int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode,
113 extern int cvmx_spi_restart_interface(int interface, cvmx_spi_mode_t mode,
183 extern int cvmx_spi_reset_cb(int interface, cvmx_spi_mode_t mode);
200 extern int cvmx_spi_calendar_setup_cb(int interface, cvmx_spi_mode_t mode,
[all …]
/Linux-v5.15/drivers/gpu/drm/shmobile/
Dshmob_drm_crtc.c66 const struct drm_display_mode *mode = &crtc->mode; in shmob_drm_crtc_setup_geometry() local
70 | ((mode->flags & DRM_MODE_FLAG_PVSYNC) ? 0 : LDMT1R_VPOL) in shmob_drm_crtc_setup_geometry()
71 | ((mode->flags & DRM_MODE_FLAG_PHSYNC) ? 0 : LDMT1R_HPOL) in shmob_drm_crtc_setup_geometry()
97 value = ((mode->hdisplay / 8) << 16) /* HDCN */ in shmob_drm_crtc_setup_geometry()
98 | (mode->htotal / 8); /* HTCN */ in shmob_drm_crtc_setup_geometry()
101 value = (((mode->hsync_end - mode->hsync_start) / 8) << 16) /* HSYNW */ in shmob_drm_crtc_setup_geometry()
102 | (mode->hsync_start / 8); /* HSYNP */ in shmob_drm_crtc_setup_geometry()
105 value = ((mode->hdisplay & 7) << 24) | ((mode->htotal & 7) << 16) in shmob_drm_crtc_setup_geometry()
106 | (((mode->hsync_end - mode->hsync_start) & 7) << 8) in shmob_drm_crtc_setup_geometry()
107 | (mode->hsync_start & 7); in shmob_drm_crtc_setup_geometry()
[all …]

12345678910>>...238