/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_virtual.c | 368 uint_t prop_len; in nxge_get_niu_property() local 373 &prop_len) == DDI_PROP_SUCCESS) { in nxge_get_niu_property() 374 if (strncmp("niu", (caddr_t)prop_val, (size_t)prop_len) == 0) { in nxge_get_niu_property() 585 uint_t prop_len; in nxge_update_rxdma_properties() local 625 &prop_len); in nxge_update_rxdma_properties() 654 &prop_len); in nxge_update_rxdma_properties() 800 uint_t prop_len; in nxge_update_txdma_properties() local 836 &prop_val, &prop_len); in nxge_update_txdma_properties() 860 &prop_val, &prop_len); in nxge_update_txdma_properties() 1043 uint_t prop_len; in nxge_cfg_verify_set_classify_prop() local [all …]
|
H A D | nxge_intr.c | 524 uint_t prop_len; in nxge_hio_intr_init() local 540 "interrupts", &prop_val, &prop_len)) != DDI_PROP_SUCCESS) { in nxge_hio_intr_init() 556 for (i = 0; i < prop_len; i++) { in nxge_hio_intr_init() 564 hardware->max_grpids = prop_len; in nxge_hio_intr_init() 565 hardware->max_ldgs = prop_len; in nxge_hio_intr_init()
|
H A D | nxge_ndd.c | 548 uint_t prop_len; in nxge_get_param_soft_properties() local 567 (uint_t *)&prop_len) in nxge_get_param_soft_properties() 572 if (prop_len > NXGE_PARAM_ARRAY_INIT_SIZE) in nxge_get_param_soft_properties() 573 prop_len = NXGE_PARAM_ARRAY_INIT_SIZE; in nxge_get_param_soft_properties() 575 for (j = 0; j < prop_len; j++) { in nxge_get_param_soft_properties() 578 prop_count = prop_len; in nxge_get_param_soft_properties() 589 &prop_len) == DDI_PROP_SUCCESS) { in nxge_get_param_soft_properties() 610 &prop_len) == DDI_PROP_SUCCESS) { in nxge_get_param_soft_properties()
|
/illumos-gate/usr/src/uts/common/io/hxge/ |
H A D | hxge_virtual.c | 161 uint_t prop_len; in hxge_use_cfg_vlan_class_config() local 179 &int_prop_val, &prop_len) == DDI_PROP_SUCCESS) { in hxge_use_cfg_vlan_class_config() 233 uint_t prop_len; in hxge_use_cfg_dma_config() local 271 &prop_val, &prop_len) == DDI_PROP_SUCCESS) { in hxge_use_cfg_dma_config() 272 if ((prop_len > 0) && (prop_len <= p_cfgp->max_rdcs)) { in hxge_use_cfg_dma_config() 274 hxgep->dip, prop, prop_val, prop_len); in hxge_use_cfg_dma_config() 282 &prop_val, &prop_len) == DDI_PROP_SUCCESS) { in hxge_use_cfg_dma_config() 283 if ((prop_len > 0) && (prop_len <= p_cfgp->max_rdcs)) { in hxge_use_cfg_dma_config() 285 hxgep->dip, prop, prop_val, prop_len); in hxge_use_cfg_dma_config() 293 &prop_val, &prop_len) == DDI_PROP_SUCCESS) { in hxge_use_cfg_dma_config() [all …]
|
H A D | hxge_ndd.c | 231 uint_t prop_len; in hxge_get_param_soft_properties() local 253 (int **)&int_prop_val, (uint_t *)&prop_len) == in hxge_get_param_soft_properties() 258 if (prop_len > HXGE_PARAM_ARRAY_INIT_SIZE) in hxge_get_param_soft_properties() 259 prop_len = HXGE_PARAM_ARRAY_INIT_SIZE; in hxge_get_param_soft_properties() 261 for (j = 0; j < prop_len; j++) { in hxge_get_param_soft_properties() 264 prop_count = prop_len; in hxge_get_param_soft_properties() 274 &prop_len) == DDI_PROP_SUCCESS) { in hxge_get_param_soft_properties() 281 param_arr[i].name, (int **)&int_prop_val, &prop_len) == in hxge_get_param_soft_properties()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | driver_lyr.c | 837 i_ldi_prop_op_alloc(int prop_len) in i_ldi_prop_op_alloc() argument 842 pdd_size = sizeof (struct prop_driver_data) + prop_len; in i_ldi_prop_op_alloc() 858 int prop_len, res; in i_ldi_prop_op_typed() local 868 flags | DDI_PROP_DYNAMIC, name, NULL, &prop_len); in i_ldi_prop_op_typed() 873 if (prop_len == 0) { in i_ldi_prop_op_typed() 884 if (elem_size && ((prop_len % elem_size) != 0)) in i_ldi_prop_op_typed() 891 prop_val = i_ldi_prop_op_alloc(prop_len); in i_ldi_prop_op_typed() 895 flags | DDI_PROP_DYNAMIC, name, prop_val, &prop_len); in i_ldi_prop_op_typed() 902 if (prop_len == 0) { in i_ldi_prop_op_typed() 908 if (elem_size && ((prop_len % elem_size) != 0)) { in i_ldi_prop_op_typed() [all …]
|
H A D | sunddi.c | 1130 if ((buffer = kmem_alloc(propp->prop_len, in i_ddi_prop_search_global() 1140 *lengthp = propp->prop_len; in i_ddi_prop_search_global() 1141 bcopy(propp->prop_val, buffer, propp->prop_len); in i_ddi_prop_search_global() 1220 if ((prop_op == PROP_LEN) ||(propp->prop_len == 0)) { in ddi_prop_search_common() 1221 *lengthp = propp->prop_len; in ddi_prop_search_common() 1246 if (prealloc && (propp->prop_len != plength)) { in ddi_prop_search_common() 1251 plength = propp->prop_len; in ddi_prop_search_common() 1264 *lengthp = propp->prop_len; /* Set callers length */ in ddi_prop_search_common() 1271 buffer = kmem_alloc(propp->prop_len, in ddi_prop_search_common() 1288 if (propp->prop_len > (i)) { in ddi_prop_search_common() [all …]
|
/illumos-gate/usr/src/uts/sparc/os/ |
H A D | cpr_sparc.c | 474 int prop_len = prom_getproplen(node, OBP_NAME); in cpr_build_nodename() local 476 if (prop_len < 0 || prop_len >= sizeof (name) || in cpr_build_nodename() 479 name[prop_len] = '\0'; in cpr_build_nodename() 481 if ((prop_len = prom_getproplen(node, OBP_REG)) < in cpr_build_nodename() 482 2 * sizeof (int) || prop_len >= sizeof (reg)) in cpr_build_nodename()
|
/illumos-gate/usr/src/cmd/eeprom/i386/ |
H A D | benv_kvm.c | 208 propval = prom_getprop(curprop, &npp->prop_len); in get_proplist() 211 npp->prop_val = (char *)malloc(npp->prop_len); in get_proplist() 214 memcpy(npp->prop_val, propval, npp->prop_len); in get_proplist()
|
/illumos-gate/usr/src/uts/common/xen/io/ |
H A D | xpvd.c | 329 size_t prop_len; in xpvd_prop_op() local 359 prop_len = strlen(prop_str) + 1; in xpvd_prop_op() 364 *lengthp = prop_len; in xpvd_prop_op() 368 buff = kmem_alloc((size_t)prop_len, KM_SLEEP); in xpvd_prop_op() 373 if (*lengthp < prop_len) in xpvd_prop_op() 383 bcopy(prop_str, buff, prop_len); in xpvd_prop_op() 384 *lengthp = prop_len; in xpvd_prop_op()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | devinfo.c | 682 devinfo_print_props_guess(int type, unsigned char *prop_val, int prop_len, in devinfo_print_props_guess() argument 686 if (prop_len == 0) { in devinfo_print_props_guess() 694 *nelem = prop_len; in devinfo_print_props_guess() 701 if ((prop_len % sizeof (int64_t)) == 0) { in devinfo_print_props_guess() 703 *nelem = prop_len / *elem_size; in devinfo_print_props_guess() 710 if ((prop_len % sizeof (int)) == 0) { in devinfo_print_props_guess() 712 *nelem = prop_len / *elem_size; in devinfo_print_props_guess() 727 if (prop_val[prop_len - 1] == '\0') { in devinfo_print_props_guess() 735 for (i = 0; i < prop_len; i++) { in devinfo_print_props_guess() 751 *nelem = prop_len; in devinfo_print_props_guess() [all …]
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | microcode.c | 493 int prop_len; in ucode_check_boot() local 511 prop_len = BOP_GETPROPLEN(bootops, prop); in ucode_check_boot() 512 if (prop_len <= 0) { in ucode_check_boot() 522 plat = BOP_ALLOC(bootops, NULL, prop_len + 1, MMU_PAGESIZE); in ucode_check_boot()
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo.c | 1513 if (DI_PROP(prop)->prop_len == 0) in di_prop_type() 1551 if (DI_PROP(prop)->prop_len == 0) in di_prop_ints() 1565 DI_PROP(prop)->prop_len, DI_PROP_TYPE_INT, 0)); in di_prop_ints() 1571 if (DI_PROP(prop)->prop_len == 0) in di_prop_int64() 1585 DI_PROP(prop)->prop_len, DI_PROP_TYPE_INT64, 0)); in di_prop_int64() 1591 if (DI_PROP(prop)->prop_len == 0) in di_prop_strings() 1605 DI_PROP(prop)->prop_len, DI_PROP_TYPE_STRING, 0)); in di_prop_strings() 1611 if (DI_PROP(prop)->prop_len == 0) in di_prop_bytes() 1625 DI_PROP(prop)->prop_len, DI_PROP_TYPE_BYTE, 0)); in di_prop_bytes() 1868 if (DI_PROP(prop)->prop_len == 0) { in di_prop_rawdata() [all …]
|
/illumos-gate/usr/src/uts/common/io/hme/ |
H A D | hme.c | 1168 int prop_len = sizeof (int); in hmeattach() local 1388 (caddr_t)&hm_rev, &prop_len) == DDI_PROP_SUCCESS) { in hmeattach() 1679 int prop_len = sizeof (int); in hmeinit_xfer_params() local 1697 (caddr_t)&hme_ipg1_conf, &prop_len) == DDI_PROP_SUCCESS) { in hmeinit_xfer_params() 1702 (caddr_t)&hme_ipg2_conf, &prop_len) == DDI_PROP_SUCCESS) { in hmeinit_xfer_params() 1707 (caddr_t)&hme_ipg0_conf, &prop_len) == DDI_PROP_SUCCESS) { in hmeinit_xfer_params() 1712 (caddr_t)&hme_lance_mode_conf, &prop_len) == DDI_PROP_SUCCESS) { in hmeinit_xfer_params() 3569 int prop_len = sizeof (int); in hme_setup_mac_address() local 3580 (caddr_t)&prop, &prop_len) == DDI_PROP_SUCCESS) { in hme_setup_mac_address() 3581 if (prop_len == ETHERADDRL) { in hme_setup_mac_address() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | devinfo_impl.h | 373 int prop_len; /* prop length in bytes */ member 387 int prop_len; /* prop len in bytes (boolean if 0) */ member
|
H A D | ddipropdefs.h | 60 int prop_len; /* Prop length (0 == Bool. prop) */ member
|
/illumos-gate/usr/src/uts/common/io/nxge/npi/ |
H A D | npi_espc.c | 586 int prop_len = strlen(prop) + 1; in npi_vpd_read_prop() local 589 for (i = 0; i < prop_len; i++) { in npi_vpd_read_prop() 594 ep += prop_len; in npi_vpd_read_prop()
|
/illumos-gate/usr/src/uts/i86xpv/io/psm/ |
H A D | mp_platform_xpv.c | 1166 int instance, instno, prop_len, bind_cpu, count; in apic_bind_intr() local 1230 (caddr_t)&prop_val, &prop_len); in apic_bind_intr() 1233 "intpt_bind_cpus", (caddr_t)&prop_val, &prop_len); in apic_bind_intr() 1237 for (i = count = 0; i < (prop_len - 1); i++) in apic_bind_intr() 1255 kmem_free(prop_val, prop_len); in apic_bind_intr()
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | mp_platform_misc.c | 1216 int instance, instno, prop_len, bind_cpu, count; in apic_bind_intr() local 1293 (caddr_t)&prop_val, &prop_len); in apic_bind_intr() 1296 "intpt_bind_cpus", (caddr_t)&prop_val, &prop_len); in apic_bind_intr() 1299 for (i = count = 0; i < (prop_len - 1); i++) in apic_bind_intr() 1317 kmem_free(prop_val, prop_len); in apic_bind_intr()
|
/illumos-gate/usr/src/uts/i86pc/io/apix/ |
H A D | apix_utils.c | 1343 int instance, instno, prop_len, bind_cpu, count; in apix_bind_cpu() local 1391 (caddr_t)&prop_val, &prop_len); in apix_bind_cpu() 1394 "intpt_bind_cpus", (caddr_t)&prop_val, &prop_len); in apix_bind_cpu() 1398 for (i = count = 0; i < (prop_len - 1); i++) in apix_bind_cpu() 1425 kmem_free(prop_val, prop_len); in apix_bind_cpu()
|
/illumos-gate/usr/src/uts/intel/promif/ |
H A D | prom_emul.c | 98 hwprop->prop_len, hwprop->prop_flags & DDI_PROP_TYPE_MASK); in promif_create_node()
|
/illumos-gate/usr/src/uts/common/io/chxge/ |
H A D | ch.c | 1918 uint32_t prop_len = 0; in ch_get_prop() local 1954 (int **)&prop_val, &prop_len) != DDI_PROP_SUCCESS) { in ch_get_prop() 1966 (int **)&prop_val, &prop_len) != DDI_PROP_SUCCESS) { in ch_get_prop() 1978 (int **)&prop_val, &prop_len) != DDI_PROP_SUCCESS) { in ch_get_prop()
|
/illumos-gate/usr/src/uts/common/xen/os/ |
H A D | xvdi.c | 256 unsigned int prop_len; in xvdi_init_dev() local 350 &prop_len) != 0) in xvdi_init_dev() 354 kmem_free(prop_str, prop_len); in xvdi_init_dev() 362 &prop_str, &prop_len) != 0) in xvdi_init_dev() 366 kmem_free(prop_str, prop_len); in xvdi_init_dev()
|
/illumos-gate/usr/src/uts/common/io/cardbus/ |
H A D | cardbus.c | 1537 propp->prop_len = len; in cardbus_add_prop() 1557 if (propp->prop_len) { in cardbus_prop_free() 1560 kmem_free(propp->prop_val, propp->prop_len); in cardbus_prop_free() 1564 propp->prop_len * sizeof (int)); in cardbus_prop_free()
|
/illumos-gate/usr/src/uts/common/io/ib/ibnex/ |
H A D | ibnex.c | 2408 int prop_len; in ibnex_create_ioc_portgid_prop() local 2416 prop_len = (ioc_info->ioc_nportgids != 0) ? in ibnex_create_ioc_portgid_prop() 2418 length = sizeof (uint64_t) * prop_len; in ibnex_create_ioc_portgid_prop() 2426 (int64_t *)port_gids, prop_len) != DDI_PROP_SUCCESS) { in ibnex_create_ioc_portgid_prop() 3453 if (propp->prop_len <= 1) in ibnex_lookup_named_prop()
|