Home
last modified time | relevance | path

Searched refs:cbp (Results 1 – 25 of 56) sorted by relevance

123

/titanic_41/usr/src/uts/common/io/cardbus/
H A Dcardbus_hp.c93 static int cardbus_configure_ap(cbus_t *cbp);
94 static int cardbus_unconfigure_ap(cbus_t *cbp);
100 cardbus_init_hotplug(cbus_t *cbp) in cardbus_init_hotplug() argument
110 if (hpc_nexus_register_bus(cbp->cb_dip, in cardbus_init_hotplug()
113 ddi_driver_name(cbp->cb_dip), cbp->cb_instance); in cardbus_init_hotplug()
117 (void) sprintf(cbp->ap_id, "slot%d", cbp->cb_instance); in cardbus_init_hotplug()
118 (void) ddi_pathname(cbp->cb_dip, tbuf); in cardbus_init_hotplug()
119 cbp->nexus_path = kmem_alloc(strlen(tbuf) + 1, KM_SLEEP); in cardbus_init_hotplug()
120 (void) strcpy(cbp->nexus_path, tbuf); in cardbus_init_hotplug()
121 cardbus_err(cbp->cb_dip, 8, in cardbus_init_hotplug()
[all …]
H A Dcardbus.c143 static int cardbus_parse_devprop(cbus_t *cbp, char *cp);
144 static void cardbus_device_props(cbus_t *cbp);
412 cbus_t *cbp; in cardbus_attach() local
444 cbp = (cbus_t *)ddi_get_soft_state(cardbus_state, cb_instance); in cardbus_attach()
445 cbp->cb_instance = cb_instance; in cardbus_attach()
446 cbp->cb_dip = dip; in cardbus_attach()
447 mutex_init(&cbp->cb_mutex, NULL, MUTEX_DRIVER, NULL); in cardbus_attach()
464 cbp->cb_nex_ops = nex_ops; in cardbus_attach()
468 cbp->orig_dopsp = devi->devi_ops; in cardbus_attach()
469 cbp->orig_bopsp = devi->devi_ops->devo_bus_ops; in cardbus_attach()
[all …]
H A Dcardbus_cfg.c330 cardbus_configure(cbus_t *cbp) in cardbus_configure() argument
336 cardbus_err(cbp->cb_dip, 6, "cardbus_configure ()\n"); in cardbus_configure()
338 bus = cardbus_primary_busno(cbp->cb_dip); in cardbus_configure()
340 if (ndi_devi_alloc(cbp->cb_dip, DEVI_PSEUDO_NEXNAME, in cardbus_configure()
343 cardbus_err(cbp->cb_dip, 1, in cardbus_configure()
353 cardbus_err(cbp->cb_dip, 1, in cardbus_configure()
365 split_addr(ddi_get_name_addr(cbp->cb_dip), &cardbus_dev, &func); in cardbus_configure()
370 switch (cardbus_probe_bridge(cbp, attach_point, in cardbus_configure()
373 cardbus_err(cbp->cb_dip, 4, in cardbus_configure()
378 cardbus_err(cbp->cb_dip, 4, in cardbus_configure()
[all …]
H A Dcardbus_cfg.h55 extern int cardbus_configure(cbus_t *cbp);
56 extern int cardbus_unconfigure(cbus_t *cbp);
/titanic_41/usr/src/uts/common/fs/nfs/
H A Dnfs4_srv_deleg.c167 rfs4_cbinfo_free(rfs4_cbinfo_t *cbp) in rfs4_cbinfo_free() argument
169 char *addr = cbp->cb_callback.cb_location.r_addr; in rfs4_cbinfo_free()
170 char *netid = cbp->cb_callback.cb_location.r_netid; in rfs4_cbinfo_free()
179 addr = cbp->cb_newer.cb_callback.cb_location.r_addr; in rfs4_cbinfo_free()
180 netid = cbp->cb_newer.cb_callback.cb_location.r_netid; in rfs4_cbinfo_free()
187 if (cbp->cb_chc_free) { in rfs4_cbinfo_free()
188 rfs4_cb_chflush(cbp); in rfs4_cbinfo_free()
206 rfs4_cbinfo_t *cbp = &cp->rc_cbinfo; in rfs4_do_cb_null() local
208 mutex_enter(cbp->cb_lock); in rfs4_do_cb_null()
210 if (cbp->cb_nullcaller == TRUE) { in rfs4_do_cb_null()
[all …]
/titanic_41/usr/src/cmd/refer/
H A Dmkey3.c27 static char *cbp; variable
51 cbp = cbuf; in cominit()
53 if (fgets(cbp, 15, f) == NULL) in cominit()
55 trimnl(cbp); in cominit()
56 c_look(cbp, 0); in cominit()
57 while (*cbp++) in cominit()
/titanic_41/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_fhistory.c733 ndmpd_fhpath_v3_cb(lbr_fhlog_call_backs_t *cbp, char *path, struct stat64 *stp, in ndmpd_fhpath_v3_cb() argument
740 if (!cbp) { in ndmpd_fhpath_v3_cb()
743 } else if (!cbp->fh_cookie) { in ndmpd_fhpath_v3_cb()
749 } else if (!(nlp = ndmp_get_nlp(cbp->fh_cookie))) { in ndmpd_fhpath_v3_cb()
767 params = get_params(cbp->fh_cookie); in ndmpd_fhpath_v3_cb()
774 if ((err = ndmpd_api_file_history_file_v3(cbp-> in ndmpd_fhpath_v3_cb()
790 ndmpd_fhdir_v3_cb(lbr_fhlog_call_backs_t *cbp, char *dir, struct stat64 *stp) in ndmpd_fhdir_v3_cb() argument
802 if (!cbp) { in ndmpd_fhdir_v3_cb()
805 } else if (!cbp->fh_cookie) { in ndmpd_fhdir_v3_cb()
811 } else if (!(nlp = ndmp_get_nlp(cbp->fh_cookie))) { in ndmpd_fhdir_v3_cb()
[all …]
/titanic_41/usr/src/lib/libzfs/common/
H A Dlibzfs_util.c841 zprop_print_headers(zprop_get_cbdata_t *cbp, zfs_type_t type) in zprop_print_headers() argument
843 zprop_list_t *pl = cbp->cb_proplist; in zprop_print_headers()
848 cbp->cb_first = B_FALSE; in zprop_print_headers()
849 if (cbp->cb_scripted) in zprop_print_headers()
855 cbp->cb_colwidths[GET_COL_NAME] = strlen(dgettext(TEXT_DOMAIN, "NAME")); in zprop_print_headers()
856 cbp->cb_colwidths[GET_COL_PROPERTY] = strlen(dgettext(TEXT_DOMAIN, in zprop_print_headers()
858 cbp->cb_colwidths[GET_COL_VALUE] = strlen(dgettext(TEXT_DOMAIN, in zprop_print_headers()
860 cbp->cb_colwidths[GET_COL_RECVD] = strlen(dgettext(TEXT_DOMAIN, in zprop_print_headers()
862 cbp->cb_colwidths[GET_COL_SOURCE] = strlen(dgettext(TEXT_DOMAIN, in zprop_print_headers()
866 assert(cbp->cb_proplist->pl_prop == in zprop_print_headers()
[all …]
H A Dlibzfs_mount.c987 libzfs_add_handle(get_all_cb_t *cbp, zfs_handle_t *zhp) in libzfs_add_handle() argument
989 if (cbp->cb_alloc == cbp->cb_used) { in libzfs_add_handle()
993 newsz = cbp->cb_alloc ? cbp->cb_alloc * 2 : 64; in libzfs_add_handle()
995 cbp->cb_handles, cbp->cb_alloc * sizeof (void *), in libzfs_add_handle()
997 cbp->cb_handles = ptr; in libzfs_add_handle()
998 cbp->cb_alloc = newsz; in libzfs_add_handle()
1000 cbp->cb_handles[cbp->cb_used++] = zhp; in libzfs_add_handle()
1006 get_all_cb_t *cbp = data; in mount_cb() local
1029 libzfs_add_handle(cbp, zhp); in mount_cb()
1030 if (zfs_iter_filesystems(zhp, mount_cb, cbp) != 0) { in mount_cb()
/titanic_41/usr/src/uts/common/io/sbp2/
H A Dcfgrom.c227 sbp2_cfgrom_read_bib(sbp2_tgt_t *tp, void *cmd, sbp2_cfgrom_bib_t *cbp) in sbp2_cfgrom_read_bib() argument
239 cbp->cb_len = (val >> 24); in sbp2_cfgrom_read_bib()
240 if (cbp->cb_len < 1) { in sbp2_cfgrom_read_bib()
243 cbp->cb_buf = kmem_zalloc(cbp->cb_len * 4, KM_SLEEP); in sbp2_cfgrom_read_bib()
246 for (i = 0; i < cbp->cb_len; i++, addr += 4) { in sbp2_cfgrom_read_bib()
247 SBP2_CFGROM_RQ(tp, cmd, addr, &cbp->cb_buf[i]); in sbp2_cfgrom_read_bib()
251 sbp2_cfgrom_free_bib(tp, cbp); in sbp2_cfgrom_read_bib()
258 sbp2_cfgrom_free_bib(sbp2_tgt_t *tp, sbp2_cfgrom_bib_t *cbp) in sbp2_cfgrom_free_bib() argument
260 if ((cbp->cb_buf != NULL) && (cbp->cb_len > 0)) { in sbp2_cfgrom_free_bib()
261 kmem_free(cbp->cb_buf, cbp->cb_len * 4); in sbp2_cfgrom_free_bib()
[all …]
/titanic_41/usr/src/psm/stand/cpr/sparcv9/sun4u/
H A Dutil.c387 struct cb_props *cbp; in cb_get_props() local
399 for (cbp = cpu_data; cbp->prop; cbp++) { in cb_get_props()
400 if (get_intprop(node, cbp->prop, cbp->datap)) { in cb_get_props()
403 prog, node, cbp->prop); in cb_get_props()
407 cbp->prop, *cbp->datap)); in cb_get_props()
/titanic_41/usr/src/cmd/ndmpd/tlm/
H A Dtlm_lib.c495 lbr_fhlog_call_backs_t *cbp; /* callbacks pointer */ in tlm_log_fhdir() local
504 } else if ((cbp = (lbr_fhlog_call_backs_t *)job_stats->js_callbacks) in tlm_log_fhdir()
507 } else if (cbp->fh_log_dir == NULL) { in tlm_log_fhdir()
510 rv = (*cbp->fh_log_dir)(cbp, dir, stp, fhp); in tlm_log_fhdir()
523 lbr_fhlog_call_backs_t *cbp; /* callbacks pointer */ in tlm_log_fhnode() local
534 } else if ((cbp = (lbr_fhlog_call_backs_t *)job_stats->js_callbacks) in tlm_log_fhnode()
537 } else if (cbp->fh_log_node == NULL) { in tlm_log_fhnode()
540 rv = (*cbp->fh_log_node)(cbp, dir, file, stp, off); in tlm_log_fhnode()
553 lbr_fhlog_call_backs_t *cbp; /* callbacks pointer */ in tlm_log_fhpath_name() local
562 } else if ((cbp = (lbr_fhlog_call_backs_t *)job_stats->js_callbacks) in tlm_log_fhpath_name()
[all …]
/titanic_41/usr/src/cmd/zoneadm/
H A Dzfs.c82 zfs_mount_data_t *cbp; in match_mountpoint() local
104 cbp = (zfs_mount_data_t *)data; in match_mountpoint()
120 if (strcmp(entry.mnt_mountp, cbp->match_name) in match_mountpoint()
123 cbp->match_handle = zhp; in match_mountpoint()
131 } else if (strcmp(mp, cbp->match_name) == 0) { in match_mountpoint()
132 cbp->match_handle = zhp; in match_mountpoint()
230 zfs_snapshot_data_t *cbp; in get_snap_max() local
237 cbp = (zfs_snapshot_data_t *)data; in get_snap_max()
239 if (strncmp(zfs_get_name(zhp), cbp->match_name, cbp->len) == 0) { in get_snap_max()
243 cbp->num++; in get_snap_max()
[all …]
/titanic_41/usr/src/uts/common/os/
H A Daio.c905 aiocb_t *cbp, **ucbp; in aiosuspend() local
988 if ((cbp = *ucbp++) == NULL) in aiosuspend()
992 &cbp->aio_resultp); in aiosuspend()
994 cbp64 = (aiocb64_32_t *)cbp; in aiosuspend()
1155 aio_req_assoc_port_rw(port_notify_t *pntfy, aiocb_t *cbp, in aio_req_assoc_port_rw() argument
1169 port_init_event(pkevp, (uintptr_t)cbp, pntfy->portnfy_user, in aio_req_assoc_port_rw()
1210 aiocb_t *cbp; in alio() local
1323 cbp = *ucbp; in alio()
1325 if (cbp == NULL || copyin(cbp, aiocb, sizeof (*aiocb))) { in alio()
1338 cbp = NULL; in alio()
[all …]
H A Dddi.c997 callbparams_t *cbp; in qtimeout() local
1007 cbp = callbparams_alloc(sq, func, arg, KM_NOSLEEP | KM_PANIC); in qtimeout()
1013 cbp->cbp_flags = SQ_CANCEL_TOUT; in qtimeout()
1015 tid = timeout(qcallbwrapper, cbp, tim); in qtimeout()
1016 cbp->cbp_id = (callbparams_id_t)tid; in qtimeout()
1026 callbparams_t *cbp; in qbufcall() local
1034 cbp = callbparams_alloc(sq, func, arg, KM_NOSLEEP); in qbufcall()
1035 if (cbp == NULL) in qbufcall()
1043 cbp->cbp_flags = SQ_CANCEL_BUFCALL; in qbufcall()
1045 bid = bufcall(size, pri, qcallbwrapper, cbp); in qbufcall()
[all …]
/titanic_41/usr/src/lib/libipmi/common/
H A Dipmi_user.c273 ipmi_user_cb_t *cbp = data; in ipmi_user_callback() local
275 if (cbp->uic_result != NULL) in ipmi_user_callback()
279 if (strcmp(up->iu_name, cbp->uic_name) == 0) in ipmi_user_callback()
280 cbp->uic_result = up; in ipmi_user_callback()
281 } else if (up->iu_uid == cbp->uic_uid) { in ipmi_user_callback()
282 cbp->uic_result = up; in ipmi_user_callback()
/titanic_41/usr/src/lib/smhba/common/
H A DSMHBAAPILIB.c501 HBA_ADAPTERCALLBACK_ELEM *cbp; in local_remove_callback() local
524 for (cbp = **listp; cbp != NULL; cbp = cbp->next) { in local_remove_callback()
525 if (cbhandle != (HBA_CALLBACKHANDLE)cbp) { in local_remove_callback()
526 lastp = &(cbp->next); in local_remove_callback()
531 FUNCCOMMON(cbp->lib_info, RemoveCallbackHandler); in local_remove_callback()
535 (registeredfunc)(cbp->vendorcbhandle); in local_remove_callback()
536 *lastp = cbp->next; in local_remove_callback()
537 free(cbp); in local_remove_callback()
1656 HBA_ALLADAPTERSCALLBACK_ELEM *cbp; in adapteraddevents_callback() local
1661 for (cbp = _hbaapi_adapteraddevents_callback_list; in adapteraddevents_callback()
[all …]
/titanic_41/usr/src/uts/common/io/
H A Ddedump.c129 struct cmdblk *cbp = (struct cmdblk *)mp->b_rptr; in dedump_cmdblk() local
131 (void) printf("%s cmd %x cred %p len %u error %d\n", hdr, cbp->cb_cmd, in dedump_cmdblk()
132 (void *)cbp->cb_cr, cbp->cb_len, cbp->cb_error); in dedump_cmdblk()
/titanic_41/usr/src/lib/hbaapi/common/
H A DHBAAPILIB.c388 HBA_ADAPTERCALLBACK_ELEM *cbp; in local_remove_callback() local
405 for(cbp=**listp; cbp != NULL; cbp = cbp->next) { in local_remove_callback()
406 if(cbhandle != (HBA_CALLBACKHANDLE)cbp) { in local_remove_callback()
407 lastp = &(cbp->next); in local_remove_callback()
411 registeredfunc = cbp->lib_info->functionTable.RemoveCallbackHandler; in local_remove_callback()
415 (registeredfunc)(cbp->vendorcbhandle); in local_remove_callback()
416 *lastp = cbp->next; in local_remove_callback()
417 free(cbp); in local_remove_callback()
1340 HBA_ALLADAPTERSCALLBACK_ELEM *cbp; in adapteraddevents_callback() local
1345 for(cbp = _hbaapi_adapteraddevents_callback_list; in adapteraddevents_callback()
[all …]
/titanic_41/usr/src/cmd/fm/modules/common/zfs-retire/
H A Dzfs_retire.c78 find_cbdata_t *cbp = data; in find_pool() local
80 if (cbp->cb_guid == in find_pool()
82 cbp->cb_zhp = zhp; in find_pool()
176 find_cbdata_t *cbp = data; in search_pool() local
187 if ((cbp->cb_vdev = find_vdev(zpool_get_handle(zhp), nvroot, in search_pool()
188 cbp->cb_fru, 0)) != NULL) { in search_pool()
189 cbp->cb_zhp = zhp; in search_pool()
/titanic_41/usr/src/lib/libshare/common/
H A Dlibshare_zfs.c128 get_all_cbdata_t *cbp = data; in get_one_filesystem() local
143 if ((type & cbp->cb_types) == 0) { in get_one_filesystem()
148 if (cbp->cb_alloc == cbp->cb_used) { in get_one_filesystem()
151 if (cbp->cb_alloc == 0) in get_one_filesystem()
152 cbp->cb_alloc = 64; in get_one_filesystem()
154 cbp->cb_alloc *= 2; in get_one_filesystem()
157 cbp->cb_alloc * sizeof (void *)); in get_one_filesystem()
163 if (cbp->cb_handles) { in get_one_filesystem()
164 bcopy(cbp->cb_handles, handles, in get_one_filesystem()
165 cbp->cb_used * sizeof (void *)); in get_one_filesystem()
[all …]
/titanic_41/usr/src/cmd/zfs/
H A Dzfs_main.c970 destroy_cbdata_t *cbp = data; in destroy_check_dependent() local
971 const char *tname = zfs_get_name(cbp->cb_target); in destroy_check_dependent()
980 if (cbp->cb_recurse) in destroy_check_dependent()
983 if (cbp->cb_first) { in destroy_check_dependent()
986 zfs_get_name(cbp->cb_target), in destroy_check_dependent()
987 zfs_type_to_name(zfs_get_type(cbp->cb_target))); in destroy_check_dependent()
990 cbp->cb_first = B_FALSE; in destroy_check_dependent()
991 cbp->cb_error = B_TRUE; in destroy_check_dependent()
1000 if (!cbp->cb_recurse && in destroy_check_dependent()
1001 zfs_get_type(cbp->cb_target) != ZFS_TYPE_SNAPSHOT) in destroy_check_dependent()
[all …]
/titanic_41/usr/src/cmd/zpool/
H A Dzpool_main.c1150 spare_cbdata_t *cbp = data; in find_spare() local
1157 if (find_vdev(nvroot, cbp->cb_guid)) { in find_spare()
1158 cbp->cb_zhp = zhp; in find_spare()
2905 list_cbdata_t *cbp = data; in list_callback() local
2911 print_pool(zhp, cbp); in list_callback()
2912 if (!cbp->cb_verbose) in list_callback()
2917 print_list_stats(zhp, NULL, nvroot, cbp, 0); in list_callback()
3993 status_cbdata_t *cbp = data; in status_callback() local
4004 cbp->cb_count++; in status_callback()
4010 if (cbp->cb_explain && in status_callback()
[all …]
/titanic_41/usr/src/lib/libcpc/common/
H A Dlibcpc.c394 cpc_buf_t *cbp, *prev; in cpc_buf_destroy() local
401 for (cbp = prev = cpc->cpc_bufs; cbp != NULL; cbp = cbp->cb_next) { in cpc_buf_destroy()
402 if (cbp == buf) in cpc_buf_destroy()
404 prev = cbp; in cpc_buf_destroy()
406 if (cbp == NULL) { in cpc_buf_destroy()
411 if (cbp == cpc->cpc_bufs) in cpc_buf_destroy()
412 cpc->cpc_bufs = cbp->cb_next; in cpc_buf_destroy()
413 prev->cb_next = cbp->cb_next; in cpc_buf_destroy()
416 free(cbp->cb_data); in cpc_buf_destroy()
417 free(cbp); in cpc_buf_destroy()
/titanic_41/usr/src/ucbcmd/touch/
H A Dtouch.c62 char *cbp; variable
99 cp = cbp; in gpair()
109 cbp = cp; in gpair()
167 cbp = (char *)argv[optind++]; in main()

123