Searched refs:mode (Results 51 - 75 of 948) sorted by relevance

1234567891011>>

/haiku/src/add-ons/accelerants/framebuffer/
H A Dmode.cpp39 /*! Checks if the specified \a mode can be set using VESA. */
41 is_mode_supported(display_mode* mode) argument
43 return (mode != NULL) && (*mode == gInfo->shared_info->current_mode);
47 /*! Creates the initial mode list of the primary accelerant.
56 display_mode mode = gInfo->shared_info->current_mode; local
58 compute_display_timing(mode.virtual_width, mode.virtual_height, 60, false,
59 &mode.timing);
60 fill_display_mode(mode
146 framebuffer_get_pixel_clock_limits(display_mode* mode, uint32* _low, uint32* _high) argument
[all...]
/haiku/src/add-ons/accelerants/radeon_hd/
H A Ddisplay.h27 void display_crtc_dpms(uint8 crtcID, int mode);
28 void display_crtc_scale(uint8 crtcID, display_mode* mode);
29 void display_crtc_fb_set(uint8 crtcID, display_mode* mode);
30 void display_crtc_set(uint8 crtcID, display_mode* mode);
31 void display_crtc_set_dtd(uint8 crtcID, display_mode* mode);
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5312/
H A Dar5312_power.c60 * fames. If request, set power mode of chip to
70 * Set power mgt to the requested mode, and conditionally set
74 ar5312SetPowerMode(struct ath_hal *ah, HAL_POWER_MODE mode, int setChip) argument
87 modes[ah->ah_powerMode], modes[mode],
89 switch (mode) {
100 HALDEBUG(ah, HAL_DEBUG_POWER, "%s: unknown power mode %u\n",
101 __func__, mode);
104 ah->ah_powerMode = mode;
109 * Return the current sleep mode of the chip
124 return 0; /* Currently, 5312 is never in sleep mode
[all...]
/haiku/src/preferences/screen/
H A DScreenMode.cpp64 get_combine_mode(display_mode& mode) argument
66 if ((mode.flags & B_SCROLL) == 0)
69 if (mode.virtual_width == mode.timing.h_display * 2)
72 if (mode.virtual_height == mode.timing.v_display * 2)
80 get_refresh_rate(display_mode& mode) argument
84 return rint(10 * float(mode.timing.pixel_clock * 1000)
85 / float(mode.timing.h_total * mode
163 SetTo(display_mode& mode) argument
209 Set(const screen_mode& mode, int32 workspace) argument
233 Get(screen_mode& mode, int32 workspace) const argument
259 GetOriginalMode(screen_mode& mode, int32 workspace) const argument
274 Set(const display_mode& mode, int32 workspace) argument
292 Get(display_mode& mode, int32 workspace) const argument
352 SupportsColorSpace(const screen_mode& mode, color_space space) argument
359 GetRefreshLimits(const screen_mode& mode, float& min, float& max) argument
451 screen_mode mode; local
481 _GetDisplayMode(const screen_mode& mode, display_mode& displayMode) argument
[all...]
/haiku/src/add-ons/accelerants/radeon/
H A Ddpms.c22 // public function: set DPMS mode
48 // public function: get current DPMS mode
57 static void Radeon_SetDPMS_LVDS( accelerator_info *ai, int mode )
62 switch( mode ) {
95 static void Radeon_SetDPMS_DVI( accelerator_info *ai, int mode )
102 switch( mode ) {
117 static void Radeon_SetDPMS_FP2( accelerator_info *ai, int mode )
124 switch( mode ) {
145 // set DPMS mode for CRT DAC.
148 static void Radeon_SetDPMS_CRT( accelerator_info *ai, int mode )
[all...]
H A DSetDisplayMode.c40 accelerator_info *ai, crtc_info *crtc, display_mode *mode, impactv_params *tv_params );
68 // list of registers that must be reset before display mode switch
104 // set display mode of one head;
107 accelerator_info *ai, crtc_info *crtc, display_mode *mode, impactv_params *tv_params )
126 crtc->mode = *mode;
129 mode = &crtc->mode;
139 if( mode->timing.h_display > fp_info->panel_xres )
140 mode
106 Radeon_SetMode( accelerator_info *ai, crtc_info *crtc, display_mode *mode, impactv_params *tv_params ) argument
352 display_mode bounds, mode; local
[all...]
/haiku/src/system/boot/platform/efi/
H A Dvideo.cpp36 size_t mode; member in struct:video_mode
70 video_mode *mode = NULL; local
71 while ((mode = (video_mode*)list_get_next_item(&sModeList, mode))
73 int compare = compare_video_modes(videoMode, mode);
75 // mode already exists
83 list_insert_item_before(&sModeList, mode, videoMode);
94 video_mode *mode = NULL; local
95 while ((mode = (video_mode*)list_get_next_item(&sModeList, mode)) !
141 video_mode *mode = closest_video_mode(width, height, depth); local
299 video_mode *mode = NULL; local
[all...]
/haiku/src/add-ons/accelerants/ati/
H A Dmach64_dpms.cpp32 // Return the current DPMS mode.
35 uint32 mode; local
38 mode = B_DPMS_ON;
40 mode = B_DPMS_STAND_BY;
42 mode = B_DPMS_SUSPEND;
44 mode = B_DPMS_OFF;
46 TRACE("Mach64_DPMSMode() mode: %d\n", mode);
47 return mode;
57 TRACE("Mach64_SetDPMSMode() mode
[all...]
H A Dmach64_mode.cpp23 static void SetClockRegisters(const DisplayModeEx& mode) argument
31 uint32 pixelClock = mode.timing.pixel_clock;
100 if (mode.timing.h_display == 1440 && pixelClock < 108000)
107 // Temporarily switch to accelerator mode.
152 SetDSPRegisters(const DisplayModeEx& mode) argument
166 divider *= ((mode.bitsPerPixel + 1) / 4);
225 SetCrtcRegisters(const DisplayModeEx& mode) argument
227 // Calculate the CRTC register values for requested video mode, and then set
232 uint32 crtc_h_total_disp = ((mode.timing.h_total / 8) - 1)
233 | (((mode
320 Mach64_SetDisplayMode(const DisplayModeEx& mode) argument
373 Mach64_AdjustFrame(const DisplayModeEx& mode) argument
[all...]
H A Drage128_mode.cpp74 CalculateCrtcRegisters(const DisplayModeEx& mode, DisplayParams& params) argument
76 // Define CRTC registers for requested video mode.
83 switch (mode.bitsPerPixel) {
97 TRACE("Unsupported color depth: %d bits/pixel\n", mode.bitsPerPixel);
105 params.crtc_h_total_disp = (((mode.timing.h_total / 8) - 1) & 0xffff)
106 | (((mode.timing.h_display / 8) - 1) << 16);
108 int hSyncWidth = (mode.timing.h_sync_end - mode.timing.h_sync_start) / 8;
114 int hSyncStart = mode.timing.h_sync_start - 8 + hSyncFudge[format - 1];
117 | ((mode
139 CalculateDDARegisters(const DisplayModeEx& mode, DisplayParams& params) argument
191 CalculatePLLRegisters(const DisplayModeEx& mode, DisplayParams& params) argument
353 Rage128_SetDisplayMode(const DisplayModeEx& mode) argument
408 Rage128_AdjustFrame(const DisplayModeEx& mode) argument
[all...]
/haiku/src/libs/stdc++/legacy/
H A Dpfstream.cc34 ipfstream::ipfstream(const char *name, int mode, int prot) argument
43 if (!pbuf->open(p+1, mode))
63 if (pbuf->open(command, mode))
72 if (!rdbuf()->open(name, mode, prot))
76 opfstream::opfstream(const char *name, int mode, int prot) argument
84 if (!pbuf->open(p+1, mode))
89 if (!rdbuf()->open(name, mode, prot))
H A DSFile.cc47 SFile::SFile(const char *filename, int size, int mode, int prot) argument
48 : fstream(filename, mode, prot)
59 void SFile::open(const char *name, int size, int mode, int prot) argument
61 fstream::open(name, mode, prot);
/haiku/src/system/libroot/posix/glibc/libio/
H A Dioseekoff.c33 _IO_seekoff_unlocked (fp, offset, dir, mode)
37 int mode;
48 if (mode != 0 && ((_IO_fwide (fp, 0) < 0 && _IO_have_backup (fp))
64 return _IO_SEEKOFF (fp, offset, dir, mode);
69 _IO_seekoff (fp, offset, dir, mode)
73 int mode;
80 retval = _IO_seekoff_unlocked (fp, offset, dir, mode);
H A Dfreopen.c34 freopen (filename, mode, fp)
36 const char* mode;
52 result = _IO_old_freopen (filename, mode, fp);
55 result = _IO_freopen (filename, mode, fp);
68 freopen (filename, mode, fp)
70 const char* mode;
96 result = _IO_old_file_fopen (fp, filename, mode);
105 result = INTUSE(_IO_file_fopen) (fp, filename, mode, 1);
/haiku/src/add-ons/kernel/file_systems/btrfs/
H A DUtility.h27 get_filetype(int32 mode) argument
29 mode &= S_IFMT;
30 switch (mode)
52 /*! Converts the open mode, the open flags given to bfs_open(), into
/haiku/src/tests/servers/debug/
H A Dcrashing_app.cpp23 "%s <options> [ <mode> ]\n"
150 get_crash_function(const char* mode) argument
152 if (strcmp(mode, "segv") == 0) {
154 } else if (strcmp(mode, "segv2") == 0) {
156 } else if (strcmp(mode, "div") == 0) {
158 } else if (strcmp(mode, "debugger") == 0) {
160 } else if (strcmp(mode, "assert") == 0) {
163 } else if (strcmp(mode, "int3") == 0) {
165 } else if (strcmp(mode, "protection") == 0) {
204 const char* mode local
[all...]
/haiku/src/add-ons/accelerants/intel_810/
H A Di810_mode.cpp87 SetCrtcTimingValues(const DisplayModeEx& mode) argument
92 int hTotal = mode.timing.h_total / 8 - 5;
93 int hDisp_e = mode.timing.h_display / 8 - 1;
94 int hSync_s = mode.timing.h_sync_start / 8;
95 int hSync_e = mode.timing.h_sync_end / 8;
99 int vTotal = mode.timing.v_total - 2;
100 int vDisp_e = mode.timing.v_display - 1;
101 int vSync_s = mode.timing.v_sync_start;
102 int vSync_e = mode.timing.v_sync_end;
106 uint16 offset = mode
171 I810_SetDisplayMode(const DisplayModeEx& mode) argument
253 I810_AdjustFrame(const DisplayModeEx& mode) argument
[all...]
/haiku/src/bin/screenmode/
H A Dscreenmode.cpp56 print_mode(const screen_mode& mode, bool shortOutput) argument
60 printf(format, mode.width, mode.height, mode.BitsPerPixel(), mode.refresh);
65 print_mode(const display_mode& displayMode, const screen_mode& mode) argument
81 printf(" %" B_PRId32 "\n", mode.BitsPerPixel());
89 "Usage: %s [options] <mode>\n"
90 "Sets the specified screen mode. When no screen mode ha
128 display_mode mode; local
286 display_mode mode; local
[all...]
/haiku/headers/build/host/darwin/sys/
H A Dstat.h32 int fchmodat(int fd, const char* path, mode_t mode, int flag);
34 int mkdirat(int fd, const char *path, mode_t mode);
35 int mkfifoat(int fd, const char *path, mode_t mode);
36 int mknodat(int fd, const char *name, mode_t mode, dev_t dev);
/haiku/headers/private/interface/
H A Dtruncate_string.h10 void truncate_string(BString& string, uint32 mode, float width,
/haiku/src/tests/servers/app/benchmark/
H A DTestWindow.cpp10 TestView::TestView(BRect frame, Test* test, drawing_mode mode, argument
18 SetDrawingMode(mode);
43 TestWindow::TestWindow(BRect frame, Test* test, drawing_mode mode, argument
50 fTestView = new TestView(Bounds(), test, mode, useClipping, target);
/haiku/src/add-ons/accelerants/s3/
H A Dsavage_mode.cpp37 Savage_SetGBD_Twister(const DisplayModeEx& mode) argument
61 (((mode.bytesPerRow * 2) << 16) & 0x3FFFE000) |
62 (mode.bytesPerRow & 0x00001fff));
71 // If MS1NB style linear tiling mode.
72 // bit MM850C[15] = 0 select NB linear tile mode.
73 // bit MM850C[15] = 1 select MS-1 128-bit non-linear tile mode.
75 uint32 ulTmp = ReadReg32(ADVANCED_FUNC_CTRL) | 0x8000; // use MS-s style tile mode
89 Savage_SetGBD_3D(const DisplayModeEx& mode) argument
107 (((mode.bytesPerRow * 2) << 16) & 0x3FFFE000) |
108 (mode
135 Savage_SetGBD_MX(const DisplayModeEx& mode) argument
190 Savage_SetGBD_Super(const DisplayModeEx& mode) argument
240 Savage_SetGBD_2000(const DisplayModeEx& mode) argument
278 Savage_SetGBD(const DisplayModeEx& mode) argument
323 Savage_Initialize2DEngine(const DisplayModeEx& mode) argument
394 Savage_GEReset(const DisplayModeEx& mode) argument
505 Savage_WriteMode(const DisplayModeEx& mode, const SavageRegRec& regRec) argument
657 Savage_ModeInit(const DisplayModeEx& mode) argument
775 Savage_SetDisplayMode(const DisplayModeEx& mode) argument
798 Savage_AdjustFrame(const DisplayModeEx& mode) argument
[all...]
H A Dtrio64_mode.cpp76 Trio64_ModeInit(const DisplayModeEx& mode) argument
81 mode.timing.h_display, mode.timing.v_display, mode.timing.pixel_clock);
92 Trio64_CalcClock(mode.timing.pixel_clock, 1, 1, 31, 0, 3, 135000, 270000,
114 switch (mode.bpp) {
135 switch (mode.timing.h_display) {
176 InitCrtcTimingValues(mode, (mode.bpp > 8) ? 2 : 1, crtc, cr3b, cr3c, cr5d, cr5e);
192 if ( ! (mode
265 Trio64_SetDisplayMode(const DisplayModeEx& mode) argument
288 Trio64_AdjustFrame(const DisplayModeEx& mode) argument
[all...]
/haiku/headers/private/graphics/common/
H A Dcreate_display_modes.h15 typedef bool (*check_display_mode_hook)(display_mode* mode);
26 void fill_display_mode(uint32 width, uint32 height, display_mode* mode);
/haiku/src/apps/mediaplayer/media_node_framework/
H A DPlaybackListener.h25 virtual void PlayModeChanged(int32 mode);
26 virtual void LoopModeChanged(int32 mode);

Completed in 106 milliseconds

1234567891011>>