/illumos-gate/usr/src/boot/libsa/ |
H A D | read.c | 97 size_t ccount, cresid; in read() local 99 ccount = imin(f->f_ralen, resid); in read() 100 if (ccount > 0) { in read() 101 bcopy(f->f_rabuf + f->f_raoffset, dest, ccount); in read() 102 f->f_raoffset += ccount; in read() 103 f->f_ralen -= ccount; in read() 104 resid -= ccount; in read() 107 dest = (char *)dest + ccount; in read()
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | glue5.c | 126 int ccount; in execute() local 130 ccount = instr ? inct : 0; in execute() 137 fprintf(stderr, "in execute ccount %d inct %d\n", ccount, inct); in execute() 143 if (--ccount <= 0) { in execute() 145 fprintf(stderr, "ex loop ccount %d instr %o\n", ccount, instr); in execute() 150 if ((ccount = read(f, p, in execute() 153 } else if ((ccount = read(f, p, BUFSIZ)) <= 0) break; in execute() 155 fprintf(stderr, " normal read %d bytres\n", ccount); in execute() 158 sprintf(xx, "they are %%.%ds\n", ccount); in execute() 194 p, nlp, ccount, buf, buf+2*BUFSIZ); in execute() [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/amd_iommu/ |
H A D | amd_iommu_impl.c | 70 ddi_dma_cookie_t *cookie_array, uint_t ccount, int ncookies, int locked); 1494 struct ddi_dma_req *dmareq, ddi_dma_cookie_t *cookie_array, uint_t ccount, in map_current_window() argument 1521 for (i = 0; i < ccount; i++) { in map_current_window() 1532 if (i != ccount) { in map_current_window() 1536 ccount, i, 1); in map_current_window() 1554 ddi_dma_cookie_t *cookie_array, uint_t ccount, int ncookies, int locked) in unmap_current_window() argument 1578 ncookies = ccount; in unmap_current_window() 1623 uint_t ccount = 0; in amd_iommu_bindhdl() local 1656 ccount = 0; in amd_iommu_bindhdl() 1658 &cookie_array, &ccount)) != DDI_SUCCESS) { in amd_iommu_bindhdl() [all …]
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | ldc.h | 187 uint8_t mtype, uint8_t perm, ldc_mem_cookie_t *cookie, uint32_t *ccount); 192 ldc_mem_cookie_t *cookies, uint32_t ccount, uint8_t direction); 196 uint32_t ccount, uint8_t mtype, uint8_t perm, caddr_t *vaddr, 206 uint8_t mtype, uint8_t perm, ldc_mem_cookie_t *dcookie, uint32_t *ccount); 212 uint32_t ccount, uint32_t len, uint32_t dsize, uint8_t mtype,
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | ldc_shm.c | 73 uint32_t ccount, uint8_t mtype, uint8_t perm, caddr_t *vaddr, 77 uint32_t *ccount); 331 uint8_t mtype, uint8_t perm, ldc_mem_cookie_t *cookie, uint32_t *ccount) in ldc_mem_bind_handle() argument 341 cookie, ccount)); in ldc_mem_bind_handle() 346 uint8_t mtype, uint8_t perm, ldc_mem_cookie_t *cookie, uint32_t *ccount) in i_ldc_mem_bind_handle() argument 371 *ccount = 0; in i_ldc_mem_bind_handle() 556 *ccount = 0; in i_ldc_mem_bind_handle() 654 *ccount = memseg->ncookies; in i_ldc_mem_bind_handle() 863 ldc_mem_cookie_t *cookies, uint32_t ccount, uint8_t direction) in ldc_mem_copy() argument 901 for (i = 0; i < ccount; i++) in ldc_mem_copy() [all …]
|
/illumos-gate/usr/src/uts/common/io/1394/targets/scsa1394/ |
H A D | hba.c | 1521 uint_t ccount; in scsa1394_cmd_buf_dma_alloc() local 1549 callback, arg, &dmac, &ccount); in scsa1394_cmd_buf_dma_alloc() 1565 &cmd->sc_win_offset, &cmd->sc_win_len, &dmac, &ccount) != in scsa1394_cmd_buf_dma_alloc() 1597 if ((ccount == 1) && (dmac.dmac_size <= SBP2_PT_SEGSIZE_MAX) && in scsa1394_cmd_buf_dma_alloc() 1606 if (scsa1394_cmd_dmac2seg(sp, cmd, &dmac, ccount, kf) != in scsa1394_cmd_buf_dma_alloc() 1653 ddi_dma_cookie_t *dmac, uint_t ccount, int kf) in scsa1394_cmd_dmac2seg() argument 1668 nsegs = max(ccount, cmd->sc_win_len / SBP2_PT_SEGSIZE_MAX) * 2; in scsa1394_cmd_dmac2seg() 1692 i = ccount; in scsa1394_cmd_dmac2seg() 1702 cmd->sc_buf_nsegs_alloc + ccount, in scsa1394_cmd_dmac2seg() 1706 cmd->sc_buf_nsegs_alloc += ccount; in scsa1394_cmd_dmac2seg() [all …]
|
H A D | sbp2_bus.c | 319 uint_t ccount; /* cookie count */ in scsa1394_bus_alloc_buf_phys() local 347 &cookie, &ccount) != DDI_DMA_MAPPED) { in scsa1394_bus_alloc_buf_phys() 353 ASSERT(ccount == 1); in scsa1394_bus_alloc_buf_phys()
|
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/ |
H A D | zfssubr.c | 525 uint64_t *p, *src, pcount __attribute__((unused)), ccount, i; in vdev_raidz_generate_parity_p() local 533 ccount = rm->rm_col[c].rc_size / sizeof (src[0]); in vdev_raidz_generate_parity_p() 536 ASSERT(ccount == pcount); in vdev_raidz_generate_parity_p() 537 for (i = 0; i < ccount; i++, src++, p++) { in vdev_raidz_generate_parity_p() 541 ASSERT(ccount <= pcount); in vdev_raidz_generate_parity_p() 542 for (i = 0; i < ccount; i++, src++, p++) { in vdev_raidz_generate_parity_p() 968 uint64_t ccount; in vdev_raidz_matrix_reconstruct() local 1002 ccount = rm->rm_col[c].rc_size; in vdev_raidz_matrix_reconstruct() 1013 ASSERT(ccount >= rm->rm_col[missing[0]].rc_size || i > 0); in vdev_raidz_matrix_reconstruct() 1015 for (x = 0; x < ccount; x++, src++) { in vdev_raidz_matrix_reconstruct()
|
/illumos-gate/usr/src/uts/common/io/bnx/ |
H A D | bnxsnd.c | 77 uint_t ccount; in bnx_xmit_frag_map() local 88 &cookie, &ccount); in bnx_xmit_frag_map() 102 if (fraglist->cnt + ccount > BNX_MAX_SGL_ENTRIES) { in bnx_xmit_frag_map() 110 fraglist->cnt += ccount; in bnx_xmit_frag_map() 112 for (i = 0; i < ccount-1; i++) { in bnx_xmit_frag_map()
|
/illumos-gate/usr/src/cmd/sgs/lex/common/ |
H A D | sub1.c | 364 cindex[i] = ccount; in cclinter() 373 ccount++; in cclinter() 386 cindex[k] = ccount; in cclinter() 392 ccount++; in cclinter()
|
H A D | once.h | 79 int ccount = 1; variable
|
H A D | ldefs.h | 229 extern int ccount;
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | uustat.c | 52 int ccount, xcount; member 402 m->ccount++; in main() 912 m->c_age= m->x_age= m->lasttime= m->locked= m->ccount= m->xcount= 0; 926 if (m->ccount == 0 935 if (m->ccount) 936 printf("%3dC", m->ccount);
|
/illumos-gate/usr/src/uts/common/io/usb/hcd/ehci/ |
H A D | ehci_isoch_util.c | 176 uint_t ccount; in ehci_allocate_isoc_pools() local 232 &ccount); in ehci_allocate_isoc_pools() 240 if (ccount != 1) { in ehci_allocate_isoc_pools() 354 uint_t ccount; /* Cookie count */ in ehci_allocate_itw() local 431 &ccount); in ehci_allocate_itw() 435 if (ccount != 1) { in ehci_allocate_itw()
|
H A D | ehci_util.c | 395 uint_t ccount; in ehci_allocate_pools() local 441 &ccount); in ehci_allocate_pools() 449 if (ccount != 1) { in ehci_allocate_pools() 511 &ccount); in ehci_allocate_pools() 519 if (ccount != 1) { in ehci_allocate_pools() 1525 uint_t ccount; in ehci_init_periodic_frame_lst_table() local 1565 DDI_DMA_SLEEP, NULL, &ehcip->ehci_pflt_cookie, &ccount); in ehci_init_periodic_frame_lst_table() 1569 if (ccount != 1) { in ehci_init_periodic_frame_lst_table()
|
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | chkey.c | 159 int mcount, ccount = 0; in encryptkeys() local 171 ccount++; in encryptkeys() 189 ccount++; in encryptkeys() 192 if (!ccount) { in encryptkeys()
|
/illumos-gate/usr/src/uts/intel/sys/ |
H A D | iommulib.h | 154 ddi_dma_cookie_t *cookiep, uint_t ccount); 287 ddi_dma_cookie_t *cookiep, uint_t ccount);
|
/illumos-gate/usr/src/uts/common/io/usb/hcd/uhci/ |
H A D | uhcipolled.c | 847 uint_t result, ccount; in uhci_polled_create_tw() local 888 DDI_DMA_DONTWAIT, NULL, &tw->tw_cookie, &ccount)) != in uhci_polled_create_tw() 898 if (ccount != 1) { in uhci_polled_create_tw()
|
H A D | uhciutil.c | 230 uint_t ccount; in uhci_allocate_pools() local 262 NULL, &uhcip->uhci_td_pool_cookie, &ccount); in uhci_allocate_pools() 270 if (ccount != 1) { in uhci_allocate_pools() 312 &uhcip->uhci_qh_pool_cookie, &ccount); in uhci_allocate_pools() 317 if (ccount != 1) { in uhci_allocate_pools() 844 uint_t ccount; in uhci_init_frame_lst_table() local 883 &uhcip->uhci_flt_cookie, &ccount); in uhci_init_frame_lst_table() 887 if (ccount != 1) { in uhci_init_frame_lst_table() 3113 uint_t ccount, num; in uhci_alloc_memory_for_tds() local 3197 &td_pool_ptr1->cookie, &ccount); in uhci_alloc_memory_for_tds() [all …]
|
/illumos-gate/usr/src/cmd/tip/ |
H A D | cmds.c | 294 int c, ccount, lcount; in transmit() local 338 ccount = 0; in transmit() 352 while ((++ccount % 8) != 0) in transmit()
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_sge.c | 1722 uint_t ccount; in alloc_dma_memory() local 1751 NULL, &cookie, &ccount); in alloc_dma_memory() 1757 if (ccount != 1) { in alloc_dma_memory() 2298 uint_t ccount = 0; in add_mblk() local 2311 &ccount); in add_mblk() 2320 if (ccount + txinfo->nsegs > TX_SGL_SEGS) { in add_mblk() 2326 while (--ccount) { in add_mblk() 3639 uint_t ccount = 0; in rxbuf_ctor() local 3661 DDI_DMA_READ | DDI_DMA_STREAMING, NULL, NULL, &cookie, &ccount); in rxbuf_ctor() 3672 if (ccount != 1) { in rxbuf_ctor()
|
/illumos-gate/usr/src/uts/common/io/efe/ |
H A D | efe.c | 1151 uint_t ccount; in efe_ring_alloc() local 1173 NULL, &rp->r_dmac, &ccount) != DDI_DMA_MAPPED) { in efe_ring_alloc() 1230 uint_t ccount; in efe_buf_alloc() local 1250 &bp->b_dmac, &ccount) != DDI_DMA_MAPPED) { in efe_buf_alloc()
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | rootnex.c | 234 ddi_dma_cookie_t *cookiep, uint_t ccount); 2448 ddi_dma_cookie_t *cookiep, uint_t ccount) in rootnex_coredma_set_cookies() argument 2456 ASSERT(ccount != 0); in rootnex_coredma_set_cookies() 2463 ASSERT(ccount == window->wd_cookie_cnt); in rootnex_coredma_set_cookies() 2469 ASSERT(ccount == dma->dp_sglinfo.si_sgl_size); in rootnex_coredma_set_cookies() 2489 uint_t ccount; in rootnex_coredma_clear_cookies() local 2502 ccount = window->wd_cookie_cnt; in rootnex_coredma_clear_cookies() 2509 ccount = dma->dp_sglinfo.si_sgl_size; in rootnex_coredma_clear_cookies() 2514 kmem_free(cookie_array, sizeof (ddi_dma_cookie_t) * ccount); in rootnex_coredma_clear_cookies()
|
/illumos-gate/usr/src/cmd/ed/ |
H A D | ed.c | 352 static long ccount; variable 1430 ccount = count; in getfile() 1434 count = ccount; in getfile() 1456 ccount = count; in putfile() 1459 count = ccount; in putfile()
|
/illumos-gate/usr/src/uts/common/io/usb/hcd/openhci/ |
H A D | ohci.c | 954 uint_t ccount; in ohci_allocate_pools() local 1000 &ccount); in ohci_allocate_pools() 1008 if (ccount != 1) { in ohci_allocate_pools() 1068 &ccount); in ohci_allocate_pools() 1076 if (ccount != 1) { in ohci_allocate_pools() 1707 uint_t mask, ccount; in ohci_init_hcca() local 1791 &ccount); in ohci_init_hcca() 1795 if (ccount != 1) { in ohci_init_hcca() 7005 uint_t ccount; in ohci_create_isoc_transfer_wrapper() local 7145 &tw->tw_isoc_bufs[i].cookie, &ccount); in ohci_create_isoc_transfer_wrapper() [all …]
|