Searched refs:mode (Results 1 - 25 of 948) sorted by relevance

1234567891011>>

/haiku/src/add-ons/accelerants/vesa/
H A Ddpms.cpp23 uint32 mode; local
24 if (ioctl(gInfo->device, VESA_GET_DPMS_MODE, &mode, sizeof(mode)) != 0)
27 return mode;
32 vesa_set_dpms_mode(uint32 mode) argument
34 if (ioctl(gInfo->device, VESA_SET_DPMS_MODE, &mode, sizeof(mode)) != 0)
/haiku/src/system/libroot/posix/glibc/libio/
H A Diofopen64.c34 _IO_fopen64 (filename, mode)
36 const char *mode;
39 return __fopen_internal (filename, mode, 0);
H A Dfwide.c36 fwide(_IO_FILE *fp, int mode) argument
41 mode = mode < 0 ? -1 : (mode == 0 ? 0 : 1);
43 if (mode == 0 || fp->_mode != 0) {
52 result = _IO_fwide(fp, mode);
/haiku/src/add-ons/kernel/file_systems/bindfs/
H A DNode.cpp10 Node::Node(ino_t id, mode_t mode) argument
13 fMode(mode)
/haiku/src/tests/servers/app/benchmark/
H A DDrawingModeToString.h11 bool ToDrawingMode(const char* string, drawing_mode& mode);
12 bool ToString(drawing_mode mode, const char*& string);
H A DDrawingModeToString.cpp13 drawing_mode mode; member in struct:DrawingModeString
32 bool ToDrawingMode(const char* string, drawing_mode& mode) argument
37 mode = kDrawingModes[i].mode;
45 bool ToString(drawing_mode mode, const char*& string) argument
49 if (kDrawingModes[i].mode == mode) {
/haiku/src/add-ons/accelerants/3dfx/
H A Dmode.cpp18 IsThereEnoughFBMemory(const display_mode* mode, uint32 bitsPerPixel) argument
20 // Test if there is enough Frame Buffer memory for the mode and color depth
23 uint32 maxWidth = mode->virtual_width;
24 if (mode->timing.h_display > maxWidth)
25 maxWidth = mode->timing.h_display;
27 uint32 maxHeight = mode->virtual_height;
28 if (mode->timing.v_display > maxHeight)
29 maxHeight = mode->timing.v_display;
39 IsModeUsable(const display_mode* mode) argument
41 // Test if the display mode i
92 CreateModeList(bool (checkMode)const display_mode* mode)) argument
156 display_mode& mode = gInfo.modeList[j]; local
176 DisplayModeEx mode; local
234 DisplayModeEx& mode = gInfo.sharedInfo->displayMode; local
294 GetPixelClockLimits(display_mode* mode, uint32* low, uint32* high) argument
[all...]
H A D3dfx_dpms.cpp31 // Return the current DPMS mode.
34 uint32 mode; local
37 mode = B_DPMS_ON;
39 mode = B_DPMS_STAND_BY;
41 mode = B_DPMS_SUSPEND;
43 mode = B_DPMS_OFF;
45 TRACE("TDFX_DPMSMode() mode: %d\n", mode);
46 return mode;
56 TRACE("TDFX_SetDPMSMode() mode
[all...]
/haiku/src/add-ons/accelerants/intel_810/
H A Dmode.cpp18 IsThereEnoughFBMemory(const display_mode* mode, uint32 bitsPerPixel) argument
20 // Test if there is enough Frame Buffer memory for the mode and color depth
23 uint32 maxWidth = mode->virtual_width;
24 if (mode->timing.h_display > maxWidth)
25 maxWidth = mode->timing.h_display;
27 uint32 maxHeight = mode->virtual_height;
28 if (mode->timing.v_display > maxHeight)
29 maxHeight = mode->timing.v_display;
39 IsModeUsable(const display_mode* mode) argument
41 // Test if the display mode i
86 CreateModeList(bool (checkMode)const display_mode* mode)) argument
152 display_mode& mode = gInfo.modeList[j]; local
172 DisplayModeEx mode; local
231 DisplayModeEx& mode = gInfo.sharedInfo->displayMode; local
289 GetPixelClockLimits(display_mode* mode, uint32* low, uint32* high) argument
[all...]
H A Di810_dpms.cpp39 // Return the current DPMS mode.
42 uint32 mode; local
45 mode = B_DPMS_ON;
47 mode = B_DPMS_STAND_BY;
49 mode = B_DPMS_SUSPEND;
51 mode = B_DPMS_OFF;
53 TRACE("I810_DPMSMode() mode: %d\n", mode);
54 return mode;
64 TRACE("I810_SetDPMSMode() mode
[all...]
/haiku/src/libs/stdc++/legacy/
H A Dprocbuf.cc34 procbuf::procbuf(const char *command, int mode) : filebuf() argument
36 _IO_proc_open(this, command, (mode & ios::in) ? "r" : "w");
39 procbuf *procbuf::open(const char *command, int mode) argument
41 return (procbuf*)_IO_proc_open(this, command, (mode & ios::in) ? "r" : "w");
/haiku/src/system/libroot/posix/sys/
H A Dmkfifo.c16 mkfifo(const char *path, mode_t mode) argument
18 RETURN_AND_SET_ERRNO(_kern_create_fifo(-1, path, mode));
23 mkfifoat(int fd, const char *path, mode_t mode) argument
25 RETURN_AND_SET_ERRNO(_kern_create_fifo(fd, path, mode));
H A Dmkdir.c17 mkdir(const char* path, mode_t mode) argument
19 RETURN_AND_SET_ERRNO(_kern_create_dir(-1, path, mode & ~__gUmask));
24 mkdirat(int fd, const char *path, mode_t mode) argument
26 RETURN_AND_SET_ERRNO(_kern_create_dir(fd, path, mode & ~__gUmask));
/haiku/src/add-ons/accelerants/radeon/
H A Dmultimon.c15 // transform official mode to internal, multi-screen mode enhanced mode
16 void Radeon_DetectMultiMode( virtual_card *vc, display_mode *mode )
20 mode->timing.flags &= ~RADEON_MODE_MASK;
22 // combine mode is used if virtual area is twice as visible area
25 if( (mode->flags & B_SCROLL) == 0 )
28 SHOW_FLOW0( 3, "possibly combine mode" );
31 mode->flags &= ~B_SCROLL;
33 mode
146 Radeon_CheckMultiMonTunnel( virtual_card *vc, display_mode *mode, const display_mode *low, const display_mode *high, bool *isTunneled ) argument
[all...]
/haiku/src/system/boot/platform/atari_m68k/
H A Dvideo.cpp56 // mode handling
58 virtual status_t Decode(int16 id, struct video_mode *mode);
59 virtual status_t Get(struct video_mode *mode) = 0;
60 virtual status_t Set(const struct video_mode *mode) = 0;
61 virtual status_t Unset(const struct video_mode *mode) { return B_OK; }; argument
64 virtual status_t SetPalette(const struct video_mode *mode, argument
68 virtual int16 Width(const struct video_mode *mode=NULL);
69 virtual int16 Height(const struct video_mode *mode=NULL);
70 virtual int16 Depth(const struct video_mode *mode=NULL);
71 virtual int16 BytesPerRow(const struct video_mode *mode
86 uint16 mode; member in struct:video_mode
129 video_mode *mode = NULL; local
162 Decode(int16 id, struct video_mode *mode) argument
171 Width(const struct video_mode *mode) argument
178 Height(const struct video_mode *mode) argument
185 Depth(const struct video_mode *mode) argument
192 BytesPerRow(const struct video_mode *mode) argument
199 MakeLabel(const struct video_mode *mode, char *label, size_t len) argument
282 Decode(int16 id, struct video_mode *mode) argument
314 Get(struct video_mode *mode) argument
325 Set(const struct video_mode *mode) argument
348 Unset(const struct video_mode *mode) argument
364 SetPalette(const struct video_mode *mode, const uint8 *palette) argument
390 MakeLabel(const struct video_mode *mode, char *label, size_t len) argument
496 Decode(int16 id, struct video_mode *mode) argument
522 Get(struct video_mode *mode) argument
533 Set(const struct video_mode *mode) argument
553 Unset(const struct video_mode *mode) argument
569 SetPalette(const struct video_mode *mode, const uint8 *palette) argument
593 MakeLabel(const struct video_mode *mode, char *label, size_t len) argument
708 Decode(int16 id, struct video_mode *mode) argument
733 Get(struct video_mode *mode) argument
747 Set(const struct video_mode *mode) argument
767 Unset(const struct video_mode *mode) argument
783 SetPalette(const struct video_mode *mode, const uint8 *palette) argument
808 MakeLabel(const struct video_mode *mode, char *label, size_t len) argument
923 Get(struct video_mode *mode) argument
939 Set(const struct video_mode *mode) argument
958 Unset(const struct video_mode *mode) argument
982 Width(const struct video_mode *mode) argument
993 Height(const struct video_mode *mode) argument
1004 Depth(const struct video_mode *mode) argument
1024 video_mode *mode = NULL; local
1072 video_mode *mode = NULL; local
[all...]
/haiku/src/add-ons/accelerants/s3/
H A Dmode.cpp17 InitCrtcTimingValues(const DisplayModeEx& mode, int horzScaleFactor, uint8 crtc[], argument
29 int hTotal = (mode.timing.h_total * horzScaleFactor) / 8 - 5;
30 int hDisp_e = (mode.timing.h_display * horzScaleFactor) / 8 - 1;
31 int hSync_s = (mode.timing.h_sync_start * horzScaleFactor) / 8;
32 int hSync_e = (mode.timing.h_sync_end * horzScaleFactor) / 8;
36 int vTotal = mode.timing.v_total - 2;
37 int vDisp_e = mode.timing.v_display - 1;
38 int vSync_s = mode.timing.v_sync_start;
39 int vSync_e = mode.timing.v_sync_end;
72 crtc[0x13] = mode
127 display_mode& mode = gInfo.modeList[j]; local
150 IsThereEnoughFBMemory(const display_mode* mode, uint32 bitsPerPixel) argument
171 IsModeUsable(const display_mode* mode) argument
229 CreateModeList( bool (checkMode)const display_mode* mode), bool (*getEdid)(edid1_info& edidInfo)) argument
309 display_mode& mode = gInfo.modeList[j]; local
330 DisplayModeEx mode; local
400 DisplayModeEx& mode = gInfo.sharedInfo->displayMode; local
457 GetPixelClockLimits(display_mode* mode, uint32* low, uint32* high) argument
502 display_mode* mode = FindDisplayMode(si.panelX, si.panelY, 60, 0); local
[all...]
H A Dtrio64_dpms.cpp31 // Return the current DPMS mode.
34 // the current DPMS mode. I'm assuming that reading back the bits that
35 // were set by function Trio64_SetDPMSMode will give the current DPMS mode.
37 uint32 mode = B_DPMS_ON; local
41 mode = B_DPMS_ON;
44 mode = B_DPMS_STAND_BY;
47 mode = B_DPMS_SUSPEND;
50 mode = B_DPMS_OFF;
53 TRACE("Unknown DPMS mode, reg sr0D: 0x%X\n", ReadSeqReg(0x0d));
56 TRACE("Trio64_GetDPMSMode() mode
[all...]
H A Dvirge_dpms.cpp31 // Return the current DPMS mode.
34 // the current DPMS mode. I'm assuming that reading back the bits that
35 // were set by function Virge_SetDPMSMode will give the current DPMS mode.
37 uint32 mode = B_DPMS_ON; local
41 mode = B_DPMS_ON;
44 mode = B_DPMS_STAND_BY;
47 mode = B_DPMS_SUSPEND;
50 mode = B_DPMS_OFF;
53 TRACE("Unknown DPMS mode, reg sr0D: 0x%X\n", ReadSeqReg(0x0d));
56 TRACE("Virge_GetDPMSMode() mode
[all...]
/haiku/src/add-ons/kernel/drivers/graphics/et6x00/
H A Dsetmode.h14 status_t et6000SetMode(display_mode *mode, uint16 pciConfigSpace);
15 status_t et6000ProposeMode(display_mode *mode, uint32 memSize);
/haiku/headers/private/file_systems/
H A DDeviceOpener.h20 DeviceOpener(int fd, int mode);
21 DeviceOpener(const char* device, int mode);
24 int Open(const char* device, int mode);
25 int Open(int fd, int mode);
40 static bool _IsReadOnly(int mode) argument
41 { return (mode & O_RWMASK) == O_RDONLY; }
42 static bool _IsReadWrite(int mode) argument
43 { return (mode & O_RWMASK) == O_RDWR; }
/haiku/src/add-ons/accelerants/ati/
H A Dmode.cpp20 // Search the mode list for the mode with specified width, height,
22 // function will search for a mode satisfying the other 3 arguments, and
23 // if more than one matching mode is found, the one with the greatest color
33 display_mode& mode = gInfo.modeList[j]; local
35 if (mode.timing.h_display == width && mode.timing.v_display == height) {
36 int modeRefreshRate = int(((mode.timing.pixel_clock * 1000.0 /
37 mode.timing.h_total) / mode
56 IsThereEnoughFBMemory(const display_mode* mode, uint32 bitsPerPixel) argument
77 GetVesaModeNumber(const display_mode& mode, uint8 bitsPerPixel) argument
101 IsModeUsable(const display_mode* mode) argument
169 CreateModeList(bool (checkMode)const display_mode* mode)) argument
242 display_mode& mode = gInfo.modeList[j]; local
262 DisplayModeEx mode; local
323 DisplayModeEx& mode = gInfo.sharedInfo->displayMode; local
380 GetPixelClockLimits(display_mode* mode, uint32* low, uint32* high) argument
425 display_mode* mode = FindDisplayMode(si.panelX, si.panelY, 60, 0); local
[all...]
/haiku/src/add-ons/accelerants/common/
H A Dvalidate_display_mode.cpp84 /*! Makes sure the passed in \a mode fulfills the specified \a constraints.
85 Returns whether or not the mode had to be changed.
88 sanitize_display_mode(display_mode& mode, argument
91 display_mode originalMode = mode;
95 if (mode.timing.h_display < constraints.min_h_display) {
97 __func__, mode.timing.h_display, constraints.min_h_display);
98 mode.timing.h_display = constraints.min_h_display;
99 } else if (mode.timing.h_display > constraints.max_h_display) {
101 __func__, mode.timing.h_display, constraints.max_h_display);
102 mode
134 is_display_mode_within_bounds(display_mode& mode, const display_mode& low, const display_mode& high) argument
[all...]
/haiku/src/servers/app/
H A DScreen.cpp27 get_mode_frequency(const display_mode& mode) argument
30 float timing = float(mode.timing.h_total * mode.timing.v_total);
34 return rint(10 * float(mode.timing.pixel_clock * 1000)
64 /*! Finds the mode in the mode list that is closest to the mode specified.
65 As long as the mode list is not empty, this method will always succeed.
90 Screen::SetMode(const display_mode& mode) argument
94 if (!memcmp(&mode,
112 display_mode mode; local
156 display_mode mode = modes[index]; local
183 display_mode mode; local
203 display_mode mode; local
230 display_mode mode; local
240 display_mode mode; local
258 const display_mode& mode = modes[i]; local
[all...]
/haiku/src/add-ons/accelerants/radeon_hd/
H A Dmode.h31 bool is_mode_supported(display_mode* mode);
32 status_t is_mode_sane(display_mode* mode);
35 void radeon_dpms_set(uint8 id, int mode);
36 void radeon_dpms_set_hook(int mode);
37 uint32 get_mode_bpp(display_mode* mode);
/haiku/src/add-ons/accelerants/et6x00/
H A DSetDisplayMode.c16 ET6000DisplayMode mode; local
18 mode.magic = ET6000_PRIVATE_DATA_MAGIC;
19 mode.mode = *dm;
20 mode.pciConfigSpace = si->pciConfigSpace;
22 return ioctl(fd, ET6000_SET_DISPLAY_MODE, &mode, sizeof(mode));
26 * The exported mode setting routine. First validate the mode,
34 /* ask for the specific mode */
[all...]

Completed in 534 milliseconds

1234567891011>>