Home
last modified time | relevance | path

Searched refs:rcount (Results 1 – 25 of 35) sorted by relevance

12

/illumos-gate/usr/src/cmd/adbgen/common/
H A Dadbsub.c87 int rcount, width, sum, i; in do_fmt() local
91 sum = rcount = 0; in do_fmt()
94 rcount = rcount * 10 + *cp++ - '0'; in do_fmt()
96 if (rcount == 0) { in do_fmt()
97 rcount = 1; in do_fmt()
168 for (i = 0; i < rcount; i++) { in do_fmt()
172 sum += width * rcount; in do_fmt()
/illumos-gate/usr/src/uts/i86pc/io/pcplusmp/
H A Dapic.c995 int rcount, i; in apic_alloc_msi_vectors() local
1013 if ((rcount = apic_navail_vector(dip, pri)) > count) in apic_alloc_msi_vectors()
1014 rcount = count; in apic_alloc_msi_vectors()
1015 else if (rcount == 0 || (rcount < count && in apic_alloc_msi_vectors()
1020 if (!ISP2(rcount)) in apic_alloc_msi_vectors()
1021 rcount = 1 << (highbit(rcount) - 1); in apic_alloc_msi_vectors()
1025 for (start = 0; rcount > 0; rcount >>= 1) { in apic_alloc_msi_vectors()
1026 if ((start = apic_find_multi_vectors(pri, rcount)) != 0 || in apic_alloc_msi_vectors()
1037 if (apic_check_free_irqs(rcount) == PSM_FAILURE) { in apic_alloc_msi_vectors()
1044 for (i = 0; i < rcount; i++) { in apic_alloc_msi_vectors()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm_stats.c503 match_2_rnames(char *class, ilbst_rule_desc_t *rlist, int rcount) in match_2_rnames() argument
508 for (i = 0; i < rcount; i++) { in match_2_rnames()
557 int rcount = sta->ilbst_rcount; in i_get_server_descs() local
569 rp = match_2_rnames(kp->ks_class, rlist, rcount); in i_get_server_descs()
598 for (i = 0; i < rcount; i++) in i_get_server_descs()
640 i_swap_rl_pointers(ilbst_arg_t *sta, int rcount) in i_swap_rl_pointers() argument
646 for (i = 0; i < rcount; i++) { in i_swap_rl_pointers()
669 i_init_rulelist(ilbst_arg_t *sta, int rcount) in i_init_rulelist() argument
674 for (i = 0; i < rcount; i++) { in i_init_rulelist()
700 int rcount = sta->ilbst_rcount; in i_get_rule_descs() local
[all …]
/illumos-gate/usr/src/uts/i86xpv/io/psm/
H A Dxpv_psm.c1180 int rcount, i, rc, irqno; in apic_alloc_msi_vectors() local
1199 if ((rcount = apic_navail_vector(dip, pri)) > count) in apic_alloc_msi_vectors()
1200 rcount = count; in apic_alloc_msi_vectors()
1201 else if (rcount == 0 || (rcount < count && in apic_alloc_msi_vectors()
1206 if (!ISP2(rcount)) in apic_alloc_msi_vectors()
1207 rcount = 1 << (highbit(rcount) - 1); in apic_alloc_msi_vectors()
1223 for (i = 0; i < rcount; i++) { in apic_alloc_msi_vectors()
1229 map_irq.index = -rcount; /* hypervisor auto allocates vectors */ in apic_alloc_msi_vectors()
1273 irqptr->airq_intin_no = (uchar_t)rcount; in apic_alloc_msi_vectors()
1290 return (rcount); in apic_alloc_msi_vectors()
[all …]
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A D_inline_reloc.h126 elf_reloc_relative_count(ulong_t rbgn, ulong_t rcount, ulong_t rsize, in elf_reloc_relative_count() argument
129 for (; rcount; rcount--) { in elf_reloc_relative_count()
/illumos-gate/usr/src/common/fs/
H A Dufsops.c369 getblock(fileid_t *filep, caddr_t buf, int count, int *rcount) in getblock() argument
408 *rcount = 0; in getblock()
414 *rcount = size; in getblock()
497 int rcount; in bufs_read() local
525 (void) getblock(filep, buf, i, &rcount); in bufs_read()
526 i -= rcount; in bufs_read()
527 buf += rcount; in bufs_read()
528 filep->fi_offset += rcount; in bufs_read()
/illumos-gate/usr/src/stand/lib/fs/ufs/
H A Dufsops.c450 getblock(fileid_t *filep, caddr_t buf, int count, int *rcount) in getblock() argument
498 *rcount = 0; in getblock()
506 *rcount = size; in getblock()
552 int rcount; in boot_ufs_read() local
570 (void) getblock(filep, buf, i, &rcount); in boot_ufs_read()
571 i -= rcount; in boot_ufs_read()
572 buf += rcount; in boot_ufs_read()
573 filep->fi_offset += rcount; in boot_ufs_read()
/illumos-gate/usr/src/uts/common/io/
H A Dbusra.c947 int rlen, rcount, i; in pci_resource_setup() local
1044 rcount = rlen / sizeof (pci_regspec_t); in pci_resource_setup()
1045 for (i = 0; i < rcount; i++) { in pci_resource_setup()
1333 int rlen, rcount; in pci_get_available_prop() local
1362 rcount = rlen / sizeof (pci_regspec_t); in pci_get_available_prop()
1363 for (i = 0, j = 0; i < rcount; i++) { in pci_get_available_prop()
1422 for (k = i + 1; k < rcount; k++) { in pci_get_available_prop()
1484 int rlen, rcount; in pci_put_available_prop() local
1524 rcount = rlen / sizeof (pci_regspec_t); in pci_put_available_prop()
1525 for (i = 0, j = 0; i < rcount; i++) { in pci_put_available_prop()
[all …]
/illumos-gate/usr/src/stand/lib/fs/hsfs/
H A Dhsfsops.c319 getblock(fileid_t *filep, caddr_t buf, int count, int *rcount) in getblock() argument
359 *rcount = 0; in getblock()
365 *rcount = size; in getblock()
408 int rcount; in boot_hsfs_read() local
427 (void) getblock(filep, buf, i, &rcount); in boot_hsfs_read()
428 i -= rcount; in boot_hsfs_read()
429 buf += rcount; in boot_hsfs_read()
430 filep->fi_offset += rcount; in boot_hsfs_read()
/illumos-gate/usr/src/cmd/mdb/common/modules/mdb_ds/
H A Dmdb_ds.c587 int rcount; in _mdb_init() local
604 if (mdb_readvar(&rcount, "_mdb_abort_rcount") != -1 && rcount != 0) in _mdb_init()
605 mdb_printf("mdb: WARNING: resume executed %d times\n", rcount); in _mdb_init()
/illumos-gate/usr/src/uts/i86pc/io/apix/
H A Dapix_utils.c1639 int i, cap_ptr, rcount = count; in apix_alloc_msi() local
1667 if (!ISP2(rcount)) in apix_alloc_msi()
1668 rcount = 1 << (highbit(rcount) - 1); in apix_alloc_msi()
1671 for (vecp = NULL; rcount > 0; rcount >>= 1) { in apix_alloc_msi()
1672 vecp = apix_alloc_nvectors_oncpu(bindcpu, dip, inum, rcount, in apix_alloc_msi()
1677 for (i = 0; vecp && i < rcount; i++) in apix_alloc_msi()
1693 apix_dprint_vector(vecp, dip, rcount); in apix_alloc_msi()
1695 return (rcount); in apix_alloc_msi()
/illumos-gate/usr/src/uts/common/io/ib/ibtl/
H A Dibtl_cm.c459 uint_t count, rcount; in ibtl_cm_get_active_plist() local
487 retval = ibtl_cm_get_cnt(attr, flags, NULL, &rcount); in ibtl_cm_get_active_plist()
492 } else if (rcount != count) { in ibtl_cm_get_active_plist()
503 retval = ibtl_cm_get_cnt(attr, flags, p_listp, &rcount); in ibtl_cm_get_active_plist()
/illumos-gate/usr/src/cmd/sgs/lex/common/
H A Donce.h147 long rcount; variable
H A Dldefs.h238 extern long rcount;
H A Dheader.c371 nstates, rcount); in statistics()
/illumos-gate/usr/src/uts/sun4/io/
H A Dpcicfg.c1869 int rcount; in pcicfg_bridge_assign() local
1976 rcount = length / sizeof (pci_regspec_t); in pcicfg_bridge_assign()
1978 for (i = 0; i < rcount; i++) { in pcicfg_bridge_assign()
2072 int rcount; in pcicfg_device_assign() local
2122 rcount = length / sizeof (pci_regspec_t); in pcicfg_device_assign()
2123 for (i = 0; i < rcount; i++) { in pcicfg_device_assign()
2590 int rcount; in pcicfg_sum_resources() local
2642 rcount = length / sizeof (pci_regspec_t); in pcicfg_sum_resources()
2644 for (i = 0; i < rcount; i++) { in pcicfg_sum_resources()
2702 int rcount; in pcicfg_find_resource_end() local
[all …]
/illumos-gate/usr/src/uts/common/fs/udfs/
H A Dudf_dir.c1024 int32_t empty = 1, error, count, entry_len, rcount; in ud_dirempty() local
1049 rcount = sizeof (struct file_id); in ud_dirempty()
1050 error = ud_rdwri(UIO_READ, FREAD, ip, addr, rcount, off, in ud_dirempty()
1079 rcount = FID_LEN(fid); in ud_dirempty()
1080 error = ud_rdwri(UIO_READ, FREAD, ip, addr, rcount, off, in ud_dirempty()
1093 1, rcount) != 0) { in ud_dirempty()
/illumos-gate/usr/src/uts/intel/io/hotplug/pcicfg/
H A Dpcicfg.c1758 int rcount; in pcicfg_bridge_assign() local
1912 rcount = length / sizeof (pci_regspec_t); in pcicfg_bridge_assign()
1914 for (i = 0; i < rcount; i++) { in pcicfg_bridge_assign()
2013 int rcount; in pcicfg_device_assign() local
2069 rcount = length / sizeof (pci_regspec_t); in pcicfg_device_assign()
2071 for (i = 0; i < rcount; i++) { in pcicfg_device_assign()
2478 int rcount; in pcicfg_sum_resources() local
2532 rcount = length / sizeof (pci_regspec_t); in pcicfg_sum_resources()
2534 for (i = 0; i < rcount; i++) { in pcicfg_sum_resources()
4613 int rcount; in pcicfg_find_resource_end() local
[all …]
/illumos-gate/usr/src/uts/common/io/cardbus/
H A Dcardbus_cfg.c791 int rcount; in cardbus_bridge_assign() local
888 rcount = length / sizeof (pci_regspec_t); in cardbus_bridge_assign()
889 cardbus_err(dip, 9, "rcount = %d\n", rcount); in cardbus_bridge_assign()
891 for (i = 0; i < rcount; i++) { in cardbus_bridge_assign()
1003 int rcount; in cardbus_isa_bridge_ranges() local
1035 rcount = length / sizeof (pci_regspec_t); in cardbus_isa_bridge_ranges()
1037 for (i = 0; i < rcount; i++) { in cardbus_isa_bridge_ranges()
1055 i = rcount; in cardbus_isa_bridge_ranges()
1836 int rcount; in cardbus_sum_resources() local
2080 rcount = length / sizeof (pci_regspec_t); in cardbus_sum_resources()
[all …]
/illumos-gate/usr/src/uts/common/io/aggr/
H A Daggr_grp.c3361 int rmaxcnt, rcount; in aggr_mtu_range_intersection() local
3406 for (i = 0, sum = 0, rcount = 0; i < m; i++) { in aggr_mtu_range_intersection()
3409 rval[rcount].mpur_min = ta[i].bval; in aggr_mtu_range_intersection()
3412 rval[rcount++].mpur_max = ta[i].bval; in aggr_mtu_range_intersection()
3419 *prcount = rcount; in aggr_mtu_range_intersection()
3514 int i, rcount, rmaxcnt; in aggr_m_propinfo() local
3522 err = aggr_grp_possible_mtu_range(grp, &rval, &rmaxcnt, &rcount); in aggr_m_propinfo()
3527 for (i = 0; i < rcount; i++) { in aggr_m_propinfo()
/illumos-gate/usr/src/uts/intel/io/vmm/io/
H A Dppt.c395 uint_t rcount, i; in ppt_bar_crawl() local
404 rcount = rlen / sizeof (pci_regspec_t); in ppt_bar_crawl()
405 for (i = 0; i < rcount; i++) { in ppt_bar_crawl()
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_srv.c1313 int rcount; in rfs_write() local
1671 rcount = trp->wa->wa_count; in rfs_write()
1675 rcount -= iovp->iov_len; in rfs_write()
1676 if (rcount < 0) in rfs_write()
1677 iovp->iov_len += rcount; in rfs_write()
1679 if (rcount <= 0) in rfs_write()
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pvscsi/
H A Dpvscsi.c828 int offset, rcount, rn, type; in pvscsi_setup_io() local
841 rcount = regs_length * sizeof (int) / sizeof (pci_regspec_t); in pvscsi_setup_io()
844 for (rn = 0; rn < rcount; ++rn) { in pvscsi_setup_io()
851 if (rn >= rcount) in pvscsi_setup_io()
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlinkprop.c2316 i_dladm_range_size(mac_propval_range_t *r, size_t *sz, uint_t *rcount) in i_dladm_range_size() argument
2321 *rcount = count; in i_dladm_range_size()
2332 *rcount = 0; in i_dladm_range_size()
4207 uint_t rcount; in get_range() local
4217 rcount = 1; in get_range()
4224 rangep->mpr_count = rcount; in get_range()
4231 if ((err = i_dladm_range_size(rangep, &sz, &rcount)) in get_range()
/illumos-gate/usr/src/uts/common/io/fibre-channel/impl/
H A Dfctl.c3558 int rcount = 0; in fctl_unlink_remote_port_from_remote_node() local
3585 rcount = --rnodep->fd_numports; in fctl_unlink_remote_port_from_remote_node()
3586 if (rcount == 0) { in fctl_unlink_remote_port_from_remote_node()
3605 return (rcount); in fctl_unlink_remote_port_from_remote_node()
4740 int rcount = 0; in fctl_destroy_remote_port() local
4772 rcount = fctl_unlink_remote_port_from_remote_node(rnodep, pd); in fctl_destroy_remote_port()
4791 return (rcount); in fctl_destroy_remote_port()

12