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

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Duberblock.c32 uberblock_verify(uberblock_t *ub) argument
34 if (ub->ub_magic == BSWAP_64((uint64_t)UBERBLOCK_MAGIC))
35 byteswap_uint64_array(ub, sizeof (uberblock_t));
37 if (ub->ub_magic != UBERBLOCK_MAGIC)
48 uberblock_update(uberblock_t *ub, vdev_t *rvd, uint64_t txg, uint64_t mmp_delay) argument
50 ASSERT(ub->ub_txg < txg);
56 ub->ub_magic = UBERBLOCK_MAGIC;
57 ub->ub_txg = txg;
58 ub->ub_guid_sum = rvd->vdev_guid_sum;
59 ub
[all...]
H A Dmmp.c416 mmp_update_uberblock(spa_t *spa, uberblock_t *ub) argument
421 mmp->mmp_ub = *ub;
438 uberblock_t *ub; local
509 ub = &mmp->mmp_ub;
510 ub->ub_mmp_magic = MMP_MAGIC;
511 ub->ub_mmp_delay = mmp->mmp_delay;
512 ub->ub_mmp_config = MMP_SEQ_SET(mmp->mmp_seq) |
522 abd_copy_from_buf(ub_abd, ub, sizeof (uberblock_t));
538 * (void) spa_mmp_history_add(spa, ub->ub_txg, ub
[all...]
H A Dvdev_label.c785 uberblock_t *ub; local
941 ub = abd_to_buf(ub_abd);
942 ub->ub_txg = 0;
1034 * If MMP_VALID(ub) && MMP_SEQ_VALID(ub) then the host has an MMP-aware
1037 * If one ub has MMP and the other does not, they were written by
1067 uberblock_t *ub = abd_to_buf(zio->io_abd); local
1072 if (zio->io_error == 0 && uberblock_verify(ub) == 0) {
1074 if (ub->ub_txg <= spa->spa_load_max_txg &&
1075 vdev_uberblock_compare(ub, cb
1118 vdev_uberblock_load(vdev_t *rvd, uberblock_t *ub, nvlist_t **config) argument
1180 vdev_uberblock_sync(zio_t *zio, uint64_t *good_writes, uberblock_t *ub, vdev_t *vd, int flags) argument
1213 vdev_uberblock_sync_list(vdev_t **svd, int svdcount, uberblock_t *ub, int flags) argument
1386 uberblock_t *ub = &spa->spa_uberblock; local
[all...]
H A Dspa.c2425 spa_activity_check_required(spa_t *spa, uberblock_t *ub, nvlist_t *label, argument
2457 if (ub->ub_mmp_magic == MMP_MAGIC && ub->ub_mmp_delay == 0)
2466 if (tryconfig_txg && tryconfig_txg == ub->ub_txg &&
2467 tryconfig_timestamp && tryconfig_timestamp == ub->ub_timestamp &&
2469 (MMP_SEQ_VALID(ub) ? MMP_SEQ(ub) : 0))
2496 spa_activity_check_duration(spa_t *spa, uberblock_t *ub) argument
2515 if (MMP_INTERVAL_VALID(ub) && MMP_FAIL_INT_VALID(ub)
2567 spa_activity_check(spa_t *spa, uberblock_t *ub, nvlist_t *config) argument
2922 spa_ld_select_uberblock_done(spa_t *spa, uberblock_t *ub) argument
2939 uberblock_t *ub = &spa->spa_uberblock; local
[all...]
/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/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/cmd/sgs/error/common/
H A Derrorfilter.c129 int ub, lb; local
135 for (lb = 0, ub = nignored - 1; ub >= lb; /* NULL */) {
136 halfway = (ub + lb)/2;
140 ub = halfway - 1;
/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/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/lib/libc/inc/
H A Dlibc_int.h89 void * ub; /* upper bound */ member in struct:__anon4
/illumos-gate/usr/src/boot/lib/libstand/
H A Dqdivrem.c306 u_quad_t ua, ub, uq; local
314 ub = -(u_quad_t)b, neg ^= 1;
316 ub = b;
317 uq = __udivmoddi4(ua, ub, NULL);
330 u_quad_t ua, ub, ur; local
338 ub = -(u_quad_t)b;
340 ub = b;
341 (void)__udivmoddi4(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.c116 struct ufsbiostats ub = { variable in typeref:struct:ufsbiostats
238 ub.ub_breads.value.ul++; /* ufs && !logging */
330 ub.ub_bwrites.value.ul++; /* ufs && !logging */
H A Ddevcfg.c4394 unbind_data_t *ub = (unbind_data_t *)(uintptr_t)arg; local
4408 if ((ddi_driver_major(cdip) != ub->drv_major) ||
4409 (strcmp(DEVI(cdip)->devi_node_name, ub->drv_alias) != 0))
4415 unbind_alias_dev_in_use(cdip, ub->drv_alias);
4416 ub->ndevs_bound++;
4435 unbind_data_t *ub; local
4438 ub = kmem_zalloc(sizeof (*ub), KM_SLEEP);
4439 ub->drv_major = major;
4440 ub
[all...]
/illumos-gate/usr/src/cmd/th_tools/
H A Dth_define.c879 int i, j, k, lb, ub, mina, maxa, cutoff[2], mean; local
997 for (ub = i; ub < j; ub++)
998 if (items[ub].repcount > cutoff[0])
1003 ub = j-1;
1012 ub = i;
1019 acnt, mina, maxa, mean, cutoff[0], cutoff[1], lb, ub);
1021 if (ub <= lb)
1024 for (k = ub;
[all...]
/illumos-gate/usr/src/uts/common/c2/
H A Daudit_event.c1404 } ub; member in struct:a
/illumos-gate/usr/src/cmd/zdb/
H A Dzdb.c2527 dump_uberblock(uberblock_t *ub, const char *header, const char *footer) argument
2529 time_t timestamp = ub->ub_timestamp;
2532 (void) printf("\tmagic = %016llx\n", (u_longlong_t)ub->ub_magic);
2533 (void) printf("\tversion = %llu\n", (u_longlong_t)ub->ub_version);
2534 (void) printf("\ttxg = %llu\n", (u_longlong_t)ub->ub_txg);
2535 (void) printf("\tguid_sum = %llu\n", (u_longlong_t)ub->ub_guid_sum);
2537 (u_longlong_t)ub->ub_timestamp, asctime(localtime(&timestamp)));
2540 (u_longlong_t)ub->ub_mmp_magic);
2541 if (MMP_VALID(ub)) {
2543 (u_longlong_t)ub
2652 uberblock_t *ub = (void *)((char *)lbl + uoff); local
[all...]

Completed in 794 milliseconds