/illumos-gate/usr/src/uts/common/io/cardbus/ |
H A D | cardbus_hp.c | 97 static int cardbus_configure_ap(cbus_t *cbp); 98 static int cardbus_unconfigure_ap(cbus_t *cbp); 104 cardbus_init_hotplug(cbus_t *cbp) in cardbus_init_hotplug() argument 114 if (hpc_nexus_register_bus(cbp->cb_dip, in cardbus_init_hotplug() 117 ddi_driver_name(cbp->cb_dip), cbp->cb_instance); in cardbus_init_hotplug() 121 (void) sprintf(cbp->ap_id, "slot%d", cbp->cb_instance); in cardbus_init_hotplug() 122 (void) ddi_pathname(cbp->cb_dip, tbuf); in cardbus_init_hotplug() 123 cbp->nexus_path = kmem_alloc(strlen(tbuf) + 1, KM_SLEEP); in cardbus_init_hotplug() 124 (void) strcpy(cbp->nexus_path, tbuf); in cardbus_init_hotplug() 125 cardbus_err(cbp->cb_dip, 8, in cardbus_init_hotplug() [all …]
|
H A D | cardbus.c | 145 static int cardbus_parse_devprop(cbus_t *cbp, char *cp); 146 static void cardbus_device_props(cbus_t *cbp); 414 cbus_t *cbp; in cardbus_attach() local 446 cbp = (cbus_t *)ddi_get_soft_state(cardbus_state, cb_instance); in cardbus_attach() 447 cbp->cb_instance = cb_instance; in cardbus_attach() 448 cbp->cb_dip = dip; in cardbus_attach() 449 mutex_init(&cbp->cb_mutex, NULL, MUTEX_DRIVER, NULL); in cardbus_attach() 466 cbp->cb_nex_ops = nex_ops; in cardbus_attach() 470 cbp->orig_dopsp = devi->devi_ops; in cardbus_attach() 471 cbp->orig_bopsp = devi->devi_ops->devo_bus_ops; in cardbus_attach() [all …]
|
H A D | cardbus_cfg.c | 332 cardbus_configure(cbus_t *cbp) in cardbus_configure() argument 338 cardbus_err(cbp->cb_dip, 6, "cardbus_configure ()\n"); in cardbus_configure() 340 bus = cardbus_primary_busno(cbp->cb_dip); in cardbus_configure() 342 if (ndi_devi_alloc(cbp->cb_dip, DEVI_PSEUDO_NEXNAME, in cardbus_configure() 345 cardbus_err(cbp->cb_dip, 1, in cardbus_configure() 355 cardbus_err(cbp->cb_dip, 1, in cardbus_configure() 367 split_addr(ddi_get_name_addr(cbp->cb_dip), &cardbus_dev, &func); in cardbus_configure() 372 switch (cardbus_probe_bridge(cbp, attach_point, in cardbus_configure() 375 cardbus_err(cbp->cb_dip, 4, in cardbus_configure() 380 cardbus_err(cbp->cb_dip, 4, in cardbus_configure() [all …]
|
H A D | cardbus_cfg.h | 53 extern int cardbus_configure(cbus_t *cbp); 54 extern int cardbus_unconfigure(cbus_t *cbp);
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_srv_deleg.c | 172 rfs4_cbinfo_free(rfs4_cbinfo_t *cbp) in rfs4_cbinfo_free() argument 174 char *addr = cbp->cb_callback.cb_location.r_addr; in rfs4_cbinfo_free() 175 char *netid = cbp->cb_callback.cb_location.r_netid; in rfs4_cbinfo_free() 184 addr = cbp->cb_newer.cb_callback.cb_location.r_addr; in rfs4_cbinfo_free() 185 netid = cbp->cb_newer.cb_callback.cb_location.r_netid; in rfs4_cbinfo_free() 192 if (cbp->cb_chc_free) { in rfs4_cbinfo_free() 193 rfs4_cb_chflush(cbp); in rfs4_cbinfo_free() 211 rfs4_cbinfo_t *cbp = &cp->rc_cbinfo; in rfs4_do_cb_null() local 213 mutex_enter(cbp->cb_lock); in rfs4_do_cb_null() 215 if (cbp->cb_nullcaller == TRUE) { in rfs4_do_cb_null() [all …]
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_fhistory.c | 733 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 …]
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | mkey3.c | 25 static char *cbp; variable 49 cbp = cbuf; in cominit() 51 if (fgets(cbp, 15, f) == NULL) in cominit() 53 trimnl(cbp); in cominit() 54 c_look(cbp, 0); in cominit() 55 while (*cbp++) in cominit()
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_util.c | 935 zprop_print_headers(zprop_get_cbdata_t *cbp, zfs_type_t type) in zprop_print_headers() argument 937 zprop_list_t *pl = cbp->cb_proplist; in zprop_print_headers() 942 cbp->cb_first = B_FALSE; in zprop_print_headers() 943 if (cbp->cb_scripted) in zprop_print_headers() 949 cbp->cb_colwidths[GET_COL_NAME] = strlen(dgettext(TEXT_DOMAIN, "NAME")); in zprop_print_headers() 950 cbp->cb_colwidths[GET_COL_PROPERTY] = strlen(dgettext(TEXT_DOMAIN, in zprop_print_headers() 952 cbp->cb_colwidths[GET_COL_VALUE] = strlen(dgettext(TEXT_DOMAIN, in zprop_print_headers() 954 cbp->cb_colwidths[GET_COL_RECVD] = strlen(dgettext(TEXT_DOMAIN, in zprop_print_headers() 956 cbp->cb_colwidths[GET_COL_SOURCE] = strlen(dgettext(TEXT_DOMAIN, in zprop_print_headers() 960 assert(cbp->cb_proplist->pl_prop == in zprop_print_headers() [all …]
|
H A D | libzfs_mount.c | 1140 libzfs_add_handle(get_all_cb_t *cbp, zfs_handle_t *zhp) in libzfs_add_handle() argument 1142 if (cbp->cb_alloc == cbp->cb_used) { in libzfs_add_handle() 1146 newsz = cbp->cb_alloc != 0 ? cbp->cb_alloc * 2 : 64; in libzfs_add_handle() 1148 cbp->cb_handles, cbp->cb_alloc * sizeof (zfs_handle_t *), in libzfs_add_handle() 1150 cbp->cb_handles = newhandles; in libzfs_add_handle() 1151 cbp->cb_alloc = newsz; in libzfs_add_handle() 1153 cbp->cb_handles[cbp->cb_used++] = zhp; in libzfs_add_handle() 1162 get_all_cb_t *cbp = data; in zfs_iter_cb() local 1191 libzfs_add_handle(cbp, zhp); in zfs_iter_cb() 1192 if (zfs_iter_filesystems(zhp, zfs_iter_cb, cbp) != 0) { in zfs_iter_cb()
|
/illumos-gate/usr/src/uts/common/io/sbp2/ |
H A D | cfgrom.c | 225 sbp2_cfgrom_read_bib(sbp2_tgt_t *tp, void *cmd, sbp2_cfgrom_bib_t *cbp) in sbp2_cfgrom_read_bib() argument 237 cbp->cb_len = (val >> 24); in sbp2_cfgrom_read_bib() 238 if (cbp->cb_len < 1) { in sbp2_cfgrom_read_bib() 241 cbp->cb_buf = kmem_zalloc(cbp->cb_len * 4, KM_SLEEP); in sbp2_cfgrom_read_bib() 244 for (i = 0; i < cbp->cb_len; i++, addr += 4) { in sbp2_cfgrom_read_bib() 245 SBP2_CFGROM_RQ(tp, cmd, addr, &cbp->cb_buf[i]); in sbp2_cfgrom_read_bib() 249 sbp2_cfgrom_free_bib(tp, cbp); in sbp2_cfgrom_read_bib() 256 sbp2_cfgrom_free_bib(sbp2_tgt_t *tp, sbp2_cfgrom_bib_t *cbp) in sbp2_cfgrom_free_bib() argument 258 if ((cbp->cb_buf != NULL) && (cbp->cb_len > 0)) { in sbp2_cfgrom_free_bib() 259 kmem_free(cbp->cb_buf, cbp->cb_len * 4); in sbp2_cfgrom_free_bib() [all …]
|
/illumos-gate/usr/src/psm/stand/cpr/sparcv9/sun4u/ |
H A D | util.c | 385 struct cb_props *cbp; in cb_get_props() local 397 for (cbp = cpu_data; cbp->prop; cbp++) { in cb_get_props() 398 if (get_intprop(node, cbp->prop, cbp->datap)) { in cb_get_props() 401 prog, node, cbp->prop); in cb_get_props() 405 cbp->prop, *cbp->datap)); in cb_get_props()
|
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_lib.c | 495 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 …]
|
/illumos-gate/usr/src/cmd/zoneadm/ |
H A D | zfs.c | 84 zfs_mount_data_t *cbp; in match_mountpoint() local 111 cbp = (zfs_mount_data_t *)data; in match_mountpoint() 127 if (strcmp(entry.mnt_mountp, cbp->match_name) in match_mountpoint() 130 cbp->match_handle = zhp; in match_mountpoint() 138 } else if (strcmp(mp, cbp->match_name) == 0) { in match_mountpoint() 139 cbp->match_handle = zhp; in match_mountpoint() 238 zfs_snapshot_data_t *cbp; in get_snap_max() local 245 cbp = (zfs_snapshot_data_t *)data; in get_snap_max() 247 if (strncmp(zfs_get_name(zhp), cbp->match_name, cbp->len) == 0) { in get_snap_max() 251 cbp->num++; in get_snap_max() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | aio.c | 901 aiocb_t *cbp, **ucbp; in aiosuspend() local 984 if ((cbp = *ucbp++) == NULL) in aiosuspend() 988 &cbp->aio_resultp); in aiosuspend() 990 cbp64 = (aiocb64_32_t *)cbp; in aiosuspend() 1151 aio_req_assoc_port_rw(port_notify_t *pntfy, aiocb_t *cbp, in aio_req_assoc_port_rw() argument 1165 port_init_event(pkevp, (uintptr_t)cbp, pntfy->portnfy_user, in aio_req_assoc_port_rw() 1206 aiocb_t *cbp; in alio() local 1319 cbp = *ucbp; in alio() 1321 if (cbp == NULL || copyin(cbp, aiocb, sizeof (*aiocb))) { in alio() 1334 cbp = NULL; in alio() [all …]
|
H A D | ddi.c | 997 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 …]
|
/illumos-gate/usr/src/lib/libipmi/common/ |
H A D | ipmi_user.c | 273 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()
|
/illumos-gate/usr/src/lib/smhba/common/ |
H A D | SMHBAAPILIB.c | 501 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() 1658 HBA_ALLADAPTERSCALLBACK_ELEM *cbp; in adapteraddevents_callback() local 1663 for (cbp = _hbaapi_adapteraddevents_callback_list; in adapteraddevents_callback() [all …]
|
/illumos-gate/usr/src/lib/hbaapi/common/ |
H A D | HBAAPILIB.c | 388 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() 1341 HBA_ALLADAPTERSCALLBACK_ELEM *cbp; in adapteraddevents_callback() local 1346 for(cbp = _hbaapi_adapteraddevents_callback_list; in adapteraddevents_callback() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | dedump.c | 127 struct cmdblk *cbp = (struct cmdblk *)mp->b_rptr; in dedump_cmdblk() local 129 (void) printf("%s cmd %x cred %p len %u error %d\n", hdr, cbp->cb_cmd, in dedump_cmdblk() 130 (void *)cbp->cb_cr, cbp->cb_len, cbp->cb_error); in dedump_cmdblk()
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | did.c | 116 smbios_slot_cb_t *cbp = data; in di_smbios_find_slot_by_bdf() local 120 bus = (cbp->cb_bdf & 0xFF00) >> 8; in di_smbios_find_slot_by_bdf() 121 df = cbp->cb_bdf & 0xFF; in di_smbios_find_slot_by_bdf() 128 cbp->cb_label = slot.smbl_name; in di_smbios_find_slot_by_bdf() 129 cbp->cb_slotnum = slot.smbl_id; in di_smbios_find_slot_by_bdf() 140 smbios_slot_cb_t *cbp = data; in di_smbios_find_slot_by_id() local 147 if (slot.smbl_id == cbp->cb_slotnum) { in di_smbios_find_slot_by_id() 148 cbp->cb_label = slot.smbl_name; in di_smbios_find_slot_by_id()
|
/illumos-gate/usr/src/lib/libcpc/common/ |
H A D | libcpc.c | 395 cpc_buf_t *cbp, *prev; in cpc_buf_destroy() local 402 for (cbp = prev = cpc->cpc_bufs; cbp != NULL; cbp = cbp->cb_next) { in cpc_buf_destroy() 403 if (cbp == buf) in cpc_buf_destroy() 405 prev = cbp; in cpc_buf_destroy() 407 if (cbp == NULL) { in cpc_buf_destroy() 412 if (cbp == cpc->cpc_bufs) in cpc_buf_destroy() 413 cpc->cpc_bufs = cbp->cb_next; in cpc_buf_destroy() 414 prev->cb_next = cbp->cb_next; in cpc_buf_destroy() 417 free(cbp->cb_data); in cpc_buf_destroy() 418 free(cbp); in cpc_buf_destroy()
|
/illumos-gate/usr/src/lib/libshare/common/ |
H A D | libshare_zfs.c | 132 get_all_cbdata_t *cbp = data; in get_one_filesystem() local 147 if ((type & cbp->cb_types) == 0) { in get_one_filesystem() 152 if (cbp->cb_alloc == cbp->cb_used) { in get_one_filesystem() 155 if (cbp->cb_alloc == 0) in get_one_filesystem() 156 cbp->cb_alloc = 64; in get_one_filesystem() 158 cbp->cb_alloc *= 2; in get_one_filesystem() 161 cbp->cb_alloc * sizeof (void *)); in get_one_filesystem() 167 if (cbp->cb_handles) { in get_one_filesystem() 168 bcopy(cbp->cb_handles, handles, in get_one_filesystem() 169 cbp->cb_used * sizeof (void *)); in get_one_filesystem() [all …]
|
/illumos-gate/usr/src/ucbcmd/touch/ |
H A D | touch.c | 58 char *cbp; variable 95 cp = cbp; in gpair() 105 cbp = cp; in gpair() 163 cbp = (char *)argv[optind++]; in main()
|
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-retire/ |
H A D | zfs_retire.c | 82 find_cbdata_t *cbp = data; in find_pool() local 84 if (cbp->cb_guid == in find_pool() 86 cbp->cb_zhp = zhp; in find_pool() 188 find_cbdata_t *cbp = data; in search_pool() local 199 if ((cbp->cb_vdev = find_vdev(zpool_get_handle(zhp), nvroot, in search_pool() 200 cbp->cb_fru, 0)) != NULL) { in search_pool() 201 cbp->cb_zhp = zhp; in search_pool()
|
/illumos-gate/usr/src/cmd/mdb/intel/modules/generic_cpu/ |
H A D | gcpu.c | 284 struct cmihdl_cb *cbp = data; in cmihdl_cb() local 288 if (cbp->mod_cpuid != -1) { in cmihdl_cb() 298 if (cp->cpu_id == cbp->mod_cpuid) { in cmihdl_cb() 299 cbp->mod_hdladdr = addr; in cmihdl_cb() 308 if (hdl->cmih_chipid == cbp->mod_chipid && in cmihdl_cb() 309 hdl->cmih_coreid == cbp->mod_coreid && in cmihdl_cb() 310 hdl->cmih_strandid == cbp->mod_strandid) { in cmihdl_cb() 311 cbp->mod_hdladdr = addr; in cmihdl_cb()
|