/haiku/src/system/libroot/posix/glibc/include/arch/m68k/ |
H A D | asm-syntax.h | 51 #define MEM_INDX(base,idx,size_suffix)R(base)@(R(idx):size_suffix) argument 52 #define MEM_INDX1(base,idx,size_suffix,scale)R(base)@(R(idx):size_suffix:scale) argument 73 #define MEM_INDX_(base,idx,size_suffix)(R(base),R(idx##.##size_suffix)) argument 74 #define MEM_INDX(base,idx,size_suffix)MEM_INDX_(base,idx,size_suffix) argument 75 #define MEM_INDX1_(base,idx,size_suffix,scale)(R(base),R(idx##.##size_suffix*scale)) argument 76 #define MEM_INDX1(base,idx,size_suffix,scale)MEM_INDX1_(base,idx,size_suffix,scale) argument 78 #define MEM_INDX(base,idx,size_suffix)(R(base),R(idx).size_suffix) argument 79 #define MEM_INDX1(base,idx,size_suffix,scale)(R(base),R(idx).size_suffix*scale) argument
|
/haiku/src/add-ons/kernel/drivers/audio/ac97/sis7018/ |
H A D | Driver.cpp | 45 for (size_t idx = 0; idx < B_COUNT_OF(cardInfos); idx++) { in init_hardware() local 46 if (info.vendor_id == cardInfos[idx].VendorId() && in init_hardware() 47 info.device_id == cardInfos[idx].DeviceId()) in init_hardware() 72 for (size_t idx = 0; idx < B_COUNT_OF(cardInfos); idx++) { in init_driver() local 73 if (info.vendor_id == cardInfos[idx].VendorId() && in init_driver() 74 info.device_id == cardInfos[idx].DeviceId()) in init_driver() 77 ERROR("Skipped:%s [%#06x:%#06x]\n", cardInfos[idx].Name(), in init_driver() 78 cardInfos[idx].VendorId(), cardInfos[idx].DeviceId()); in init_driver() 82 Device* device = new(std::nothrow) Device(cardInfos[idx], info); in init_driver() 101 cardInfos[idx].Name(), gNumCards); in init_driver() [all …]
|
/haiku/3rdparty/mmu_man/onlinedemo/ |
H A D | haiku.php | 153 function make_qemu_sessionfile_name($idx) argument 155 return "/tmp/" . QEMU_SESSFILE_TMPL . $idx; 158 function make_qemu_pidfile_name($idx) argument 160 return "/tmp/" . QEMU_PIDFILE_TMPL . $idx; 163 function make_qemu_logfile_name($idx) argument 165 return "/tmp/" . QEMU_LOGFILE_TMPL . $idx; 170 for ($idx = 0; $idx < MAX_QEMUS; $idx++) { 171 $pidfile = make_qemu_pidfile_name($idx); 172 $sessfile = make_qemu_sessionfile_name($idx); 179 $_SESSION[QEMU_IDX_VAR] = $idx; [all …]
|
/haiku/src/servers/print/ |
H A D | PrintServerApp.Scripting.cpp | 58 int32 idx; in HandleScriptingCommand() local 60 if (msg->GetCurrentSpecifier(&idx,&spec) == B_OK && in HandleScriptingCommand() 161 int32 idx; in GetPrinterFromSpecifier() local 162 if (msg->FindInt32("index", &idx) == B_OK) in GetPrinterFromSpecifier() 163 return Printer::At(idx); in GetPrinterFromSpecifier() 169 int32 idx; in GetPrinterFromSpecifier() local 170 if (msg->FindInt32("index", &idx) == B_OK) in GetPrinterFromSpecifier() 171 return Printer::At(Printer::CountPrinters() - idx); in GetPrinterFromSpecifier() 194 int32 idx; in GetTransportFromSpecifier() local 195 if (msg->FindInt32("index", &idx) == B_OK) in GetTransportFromSpecifier() [all …]
|
H A D | Transport.Scripting.cpp | 41 int32 idx; in HandleScriptingCommand() local 43 if ((rc=msg->GetCurrentSpecifier(&idx,&spec)) == B_OK in HandleScriptingCommand() 71 if (idx == -1) { in HandleScriptingCommand() 88 int32 idx; in ResolveSpecifier() local 89 switch (idx=prop_info.FindMatch(msg,0,spec,form,prop)) { in ResolveSpecifier()
|
H A D | Printer.Scripting.cpp | 49 int32 idx; in HandleScriptingCommand() local 51 if ((rc=msg->GetCurrentSpecifier(&idx,&spec)) == B_OK && in HandleScriptingCommand() 79 if (idx == -1) { in HandleScriptingCommand() 95 int32 idx; in ResolveSpecifier() local 96 switch( idx=prop_info.FindMatch(msg,0,spec,form,prop) ) { in ResolveSpecifier()
|
H A D | Printer.cpp | 70 for (int32 idx = 0; idx < sPrinters.CountItems(); idx++) { in Find() local 71 if (name == sPrinters.ItemAt(idx)->Name()) in Find() 72 return sPrinters.ItemAt(idx); in Find() 83 for (int32 idx = 0; idx < sPrinters.CountItems(); idx++) { in Find() local 84 Printer* printer = sPrinters.ItemAt(idx); in Find() 96 Printer::At(int32 idx) in At() argument 98 return sPrinters.ItemAt(idx); in At()
|
/haiku/src/libs/libtelnet/ |
H A D | enc_des.c | 540 int idx; in cfb64_encrypt() local 542 idx = stp->str_index; in cfb64_encrypt() 544 if (idx == sizeof(Block)) { in cfb64_encrypt() 548 idx = 0; in cfb64_encrypt() 552 *s = stp->str_output[idx] = (stp->str_feed[idx] ^ *s); in cfb64_encrypt() 554 idx++; in cfb64_encrypt() 556 stp->str_index = idx; in cfb64_encrypt() 563 int idx; in cfb64_decrypt() local 576 idx = stp->str_index++; in cfb64_decrypt() 577 if (idx == sizeof(Block)) { in cfb64_decrypt() [all …]
|
/haiku/src/libs/iconv/ |
H A D | euc_jisx0213.h | 154 unsigned int idx; in euc_jisx0213_wctomb() local 158 idx = euc_jisx0213_comp_table02e5_idx, in euc_jisx0213_wctomb() 161 idx = euc_jisx0213_comp_table02e9_idx, in euc_jisx0213_wctomb() 164 idx = euc_jisx0213_comp_table0300_idx, in euc_jisx0213_wctomb() 167 idx = euc_jisx0213_comp_table0301_idx, in euc_jisx0213_wctomb() 170 idx = euc_jisx0213_comp_table309a_idx, in euc_jisx0213_wctomb() 176 if (euc_jisx0213_comp_table_data[idx].base == lasttwo) in euc_jisx0213_wctomb() 178 while (++idx, --len > 0); in euc_jisx0213_wctomb() 183 lasttwo = euc_jisx0213_comp_table_data[idx].composed; in euc_jisx0213_wctomb()
|
H A D | shift_jisx0213.h | 168 unsigned int idx; in shift_jisx0213_wctomb() local 172 idx = shift_jisx0213_comp_table02e5_idx, in shift_jisx0213_wctomb() 175 idx = shift_jisx0213_comp_table02e9_idx, in shift_jisx0213_wctomb() 178 idx = shift_jisx0213_comp_table0300_idx, in shift_jisx0213_wctomb() 181 idx = shift_jisx0213_comp_table0301_idx, in shift_jisx0213_wctomb() 184 idx = shift_jisx0213_comp_table309a_idx, in shift_jisx0213_wctomb() 190 if (shift_jisx0213_comp_table_data[idx].base == lasttwo) in shift_jisx0213_wctomb() 192 while (++idx, --len > 0); in shift_jisx0213_wctomb() 197 lasttwo = shift_jisx0213_comp_table_data[idx].composed; in shift_jisx0213_wctomb()
|
/haiku/src/add-ons/print/drivers/postscript/ |
H A D | SelectPPDDlg.cpp | 122 int32 idx = fManufacturersListView->CurrentSelection(); in PopulatePrinters() local 130 if (idx < 0) in PopulatePrinters() 133 manu = ((BStringItem*)fManufacturersListView->ItemAt(idx))->Text(); in PopulatePrinters() 158 int32 idx = fPrintersListView->CurrentSelection(); in PrinterSelected() local 159 fOKButton->SetEnabled(idx >= 0); in PrinterSelected() 167 int32 idx; in Save() local 169 idx = fPrintersListView->CurrentSelection(); in Save() 170 if (idx >= 0) in Save() 172 (fPrintersListView->ItemAt(idx))->fPPDPath; in Save()
|
/haiku/headers/libs/agg/ |
H A D | agg_path_storage.h | 55 void modify_vertex(unsigned idx, double x, double y); 56 void modify_vertex(unsigned idx, double x, double y, unsigned cmd); 57 void modify_command(unsigned idx, unsigned cmd); 68 unsigned vertex(unsigned idx, double* x, double* y) const; 69 unsigned command(unsigned idx) const; 175 inline void vertex_block_storage<T,S,P>::modify_vertex(unsigned idx, in modify_vertex() argument 178 T* pv = m_coord_blocks[idx >> block_shift] + ((idx & block_mask) << 1); in modify_vertex() 185 inline void vertex_block_storage<T,S,P>::modify_vertex(unsigned idx, in modify_vertex() argument 189 unsigned block = idx >> block_shift; in modify_vertex() 190 unsigned offset = idx & block_mask; in modify_vertex() [all …]
|
/haiku/src/add-ons/accelerants/radeon_hd/atombios/ |
H A D | atom.cpp | 166 uint32 idx, val = 0xCDCDCDCD, align, arg; in atom_get_src_int() local 172 idx = U16(*ptr); in atom_get_src_int() 174 idx += gctx->reg_block; in atom_get_src_int() 177 val = gctx->card->reg_read(idx); in atom_get_src_int() 197 gctx->iio[gctx->io_mode & 0x7F], idx, 0); in atom_get_src_int() 201 idx = U8(*ptr); in atom_get_src_int() 203 val = B_LENDIAN_TO_HOST_INT32(ctx->ps[idx]); in atom_get_src_int() 207 idx = U8(*ptr); in atom_get_src_int() 209 switch(idx) { in atom_get_src_int() 238 val = ctx->ws[idx]; in atom_get_src_int() [all …]
|
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | debug.c | 62 int idx = -lcn - 1; in ntfs_debug_runlist_dump() local 64 if (idx > -LCN_EINVAL - 1) in ntfs_debug_runlist_dump() 65 idx = 4; in ntfs_debug_runlist_dump() 67 (long long)rl[i].vcn, lcn_str[idx], in ntfs_debug_runlist_dump()
|
/haiku/src/system/libroot/posix/glibc/regex/ |
H A D | regex_internal.h | 382 Idx idx; /* for BACK_REF */ member 473 #define re_string_first_byte(pstr, idx) \ argument 474 ((idx) == (pstr)->valid_len || (pstr)->wcs[idx] != WEOF) 475 #define re_string_is_single_byte_char(pstr, idx) \ argument 476 ((pstr)->wcs[idx] != WEOF && ((pstr)->valid_len == (idx) + 1 \ 477 || (pstr)->wcs[(idx) + 1] != WEOF)) 482 #define re_string_byte_at(pstr,idx) ((pstr)->mbs[idx]) argument 483 #define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx)) argument 484 #define re_string_set_index(pstr,idx) ((pstr)->cur_idx = (idx)) argument 684 Idx idx; member [all …]
|
H A D | regex_internal.c | 39 static unsigned int re_string_context_at (const re_string_t *input, Idx idx, 575 re_string_reconstruct (re_string_t *pstr, Idx idx, int eflags) in re_string_reconstruct() argument 579 if (BE (pstr->raw_mbs_idx <= idx, 0)) in re_string_reconstruct() 580 offset = idx - pstr->raw_mbs_idx; in re_string_reconstruct() 598 offset = idx; in re_string_reconstruct() 645 pstr->len = pstr->raw_len - idx + offset; in re_string_reconstruct() 646 pstr->stop = pstr->raw_stop - idx + offset; in re_string_reconstruct() 698 pstr->len = pstr->raw_len - idx + offset; in re_string_reconstruct() 699 pstr->stop = pstr->raw_stop - idx + offset; in re_string_reconstruct() 767 pstr->valid_len = re_string_skip_chars (pstr, idx, &wc) - idx; in re_string_reconstruct() [all …]
|
/haiku/src/add-ons/media/media-add-ons/usb_vision/ |
H A D | TunerLocale.cpp | 125 const Channel &TunerLocale::GetChannel(int idx) in GetChannel() argument 127 if(idx < 0) idx = 0; in GetChannel() 128 if(idx >= (int)fChannels.size()) idx = (int)(fChannels.size() - 1); in GetChannel() 129 return fChannels[idx]; in GetChannel()
|
/haiku/src/add-ons/kernel/busses/virtio/virtio_mmio/ |
H A D | VirtioDevice.cpp | 126 int32 idx = fAllocatedDescs.GetLowestClear(); in AllocDesc() local 127 if (idx < 0) in AllocDesc() 130 fAllocatedDescs.Set(idx); in AllocDesc() 131 return idx; in AllocDesc() 136 VirtioQueue::FreeDesc(int32 idx) in FreeDesc() argument 138 fAllocatedDescs.Clear(idx); in FreeDesc() 188 int32_t idx = fAvail->idx & (fQueueLen - 1); in Enqueue() local 190 fAvail->ring[idx] = firstDesc; in Enqueue() 191 fAvail->idx++; in Enqueue() 203 if (fUsed->idx == fLastUsed) in Dequeue() [all …]
|
/haiku/src/add-ons/kernel/drivers/network/ether/sis19x/ |
H A D | glue.c | 80 size_t idx; in haiku_sge_get_mac_addr_apc() local 84 for (idx = 0; idx < B_COUNT_OF(ids); idx++) { in haiku_sge_get_mac_addr_apc() 85 if (pciInfo.device_id == ids[idx]) { in haiku_sge_get_mac_addr_apc()
|
/haiku/src/libs/agg/src/ |
H A D | agg_gsv_text.cpp | 607 unsigned idx; in vertex() local 631 idx = (*m_cur_chr++) & 0xFF; in vertex() 632 if(idx == '\n') in vertex() 638 idx <<= 1; in vertex() 639 m_bglyph = m_glyphs + value(m_indices + idx); in vertex() 640 m_eglyph = m_glyphs + value(m_indices + idx + 2); in vertex()
|
/haiku/src/system/boot/platform/riscv/ |
H A D | virtio.cpp | 79 VirtioDevice::FreeDesc(int32_t idx) in FreeDesc() argument 81 fFreeDescs[idx/32] |= (uint32_t)1 << (idx % 32); in FreeDesc() 169 int32_t idx = fAvail->idx % fQueueLen; in ScheduleIO() local 170 fReqs[idx] = reqs[0]; in ScheduleIO() 171 fAvail->ring[idx] = firstDesc; in ScheduleIO() 172 fAvail->idx++; in ScheduleIO() 187 if (fUsed->idx == fLastUsed) in ConsumeIO() 208 while (fUsed->idx == fLastUsed) {} in WaitIO()
|
/haiku/src/system/runtime_loader/ |
H A D | utility.h | 39 T& operator[](size_t idx) { return fData[idx]; } 40 const T& operator[](size_t idx) const { return fData[idx]; }
|
/haiku/src/add-ons/media/media-add-ons/equalizer/ |
H A D | EqualizerAddOn.cpp | 39 status_t EqualizerAddOn::GetFlavorAt(int32 idx, const flavor_info** info) in GetFlavorAt() argument 41 if (idx < 0 || idx >= CountFlavors()) in GetFlavorAt() 45 f_info->internal_id = idx; in GetFlavorAt()
|
/haiku/src/add-ons/media/media-add-ons/vst_host/ |
H A D | VSTAddOn.cpp | 54 VSTAddOn::GetFlavorAt(int32 idx, const flavor_info** info) in GetFlavorAt() argument 56 if (idx < 0 || idx >= fPluginsList.CountItems()) in GetFlavorAt() 59 VSTPlugin *plugin = (VSTPlugin*)fPluginsList.ItemAt(idx); in GetFlavorAt() 62 f_info->internal_id = idx; in GetFlavorAt()
|
/haiku/src/add-ons/kernel/bus_managers/ps2/ |
H A D | ps2_common.cpp | 314 uint8 idx; in ps2_interrupt() local 316 idx = ctrl >> 6; in ps2_interrupt() 319 ctrl, data, idx); in ps2_interrupt() 321 idx = 0; in ps2_interrupt() 326 dev = &ps2_device[PS2_DEVICE_MOUSE + idx]; in ps2_interrupt() 419 for (int idx = 1; idx <= 3; idx++) { in ps2_init() local 420 ps2_service_notify_device_added(&ps2_device[PS2_DEVICE_MOUSE + idx]); in ps2_init()
|