/haiku/src/add-ons/accelerants/common/ |
H A D | create_display_modes.cpp | 109 bool _AddMode(const display_mode& mode); 127 get_refresh_rate(const display_mode& mode) argument 129 return float(mode.timing.pixel_clock * 1000) 130 / float(mode.timing.h_total * mode.timing.v_total); 257 display_mode mode; local 262 mode.timing.pixel_clock = timing.pixel_clock * 10; 263 mode.timing.h_display = timing.h_active; 264 mode.timing.h_sync_start = timing.h_active + timing.h_sync_off; 265 mode 294 const display_mode& mode = kBaseModeList[i]; local 398 const display_mode& mode = kBaseModeList[i]; local 414 display_mode mode; local 429 const display_mode& mode = fModes[i]; local 458 _AddMode(const display_mode& mode) argument 538 fill_display_mode(uint32 width, uint32 height, display_mode* mode) argument [all...] |
/haiku/src/bin/network/telnet/ |
H A D | terminal.c | 168 * These routines decides on what the mode should be (based on the values 177 int mode = 0; 183 mode |= MODE_ECHO; 186 mode |= MODE_FLOW; 189 mode |= MODE_INBIN; 192 mode |= MODE_OUTBIN; 197 mode |= (MODE_TRAPSIG|MODE_EDIT); 199 mode &= ~MODE_ECHO; 202 return(mode); 206 mode | 176 int mode = 0; local [all...] |
/haiku/src/bin/keymap/ |
H A D | main.cpp | 96 } mode = kUnspecified; local 120 mode = kSaveText; 125 mode = kLoadBinary; 129 mode = kLoadText; 133 mode = kRestore; 136 mode = kCompile; 140 mode = kSaveHeader; 146 mode = kUnspecified; 157 switch (mode) { 165 load_keymap(keymap, input, mode [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5416/ |
H A D | ar5416_power.c | 110 * fames. If request, set power mode of chip to 123 * Set power mgt to the requested mode, and conditionally set 127 ar5416SetPowerMode(struct ath_hal *ah, HAL_POWER_MODE mode, int setChip) argument 145 modes[ah->ah_powerMode], modes[mode], setChip ? "set chip " : ""); 146 switch (mode) { 149 ah->ah_powerMode = mode; 155 ah->ah_powerMode = mode; 160 ah->ah_powerMode = mode; 163 HALDEBUG(ah, HAL_DEBUG_ANY, "%s: unknown power mode 0x%x\n", 164 __func__, mode); 176 int mode = OS_REG_READ(ah, AR_RTC_STATUS); local [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8812a/ |
H A D | r12a_fw.c | 122 struct r12a_fw_cmd_pwrmode mode; local 127 mode.mode = R88E_PWRMODE_LEG; 133 mode.pwr_state = R88E_PWRMODE_STATE_RFOFF; 135 mode.pwr_state = R88E_PWRMODE_STATE_RFON; 138 mode.mode = R88E_PWRMODE_CAM; 139 mode.pwr_state = R88E_PWRMODE_STATE_ALLON; 141 mode.pwrb1 = 145 mode [all...] |
/haiku/src/add-ons/accelerants/virtio/ |
H A D | mode.cpp | 38 /*! Checks if the specified \a mode can be set using VESA. */ 40 is_mode_supported(display_mode* mode) argument 42 return (mode != NULL) && (*mode == gInfo->shared_info->current_mode); 46 /*! Creates the initial mode list of the primary accelerant. 57 display_mode mode = gInfo->shared_info->current_mode; local 59 compute_display_timing(mode.virtual_width, mode.virtual_height, 60, false, 60 &mode.timing); 61 fill_display_mode(mode 167 virtio_gpu_get_pixel_clock_limits(display_mode* mode, uint32* _low, uint32* _high) argument [all...] |
/haiku/src/add-ons/accelerants/ati/ |
H A D | rage128_dpms.cpp | 33 // Return the current DPMS mode. 36 uint32 mode; local 39 mode = B_DPMS_ON; 41 mode = B_DPMS_STAND_BY; 43 mode = B_DPMS_SUSPEND; 45 mode = B_DPMS_OFF; 47 TRACE("Rage128_DPMSMode() mode: %d\n", mode); 48 return mode; 60 TRACE("Rage128_SetDPMSMode() mode [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5210/ |
H A D | ar5210_power.c | 96 ar5210SetPowerMode(struct ath_hal *ah, HAL_POWER_MODE mode, int setChip) argument 109 modes[ah->ah_powerMode], modes[mode], 111 switch (mode) { 114 ah->ah_powerMode = mode; 120 ah->ah_powerMode = mode; 125 ah->ah_powerMode = mode; 128 HALDEBUG(ah, HAL_DEBUG_ANY, "%s: unknown power mode %u\n", 129 __func__, mode);
|
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5211/ |
H A D | ar5211_power.c | 86 * fames. If request, set power mode of chip to 98 ar5211SetPowerMode(struct ath_hal *ah, HAL_POWER_MODE mode, int setChip) argument 111 modes[ah->ah_powerMode], modes[mode], 113 switch (mode) { 116 ah->ah_powerMode = mode; 122 ah->ah_powerMode = mode; 127 ah->ah_powerMode = mode; 130 HALDEBUG(ah, HAL_DEBUG_ANY, "%s: unknown power mode %u\n", 131 __func__, mode);
|
/haiku/src/add-ons/accelerants/intel_extreme/ |
H A D | commands.h | 44 uint8 mode; member in struct:xy_command 56 mode = COMMAND_MODE_CMAP8; 59 mode = COMMAND_MODE_RGB15; 62 mode = COMMAND_MODE_RGB16; 65 mode = COMMAND_MODE_RGB32; 70 mode = 0; 113 mode |= COMMAND_MODE_SOLID_PATTERN;
|
/haiku/src/add-ons/accelerants/radeon/ |
H A D | crtc.c | 70 display_mode *mode, crtc_regs *values ) 81 // here, we should set interlace/double scan mode 91 | ((mode->timing.flags & B_TIMING_INTERLACED) 96 ((mode->timing.h_total / 8 - 1) & RADEON_CRTC_H_TOTAL) 97 | (((mode->timing.h_display / 8 - 1) << RADEON_CRTC_H_DISP_SHIFT) & RADEON_CRTC_H_DISP); 99 hsync_wid = (mode->timing.h_sync_end - mode->timing.h_sync_start) / 8; 101 hsync_start = mode->timing.h_sync_start - 8 + hsync_fudge; 106 | ((mode->flags & B_POSITIVE_HSYNC) == 0 ? RADEON_CRTC_H_SYNC_POL : 0); 109 ((mode 69 Radeon_CalcCRTCRegisters( accelerator_info *ai, crtc_info *crtc, display_mode *mode, crtc_regs *values ) argument [all...] |
H A D | impactv.c | 31 impactv_params *params, const display_mode *mode, 54 for( line = mode->timing.v_display - 1 + 18; line < mode->timing.v_total - 2; ++line ) { 59 how_early = uv_accum_frac * mode->timing.h_total; 69 f_first * mode->timing.v_total * mode->timing.h_total 70 + v_first * mode->timing.h_total 89 - mode->timing.h_display / 2 90 + mode->timing.h_total / 2; 103 first_num += f_total * mode 30 Radeon_CalcImpacTVRestart( impactv_params *params, const display_mode *mode, uint16 h_blank, uint16 f_total ) argument 192 Radeon_AdoptSync( const display_mode *mode, display_mode *tweaked_mode ) argument 323 Radeon_CalcImpacTVParams( const general_pll_info *general_pll, impactv_params *params, tv_standard_e tv_format, bool internal_encoder, const display_mode *mode, display_mode *tweaked_mode ) argument 416 Radeon_CalcImpacTVRegisters( accelerator_info *ai, display_mode *mode, impactv_params *params, impactv_regs *values, int crtc_idx, bool internal_encoder, tv_standard_e tv_format, display_device_e display_device ) argument [all...] |
/haiku/src/add-ons/accelerants/3dfx/ |
H A D | 3dfx_mode.cpp | 202 TDFX_SetDisplayMode(const DisplayModeEx& mode) argument 206 // and assume that the mode values we get here are acceptable. 209 bool clock2X = mode.timing.pixel_clock > si.maxPixelClock / 2; 222 int hTotal = mode.timing.h_total / horzDiv - 5; 223 int hDisp_e = mode.timing.h_display / horzDiv - 1; 224 int hSync_s = mode.timing.h_sync_start / horzDiv; 225 int hSync_e = mode.timing.h_sync_end / horzDiv; 229 int vTotal = mode.timing.v_total - 2; 230 int vDisp_e = mode.timing.v_display - 1; 231 int vSync_s = mode 362 TDFX_AdjustFrame(const DisplayModeEx& mode) argument [all...] |
H A D | 3dfx_draw.cpp | 30 DisplayModeEx& mode = gInfo.sharedInfo->displayMode; local 31 uint32 fmt = mode.bytesPerRow | fmtColorDepth[mode.bytesPerPixel - 1]; 59 DisplayModeEx& mode = gInfo.sharedInfo->displayMode; local 60 uint32 fmt = mode.bytesPerRow | fmtColorDepth[mode.bytesPerPixel - 1]; 88 DisplayModeEx& mode = gInfo.sharedInfo->displayMode; local 89 uint32 fmt = mode.bytesPerRow | fmtColorDepth[mode.bytesPerPixel - 1]; 115 DisplayModeEx& mode local [all...] |
/haiku/src/add-ons/kernel/drivers/graphics/vesa/ |
H A D | device.cpp | 133 uint32 mode; 134 if (user_memcpy(&mode, buffer, sizeof(uint32)) != B_OK) 137 return vesa_set_display_mode(*info, mode); 148 display_mode mode; 149 if (user_memcpy(&mode, buffer, sizeof(display_mode)) != B_OK) 152 return vesa_set_custom_display_mode(*info, mode); 160 uint32 mode; 161 status_t status = vesa_get_dpms_mode(*info, mode); 165 return user_memcpy(buffer, &mode, sizeof(mode)); [all...] |
H A D | vesa_private.h | 44 extern status_t vesa_set_display_mode(vesa_info& info, uint32 mode); 45 extern status_t vesa_set_custom_display_mode(vesa_info& info, display_mode& mode); 46 extern status_t vesa_get_dpms_mode(vesa_info& info, uint32& mode); 47 extern status_t vesa_set_dpms_mode(vesa_info& info, uint32 mode); 53 status_t vbe_get_mode_info(bios_state* state, uint16 mode, struct vbe_mode_info* modeInfo); 55 status_t vbe_set_mode(bios_state* state, uint16 mode);
|
/haiku/src/libs/stdc++/legacy/ |
H A D | fstream.cc | 63 fstreambase::fstreambase(const char *name, int mode, int prot) argument 66 if (!rdbuf()->open(name, mode, prot)) 81 void fstreambase::open(const char *name, int mode, int prot) argument 84 if (!rdbuf()->open(name, mode, prot)) 101 static int mode_to_sys(enum open_mode mode)
|
/haiku/src/system/libroot/posix/glibc/libio/ |
H A D | freopen64.c | 36 freopen64 (filename, mode, fp) 38 const char* mode; 59 result = INTUSE(_IO_file_fopen) (fp, filename, mode, 0);
|
H A D | iofopen.c | 63 __fopen_internal (filename, mode, is32) 65 const char *mode; 92 if (INTUSE(_IO_file_fopen) ((_IO_FILE *) new_f, filename, mode, is32) 102 _IO_new_fopen (filename, mode) 104 const char *mode; 106 return __fopen_internal (filename, mode, 1);
|
/haiku/src/system/boot/platform/bios_ia32/ |
H A D | video.cpp | 43 uint16 mode; member in struct:video_mode 70 // TODO: compare video_mode::mode? 75 /*! Insert the video mode into the list, sorted by resolution and bit depth. 81 video_mode *mode = NULL; local 82 while ((mode = (video_mode *)list_get_next_item(&sModeList, mode)) 84 int compare = compare_video_modes(videoMode, mode); 86 // mode already exists 94 list_insert_item_before(&sModeList, mode, videoMode); 99 /*! \brief Finds a video mode wit 108 video_mode *mode = NULL; local 132 video_mode *mode = NULL; local 214 video_mode *mode = NULL; local 319 video_mode *mode = closest_video_mode(width, height, depth); local 360 uint8 mode = in8(VGA_ATTRIBUTE_READ) & 0xf7; local 417 vesa_get_mode_info(uint16 mode, struct vbe_mode_info *modeInfo) argument 482 uint16 mode = ((uint16 *)info->mode_list)[i]; local 582 vesa_set_mode(video_mode* mode, bool useTiming) argument 646 video_mode *mode = NULL; local 693 video_mode *mode = NULL; local 956 video_mode *mode = NULL; local [all...] |
/haiku/src/kits/tracker/ |
H A D | IconCache.cpp | 174 IconCacheEntry::CanConstructBitmap(IconDrawMode mode, BSize) const argument 176 if (mode == kSelected) { 186 IconCacheEntry::HaveIconBitmap(IconDrawMode mode, BSize size) const argument 188 ASSERT(mode == kSelected || mode == kNormalIcon); 191 if (mode == kNormalIcon) { 195 } else if (mode == kSelected) { 206 IconCacheEntry::IconForMode(IconDrawMode mode, BSize size) const argument 208 ASSERT(mode == kSelected || mode 228 IconHitTest(BPoint where, IconDrawMode mode, BSize size) const argument 304 SetIcon(BBitmap* bitmap, IconDrawMode mode, BSize size) argument 347 GetIconForPreferredApp(const char* fileTypeSignature, const char* preferredApp, IconDrawMode mode, BSize size, LazyBitmapAllocator* lazyBitmap, IconCacheEntry* entry) argument 404 GetIconFromMetaMime(const char* fileType, IconDrawMode mode, BSize size, LazyBitmapAllocator* lazyBitmap, IconCacheEntry* entry) argument 487 GetIconFromFileTypes(ModelNodeLazyOpener* modelOpener, IconSource &source, IconDrawMode mode, BSize size, LazyBitmapAllocator* lazyBitmap, IconCacheEntry* entry) argument 576 GetVolumeIcon(AutoLock<SimpleIconCache>*nodeCacheLocker, AutoLock<SimpleIconCache>* sharedCacheLocker, AutoLock<SimpleIconCache>** resultingOpenCache, Model* model, IconSource &source, IconDrawMode mode, BSize size, LazyBitmapAllocator* lazyBitmap) argument 655 GetRootIcon(AutoLock<SimpleIconCache>*, AutoLock<SimpleIconCache>* sharedCacheLocker, AutoLock<SimpleIconCache>** resultingOpenCache, Model*, IconSource &source, IconDrawMode mode, BSize size, LazyBitmapAllocator* lazyBitmap) argument 671 GetWellKnownIcon(AutoLock<SimpleIconCache>*, AutoLock<SimpleIconCache>* sharedCacheLocker, AutoLock<SimpleIconCache>** resultingOpenCache, Model* model, IconSource &source, IconDrawMode mode, BSize size, LazyBitmapAllocator* lazyBitmap) argument 784 GetNodeIcon(ModelNodeLazyOpener* modelOpener, AutoLock<SimpleIconCache>* nodeCacheLocker, AutoLock<SimpleIconCache>** resultingOpenCache, Model* model, IconSource& source, IconDrawMode mode, BSize size, LazyBitmapAllocator* lazyBitmap, IconCacheEntry* entry, bool permanent) argument 849 GetGenericIcon(AutoLock<SimpleIconCache>* sharedCacheLocker, AutoLock<SimpleIconCache>** resultingOpenCache, Model* model, IconSource &source, IconDrawMode mode, BSize size, LazyBitmapAllocator* lazyBitmap, IconCacheEntry* entry) argument 881 GetFallbackIcon(AutoLock<SimpleIconCache>* sharedCacheLocker, AutoLock<SimpleIconCache>** resultingOpenCache, Model* model, IconDrawMode mode, BSize size, LazyBitmapAllocator* lazyBitmap, IconCacheEntry* entry) argument 909 Preload(AutoLock<SimpleIconCache>* nodeCacheLocker, AutoLock<SimpleIconCache>* sharedCacheLocker, AutoLock<SimpleIconCache>** resultingCache, Model* model, IconDrawMode mode, BSize size, bool permanent) argument 1098 Draw(Model* model, BView* view, BPoint where, IconDrawMode mode, BSize size, bool async) argument 1128 SyncDraw(Model* model, BView* view, BPoint where, IconDrawMode mode, BSize size, void (*blitFunc)(BView*, BPoint, BBitmap*, void*), void* passThruState) argument 1151 Preload(Model* model, IconDrawMode mode, BSize size, bool permanent) argument 1163 Preload(const char* fileType, IconDrawMode mode, BSize size) argument 1374 IconHitTest(BPoint where, const Model* model, IconDrawMode mode, BSize size) argument 1436 Draw(IconCacheEntry* entry, BView* view, BPoint where, IconDrawMode mode, BSize size, bool async) argument 1444 Draw(IconCacheEntry* entry, BView* view, BPoint where, IconDrawMode mode, BSize size, void (*blitFunc)(BView*, BPoint, BBitmap*, void*), void* passThruState) argument 1531 Draw(BView* view, BPoint where, IconDrawMode mode, BSize size, bool async) argument 1557 Draw(BView* view, BPoint where, IconDrawMode mode, BSize size, void (*blitFunc)(BView*, BPoint, BBitmap*, void*), void* passThruState) argument 1617 Draw(BView* view, BPoint where, IconDrawMode mode, BSize size, bool async) argument 1646 Draw(BView* view, BPoint where, IconDrawMode mode, BSize size, void (*blitFunc)(BView*, BPoint, BBitmap*, void*), void* passThruState) argument 1706 Draw(IconCacheEntry* entry, BView* view, BPoint where, IconDrawMode mode, BSize size, bool async) argument 1714 Draw(IconCacheEntry* entry, BView* view, BPoint where, IconDrawMode mode, BSize size, void (*blitFunc)(BView*, BPoint, BBitmap*, void*), void* passThruState) argument [all...] |
/haiku/headers/cpp/ |
H A D | SFile.h | 43 SFile(const char *name, int size, int mode, int prot=0664); 44 void open(const char *name, int size, int mode, int prot=0664);
|
/haiku/headers/private/graphics/common/ |
H A D | validate_display_mode.h | 43 bool sanitize_display_mode(display_mode& mode, 45 bool is_display_mode_within_bounds(display_mode& mode, const display_mode& low,
|
/haiku/src/add-ons/kernel/bus_managers/firewire/ |
H A D | fwmem.cpp | 67 xfer->send.hdr.mode.hdr.dst = FWLOCALBUS | fwdev->dst; 99 fp->mode.rreqq.tcode = FWTCODE_RREQQ; 100 fp->mode.rreqq.dest_hi = dst_hi; 101 fp->mode.rreqq.dest_lo = dst_lo; 135 fp->mode.wreqq.tcode = FWTCODE_WREQQ; 136 fp->mode.wreqq.dest_hi = dst_hi; 137 fp->mode.wreqq.dest_lo = dst_lo; 138 fp->mode.wreqq.data = *(uint32_t *)data; 172 fp->mode.rreqb.tcode = FWTCODE_RREQB; 173 fp->mode [all...] |
/haiku/src/apps/mediaplayer/media_node_framework/ |
H A D | PlaybackLOAdapter.h | 33 virtual void PlayModeChanged(int32 mode); 34 virtual void LoopModeChanged(int32 mode);
|