/illumos-gate/usr/src/uts/common/io/cardbus/ |
H A D | cardbus_hp.c | 117 ddi_driver_name(cbp->cb_dip), cbp->cb_instance); in cardbus_init_hotplug() 195 ddi_driver_name(cbp->cb_dip), cbp->cb_instance); in cardbus_event_handler() 214 ddi_driver_name(cbp->cb_dip), cbp->cb_instance, in cardbus_event_handler() 268 ddi_driver_name(cbp->cb_dip), cbp->cb_instance, in cardbus_event_handler() 297 ddi_driver_name(cbp->cb_dip), cbp->cb_instance, in cardbus_event_handler() 310 ddi_driver_name(cbp->cb_dip), cbp->cb_instance, in cardbus_event_handler() 572 kmem_free(cbp->name, strlen(cbp->name) + 1); in cardbus_new_slot_state() 678 if (cbp->slot_handle == NULL || cbp->disabled) { in cardbus_configure_ap() 773 cbp->cb_instance, cbp->name); in cardbus_configure_ap() 801 if (cbp->slot_handle == NULL || cbp->disabled) { in cardbus_unconfigure_ap() [all …]
|
H A D | cardbus.c | 414 cbus_t *cbp; in cardbus_attach() local 448 cbp->cb_dip = dip; in cardbus_attach() 520 cbus_t *cbp; in cardbus_detach() local 559 kmem_free(cbp->nexus_path, strlen(cbp->nexus_path) + 1); in cardbus_detach() 560 if (cbp->name) in cardbus_detach() 561 kmem_free(cbp->name, strlen(cbp->name) + 1); in cardbus_detach() 583 cbus_t *cbp; in cardbus_load_cardbus() local 677 cbus_t *cbp; in cardbus_unload_cardbus() local 2062 cbus_t *cbp; in cardbus_get_eventcookie() local 2110 cbus_t *cbp; in cardbus_add_eventcall() local [all …]
|
H A D | cardbus_cfg.c | 345 cardbus_err(cbp->cb_dip, 1, in cardbus_configure() 355 cardbus_err(cbp->cb_dip, 1, in cardbus_configure() 375 cardbus_err(cbp->cb_dip, 4, in cardbus_configure() 380 cardbus_err(cbp->cb_dip, 4, in cardbus_configure() 385 cardbus_err(cbp->cb_dip, 9, in cardbus_configure() 394 cbp->cb_nex_ops->enable_intr(cbp->cb_dip); in cardbus_configure() 407 cardbus_err(cbp->cb_dip, 6, in cardbus_configure() 411 cardbus_err(cbp->cb_dip, 6, in cardbus_configure() 2668 cbp, in cardbus_probe_children() 2894 if (cbp->cb_dsp) { in cardbus_probe_children() [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 | 230 cv_wait(cbp->cb_cv_nullcaller, cbp->cb_lock); in rfs4_do_cb_null() 266 cbp->cb_ident = cbp->cb_newer.cb_ident; in rfs4_do_cb_null() 365 if (cbp->cb_newer.cb_new == FALSE || cbp->cb_nullcaller == TRUE) in rfs4_cbinfo_hold() 377 cv_wait(cbp->cb_cv, cbp->cb_lock); /* if so, wait on it */ in rfs4_cbinfo_hold() 388 return (cbp); in rfs4_cbinfo_hold() 419 if (cbp->cb_refcnt == 0 && cbp->cb_nullcaller) in rfs4_cbinfo_rele() 562 ch = cbp->cb_chc[cbp->cb_chc_free]; in rfs4_cb_chflush() 563 cbp->cb_chc[cbp->cb_chc_free] = NULL; in rfs4_cb_chflush() 586 cbch = cbp->cb_chc[ cbp->cb_chc_free ]; in rfs4_cb_getch() 611 cbp->cb_chc[ cbp->cb_chc_free++ ] = ch; in rfs4_cb_freech() [all …]
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_fhistory.c | 740 if (!cbp) { in ndmpd_fhpath_v3_cb() 743 } else if (!cbp->fh_cookie) { in ndmpd_fhpath_v3_cb() 802 if (!cbp) { in ndmpd_fhdir_v3_cb() 805 } else if (!cbp->fh_cookie) { in ndmpd_fhdir_v3_cb() 947 if (!cbp) { in ndmpd_fhnode_v3_cb() 950 } else if (!cbp->fh_cookie) { in ndmpd_fhnode_v3_cb() 1048 if (!cbp) { in ndmpd_path_restored_v3() 1338 if (!cbp) { in ndmpd_file_history_path() 1391 if (!cbp) { in ndmpd_file_history_dir() 1532 if (!cbp) { in ndmpd_file_history_node() [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/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/lib/libzfs/common/ |
H A D | libzfs_util.c | 942 cbp->cb_first = B_FALSE; in zprop_print_headers() 943 if (cbp->cb_scripted) in zprop_print_headers() 996 if (pl != cbp->cb_proplist && in zprop_print_headers() 1001 if (pl != cbp->cb_proplist && in zprop_print_headers() 1021 switch (cbp->cb_columns[i]) { in zprop_print_headers() 1047 cbp->cb_colwidths[cbp->cb_columns[i]], in zprop_print_headers() 1073 if (cbp->cb_first) in zprop_print_one_property() 1074 zprop_print_headers(cbp, cbp->cb_type); in zprop_print_one_property() 1077 switch (cbp->cb_columns[i]) { in zprop_print_one_property() 1133 else if (cbp->cb_scripted) in zprop_print_one_property() [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/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 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 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 565 } else if (!cbp->fh_logpname) { in tlm_log_fhpath_name() 568 rv = (*cbp->fh_logpname)(cbp, pathname, stp, off); in tlm_log_fhpath_name() 589 if (cbp == NULL) { in tlm_entry_restored() [all …]
|
/illumos-gate/usr/src/cmd/zoneadm/ |
H A D | zfs.c | 84 zfs_mount_data_t *cbp; in match_mountpoint() local 139 cbp->match_handle = zhp; in match_mountpoint() 238 zfs_snapshot_data_t *cbp; in get_snap_max() local 247 if (strncmp(zfs_get_name(zhp), cbp->match_name, cbp->len) == 0) { in get_snap_max() 251 cbp->num++; in get_snap_max() 254 if (num > cbp->max) in get_snap_max() 255 cbp->max = num; in get_snap_max() 688 if (cbp->cntr >= cbp->num) { in rename_snap() 699 if (strncmp(zfs_get_name(zhp), cbp->match_name, cbp->len) != 0) { in rename_snap() 705 cbp->max++); in rename_snap() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | aio.c | 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() 2899 aiocb64_32_t *cbp; in alioLF() local 3021 if (cbp == NULL || copyin(cbp, aiocb, sizeof (*aiocb))) { in alioLF() 3034 cbp = NULL; in alioLF() 3375 aiocb32_t *cbp; in alio32() local 3507 if (cbp == NULL || copyin(cbp, aiocb32, sizeof (*aiocb32))) in alio32() 3510 if (cbp == NULL || copyin(cbp, aiocb, sizeof (*aiocb))) in alio32() [all …]
|
H A D | ddi.c | 997 callbparams_t *cbp; in qtimeout() local 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() 1046 cbp->cbp_id = (callbparams_id_t)bid; 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 | 524 for (cbp = **listp; cbp != NULL; cbp = cbp->next) { in local_remove_callback() 526 lastp = &(cbp->next); in local_remove_callback() 537 free(cbp); in local_remove_callback() 1664 cbp != NULL; in adapteraddevents_callback() 1665 cbp = cbp->next) { in adapteraddevents_callback() 1700 if (cbp == NULL) { in HBA_RegisterForAdapterAddEvents() 1809 cbp != NULL; cbp = cbp->next) { in HBA_RegisterForAdapterAddEvents() 4364 cbp != NULL; in smhba_adapteraddevents_callback() 4365 cbp = cbp->next) { in smhba_adapteraddevents_callback() 4366 (*cbp->callback)(cbp->userdata, PortWWN, HBA_EVENT_ADAPTER_ADD); in smhba_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() 407 lastp = &(cbp->next); 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 1347 cbp != NULL; in adapteraddevents_callback() 1348 cbp = cbp->next) { in adapteraddevents_callback() 1387 if(cbp == NULL) { in HBA_RegisterForAdapterAddEvents() 1398 cbp->callback = callback; in HBA_RegisterForAdapterAddEvents() [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/cmd/fm/modules/common/zfs-retire/ |
H A D | zfs_retire.c | 81 find_cbdata_t *cbp = data; in find_pool() local 83 if (cbp->cb_guid == in find_pool() 85 cbp->cb_zhp = zhp; in find_pool() 187 find_cbdata_t *cbp = data; in search_pool() local 198 if ((cbp->cb_vdev = find_vdev(zpool_get_handle(zhp), nvroot, in search_pool() 199 cbp->cb_fru, 0)) != NULL) { in search_pool() 200 cbp->cb_zhp = zhp; in search_pool()
|
/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() 167 if (cbp->cb_handles) { in get_one_filesystem() 168 bcopy(cbp->cb_handles, handles, in get_one_filesystem() 170 free(cbp->cb_handles); in get_one_filesystem() 173 cbp->cb_handles = handles; 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/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()
|