/titanic_44/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 | 521 uint_t prop_len; in nxge_hio_intr_init() local 537 "interrupts", &prop_val, &prop_len)) != DDI_PROP_SUCCESS) { in nxge_hio_intr_init() 553 for (i = 0; i < prop_len; i++) { in nxge_hio_intr_init() 561 hardware->max_grpids = prop_len; in nxge_hio_intr_init() 562 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() 580 for (j = 0; j < prop_len; j++) { in nxge_get_param_soft_properties() 583 prop_count = prop_len; in nxge_get_param_soft_properties() 594 &prop_len) == DDI_PROP_SUCCESS) { in nxge_get_param_soft_properties() 615 &prop_len) == DDI_PROP_SUCCESS) { in nxge_get_param_soft_properties()
|
/titanic_44/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() 266 for (j = 0; j < prop_len; j++) { in hxge_get_param_soft_properties() 269 prop_count = prop_len; in hxge_get_param_soft_properties() 279 &prop_len) == DDI_PROP_SUCCESS) { in hxge_get_param_soft_properties() 286 param_arr[i].name, (int **)&int_prop_val, &prop_len) == in hxge_get_param_soft_properties()
|
/titanic_44/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 | 1200 if ((buffer = kmem_alloc(propp->prop_len, in i_ddi_prop_search_global() 1210 *lengthp = propp->prop_len; in i_ddi_prop_search_global() 1211 bcopy(propp->prop_val, buffer, propp->prop_len); in i_ddi_prop_search_global() 1290 if ((prop_op == PROP_LEN) ||(propp->prop_len == 0)) { in ddi_prop_search_common() 1291 *lengthp = propp->prop_len; in ddi_prop_search_common() 1316 if (prealloc && (propp->prop_len != plength)) { in ddi_prop_search_common() 1321 plength = propp->prop_len; in ddi_prop_search_common() 1334 *lengthp = propp->prop_len; /* Set callers length */ in ddi_prop_search_common() 1341 buffer = kmem_alloc(propp->prop_len, in ddi_prop_search_common() 1358 if (propp->prop_len > (i)) { in ddi_prop_search_common() [all …]
|
/titanic_44/usr/src/uts/sparc/os/ |
H A D | cpr_sparc.c | 476 int prop_len = prom_getproplen(node, OBP_NAME); in cpr_build_nodename() local 478 if (prop_len < 0 || prop_len >= sizeof (name) || in cpr_build_nodename() 481 name[prop_len] = '\0'; in cpr_build_nodename() 483 if ((prop_len = prom_getproplen(node, OBP_REG)) < in cpr_build_nodename() 484 2 * sizeof (int) || prop_len >= sizeof (reg)) in cpr_build_nodename()
|
/titanic_44/usr/src/uts/sun4u/montecarlo/io/ |
H A D | pcf8591_nct.c | 1077 int i, retval = 0, prop_len; in pcf8591_read_props() local 1123 "reg", (caddr_t)&prop_value, &prop_len); in pcf8591_read_props() 1127 kmem_free(prop_value, prop_len); in pcf8591_read_props() 1148 "channels-in-use", &prop_len); in pcf8591_read_props() 1167 prop_len, unitp->props.num_chans_used); in pcf8591_read_props() 1173 (uint_t *)&prop_len); in pcf8591_read_props() 1176 prop_len = 0; in pcf8591_read_props() 1185 "channels-description", retval, prop_len); in pcf8591_read_props() 1186 for (i = 0; i < prop_len; ++i) { in pcf8591_read_props() 1198 DDI_PROP_DONTPASS, "tables", &creg_prop, (uint_t *)&prop_len); in pcf8591_read_props() [all …]
|
H A D | pcf8574_nct.c | 1600 int retval = 0, prop_len; in pcf8574_read_props() local 1646 "reg", (caddr_t)&prop_value, &prop_len); in pcf8574_read_props() 1651 kmem_free(prop_value, prop_len); in pcf8574_read_props() 1676 int prop_len, intr_pri = 4; in pcf8574_read_props() local 1680 &prop_len) == DDI_PROP_NOT_FOUND) { in pcf8574_read_props() 1699 "channels-in-use", &prop_len) == DDI_PROP_SUCCESS) { in pcf8574_read_props()
|
/titanic_44/usr/src/uts/common/xen/io/ |
H A D | xpvd.c | 320 size_t prop_len; in xpvd_prop_op() local 350 prop_len = strlen(prop_str) + 1; in xpvd_prop_op() 355 *lengthp = prop_len; in xpvd_prop_op() 359 buff = kmem_alloc((size_t)prop_len, KM_SLEEP); in xpvd_prop_op() 364 if (*lengthp < prop_len) in xpvd_prop_op() 372 if ((rv == DDI_PROP_SUCCESS) && (prop_len > 0)) { in xpvd_prop_op() 373 bcopy(prop_str, buff, prop_len); in xpvd_prop_op() 374 *lengthp = prop_len; in xpvd_prop_op()
|
/titanic_44/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()
|
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | devinfo.c | 670 devinfo_print_props_guess(int type, unsigned char *prop_val, int prop_len, in devinfo_print_props_guess() argument 674 if (prop_len == NULL) { in devinfo_print_props_guess() 682 *nelem = prop_len; in devinfo_print_props_guess() 689 if ((prop_len % sizeof (int64_t)) == 0) { in devinfo_print_props_guess() 691 *nelem = prop_len / *elem_size; in devinfo_print_props_guess() 698 if ((prop_len % sizeof (int)) == 0) { in devinfo_print_props_guess() 700 *nelem = prop_len / *elem_size; in devinfo_print_props_guess() 715 if (prop_val[prop_len - 1] == '\0') { in devinfo_print_props_guess() 723 for (i = 0; i < prop_len; i++) { in devinfo_print_props_guess() 739 *nelem = prop_len; in devinfo_print_props_guess() [all …]
|
/titanic_44/usr/src/lib/libdevinfo/ |
H A D | devinfo.c | 1511 if (DI_PROP(prop)->prop_len == 0) in di_prop_type() 1549 if (DI_PROP(prop)->prop_len == 0) in di_prop_ints() 1563 DI_PROP(prop)->prop_len, DI_PROP_TYPE_INT, 0)); in di_prop_ints() 1569 if (DI_PROP(prop)->prop_len == 0) in di_prop_int64() 1583 DI_PROP(prop)->prop_len, DI_PROP_TYPE_INT64, 0)); in di_prop_int64() 1589 if (DI_PROP(prop)->prop_len == 0) in di_prop_strings() 1603 DI_PROP(prop)->prop_len, DI_PROP_TYPE_STRING, 0)); in di_prop_strings() 1609 if (DI_PROP(prop)->prop_len == 0) in di_prop_bytes() 1623 DI_PROP(prop)->prop_len, DI_PROP_TYPE_BYTE, 0)); in di_prop_bytes() 1866 if (DI_PROP(prop)->prop_len == 0) { in di_prop_rawdata() [all …]
|
/titanic_44/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 …]
|
/titanic_44/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
|
/titanic_44/usr/src/uts/common/io/nxge/npi/ |
H A D | npi_espc.c | 588 int prop_len = strlen(prop) + 1; in npi_vpd_read_prop() local 591 for (i = 0; i < prop_len; i++) { in npi_vpd_read_prop() 596 ep += prop_len; in npi_vpd_read_prop()
|
/titanic_44/usr/src/lib/libprtdiag_psr/sparc/montecarlo/common/ |
H A D | montecarlo.c | 1206 int prop_len, i, k, max_slots_minus_cpu, n; in dump_prop_list() local 1225 prop_len = di_prop_rawdata(prop, &prop_data); in dump_prop_list() 1230 if (prop_len == 0) { in dump_prop_list() 1233 if (prop_data[prop_len - 1] != '\0') { in dump_prop_list() 1240 for (i = 0; i < prop_len; i++) { in dump_prop_list() 1271 temp_s = temp_s - prop_len+2; in dump_prop_list() 1272 for (k = 0, n = 0; k < prop_len; k++) { in dump_prop_list() 1353 for (i = 0; i < prop_len; ++i) { in dump_prop_list()
|
/titanic_44/usr/src/uts/i86xpv/io/psm/ |
H A D | mp_platform_xpv.c | 1170 int instance, instno, prop_len, bind_cpu, count; in apic_bind_intr() local 1234 (caddr_t)&prop_val, &prop_len); in apic_bind_intr() 1237 "intpt_bind_cpus", (caddr_t)&prop_val, &prop_len); in apic_bind_intr() 1241 for (i = count = 0; i < (prop_len - 1); i++) in apic_bind_intr() 1259 kmem_free(prop_val, prop_len); in apic_bind_intr()
|
/titanic_44/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 1280 (caddr_t)&prop_val, &prop_len); in apic_bind_intr() 1283 "intpt_bind_cpus", (caddr_t)&prop_val, &prop_len); in apic_bind_intr() 1287 for (i = count = 0; i < (prop_len - 1); i++) in apic_bind_intr() 1305 kmem_free(prop_val, prop_len); in apic_bind_intr()
|
/titanic_44/usr/src/uts/intel/promif/ |
H A D | prom_emul.c | 94 hwprop->prop_len, hwprop->prop_flags & DDI_PROP_TYPE_MASK); in promif_create_node()
|
/titanic_44/usr/src/uts/i86pc/io/apix/ |
H A D | apix_utils.c | 1338 int instance, instno, prop_len, bind_cpu, count; in apix_bind_cpu() local 1386 (caddr_t)&prop_val, &prop_len); in apix_bind_cpu() 1389 "intpt_bind_cpus", (caddr_t)&prop_val, &prop_len); in apix_bind_cpu() 1393 for (i = count = 0; i < (prop_len - 1); i++) in apix_bind_cpu() 1411 kmem_free(prop_val, prop_len); in apix_bind_cpu()
|
/titanic_44/usr/src/uts/common/io/chxge/ |
H A D | ch.c | 1918 uint32_t prop_len = NULL; 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()
|
/titanic_44/usr/src/uts/common/xen/os/ |
H A D | xvdi.c | 246 unsigned int prop_len; in xvdi_init_dev() local 340 &prop_len) != 0) in xvdi_init_dev() 344 kmem_free(prop_str, prop_len); in xvdi_init_dev() 352 &prop_str, &prop_len) != 0) in xvdi_init_dev() 356 kmem_free(prop_str, prop_len); in xvdi_init_dev()
|