Home
last modified time | relevance | path

Searched refs:sz (Results 251 – 275 of 604) sorted by relevance

1...<<11121314151617181920>>...25

/illumos-gate/usr/src/stand/lib/fs/ufs/
H A Dlufsboot.c309 lufs_alloc_from_logbuf(size_t sz) in lufs_alloc_from_logbuf() argument
318 if ((sz == sizeof (lb_me_t)) && lfreelist) { in lufs_alloc_from_logbuf()
323 if (elogbuffer < logbuf_curptr + sz) { in lufs_alloc_from_logbuf()
335 nsz = roundup(sz, PAGESIZE); in lufs_alloc_from_logbuf()
351 logbuf_curptr += sz; in lufs_alloc_from_logbuf()
352 bzero(tmpaddr, sz); in lufs_alloc_from_logbuf()
/illumos-gate/usr/src/cmd/sendmail/libmilter/
H A Dcomm.c32 smfi_setmaxdatasize(sz) in smfi_setmaxdatasize() argument
33 size_t sz; in smfi_setmaxdatasize()
38 Maxdatasize = sz;
/illumos-gate/usr/src/lib/libsqlite/test/
H A Dbigrow.test199 for {set sz 60} {$sz<1048560} {incr sz $sz} {
205 } "one $sz hi"
/illumos-gate/usr/src/cmd/picl/plugins/common/devtree/
H A Dpicldevtree.c3108 len = snprintf(buf, sz, "%x", *regprop); in encode_default_unitaddr()
3109 for (i = 1; i < addrcells && len < sz; i++) in encode_default_unitaddr()
3112 return ((len >= sz) ? -1 : 0); in encode_default_unitaddr()
3158 retval = (len >= sz) ? -1 : 0; in encode_scsi_unitaddr()
3177 return ((len >= sz) ? -1 : 0); in encode_upa_unitaddr()
3199 len = snprintf(buf, sz, "%x,%x", id, off); in encode_gptwo_jbus_unitaddr()
3201 len = snprintf(buf, sz, "m%x,%x", hi, lo); in encode_gptwo_jbus_unitaddr()
3203 return ((len >= sz) ? -1 : 0); in encode_gptwo_jbus_unitaddr()
3236 len = snprintf(buf, sz, "%x,%x", p->dev, p->fn); in encode_pci_unitaddr()
3238 len = snprintf(buf, sz, "%x", p->dev); in encode_pci_unitaddr()
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_nx.c768 uint32_t i, temp, sz[2], loop, shift_amount; in ql_8021_pci_mem_read_2M() local
801 sz[1] = size - sz[0]; in ql_8021_pci_mem_read_2M()
832 end = (off0[i] + sz[i] - 1) >> 2; in ql_8021_pci_mem_read_2M()
853 ((word[1] & (~(~0ULL << (sz[1] * 8)))) << (sz[0] * 8)); in ql_8021_pci_mem_read_2M()
879 uint32_t i, temp, loop, sz[2]; in ql_8021_pci_mem_write_2M() local
898 sz[1] = size - sz[0]; in ql_8021_pci_mem_write_2M()
943 if (sz[0] == 8) { in ql_8021_pci_mem_write_2M()
950 if (sz[1] != 0) { in ql_8021_pci_mem_write_2M()
952 word[startword + 1] |= tmpw >> (sz[0] * 8); in ql_8021_pci_mem_write_2M()
959 word[1] &= ~(~0ULL << (sz[1] * 8)); in ql_8021_pci_mem_write_2M()
[all …]
/illumos-gate/usr/src/boot/libsa/
H A Ddosfs.c123 #define fatoff(sz, c) ((sz) == 12 ? (c) + ((c) >> 1) : \ argument
124 (sz) == 16 ? (c) << 1 : \
131 #define stclus(sz, de) ((sz) != 32 ? cv2((de)->clus) : \ argument
821 fatend(uint_t sz, uint_t c) in fatend() argument
823 return (c > (sz == 12 ? 0xff7U : sz == 16 ? 0xfff7U : 0xffffff7)); in fatend()
/illumos-gate/usr/src/cmd/mdb/common/modules/nfs/
H A Drfs4.c131 size_t sz = ptrsize + 1 + sizeof (name) + 8 + 5 - 7; in rfs4_tbl_dcmd() local
135 for (i = 0; i < (sz + 1) / 2; i++) in rfs4_tbl_dcmd()
138 for (i = 0; i < sz - (sz + 1) / 2; i++) in rfs4_tbl_dcmd()
143 sz = ptrsize + 5 + 5 - 9; in rfs4_tbl_dcmd()
145 for (i = 0; i < (sz + 1) / 2; i++) in rfs4_tbl_dcmd()
148 for (i = 0; i < sz - (sz + 1) / 2; i++) in rfs4_tbl_dcmd()
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Dgen_struct_layout.c756 int sz; in do_start_sizeof() local
766 if ((sz = (int)ctf_type_size(ctf, stype)) < 0) { in do_start_sizeof()
768 } else if (sz == 0) { in do_start_sizeof()
773 print_row(0, sz, 0, 0, comment); in do_start_sizeof()
779 int rc, off, sz, ftype; in do_scalar_field() local
788 if ((sz = (int)ctf_type_size(ctf, ftype)) < 0) { in do_scalar_field()
790 } else if (sz == 0) { in do_scalar_field()
794 print_row(off, sz, 0, _sign, fname); in do_scalar_field()
/illumos-gate/usr/src/uts/sun4v/io/
H A Dmdesc.c498 size_t sz = mdsp->mdesc_len; in mdesc_ioctl() local
506 size32_t sz32 = (size32_t)sz; in mdesc_ioctl()
513 if (ddi_copyout(&sz, (void *)arg, sizeof (size_t), in mdesc_ioctl()
524 if (ddi_copyout(&sz, (void *)arg, sizeof (size_t), mode) != 0) in mdesc_ioctl()
/illumos-gate/usr/src/cmd/vntsd/
H A Dvntsd.c340 int sz; in main() local
455 sz = strlen(VCC_DEVICE_CTL_PATH) + strlen(vntsdp->devinst) + 1; in main()
456 path = calloc(sz, 1); in main()
461 (void) snprintf(path, sz-1, VCC_DEVICE_CTL_PATH, vntsdp->devinst, in main()
/illumos-gate/usr/src/uts/common/io/mlxcx/
H A Dmlxcx_ring.c45 size_t sz; in mlxcx_wq_alloc_dma() local
71 B_TRUE, sz, B_TRUE); in mlxcx_wq_alloc_dma()
85 sz = sizeof (mlxcx_workq_doorbell_t); in mlxcx_wq_alloc_dma()
87 B_TRUE, sz, B_TRUE); in mlxcx_wq_alloc_dma()
125 size_t sz, i; in mlxcx_cq_alloc_dma() local
138 B_TRUE, sz, B_TRUE); in mlxcx_cq_alloc_dma()
155 B_TRUE, sz, B_TRUE); in mlxcx_cq_alloc_dma()
2275 size_t sz; in mlxcx_bind_or_copy_mblk() local
2279 sz = MBLKL(mp); in mlxcx_bind_or_copy_mblk()
2283 ASSERT3U(off, <, sz); in mlxcx_bind_or_copy_mblk()
[all …]
/illumos-gate/usr/src/cmd/fwflash/plugins/hdrs/
H A Dtavor_ib.h201 #define FLASH_SECTOR_OFFSET(fw, sect, sz) \ argument
202 (caddr_t)((uintptr_t)fw + (sect << sz))
/illumos-gate/usr/src/uts/common/io/audio/impl/
H A Daudio_oss.c1657 int sz; in oss_ioctl() local
1663 sz = OSSIOC_GETSZ(cmd); in oss_ioctl()
1665 if ((cmd & (OSSIOC_IN | OSSIOC_OUT)) && sz) { in oss_ioctl()
1670 sz = 0; in oss_ioctl()
1902 if (sz) { in oss_ioctl()
1903 kmem_free(data, sz); in oss_ioctl()
2176 int sz; in ossmix_ioctl() local
2180 sz = OSSIOC_GETSZ(cmd); in ossmix_ioctl()
2187 sz = 0; in ossmix_ioctl()
2357 if (sz) { in ossmix_ioctl()
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Dtbl_term.c155 term_tbl_len(size_t sz, void *arg) in term_tbl_len() argument
157 return term_len((const struct termp *)arg, sz); in term_tbl_len()
769 size_t i, sz; in tbl_fill_string() local
771 sz = term_strlen(tp, cp); in tbl_fill_string()
772 for (i = 0; i < len; i += sz) in tbl_fill_string()
801 size_t i, sz; in tbl_direct_border() local
804 sz = (*tp->width)(tp, c); in tbl_direct_border()
805 for (i = 0; i < len; i += sz) { in tbl_direct_border()
807 tp->viscol += sz; in tbl_direct_border()
H A Dout.c410 size_t sz; in tblcalc_data() local
417 sz = (*tbl->len)(1, tbl->arg); in tblcalc_data()
418 if (col != NULL && col->width < sz) in tblcalc_data()
419 col->width = sz; in tblcalc_data()
420 return sz; in tblcalc_data()
/illumos-gate/usr/src/cmd/svc/configd/
H A Drc_node.c2671 size_t sz; in perm_add_enabling_values() local
6824 uint32_t sz; in tx_allow_value() local
6842 sz = TX_SIZE(sz); in tx_allow_value()
6882 loc += sz; in tx_allow_value()
6899 uint32_t sz; in tx_modifies_action() local
6913 sz = TX_SIZE(sz); in tx_modifies_action()
6921 loc += sz; in tx_modifies_action()
6937 uint32_t sz; in tx_only_enabled() local
6951 sz = TX_SIZE(sz); in tx_only_enabled()
6959 loc += sz; in tx_only_enabled()
[all …]
/illumos-gate/usr/src/uts/common/rpcsvc/
H A Didmap_prot.x66 % size_t sz;
104 % err = nvlist_pack(*n, &buf, &sz, NV_ENCODE_XDR, 0);
114 % len = (u_int) sz;
/illumos-gate/usr/src/lib/libc/port/gen/
H A Ducred.c75 size_t sz = ucred_size(); in _ucred_alloc() local
77 r = malloc(sz); in _ucred_alloc()
80 r->uc_size = (uint32_t)sz; in _ucred_alloc()
/illumos-gate/usr/src/uts/common/fs/
H A Dpathname.c78 pn_alloc_sz(struct pathname *pnp, size_t sz) in pn_alloc_sz() argument
80 pnp->pn_path = pnp->pn_buf = kmem_alloc(sz, KM_SLEEP); in pn_alloc_sz()
82 pnp->pn_bufsize = sz; in pn_alloc_sz()
/illumos-gate/usr/src/uts/common/io/mii/
H A Dmii.c582 lb_info_sz_t sz; in mii_m_loop_ioctl() local
608 if (iocp->ioc_count != sizeof (sz)) { in mii_m_loop_ioctl()
611 sz = cnt * sizeof (lb_property_t); in mii_m_loop_ioctl()
612 bcopy(&sz, mp->b_cont->b_rptr, sizeof (sz)); in mii_m_loop_ioctl()
657 uint_t sz, void *val) in mii_m_getprop() argument
664 if (sz < 1) in mii_m_getprop()
682 ASSERT(sz >= sizeof (link_duplex_t)); in mii_m_getprop()
688 ASSERT(sz >= sizeof (uint64_t)); in mii_m_getprop()
768 uint_t sz, const void *valp) in mii_m_setprop() argument
778 if (sz < 1) in mii_m_setprop()
[all …]
/illumos-gate/usr/src/cmd/svc/svccfg/
H A Dsvccfg_main.c77 safe_malloc(size_t sz) in safe_malloc() argument
81 if ((p = calloc(1, sz)) == NULL) in safe_malloc()
/illumos-gate/usr/src/uts/common/os/
H A Dcpu_event.c290 size_t sz; in cpu_event_init() local
308 sz = sizeof (cpu_idle_cb_state_t) * max_ncpus; in cpu_event_init()
309 sz += CPU_CACHE_COHERENCE_SIZE; in cpu_event_init()
310 buf = (intptr_t)kmem_zalloc(sz, KM_SLEEP); in cpu_event_init()
826 size_t sz; in cpu_idle_prop_allocate_impl() local
834 sz = sizeof (*valp) * CPU_IDLE_VALUE_GROUP_SIZE * max_ncpus; in cpu_idle_prop_allocate_impl()
835 sz += CPU_CACHE_COHERENCE_SIZE; in cpu_idle_prop_allocate_impl()
836 buf = (intptr_t)kmem_zalloc(sz, KM_SLEEP); in cpu_idle_prop_allocate_impl()
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/
H A Deib_adm.c176 uint_t sz; in eib_adm_setup_cq() local
190 ret = ibt_alloc_cq(ss->ei_hca_hdl, &cq_attr, &chan->ch_cq_hdl, &sz); in eib_adm_setup_cq()
201 chan->ch_cq_sz = sz; in eib_adm_setup_cq()
202 chan->ch_wc = kmem_zalloc(sizeof (ibt_wc_t) * sz, KM_SLEEP); in eib_adm_setup_cq()
H A Deib_ctl.c153 uint_t sz; in eib_ctl_setup_cq() local
168 ret = ibt_alloc_cq(ss->ei_hca_hdl, &cq_attr, &chan->ch_cq_hdl, &sz); in eib_ctl_setup_cq()
179 chan->ch_cq_sz = sz; in eib_ctl_setup_cq()
180 chan->ch_wc = kmem_zalloc(sizeof (ibt_wc_t) * sz, KM_SLEEP); in eib_ctl_setup_cq()
/illumos-gate/usr/src/cmd/msgfmt/
H A Dgnu_check.c38 extract_format(char *norm, const char *sfmt, size_t sz) in extract_format() argument
100 if ((ap * 2 + 1 >= sz) || in extract_format()
126 if ((ap * 2 + 1 >= sz) || in extract_format()
253 if ((arg * 2 + 1 >= sz) || in extract_format()

1...<<11121314151617181920>>...25