Searched defs:ub (Results 1 - 25 of 25) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Duberblock.c31 uberblock_verify(uberblock_t *ub) argument
33 if (ub->ub_magic == BSWAP_64((uint64_t)UBERBLOCK_MAGIC))
34 byteswap_uint64_array(ub, sizeof (uberblock_t));
36 if (ub->ub_magic != UBERBLOCK_MAGIC)
47 uberblock_update(uberblock_t *ub, vdev_t *rvd, uint64_t txg) argument
49 ASSERT(ub->ub_txg < txg);
55 ub->ub_magic = UBERBLOCK_MAGIC;
56 ub->ub_txg = txg;
57 ub->ub_guid_sum = rvd->vdev_guid_sum;
58 ub
[all...]
H A Dvdev_label.c640 uberblock_t *ub; local
791 ub = zio_buf_alloc(VDEV_UBERBLOCK_RING);
792 bzero(ub, VDEV_UBERBLOCK_RING);
793 *ub = spa->spa_uberblock;
794 ub->ub_txg = 0;
821 vdev_label_write(zio, vd, l, ub,
835 zio_buf_free(ub, VDEV_UBERBLOCK_RING);
900 uberblock_t *ub = zio->io_data; local
905 if (zio->io_error == 0 && uberblock_verify(ub) == 0) {
907 if (ub
951 vdev_uberblock_load(vdev_t *rvd, uberblock_t *ub, nvlist_t **config) argument
1001 vdev_uberblock_sync(zio_t *zio, uberblock_t *ub, vdev_t *vd, int flags) argument
1032 vdev_uberblock_sync_list(vdev_t **svd, int svdcount, uberblock_t *ub, int flags) argument
1197 uberblock_t *ub = &spa->spa_uberblock; local
[all...]
H A Dspa.c2230 uberblock_t *ub = &spa->spa_uberblock; local
2322 vdev_uberblock_load(rvd, ub, &label);
2327 if (ub->ub_txg == 0) {
2335 if (!SPA_VERSION_IS_SUPPORTED(ub->ub_version)) {
2340 if (ub->ub_version >= SPA_VERSION_FEATURES) {
2369 if (ub->ub_version >= SPA_VERSION_FEATURES) {
2404 rvd->vdev_guid_sum != ub->ub_guid_sum)
2425 spa->spa_prev_software_version = ub->ub_software_version;
/illumos-gate/usr/src/lib/libc/port/fp/
H A Ddivdi3.c51 u_longlong_t ua, ub, uq; local
59 ub = -(u_longlong_t)b, neg ^= 1;
61 ub = b;
62 uq = ___qdivrem(ua, ub, (u_longlong_t *)0);
H A Dmoddi3.c53 u_longlong_t ua, ub, ur; local
61 ub = -(u_longlong_t)b;
63 ub = b;
64 (void) ___qdivrem(ua, ub, &ur);
/illumos-gate/usr/src/cmd/sgs/error/common/
H A Derrorfilter.c133 int ub, lb; local
139 for (lb = 0, ub = nignored - 1; ub >= lb; /* NULL */) {
140 halfway = (ub + lb)/2;
144 ub = halfway - 1;
/illumos-gate/usr/src/cmd/acct/
H A Dacctprc2.c54 } * ub; variable in typeref:struct:utab
99 if ((ub = (struct utab *)malloc(sizeof (struct utab))) == NULL) {
104 ub->ut_uid = p->pt_uid;
105 CPYN(ub->ut_name, p->pt_name);
106 ub->ut_cpu[0] = MINT(p->pt_cpu[0]);
107 ub->ut_cpu[1] = MINT(p->pt_cpu[1]);
109 ub->ut_kcore[0] = memk * MINT(p->pt_cpu[0]);
110 ub->ut_kcore[1] = memk * MINT(p->pt_cpu[1]);
111 ub->ut_pc = 1;
113 if (*(pt = (struct utab **)tsearch((void *)ub, (voi
[all...]
H A Dacctprc.c59 } * ub; variable in typeref:struct:utab
125 if ((ub = (struct utab *)malloc(sizeof (struct utab))) == NULL) {
130 ub->ut_uid = p->pt_uid;
131 CPYN(ub->ut_name, p->pt_name);
132 ub->ut_cpu[0] = MINT(p->pt_cpu[0]);
133 ub->ut_cpu[1] = MINT(p->pt_cpu[1]);
135 ub->ut_kcore[0] = memk * MINT(p->pt_cpu[0]);
136 ub->ut_kcore[1] = memk * MINT(p->pt_cpu[1]);
137 ub->ut_pc = 1;
139 if (*(pt = (struct utab **)tsearch((void *)ub, (voi
[all...]
/illumos-gate/usr/src/lib/libast/common/string/
H A Dccmap.c683 register unsigned char* ub; local
689 ub = (unsigned char*)b;
690 ue = ub + n;
692 while (ub < ue)
693 *ub++ = m[*ua++];
/illumos-gate/usr/src/lib/libc/inc/
H A Dlibc_int.h89 void * ub; /* upper bound */ member in struct:__anon2908
/illumos-gate/usr/src/cmd/avs/sdbc/
H A Dsd_stats.c132 int lb, ub; member in struct:__anon30
508 ranges[range_num].ub = sdbc_max_devices - 1;
543 ranges[range_num].ub = number;
572 ranges[range_num].ub = number;
584 ranges[range_num].ub = number;
590 ranges[range_num].ub = number;
H A Dsd_trace.c73 int lb, ub; member in struct:__anon31
256 if (ranges[rnum].ub > cd)
267 return (ranges[range_num].ub);
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/fcoei/
H A Dfcoei_eth.c354 fc_unsol_buf_t *ub; local
365 * Do proper ub initialization
367 ub = (fc_unsol_buf_t *)kmem_zalloc(sizeof (fc_unsol_buf_t), KM_SLEEP);
368 ub->ub_class = FC_TRAN_CLASS3;
369 ub->ub_bufsize = frm->frm_payload_size;
370 ub->ub_buffer = kmem_alloc(frm->frm_payload_size, KM_SLEEP);
371 ub->ub_port_handle = FRM2SS(frm);
372 ub->ub_token = (uint64_t)(long)ub;
379 FCOEI_FRM2FHDR(frm, &ub
[all...]
H A Dfcoei_lv.c429 fc_unsol_buf_t *ub = *((fc_unsol_buf_t **)tokens); local
436 kmem_free(ub->ub_buffer, ub->ub_bufsize);
437 kmem_free(ub, sizeof (fc_unsol_buf_t));
438 FCOEI_EXT_LOG(__FUNCTION__, "ub is freeed");
735 * LV could release ub after this call, so we must save the ub type
/illumos-gate/usr/src/boot/lib/libstand/
H A Dqdivrem.c310 u_quad_t ua, ub, uq; local
318 ub = -(u_quad_t)b, neg ^= 1;
320 ub = b;
321 uq = __qdivrem(ua, ub, (u_quad_t *)0);
335 u_quad_t ua, ub, ur; local
343 ub = -(u_quad_t)b;
345 ub = b;
346 (void)__qdivrem(ua, ub, &ur);
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dmalloc.c1356 uint lb,ub; local
1367 ub = (uint)sbrk(0);
1369 if ((uint)_lbound < lb || (uint)_lbound > ub) {
1374 if ((uint)_ubound < lb || (uint)_ubound > ub) {
/illumos-gate/usr/src/lib/libast/common/comp/
H A Diconv.c269 LPWSTR ub; local
285 ub = 0;
338 ub = (LPWSTR)*fb;
342 else if (!(ub = (LPWSTR)malloc(un * sizeof(WCHAR))))
344 else if (!(un = MultiByteToWideChar(cc->from.index, 0, (LPCSTR)*fb, (int)*fn, (LPWSTR)ub, un)))
351 if (tz = WideCharToMultiByte(cc->to.index, 0, (LPCWSTR)ub, un, *tb, *tn, 0, 0))
365 while (!(fz = MultiByteToWideChar(cc->from.index, 0, (LPCSTR)*fb, (int)bz, (LPWSTR)ub, un)))
368 if (!(tz = WideCharToMultiByte(cc->to.index, 0, (LPCWSTR)ub, fz, *tb, 0, 0, 0)))
386 if (!(tz = WideCharToMultiByte(cc->to.index, 0, (LPCWSTR)ub, fz, *tb, tz, 0, 0)))
395 if (ub !
[all...]
/illumos-gate/usr/src/uts/sun4u/sunfire/io/
H A Dfhc_bd.c116 fhc_shell_sort(fhc_bd_t *a[], int lb, int ub) argument
121 /* sort array a[lb..ub] */
124 n = ub - lb + 1;
137 for (i = lb + h; i <= ub; i++) {
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DSLPConfig.java301 private boolean OKBound(int i, int lb, int ub) { argument
302 if (i < lb || i > ub)
308 int getIntProperty(String prop, int df, int lb, int ub) { argument
312 if (OKBound(i, lb, ub)) {
/illumos-gate/usr/src/uts/common/os/
H A Dbio.c112 struct ufsbiostats ub = { variable in typeref:struct:ufsbiostats
234 ub.ub_breads.value.ul++; /* ufs && !logging */
326 ub.ub_bwrites.value.ul++; /* ufs && !logging */
H A Ddevcfg.c4393 unbind_data_t *ub = (unbind_data_t *)(uintptr_t)arg; local
4407 if ((ddi_driver_major(cdip) != ub->drv_major) ||
4408 (strcmp(DEVI(cdip)->devi_node_name, ub->drv_alias) != 0))
4414 unbind_alias_dev_in_use(cdip, ub->drv_alias);
4415 ub->ndevs_bound++;
4434 unbind_data_t *ub; local
4437 ub = kmem_zalloc(sizeof (*ub), KM_SLEEP);
4438 ub->drv_major = major;
4439 ub
[all...]
/illumos-gate/usr/src/cmd/sa/
H A Dsadp.c218 static int ub = 8; variable
486 ub = dk_ndrive;
494 dfprintf (stderr, "%s: ub %d\n", cmdname, ub);
503 for (k = 0, i = 0; k < ub; k++) {
529 for (k = 0, i = 0; k < ub; k++) {
552 for (k = 0, i = 0; k < ub; k++) {
577 for (k = 0, i = 0; k < ub; k++) {
610 for (k = 0, i = 0; k < ub; k++) {
624 for (k = 0, i = 0; k < ub;
[all...]
/illumos-gate/usr/src/cmd/th_tools/
H A Dth_define.c886 int i, j, k, lb, ub, mina, maxa, cutoff[2], mean; local
1004 for (ub = i; ub < j; ub++)
1005 if (items[ub].repcount > cutoff[0])
1010 ub = j-1;
1019 ub = i;
1026 acnt, mina, maxa, mean, cutoff[0], cutoff[1], lb, ub);
1028 if (ub <= lb)
1031 for (k = ub;
[all...]
/illumos-gate/usr/src/uts/common/c2/
H A Daudit_event.c1403 } ub; member in struct:a
/illumos-gate/usr/src/cmd/zdb/
H A Dzdb.c2029 dump_uberblock(uberblock_t *ub, const char *header, const char *footer) argument
2031 time_t timestamp = ub->ub_timestamp;
2034 (void) printf("\tmagic = %016llx\n", (u_longlong_t)ub->ub_magic);
2035 (void) printf("\tversion = %llu\n", (u_longlong_t)ub->ub_version);
2036 (void) printf("\ttxg = %llu\n", (u_longlong_t)ub->ub_txg);
2037 (void) printf("\tguid_sum = %llu\n", (u_longlong_t)ub->ub_guid_sum);
2039 (u_longlong_t)ub->ub_timestamp, asctime(localtime(&timestamp)));
2042 snprintf_blkptr(blkbuf, sizeof (blkbuf), &ub->ub_rootbp);
2132 uberblock_t *ub = (void *)((char *)lbl + uoff); local
2134 if (uberblock_verify(ub))
[all...]

Completed in 2047 milliseconds