| /illumos-gate/usr/src/lib/varpd/libvarpd/common/ |
| H A D | libvarpd_prop.c | 59 libvarpd_prop_set_name(varpd_prop_handle_t *phdl, const char *name) in libvarpd_prop_set_name() argument 61 varpd_prop_info_t *infop = (varpd_prop_info_t *)phdl; in libvarpd_prop_set_name() 66 libvarpd_prop_set_prot(varpd_prop_handle_t *phdl, overlay_prop_prot_t perm) in libvarpd_prop_set_prot() argument 68 varpd_prop_info_t *infop = (varpd_prop_info_t *)phdl; in libvarpd_prop_set_prot() 73 libvarpd_prop_set_type(varpd_prop_handle_t *phdl, overlay_prop_type_t type) in libvarpd_prop_set_type() argument 75 varpd_prop_info_t *infop = (varpd_prop_info_t *)phdl; in libvarpd_prop_set_type() 80 libvarpd_prop_set_default(varpd_prop_handle_t *phdl, void *buf, ssize_t len) in libvarpd_prop_set_default() argument 82 varpd_prop_info_t *infop = (varpd_prop_info_t *)phdl; in libvarpd_prop_set_default() 96 libvarpd_prop_set_nodefault(varpd_prop_handle_t *phdl) in libvarpd_prop_set_nodefault() argument 98 varpd_prop_info_t *infop = (varpd_prop_info_t *)phdl; in libvarpd_prop_set_nodefault() [all …]
|
| H A D | libvarpd_door.c | 115 varpd_prop_handle_t *phdl; in libvarpd_door_f_propinfo() local 121 ret = libvarpd_prop_handle_alloc((varpd_handle_t *)vip, ihp, &phdl); in libvarpd_door_f_propinfo() 126 ret = libvarpd_prop_info_fill(phdl, vcfap->vcfa_propid); in libvarpd_door_f_propinfo() 128 libvarpd_prop_handle_free(phdl); in libvarpd_door_f_propinfo() 138 libvarpd_prop_handle_free(phdl); in libvarpd_door_f_propinfo() 142 ret = libvarpd_prop_info_fill(phdl, i); in libvarpd_door_f_propinfo() 144 libvarpd_prop_handle_free(phdl); in libvarpd_door_f_propinfo() 147 ret = libvarpd_prop_info(phdl, &name, NULL, NULL, NULL, in libvarpd_door_f_propinfo() 150 libvarpd_prop_handle_free(phdl); in libvarpd_door_f_propinfo() 158 libvarpd_prop_handle_free(phdl); in libvarpd_door_f_propinfo() [all …]
|
| H A D | libvarpd_client.c | 233 libvarpd_c_prop_handle_free(varpd_client_prop_handle_t *phdl) in libvarpd_c_prop_handle_free() argument 235 umem_free(phdl, sizeof (varpd_client_prop_info_t)); in libvarpd_c_prop_handle_free() 236 phdl = NULL; in libvarpd_c_prop_handle_free() 255 libvarpd_c_prop_info_fill_by_name(varpd_client_prop_handle_t *phdl, in libvarpd_c_prop_info_fill_by_name() argument 261 varpd_client_prop_info_t *infop = (varpd_client_prop_info_t *)phdl; in libvarpd_c_prop_info_fill_by_name() 284 libvarpd_c_prop_info_fill(varpd_client_prop_handle_t *phdl, uint_t propid) in libvarpd_c_prop_info_fill() argument 289 varpd_client_prop_info_t *infop = (varpd_client_prop_info_t *)phdl; in libvarpd_c_prop_info_fill() 309 libvarpd_c_prop_info(varpd_client_prop_handle_t *phdl, const char **namep, in libvarpd_c_prop_info() argument 313 varpd_client_prop_info_t *infop = (varpd_client_prop_info_t *)phdl; in libvarpd_c_prop_info() 333 libvarpd_c_prop_get(varpd_client_prop_handle_t *phdl, void *buf, uint32_t *len) in libvarpd_c_prop_get() argument [all …]
|
| /illumos-gate/usr/src/uts/common/io/overlay/ |
| H A D | overlay_prop.c | 26 overlay_prop_init(overlay_prop_handle_t phdl) in overlay_prop_init() argument 28 overlay_ioc_propinfo_t *infop = (overlay_ioc_propinfo_t *)phdl; in overlay_prop_init() 36 overlay_prop_set_name(overlay_prop_handle_t phdl, const char *name) in overlay_prop_set_name() argument 38 overlay_ioc_propinfo_t *infop = (overlay_ioc_propinfo_t *)phdl; in overlay_prop_set_name() 43 overlay_prop_set_prot(overlay_prop_handle_t phdl, overlay_prop_prot_t prot) in overlay_prop_set_prot() argument 45 overlay_ioc_propinfo_t *infop = (overlay_ioc_propinfo_t *)phdl; in overlay_prop_set_prot() 50 overlay_prop_set_type(overlay_prop_handle_t phdl, overlay_prop_type_t type) in overlay_prop_set_type() argument 52 overlay_ioc_propinfo_t *infop = (overlay_ioc_propinfo_t *)phdl; in overlay_prop_set_type() 57 overlay_prop_set_default(overlay_prop_handle_t phdl, void *def, ssize_t len) in overlay_prop_set_default() argument 59 overlay_ioc_propinfo_t *infop = (overlay_ioc_propinfo_t *)phdl; in overlay_prop_set_default() [all …]
|
| H A D | overlay.c | 1379 overlay_prop_handle_t phdl; in overlay_i_activate() local 1387 phdl = (overlay_prop_handle_t)infop; in overlay_i_activate() 1404 overlay_prop_init(phdl); in overlay_i_activate() 1405 ret = odd->odd_plugin->ovp_ops->ovpo_propinfo(pname, phdl); in overlay_i_activate() 1553 overlay_prop_handle_t phdl = arg; in overlay_propinfo_plugin_cb() local 1554 overlay_prop_set_range_str(phdl, opp->ovp_name); in overlay_propinfo_plugin_cb() 1581 overlay_i_propinfo_mtu(overlay_dev_t *odd, overlay_prop_handle_t phdl) in overlay_i_propinfo_mtu() argument 1596 overlay_prop_set_prot(phdl, OVERLAY_PROP_PERM_READ); in overlay_i_propinfo_mtu() 1598 overlay_prop_set_prot(phdl, OVERLAY_PROP_PERM_WRITE); in overlay_i_propinfo_mtu() 1600 overlay_prop_set_prot(phdl, OVERLAY_PROP_PERM_RW); in overlay_i_propinfo_mtu() [all …]
|
| /illumos-gate/usr/src/cmd/hal/hald/solaris/ |
| H A D | devinfo_cpu.c | 51 di_prom_handle_t phdl; in devinfo_cpu_add() local 72 phdl = di_prom_init (); in devinfo_cpu_add() 73 if (phdl == DI_PROM_HANDLE_NIL) { in devinfo_cpu_add() 79 if (di_prom_prop_lookup_strings (phdl, node, in devinfo_cpu_add() 81 di_prom_fini (phdl); in devinfo_cpu_add() 85 di_prom_fini (phdl); in devinfo_cpu_add() 91 if (di_prom_prop_lookup_ints (phdl, node, in devinfo_cpu_add() 102 di_prom_fini (phdl); in devinfo_cpu_add()
|
| /illumos-gate/usr/src/uts/sun4u/io/ |
| H A D | isadma.c | 414 ddi_acc_handle_t phdl = hdlp->ahi_common.ah_platform_private; in isadma_get8() local 423 return (ddi_get8(phdl, addr)); in isadma_get8() 439 ret = ddi_get8(phdl, addr); /* Pass to parent */ in isadma_get8() 455 ddi_acc_handle_t phdl = hdlp->ahi_common.ah_platform_private; in isadma_get16() local 464 return (ddi_get16(phdl, addr)); in isadma_get16() 477 ddi_put8(phdl, (uint8_t *)HDL_TO_SEQREG_ADDR(hdlp, offset), 0); in isadma_get16() 480 ret = ddi_get8(phdl, (uint8_t *)addr); in isadma_get16() 481 ret = (ddi_get8(phdl, (uint8_t *)addr) << 8) | ret; in isadma_get16() 514 ddi_acc_handle_t phdl = hdlp->ahi_common.ah_platform_private; in isadma_put8() local 522 ddi_put8(phdl, addr, value); in isadma_put8() [all …]
|
| /illumos-gate/usr/src/uts/common/io/overlay/plugins/ |
| H A D | overlay_vxlan.c | 307 vxlan_o_propinfo(const char *pr_name, overlay_prop_handle_t phdl) in vxlan_o_propinfo() argument 311 overlay_prop_set_name(phdl, vxlan_props[0]); in vxlan_o_propinfo() 312 overlay_prop_set_prot(phdl, OVERLAY_PROP_PERM_RRW); in vxlan_o_propinfo() 313 overlay_prop_set_type(phdl, OVERLAY_PROP_T_IP); in vxlan_o_propinfo() 314 overlay_prop_set_nodefault(phdl); in vxlan_o_propinfo() 319 overlay_prop_set_name(phdl, vxlan_props[1]); in vxlan_o_propinfo() 320 overlay_prop_set_prot(phdl, OVERLAY_PROP_PERM_RRW); in vxlan_o_propinfo() 321 overlay_prop_set_type(phdl, OVERLAY_PROP_T_UINT); in vxlan_o_propinfo() 322 (void) overlay_prop_set_default(phdl, &vxlan_defport, in vxlan_o_propinfo() 324 overlay_prop_set_range_uint32(phdl, 1, UINT16_MAX); in vxlan_o_propinfo()
|
| /illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
| H A D | adopt.c | 276 di_prom_handle_t phdl = DI_PROM_HANDLE_NIL; in get_prom_prop() local 287 (phdl = di_prom_init()) == DI_PROM_HANDLE_NIL) { in get_prom_prop() 314 for (pp = di_prom_prop_next(phdl, node, DI_PROM_PROP_NIL); in get_prom_prop() 316 pp = di_prom_prop_next(phdl, node, pp)) { in get_prom_prop() 386 if (phdl != DI_PROM_HANDLE_NIL) { in get_prom_prop() 387 di_prom_fini(phdl); in get_prom_prop()
|
| /illumos-gate/usr/src/uts/common/io/cardbus/ |
| H A D | cardbus_cfg.c | 619 cardbus_phdl_t *phdl; in cardbus_program_ap() local 656 phdl = cardbus_find_phdl(dip); in cardbus_program_ap() 657 ASSERT(phdl); in cardbus_program_ap() 659 if (phdl == NULL) { in cardbus_program_ap() 663 phdl->error = PCICFG_SUCCESS; in cardbus_program_ap() 666 cardbus_topbridge_assign(dip, phdl); in cardbus_program_ap() 668 if (phdl->error != PCICFG_SUCCESS) { in cardbus_program_ap() 671 return (phdl->error); in cardbus_program_ap() 1096 isa_phdl_t *phdl; in cardbus_add_isa_reg() local 1099 phdl = (isa_phdl_t *)arg; in cardbus_add_isa_reg() [all …]
|
| /illumos-gate/usr/src/lib/libdladm/common/ |
| H A D | libdloverlay.c | 117 dladm_overlay_prop_info(dladm_overlay_propinfo_handle_t phdl, in dladm_overlay_prop_info() argument 121 dladm_overlay_propinfo_t *infop = (dladm_overlay_propinfo_t *)phdl; in dladm_overlay_prop_info() 243 varpd_client_prop_handle_t *phdl; in dladm_overlay_varpd_setprop() local 247 if ((ret = libvarpd_c_prop_handle_alloc(chdl, inst, &phdl)) != 0) in dladm_overlay_varpd_setprop() 250 if ((ret = libvarpd_c_prop_info_fill_by_name(phdl, name)) != 0) { in dladm_overlay_varpd_setprop() 251 libvarpd_c_prop_handle_free(phdl); in dladm_overlay_varpd_setprop() 255 if ((ret = libvarpd_c_prop_info(phdl, NULL, &type, NULL, NULL, NULL, in dladm_overlay_varpd_setprop() 257 libvarpd_c_prop_handle_free(phdl); in dladm_overlay_varpd_setprop() 263 libvarpd_c_prop_handle_free(phdl); in dladm_overlay_varpd_setprop() 268 ret = libvarpd_c_prop_set(phdl, buf, size); in dladm_overlay_varpd_setprop() [all …]
|
| /illumos-gate/usr/src/uts/sun4/io/ |
| H A D | pcicfg.c | 1131 pcicfg_phdl_t *phdl; in pcicfg_ntbridge_allocate_resources() local 1136 phdl = pcicfg_find_phdl(dip); in pcicfg_ntbridge_allocate_resources() 1137 ASSERT(phdl); in pcicfg_ntbridge_allocate_resources() 1139 mem_request = &phdl->mem_req; in pcicfg_ntbridge_allocate_resources() 1140 io_request = &phdl->io_req; in pcicfg_ntbridge_allocate_resources() 1142 phdl->error = PCICFG_SUCCESS; in pcicfg_ntbridge_allocate_resources() 1149 phdl->memory_len = 0; in pcicfg_ntbridge_allocate_resources() 1164 phdl->memory_base = phdl->memory_last = boundbase; in pcicfg_ntbridge_allocate_resources() 1165 phdl->memory_len = boundlen; in pcicfg_ntbridge_allocate_resources() 1166 phdl->mem_hole.start = phdl->memory_base; in pcicfg_ntbridge_allocate_resources() [all …]
|
| /illumos-gate/usr/src/uts/intel/io/hotplug/pcicfg/ |
| H A D | pcicfg.c | 1024 pcicfg_phdl_t *phdl; in pcicfg_ntbridge_allocate_resources() local 1030 phdl = pcicfg_find_phdl(dip); in pcicfg_ntbridge_allocate_resources() 1031 ASSERT(phdl); in pcicfg_ntbridge_allocate_resources() 1033 mem_request = &phdl->mem_req; in pcicfg_ntbridge_allocate_resources() 1034 pf_mem_request = &phdl->pf_mem_req; in pcicfg_ntbridge_allocate_resources() 1035 io_request = &phdl->io_req; in pcicfg_ntbridge_allocate_resources() 1037 phdl->error = PCICFG_SUCCESS; in pcicfg_ntbridge_allocate_resources() 1044 phdl->memory_len = 0; in pcicfg_ntbridge_allocate_resources() 1059 phdl->memory_base = phdl->memory_last = boundbase; in pcicfg_ntbridge_allocate_resources() 1060 phdl->memory_len = boundlen; in pcicfg_ntbridge_allocate_resources() [all …]
|
| /illumos-gate/usr/src/uts/i86pc/io/acpi/acpidev/ |
| H A D | acpidev_dr.c | 303 ACPI_HANDLE phdl; in acpidev_dr_check() local 352 phdl = infop->awi_hdl; in acpidev_dr_check() 353 while (ACPI_SUCCESS(AcpiGetParent(phdl, &phdl)) && in acpidev_dr_check() 354 phdl != ACPI_ROOT_OBJECT) { in acpidev_dr_check() 355 pdhdl = acpidev_data_get_handle(phdl); in acpidev_dr_check() 1408 ACPI_HANDLE phdl; in acpidev_dr_set_prop() local 1419 for (rlvl = 0, phdl = hdl; in acpidev_dr_set_prop() 1420 ACPI_SUCCESS(AcpiGetParent(phdl, &phdl)); in acpidev_dr_set_prop() 1422 if (phdl == ACPI_ROOT_OBJECT) { in acpidev_dr_set_prop() 1649 ACPI_HANDLE phdl = NULL; in acpidev_dr_create_walk_info() local [all …]
|
| /illumos-gate/usr/src/uts/sun4v/io/ |
| H A D | ldc_shm.c | 253 ldc_mhdl_t *mhdl, *phdl; in ldc_mem_free_handle() local 278 phdl = ldcp->mhdl_list; in ldc_mem_free_handle() 281 if (phdl == mhdl) { in ldc_mem_free_handle() 291 while (phdl != NULL) { in ldc_mem_free_handle() 292 if (phdl->next == mhdl) { in ldc_mem_free_handle() 293 phdl->next = mhdl->next; in ldc_mem_free_handle() 301 phdl = phdl->next; in ldc_mem_free_handle() 305 if (phdl == NULL) { in ldc_mem_free_handle()
|
| /illumos-gate/usr/src/lib/libprtdiag_psr/sparc/cherrystone/common/ |
| H A D | cherrystone.c | 554 picl_nodehdl_t phdl; in print_fans() local 578 err = fill_device_from_id(fans[i], "PSVC_PARENT", &phdl); in print_fans() 581 err = picl_get_propval_by_name(phdl, PICL_PROP_NAME, parent, in print_fans()
|
| /illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/ |
| H A D | tavor.c | 2302 ddi_acc_handle_t hdl = state->ts_pci_cfghdl, phdl; in tavor_sw_reset() local 2343 status = pci_config_setup(pdip, &phdl); in tavor_sw_reset() 2357 pci_config_get32(phdl, i << 2); in tavor_sw_reset() 2382 while (pci_config_get32(phdl, 0) == TAVOR_SW_RESET_NOTDONE) { in tavor_sw_reset() 2393 pci_config_put32(phdl, i << 2, in tavor_sw_reset() 2401 pci_config_teardown(&phdl); in tavor_sw_reset()
|
| /illumos-gate/usr/src/lib/libpicltree/ |
| H A D | picltree.c | 1793 picl_prophdl_t phdl; in ptree_create_node() local 1837 err = ptree_create_prop(&propinfo, (const void *)name, &phdl); in ptree_create_node() 1842 err = ptree_add_prop(pobj->ptree_hdl, phdl); in ptree_create_node() 1844 (void) ptree_destroy_prop(phdl); in ptree_create_node()
|
| /illumos-gate/usr/src/cmd/dladm/ |
| H A D | dladm.c | 10195 dladm_overlay_propinfo_handle_t phdl, void *arg) in dladm_overlay_show_one() argument 10198 sp->sho_info = phdl; in dladm_overlay_show_one() 10201 if (dladm_overlay_get_prop(handle, linkid, phdl, &sp->sho_value, in dladm_overlay_show_one()
|