Home
last modified time | relevance | path

Searched refs:divider (Results 1 – 25 of 26) sorted by relevance

12

/haiku/src/add-ons/accelerants/ati/
H A Dmach64_util.cpp28 int divider = *denominator; in Mach64_ReduceRatio() local
31 while ((remainder = multiplier % divider)) { in Mach64_ReduceRatio()
32 multiplier = divider; in Mach64_ReduceRatio()
33 divider = remainder; in Mach64_ReduceRatio()
36 *numerator /= divider; in Mach64_ReduceRatio()
37 *denominator /= divider; in Mach64_ReduceRatio()
H A Dmach64_mode.cpp165 uint32 divider = uint32(params.vClkFeedbackDivider) * params.xClkRefDivider; in SetDSPRegisters() local
166 divider *= ((mode.bitsPerPixel + 1) / 4); in SetDSPRegisters()
177 int tmp = Mach64_Divide(multiplier * params.displayFIFODepth, divider, vshift, -1); in SetDSPRegisters()
191 divider, vshift, -1) - Mach64_Divide(1, 1, vshift - xshift, 1); in SetDSPRegisters()
193 int dsp_on = Mach64_Divide(multiplier, divider, vshift, 1); in SetDSPRegisters()
205 dsp_on = dsp_off - Mach64_Divide(multiplier, divider, vshift, -1); in SetDSPRegisters()
209 int dsp_xclks = Mach64_Divide(multiplier, divider, vshift + 5, 1); in SetDSPRegisters()
H A Drage128_mode.cpp196 int divider; in CalculatePLLRegisters() member
227 output_freq = postDividers[j].divider * freq; in CalculatePLLRegisters()
231 params.post_div = postDividers[j].divider; in CalculatePLLRegisters()
/haiku/src/add-ons/kernel/drivers/dvb/cx23882/
H A Ddtt7592.c64 uint32 divider; in dtt7592_set_frequency() local
67 divider = (frequency + 36083333) / 166666; in dtt7592_set_frequency()
68 if (divider > 0x7fff) in dtt7592_set_frequency()
69 divider = 0x7fff; in dtt7592_set_frequency()
72 B_PRIx32 " (%" B_PRId32 ")\n", frequency, divider, divider); in dtt7592_set_frequency()
74 data[0] = divider >> 8; in dtt7592_set_frequency()
75 data[1] = (uint8)divider; in dtt7592_set_frequency()
/haiku/src/add-ons/media/media-add-ons/radeon/
H A DTuner.cpp301 void CTuner::SetParameters(int divider, int control, int band) in SetParameters() argument
305 if (divider > fDivider) { in SetParameters()
306 buffer[0] = (divider >> 8) & 0x7f; in SetParameters()
307 buffer[1] = (divider >> 0) & 0xff; in SetParameters()
316 buffer[2] = (divider >> 8) & 0x7f; in SetParameters()
317 buffer[3] = (divider >> 0) & 0xff; in SetParameters()
320 fDivider = divider; in SetParameters()
H A DTuner.h61 void SetParameters(int divider, int control, int band);
/haiku/src/add-ons/kernel/busses/mmc/
H A Dsdhci.cpp328 int divider = base_clock * 1000 / kilohertz; in SetClock() local
333 if (divider > 256) in SetClock()
334 divider = 256; in SetClock()
336 divider--; in SetClock()
337 divider |= divider >> 1; in SetClock()
338 divider |= divider >> 2; in SetClock()
339 divider |= divider >> 4; in SetClock()
340 divider++; in SetClock()
343 divider = fRegisters->clock_control.SetDivider(divider); in SetClock()
347 TRACE("SDCLK frequency: %dMHz / %d = %dkHz\n", base_clock, divider, in SetClock()
[all …]
H A Dsdhci.h176 uint16_t SetDivider(uint16_t divider) { in SetDivider() argument
177 if (divider == 1) in SetDivider()
178 divider = 0; in SetDivider()
180 divider /= 2; in SetDivider()
182 bits |= divider << 8; in SetDivider()
183 bits |= (divider >> 8) & 0xc0; in SetDivider()
186 return divider == 0 ? 1 : divider * 2; in SetDivider()
/haiku/src/add-ons/kernel/file_systems/netfs/authentication_server/
H A DAuthenticationPanel.cpp135 float divider = fNameTC->Divider(); in GetAuthentication() local
137 if (fPassTC->Divider() > divider) in GetAuthentication()
138 divider = fPassTC->Divider(); in GetAuthentication()
152 fNameTC->SetDivider(divider); in GetAuthentication()
153 fPassTC->SetDivider(divider); in GetAuthentication()
/haiku/src/add-ons/accelerants/radeon/
H A Dpll.c96 pll->post_divs[max_post_div_idx].divider != 0; in Radeon_CalcPLLDividers()
103 pll->post_divs[min_post_div_idx].divider != fixed_post_div; in Radeon_CalcPLLDividers()
113 …for( extra_post_div_idx = 0; pll->extra_post_divs[extra_post_div_idx].divider != 0; ++extra_post_d… in Radeon_CalcPLLDividers()
117 pll->post_divs[post_div_idx].divider in Radeon_CalcPLLDividers()
118 * pll->extra_post_divs[extra_post_div_idx].divider; in Radeon_CalcPLLDividers()
188 dividers->post = pll->post_divs[best_post_div_idx].divider; in Radeon_CalcPLLDividers()
190 dividers->extra_post = pll->post_divs[best_extra_post_div_idx].divider; in Radeon_CalcPLLDividers()
/haiku/src/preferences/time/
H A DDateTimeView.cpp190 BBox* divider = new BBox(BRect(0, 0, 1, 1), in _InitView() local
193 divider->SetExplicitMaxSize(BSize(1, B_SIZE_UNLIMITED)); in _InitView()
200 .Add(divider) in _InitView()
/haiku/src/add-ons/kernel/drivers/ports/usb_serial/
H A DSilicon.cpp71 uint16_t divider = kBaudrateGeneratorFrequency / lineCoding->speed ; in SetLineCoding() local
72 status_t result = WriteConfig(SET_BAUDRATE_DIVIDER, &divider, 2); in SetLineCoding()
/haiku/src/kits/interface/
H A DTextControl.cpp894 float divider = 0; in DoLayout() local
898 divider = fabs(fLayoutData->text_view_layout_item->Frame().left in DoLayout()
904 divider = fLayoutData->label_width in DoLayout()
907 textFrame.Set(divider, 0, size.width, size.height); in DoLayout()
915 fDivider = divider; in DoLayout()
1251 float divider = 0; in _ValidateLayoutData() local
1253 divider = fLayoutData->label_width in _ValidateLayoutData()
1259 divider = max_c(divider, fDivider); in _ValidateLayoutData()
1271 if (divider > 0) in _ValidateLayoutData()
1272 min.width += divider; in _ValidateLayoutData()
H A DMenuField.cpp967 float divider = 0; in DoLayout() local
973 divider = fabs(fLayoutData->menu_bar_layout_item->Frame().left in DoLayout()
976 divider = fLayoutData->label_width in DoLayout()
982 BRect menuBarFrame(divider + kVMargin, kVMargin, size.width - kVMargin, in DoLayout()
988 fDivider = divider; in DoLayout()
1344 float divider = 0; in _ValidateLayoutData() local
1346 divider = fLayoutData->label_width in _ValidateLayoutData()
1352 divider = std::max(divider, fDivider); in _ValidateLayoutData()
1368 if (divider > 0) in _ValidateLayoutData()
1369 min.width += divider; in _ValidateLayoutData()
H A DAbstractSpinner.cpp1381 float divider = 0; in DoLayout() local
1386 divider = fLayoutData->text_view_layout_item->Frame().left in DoLayout()
1389 divider = fLayoutData->label_width in DoLayout()
1392 fDivider = divider; in DoLayout()
1632 float divider = 0; in _ValidateLayoutData() local
1634 divider = ceilf(fLayoutData->label_width in _ValidateLayoutData()
1639 divider = std::max(divider, fDivider); in _ValidateLayoutData()
1650 if (divider > 0.0f) in _ValidateLayoutData()
1651 min.width += divider; in _ValidateLayoutData()
/haiku/src/kits/print/
H A DJobSetupPanel.cpp273 BBox* divider = new BBox(B_FANCY_BORDER, NULL); in _SetupInterface() local
274 divider->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, 1)); in _SetupInterface()
284 .Add(divider) in _SetupInterface()
/haiku/src/apps/bootmanager/
H A DDefaultPartitionPage.cpp185 float divider = be_plain_font->StringWidth(fDefaultPartition->Label()) + 3; in _BuildUI() local
186 fDefaultPartition->SetDivider(divider); in _BuildUI()
/haiku/docs/user/interface/
H A DMenuField.dox36 by the bounds set by the divider position and \a frame rectangle.
46 pixels then the divider position and the width of the frame rectangle set
175 Adds the label, divider, and current state of the BMenuField to the archive.
419 \brief Sets the horizontal \a position of the divider that separates the
429 \param position The divider \a position to set, should be an integral value.
437 \brief Returns the current divider position.
439 \return The current divider position as a float.
H A DTextControl.dox124 - The current divider position is stored in \c _divide
387 \brief Sets the horizontal \a position of the divider that separates the
397 \param position The divider \a position to set, should be an integral value.
405 \brief Returns the current divider position.
/haiku/src/apps/debugger/user_interface/gui/inspector_window/
H A DMemoryView.cpp167 float divider = (fTargetAddressSize + 1) * fCharWidth; in Draw() local
168 StrokeLine(BPoint(divider, rect.top), in Draw()
169 BPoint(divider, rect.bottom)); in Draw()
177 divider += (fHexBlocksPerLine * hexBlockSize + 1) * fCharWidth; in Draw()
178 StrokeLine(BPoint(divider, rect.top), in Draw()
179 BPoint(divider, rect.bottom)); in Draw()
/haiku/src/libs/linprog/
H A DLayoutOptimizer.cpp835 double divider = _ActualValue(constraint, p); in _Solve() local
836 if (divider > 0 || fuzzy_equals(divider, 0)) in _Solve()
842 alphaI /= divider; in _Solve()
/haiku/src/kits/interface/layouter/
H A DLayoutOptimizer.cpp863 double divider = constraint->ActualValue(p); in _Solve() local
864 if (divider > 0 || fuzzy_equals(divider, 0)) in _Solve()
870 alphaI /= divider; in _Solve()
/haiku/src/apps/sudoku/
H A DSudokuView.cpp303 BString divider; in SaveTo() local
304 divider << (int)(100.0 / fField->Size()) << "%"; in SaveTo()
306 text << "<tr height=\"" << divider << "\">\n"; in SaveTo()
329 text << "<td width=\"" << divider << "\" "; in SaveTo()
333 text << "<td width=\"" << divider << "\" "; in SaveTo()
342 text << "<td width=\"" << divider << "\" "; in SaveTo()
/haiku/src/add-ons/accelerants/intel_extreme/
H A Dpll.cpp833 unsigned int divider) in skl_wrpll_try_divider() argument
847 ctx->p = divider; in skl_wrpll_try_divider()
860 ctx->p = divider; in skl_wrpll_try_divider()
/haiku/src/apps/screenshot/
H A DScreenshotWindow.cpp191 BBox* divider = new BBox(B_FANCY_BORDER, NULL); in ScreenshotWindow() local
192 divider->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, 1)); in ScreenshotWindow()

12