Home
last modified time | relevance | path

Searched refs:mode (Results 251 – 275 of 11775) sorted by relevance

1...<<11121314151617181920>>...471

/openbmc/linux/drivers/gpu/drm/i915/display/
H A Ddvo_ns2501.c528 struct drm_display_mode *mode) in ns2501_mode_valid() argument
532 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_valid()
540 if ((mode->hdisplay == 640 && mode->vdisplay == 480 && mode->clock == 25175) || in ns2501_mode_valid()
541 (mode->hdisplay == 800 && mode->vdisplay == 600 && mode->clock == 40000) || in ns2501_mode_valid()
542 (mode->hdisplay == 1024 && mode->vdisplay == 768 && mode->clock == 65000)) { in ns2501_mode_valid()
550 const struct drm_display_mode *mode, in ns2501_mode_set() argument
559 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_set()
591 if (mode->hdisplay == 640 && mode->vdisplay == 480) in ns2501_mode_set()
593 else if (mode->hdisplay == 800 && mode->vdisplay == 600) in ns2501_mode_set()
595 else if (mode->hdisplay == 1024 && mode->vdisplay == 768) in ns2501_mode_set()
/openbmc/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_connector.c78 if (mode->hdisplay == high_w && mode->vdisplay < high_h) in nouveau_conn_native_mode()
81 if (mode->hdisplay == high_w && mode->vdisplay == high_h && in nouveau_conn_native_mode()
85 high_w = mode->hdisplay; in nouveau_conn_native_mode()
86 high_h = mode->vdisplay; in nouveau_conn_native_mode()
88 largest = mode; in nouveau_conn_native_mode()
106 *val = asyc->scaler.mode; in nouveau_conn_atomic_get_property()
114 *val = asyc->dither.mode; in nouveau_conn_atomic_get_property()
169 asyc->scaler.mode = val; in nouveau_conn_atomic_set_property()
844 m = drm_cvt_mode(dev, mode->hdisplay, mode->vdisplay, in nouveau_connector_scaler_modes_add()
854 mode++; in nouveau_connector_scaler_modes_add()
[all …]
/openbmc/qemu/hw/9pfs/
H A D9p-util-darwin.c77 static int create_socket_file_at_cwd(const char *filename, mode_t mode) { in create_socket_file_at_cwd() argument
107 err = fchmodat(AT_FDCWD, filename, mode, AT_SYMLINK_NOFOLLOW); in create_socket_file_at_cwd()
113 int qemu_mknodat(int dirfd, const char *filename, mode_t mode, dev_t dev) in qemu_mknodat() argument
117 if (S_ISREG(mode) || !(mode & S_IFMT)) { in qemu_mknodat()
118 int fd = openat_file(dirfd, filename, O_CREAT, mode); in qemu_mknodat()
133 if (S_ISSOCK(mode)) { in qemu_mknodat()
134 err = create_socket_file_at_cwd(filename, mode); in qemu_mknodat()
136 err = mknod(filename, mode, dev); in qemu_mknodat()
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-bus-intel_th-devices-msc7 What: /sys/bus/intel_th/devices/<intel_th_id>-msc<msc-id>/mode
11 Description: (RW) Configure MSC operating mode:
13 - "single", for contiguous buffer mode (high-order alloc);
14 - "multi", for multiblock mode;
15 - "ExI", for DCI handler mode;
16 - "debug", for debug mode;
19 If operating mode changes, existing buffer is deallocated,
29 In single mode, this is a single number of pages, has to be
30 power of 2. In multiblock mode, this is a comma-separated list
43 multi-window mode. In "multi" mode, accepts writes of "1", thereby
[all …]
/openbmc/linux/drivers/hid/
H A Dhid-gt683r.c50 enum gt683r_led_mode mode; member
111 led->mode = GT683R_LED_NORMAL; in mode_store()
113 led->mode = GT683R_LED_AUDIO; in mode_store()
115 led->mode = GT683R_LED_BREATHING; in mode_store()
171 buffer[3] = mode; in gt683r_mode_set()
183 u8 mode; in gt683r_led_work() local
197 mode = led->mode; in gt683r_led_work()
199 mode = GT683R_LED_OFF; in gt683r_led_work()
201 gt683r_mode_set(led, mode); in gt683r_led_work()
206 static DEVICE_ATTR_RW(mode);
[all …]
/openbmc/linux/Documentation/devicetree/bindings/iio/dac/
H A Dadi,ad5592r.yaml80 adi,mode:
111 - adi,mode
138 adi,mode = <CH_MODE_DAC>;
142 adi,mode = <CH_MODE_ADC>;
155 adi,mode = <CH_MODE_UNUSED>;
160 adi,mode = <CH_MODE_GPIO>;
165 adi,mode = <CH_MODE_GPIO>;
170 adi,mode = <CH_MODE_GPIO>;
184 adi,mode = <CH_MODE_DAC>;
189 adi,mode = <CH_MODE_ADC>;
[all …]
/openbmc/linux/drivers/video/backlight/
H A Dlp8788_bl.c47 enum lp8788_bl_ctrl_mode mode; member
62 return mode == LP8788_BL_COMB_PWM_BASED; in is_brightness_ctrl_by_pwm()
67 return mode == LP8788_BL_REGISTER_ONLY || in is_brightness_ctrl_by_register()
68 mode == LP8788_BL_COMB_REGISTER_BASED; in is_brightness_ctrl_by_register()
116 bl->mode = cfg->bl_mode; in lp8788_backlight_configure()
162 enum lp8788_bl_ctrl_mode mode = bl->mode; in lp8788_bl_update_status() local
167 if (is_brightness_ctrl_by_pwm(mode)) { in lp8788_bl_update_status()
172 } else if (is_brightness_ctrl_by_register(mode)) { in lp8788_bl_update_status()
234 enum lp8788_bl_ctrl_mode mode = bl->mode; in lp8788_get_bl_ctl_mode() local
237 if (is_brightness_ctrl_by_pwm(mode)) in lp8788_get_bl_ctl_mode()
[all …]
/openbmc/linux/drivers/leds/
H A Dleds-max8997.c48 enum max8997_led_mode mode) in max8997_led_set_mode() argument
54 switch (mode) { in max8997_led_set_mode()
94 led->led_mode = mode; in max8997_led_set_mode()
203 enum max8997_led_mode mode; in mode_store() local
212 mode = MAX8997_FLASH_MODE; in mode_store()
214 mode = MAX8997_MOVIE_MODE; in mode_store()
216 mode = MAX8997_NONE; in mode_store()
218 max8997_led_set_mode(led, mode); in mode_store()
225 static DEVICE_ATTR_RW(mode);
257 u8 mode = 0, brightness = 0; in max8997_led_probe() local
[all …]
/openbmc/linux/sound/firewire/motu/
H A Dmotu-proc.c47 unsigned int mode; in proc_read_format() local
56 mode = i >> 1; in proc_read_format()
63 motu->spec->tx_fixed_pcm_chunks[mode], in proc_read_format()
64 formats->pcm_chunks[mode]); in proc_read_format()
69 mode = i >> 1; in proc_read_format()
76 motu->spec->rx_fixed_pcm_chunks[mode], in proc_read_format()
77 formats->pcm_chunks[mode]); in proc_read_format()
105 root->mode = S_IFDIR | 0555; in snd_motu_proc_init()
/openbmc/linux/drivers/clk/renesas/
H A Dclk-r8a7778.c77 u32 mode; in r8a7778_cpg_clocks_init() local
79 if (rcar_rst_read_mode_pins(&mode)) in r8a7778_cpg_clocks_init()
82 BUG_ON(!(mode & BIT(19))); in r8a7778_cpg_clocks_init()
84 cpg_mode_rates = (!!(mode & BIT(18)) << 2) | in r8a7778_cpg_clocks_init()
85 (!!(mode & BIT(12)) << 1) | in r8a7778_cpg_clocks_init()
86 (!!(mode & BIT(11))); in r8a7778_cpg_clocks_init()
87 cpg_mode_divs = (!!(mode & BIT(2)) << 1) | in r8a7778_cpg_clocks_init()
88 (!!(mode & BIT(1))); in r8a7778_cpg_clocks_init()
/openbmc/linux/drivers/power/reset/
H A Dreboot-mode.c17 const char *mode; member
33 if (!strcmp(info->mode, cmd)) { in get_reboot_mode_magic()
43 unsigned long mode, void *cmd) in reboot_mode_notify() argument
84 info->mode); in reboot_mode_register()
89 info->mode = kstrdup_const(prop->name + len, GFP_KERNEL); in reboot_mode_register()
90 if (!info->mode) { in reboot_mode_register()
93 } else if (info->mode[0] == '\0') { in reboot_mode_register()
94 kfree_const(info->mode); in reboot_mode_register()
111 kfree_const(info->mode); in reboot_mode_register()
128 kfree_const(info->mode); in reboot_mode_unregister()
/openbmc/linux/arch/mips/include/asm/
H A Dfpu.h54 static inline int __enable_fpu(enum fpu_mode mode) in __enable_fpu() argument
58 switch (mode) { in __enable_fpu()
87 fr = (int)mode & FPU_FR_MASK; in __enable_fpu()
120 enum fpu_mode mode; in __own_fpu() local
124 mode = FPU_HYBRID; in __own_fpu()
126 mode = !test_thread_flag(TIF_32BIT_FPREGS); in __own_fpu()
128 ret = __enable_fpu(mode); in __own_fpu()
133 if (mode == FPU_64BIT || mode == FPU_HYBRID) in __own_fpu()
258 static inline int __enable_fpu(enum fpu_mode mode) in __enable_fpu() argument
/openbmc/linux/drivers/isdn/hardware/mISDN/
H A DmISDNinfineon.c722 hw->isac.mode = hw->cfg.mode; in setup_io()
725 hw->hscx.mode = hw->cfg.mode; in setup_io()
732 hw->isac.mode = hw->addr.mode; in setup_io()
734 hw->hscx.mode = hw->addr.mode; in setup_io()
739 hw->isac.mode = hw->addr.mode; in setup_io()
741 hw->hscx.mode = hw->addr.mode; in setup_io()
748 hw->isac.mode = hw->cfg.mode; in setup_io()
751 hw->hscx.mode = hw->cfg.mode; in setup_io()
766 hw->isac.mode = hw->addr.mode; in setup_io()
769 hw->hscx.mode = hw->addr.mode; in setup_io()
[all …]
/openbmc/linux/drivers/gpu/drm/xlnx/
H A Dzynqmp_dp.c887 struct zynqmp_dp_mode *mode = &dp->mode; in zynqmp_dp_train_loop() local
1240 mode->hsync_end - mode->hsync_start); in zynqmp_dp_encoder_mode_set_stream()
1242 mode->vsync_end - mode->vsync_start); in zynqmp_dp_encoder_mode_set_stream()
1246 mode->htotal - mode->hsync_start); in zynqmp_dp_encoder_mode_set_stream()
1248 mode->vtotal - mode->vsync_start); in zynqmp_dp_encoder_mode_set_stream()
1375 mode->name); in zynqmp_dp_bridge_mode_valid()
1385 mode->name); in zynqmp_dp_bridge_mode_valid()
1421 mode = &crtc_state->mode; in zynqmp_dp_bridge_atomic_enable()
1431 mode->name); in zynqmp_dp_bridge_atomic_enable()
1498 struct drm_display_mode *mode = &crtc_state->mode; in zynqmp_dp_bridge_atomic_check() local
[all …]
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_client_modeset.c80 modeset->mode = NULL; in drm_client_modeset_release()
128 return mode; in drm_connector_get_tiled_mode()
142 return mode; in drm_connector_fallback_non_tiled_mode()
157 return mode; in drm_connector_has_preferred_mode()
176 return mode; in drm_connector_pick_cmdline_mode()
208 return mode; in drm_connector_pick_cmdline_mode()
327 modes[i] = mode; in drm_client_target_cloned()
857 if (mode && crtc) { in drm_client_modeset_probe()
870 kfree(modeset->mode); in drm_client_modeset_probe()
871 modeset->mode = drm_mode_duplicate(dev, mode); in drm_client_modeset_probe()
[all …]
/openbmc/linux/Documentation/fb/
H A Dvesafb.rst7 The idea is simple: Turn on graphics mode at boot time with the help
12 graphics mode. Switching mode later on (in protected mode) is
26 * graphic mode is slower than text mode...
36 graphics mode). Which of them takes over the console depends on
37 whenever the specified mode is text or graphics.
41 VESA mode number. Here are those VESA mode numbers:
53 The video mode number of the Linux kernel is the VESA mode number plus
58 So the table for the Kernel mode numbers are:
71 mode at the "vga=ask" prompt. For example if you like to use
78 "bad mode number" message if something goes wrong.
[all …]
/openbmc/linux/drivers/gpu/drm/panel/
H A Dpanel-dsi-cm.c46 struct drm_display_mode mode; member
434 struct drm_display_mode *mode; in dsicm_get_modes() local
436 mode = drm_mode_duplicate(connector->dev, &ddata->mode); in dsicm_get_modes()
437 if (!mode) { in dsicm_get_modes()
439 ddata->mode.hdisplay, ddata->mode.vdisplay, in dsicm_get_modes()
440 ddata->mode.clock); in dsicm_get_modes()
447 drm_mode_probed_add(connector, mode); in dsicm_get_modes()
465 struct drm_display_mode *mode = &ddata->mode; in dsicm_probe_of() local
474 mode->hdisplay = mode->hsync_start = mode->hsync_end = mode->htotal = in dsicm_probe_of()
476 mode->vdisplay = mode->vsync_start = mode->vsync_end = mode->vtotal = in dsicm_probe_of()
[all …]
H A Dpanel-himax-hx8394.c77 const struct drm_display_mode *mode; member
199 .mode = &hsd060bhw4_mode,
317 struct drm_display_mode *mode; in hx8394_get_modes() local
319 mode = drm_mode_duplicate(connector->dev, ctx->desc->mode); in hx8394_get_modes()
320 if (!mode) { in hx8394_get_modes()
322 ctx->desc->mode->hdisplay, ctx->desc->mode->vdisplay, in hx8394_get_modes()
323 drm_mode_vrefresh(ctx->desc->mode)); in hx8394_get_modes()
327 drm_mode_set_name(mode); in hx8394_get_modes()
332 drm_mode_probed_add(connector, mode); in hx8394_get_modes()
396 ctx->desc->mode->hdisplay, ctx->desc->mode->vdisplay, in hx8394_probe()
[all …]
/openbmc/linux/arch/arm64/boot/dts/qcom/
H A Dsdm845-samsung-starqltechn.dts143 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
150 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
157 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
166 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
173 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
179 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
185 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
191 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
197 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
203 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
[all …]
/openbmc/linux/fs/affs/
H A Damigaffs.c396 mode |= 0200; in affs_prot_to_mode()
398 mode |= 0400; in affs_prot_to_mode()
400 mode |= 0100; in affs_prot_to_mode()
402 mode |= 0020; in affs_prot_to_mode()
404 mode |= 0040; in affs_prot_to_mode()
406 mode |= 0010; in affs_prot_to_mode()
408 mode |= 0002; in affs_prot_to_mode()
410 mode |= 0004; in affs_prot_to_mode()
412 mode |= 0001; in affs_prot_to_mode()
414 return mode; in affs_prot_to_mode()
[all …]
/openbmc/linux/drivers/base/
H A Ddevtmpfs.c51 umode_t mode; /* 0 => delete */ member
122 req.mode = 0; in devtmpfs_create_node()
129 if (req.mode == 0) in devtmpfs_create_node()
130 req.mode = 0600; in devtmpfs_create_node()
132 req.mode |= S_IFBLK; in devtmpfs_create_node()
134 req.mode |= S_IFCHR; in devtmpfs_create_node()
153 req.mode = 0; in devtmpfs_delete_node()
224 newattrs.ia_mode = mode; in handle_create()
296 if (!S_ISBLK(stat->mode)) in dev_mynode()
299 if (!S_ISCHR(stat->mode)) in dev_mynode()
[all …]
/openbmc/linux/fs/adfs/
H A Dinode.c92 umode_t mode, rmask; in adfs_atts2mode() local
97 return S_IFDIR | S_IXUGO | mode; in adfs_atts2mode()
112 mode = S_IFREG; in adfs_atts2mode()
115 mode |= rmask & asb->s_owner_mask; in adfs_atts2mode()
125 return mode; in adfs_atts2mode()
136 umode_t mode; in adfs_mode2atts() local
149 if (mode & S_IRUGO) in adfs_mode2atts()
151 if (mode & S_IWUGO) in adfs_mode2atts()
155 mode &= ~asb->s_owner_mask; in adfs_mode2atts()
156 if (mode & S_IRUGO) in adfs_mode2atts()
[all …]
/openbmc/linux/drivers/md/
H A Dmd-faulty.c87 if (conf->period[mode] == 0 && in check_mode()
88 atomic_read(&conf->counters[mode]) <= 0) in check_mode()
93 if (conf->period[mode]) in check_mode()
94 atomic_set(&conf->counters[mode], conf->period[mode]); in check_mode()
130 switch(mode) { in add_sector()
159 conf->modes[n] = mode; in add_sector()
258 int mode = mddev->new_layout & ModeMask; in faulty_reshape() local
266 if (mode == ClearFaults) in faulty_reshape()
268 else if (mode == ClearErrors) { in faulty_reshape()
274 } else if (mode < Modes) { in faulty_reshape()
[all …]
/openbmc/linux/drivers/usb/fotg210/
H A Dfotg210-core.c43 enum usb_dr_mode mode) in fotg210_gemini_init() argument
67 if (mode == USB_DR_MODE_HOST) in fotg210_gemini_init()
77 if (mode == USB_DR_MODE_HOST) in fotg210_gemini_init()
92 (mode == USB_DR_MODE_HOST) ? "host" : "gadget"); in fotg210_gemini_init()
129 enum usb_dr_mode mode; in fotg210_probe() local
147 mode = usb_get_dr_mode(dev); in fotg210_probe()
150 ret = fotg210_gemini_init(fotg, fotg->res, mode); in fotg210_probe()
156 if (mode == USB_DR_MODE_PERIPHERAL) { in fotg210_probe()
172 enum usb_dr_mode mode; in fotg210_remove() local
174 mode = usb_get_dr_mode(dev); in fotg210_remove()
[all …]
/openbmc/u-boot/lib/efi_selftest/
H A Defi_selftest_textoutput.c59 col = con_out->mode->cursor_column; in execute()
65 if (con_out->mode->cursor_column != col) { in execute()
74 if (con_out->mode->cursor_column) { in execute()
83 if (con_out->mode->cursor_column != 3) { in execute()
92 if (con_out->mode->cursor_column != 2) { in execute()
101 if (con_out->mode->cursor_column) { in execute()
110 if (con_out->mode->cursor_column) { in execute()
117 } else if (con_out->mode->cursor_column != 2) { in execute()

1...<<11121314151617181920>>...471