Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 766) sorted by path

12345678910>>...31

/illumos-gate/usr/src/boot/common/
H A Dinstall.c77 int count, error, idx; in setmultipath() local
91 for (idx = 0; idx < count; idx++) { in setmultipath()
95 error = setpath(*what + idx, val); in setmultipath()
H A Dpart.c415 int i, idx; in ptable_ebrread() local
424 idx = 5; in ptable_ebrread()
452 entry->part.index = idx++; in ptable_ebrread()
933 ptable_getpart(const struct ptable *table, struct ptable_entry *part, int idx) in ptable_getpart() argument
941 if (entry->part.index != idx) in ptable_getpart()
/illumos-gate/usr/src/boot/efi/libefi/
H A Dhandles.c49 int idx, unit; in efi_register_handles() local
51 idx = nentries; in efi_register_handles()
55 for (unit = 0; idx < nentries; idx++, unit++) { in efi_register_handles()
61 entry[idx].dev = sw; in efi_register_handles()
70 int idx; in efi_find_handle() local
72 for (idx = 0; idx < nentries; idx++) { in efi_find_handle()
85 int idx; in efi_handle_lookup() local
87 for (idx = 0; idx < nentries; idx++) { in efi_handle_lookup()
88 if (entry[idx].handle != h && entry[idx].alias != h) in efi_handle_lookup()
105 int idx; in efi_handle_update_dev() local
[all …]
/illumos-gate/usr/src/boot/efi/loader/arch/amd64/
H A Dtrap.c115 prepare_exception(unsigned idx, uint64_t my_handler, in prepare_exception() argument
120 fw_idt_e = &((struct gate_descriptor *)fw_idt.rd_base)[idx]; in prepare_exception()
121 loader_idt_e = &((struct gate_descriptor *)loader_idt.rd_base)[idx]; in prepare_exception()
122 fw_intr_handlers[idx] = fw_idt_e->gd_looffset + in prepare_exception()
124 intercepted[idx] = 1; in prepare_exception()
/illumos-gate/usr/src/boot/efi/loader/
H A Dframebuffer.c146 uint_t idx; in efifb_uga_find_pixel() local
196 for (idx = 0; idx < count; idx++) { in efifb_uga_find_pixel()
197 if (data1[idx] != data2[idx]) { in efifb_uga_find_pixel()
199 return (ofs + (idx & ~3)); in efifb_uga_find_pixel()
/illumos-gate/usr/src/boot/i386/libi386/
H A Dbiosacpi.c241 int ofs, idx; in biosacpi_search_rsdp() local
251 for (idx = 0; idx < RSDP_CHECKSUM_LENGTH; idx++) in biosacpi_search_rsdp()
252 sum += *(cp + idx); in biosacpi_search_rsdp()
H A Dvbe.c530 size_t idx, nentries; in vbe_find_mode_xydm() local
549 for (idx = 0; idx < nentries; idx++) { in vbe_find_mode_xydm()
550 mode = vbe_mode_list[idx]; in vbe_find_mode_xydm()
697 int nmodes, idx, nentries; in vbe_modelist() local
745 for (idx = 0; idx < nentries; idx++) { in vbe_modelist()
746 mode = vbe_mode_list[idx]; in vbe_modelist()
H A Dvidconsole.c575 int idx; in vidc_vbe_cons_put_cmap() local
581 idx = solaris_color_to_pc_color[i]; in vidc_vbe_cons_put_cmap()
583 idx = i; in vidc_vbe_cons_put_cmap()
591 rc = vbe_set_palette(&pe8[i], idx); in vidc_vbe_cons_put_cmap()
/illumos-gate/usr/src/boot/libsa/
H A Dext2fs.c606 int idx, level; in block_map() local
682 idx = file_block / fp->f_nindir[level - 1]; in block_map()
685 idx = file_block; in block_map()
687 ind_block_num = ind_p[idx]; in block_map()
H A Dsmbios.c177 int i, idx; in smbios_getstring() local
179 idx = SMBIOS_GET8(addr, offset); in smbios_getstring()
180 if (idx != 0) { in smbios_getstring()
182 for (i = 1; i < idx; i++) in smbios_getstring()
H A Dufs.c204 int idx; in block_map() local
281 idx = file_block / fp->f_nindir[level - 1]; in block_map()
284 idx = file_block; in block_map()
287 ind_block_num = ((ufs1_daddr_t *)fp->f_blk[level])[idx]; in block_map()
289 ind_block_num = ((ufs2_daddr_t *)fp->f_blk[level])[idx]; in block_map()
/illumos-gate/usr/src/boot/libsa/string/
H A Dstrcspn.c47 int idx; in strcspn() local
56 for (tbl[0] = idx = 1; idx < sizeof(tbl) / sizeof(tbl[0]); idx++) in strcspn()
57 tbl[idx] = 0; in strcspn()
60 idx = IDX(*charset); in strcspn()
62 tbl[idx] |= bit; in strcspn()
66 idx = IDX(*s1); in strcspn()
68 if ((tbl[idx] & bit) != 0) in strcspn()
H A Dstrspn.c47 int idx; in strspn() local
55 for (idx = 0; idx < sizeof(tbl) / sizeof(tbl[0]); idx++) in strspn()
56 tbl[idx] = 0; in strspn()
59 idx = IDX(*charset); in strspn()
61 tbl[idx] |= bit; in strspn()
65 idx = IDX(*s1); in strspn()
67 if ((tbl[idx] & bit) == 0) in strspn()
/illumos-gate/usr/src/boot/libsa/zfs/
H A Dzfsimpl.c2615 zap_table_load(fat_zap_t *zap, zap_table_phys_t *tbl, uint64_t idx, in zap_table_load() argument
2619 uint64_t blk = idx >> (bs - 3); in zap_table_load()
2620 uint64_t off = idx & ((1 << (bs - 3)) - 1); in zap_table_load()
2636 zap_idx_to_blk(fat_zap_t *zap, uint64_t idx, uint64_t *valp) in zap_idx_to_blk() argument
2639 *valp = ZAP_EMBEDDED_PTRTBL_ENT(zap, idx); in zap_idx_to_blk()
2643 idx, valp)); in zap_idx_to_blk()
2651 uint64_t idx, blk; in zap_deref_leaf() local
2654 idx = ZAP_HASH_IDX(h, zap->zap_phys->zap_ptrtbl.zt_shift); in zap_deref_leaf()
2655 err = zap_idx_to_blk(zap, idx, &blk); in zap_deref_leaf()
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/
H A Dzfsimpl.h1416 #define ZAP_EMBEDDED_PTRTBL_ENT(zap, idx) \ argument
1418 [(idx) + (1<<ZAP_EMBEDDED_PTRTBL_SHIFT(zap))]
1506 #define ZAP_LEAF_CHUNK(l, idx) \ argument
1508 ((l)->l_phys->l_hash + ZAP_LEAF_HASH_NUMENTRIES(l)))[idx]
1509 #define ZAP_LEAF_ENTRY(l, idx) (&ZAP_LEAF_CHUNK(l, idx).l_entry) argument
/illumos-gate/usr/src/cmd/abi/appcert/scripts/
H A DAppcertUtil.pm1436 my ($line, $dump, $idx, $tag, $val);
1443 ($idx, $tag, $val) = split(/\s+/, $dump);
H A Dsymprof.pl1556 my $idx;
1586 $idx =
1588 $aok = 1 if ($idx != -1);
/illumos-gate/usr/src/cmd/audio/audioctl/
H A Daudioctl.c243 get_enum_str(cinfo_t *cinfop, int idx) in get_enum_str() argument
247 if (cinfop->ci.enum_present[idx / sz] & (1 << (idx % sz))) in get_enum_str()
248 return (cinfop->enump->strings + cinfop->enump->strindex[idx]); in get_enum_str()
458 int idx = -1; in print_control() local
551 idx = i; in print_control()
574 while ((idx >= 0) && (idx < cinfop->ci.maxvalue)) { in print_control()
576 for (i = idx; i < cinfop->ci.maxvalue; i++) { in print_control()
591 idx = i; in print_control()
/illumos-gate/usr/src/cmd/auditrecord/
H A Daudit_record_xml78 my $idx = 0;
90 $idx++;
91 $token .= $idx;
/illumos-gate/usr/src/cmd/bhyve/
H A Dpci_e82545.c1604 int idx; in e82545_write_ra() local
1606 idx = reg >> 1; in e82545_write_ra()
1607 assert(idx < 15); in e82545_write_ra()
1609 eu = &sc->esc_uni[idx]; in e82545_write_ra()
1631 int idx; in e82545_read_ra() local
1633 idx = reg >> 1; in e82545_read_ra()
1634 assert(idx < 15); in e82545_read_ra()
1636 eu = &sc->esc_uni[idx]; in e82545_read_ra()
H A Dpci_emul.c126 int idx; member
638 mr.arg2 = idx; in modify_bar_registration()
653 (*pe->pe_baraddr)(pi, idx, registration, pi->pi_bar[idx].addr); in modify_bar_registration()
717 unregister_bar(pi, idx); in update_bar_address()
737 register_bar(pi, idx); in update_bar_address()
744 assert((type == PCIBAR_ROM) || (idx >= 0 && idx <= PCI_BARMAX)); in pci_emul_alloc_bar()
773 new_bar->idx = idx; in pci_emul_alloc_bar()
920 register_bar(pdi, idx); in pci_emul_assign_bar()
2196 int idx, needcfg; in pci_cfgrw() local
2273 idx = PCI_ROM_IDX; in pci_cfgrw()
[all …]
H A Dpci_emul.h232 int pci_emul_alloc_bar(struct pci_devinst *pdi, int idx,
H A Dpci_nvme.c2738 sq = &sc->submit_queues[idx]; in pci_nvme_handle_io_cmd()
2744 idx, sqhead, sq->tail, sq->qbase); in pci_nvme_handle_io_cmd()
2776 req->sqid = idx; in pci_nvme_handle_io_cmd()
2821 uint64_t idx, int is_sq, uint64_t value) in pci_nvme_handle_doorbell() argument
2827 if (idx > sc->num_squeues) { in pci_nvme_handle_doorbell()
2830 __func__, idx, sc->num_squeues); in pci_nvme_handle_doorbell()
2837 if (idx == 0) { in pci_nvme_handle_doorbell()
2841 if (idx > sc->num_squeues) { in pci_nvme_handle_doorbell()
2850 if (idx > sc->num_cqueues) { in pci_nvme_handle_doorbell()
2853 __func__, idx, sc->num_cqueues); in pci_nvme_handle_doorbell()
[all …]
H A Dpci_passthru.c1125 passthru_addr_rom(struct pci_devinst *const pi, const int idx, in passthru_addr_rom() argument
1128 const uint64_t addr = pi->pi_bar[idx].addr; in passthru_addr_rom()
1129 const uint64_t size = pi->pi_bar[idx].size; in passthru_addr_rom()
H A Dpci_virtio_9p.c224 preq->vsr_idx = req.idx; in pci_vt9p_notify()

12345678910>>...31