Lines Matching defs:assigned

1497 	pci_regspec_t	*assigned;
1503 DDI_PROP_DONTPASS, "assigned-addresses", (caddr_t)&assigned,
1505 DEBUG1("Failed to get assigned-addresses property %llx\n", dip);
1514 if ((PCI_REG_REG_G(assigned[i].pci_phys_hi) ==
1520 if ((PCI_REG_REG_G(assigned[i].pci_phys_hi) ==
1530 space_type, assigned[i].pci_phys_low, assigned[i].pci_size_low);
1533 *boundbase = assigned[i].pci_phys_low;
1534 *boundlen = assigned[i].pci_size_low;
1537 kmem_free(assigned, length);
1843 * Successfully allocated and assigned
1846 * it will not de-allocate assigned resources.
2043 * Now that memory locations are assigned,
2044 * update the assigned address property.
2219 * Now that memory locations are assigned,
2220 * update the assigned address property.
2245 pci_regspec_t *assigned;
2257 DDI_PROP_DONTPASS, "assigned-addresses", (caddr_t)&assigned,
2259 DEBUG0("Failed to read assigned-addresses property\n");
2268 kmem_free((caddr_t)assigned, length);
2274 * For each "assigned-addresses" property entry with a length,
2294 if ((assigned[i].pci_size_low != 0)||
2295 (assigned[i].pci_size_hi != 0)) {
2297 request.ra_len = assigned[i].pci_size_low;
2299 switch (PCI_REG_ADDR_G(assigned[i].pci_phys_hi)) {
2302 assigned[i].pci_phys_low,
2303 assigned[i].pci_phys_mid);
2311 kmem_free(assigned, length);
2318 assigned[i].pci_phys_low;
2326 kmem_free(assigned, length);
2333 assigned[i].pci_phys_low;
2341 kmem_free(assigned, length);
2348 kmem_free(assigned, length);
2355 kmem_free(assigned, length);
2754 DDI_PROP_DONTPASS, "assigned-addresses",
2756 DEBUG0("Node doesn't have assigned-addresses\n");
2828 * assigned-addresses but for now it is better to
2915 pci_regspec_t *assigned;
2922 DDI_PROP_DONTPASS, "assigned-addresses", (caddr_t)&assigned,
2924 DEBUG0("Failed to read assigned-addresses property\n");
2929 * For each "assigned-addresses" property entry with a length,
2940 if ((PCI_REG_REG_G(assigned[i].pci_phys_hi) > PCI_CONF_BASE5) &&
2941 (PCI_REG_REG_G(assigned[i].pci_phys_hi) != PCI_CONF_ROM))
2944 if (pcicfg_free_resource(dip, assigned[i], flags)) {
2946 "%x\n", assigned[i].pci_phys_hi);
2950 kmem_free((caddr_t)assigned, length);
2955 kmem_free(assigned, length);
3072 pci_regspec_t *assigned;
3078 "assigned-addresses", (caddr_t)&assigned, &alen);
3083 DEBUG0("no memory for assigned-addresses property\n");
3087 "assigned-addresses", (int *)newone,
3097 * assigned-addresses(s) plus one and then
3103 bcopy(assigned, newreg, alen);
3107 * Write out the new "assigned-addresses" spec
3110 "assigned-addresses", (int *)newreg,
3118 kmem_free((caddr_t)assigned, alen);
4056 * later (after memory is assigned).
4138 * for readonly probe "assigned-addresses" property
4395 * later (after memory is assigned).
4504 * Add resource to assigned-addresses.
4670 * Free any resources that may have been assigned
4820 * Add to "assigned-addresses" property
4876 * Add to "assigned-addresses" property
5763 DDI_PROP_DONTPASS, "assigned-addresses", (caddr_t)&reg,
5765 DEBUG0("Failed to read assigned-addresses property\n");
6005 * exit from this function, "assigned-addresses" are created
6065 * - adds an "assigned-addresses" property
6123 * Add resource to assigned-addresses.
6137 " assigned-address property for dev %s\n",
6150 * We came in with no "assigned-addresses".
6163 pci_regspec_t *assigned;
6169 DDI_PROP_DONTPASS, "assigned-addresses", (caddr_t)&assigned,
6171 DEBUG0("Failed to read assigned-addresses property\n");
6178 if (pcicfg_free_resource(dip, assigned[i], 0)) {
6182 kmem_free((caddr_t)assigned, assigned_len);
6191 kmem_free((caddr_t)assigned, assigned_len);
6198 pci_regspec_t *assigned, *reg;
6216 DDI_PROP_DONTPASS, "assigned-addresses", (caddr_t)&assigned,
6223 DEBUG1("assigned-addresses property len=%x\n", acount);
6227 * assigned-addresses property. If it does not exist, allocate
6235 if (assigned[j].pci_phys_hi == reg[i].pci_phys_hi) {
6244 assigned[j].pci_size_low) {
6250 " assigned 0x%x reg 0x%x\n",
6251 assigned[j].pci_phys_hi,
6252 assigned[j].pci_size_low,
6259 assigned[j], 0);
6263 " assigned 0x%x reg 0x%x\n",
6264 assigned[j].pci_phys_hi,
6265 assigned[j].pci_size_low,
6276 if (PCI_REG_BDFR_G(assigned[j].pci_phys_hi) ==
6280 "- PARTIAL MATCH assigned 0x%x "
6281 "reg 0x%x\n", assigned[j].pci_phys_hi,
6287 assigned[j].pci_phys_hi) !=
6304 assigned[j], 0);
6307 assigned[j].pci_size_low);
6330 kmem_free((caddr_t)assigned,
6342 kmem_free((caddr_t)assigned, assigned_len);
6359 pci_regspec_t *assigned;
6363 DDI_PROP_DONTPASS, "assigned-addresses", (caddr_t)&assigned,
6366 "searching assigned-addresses\n");
6371 * Walk through the assigned-addresses entries. If there is
6375 if (assigned[i].pci_phys_hi == phys_spec.pci_phys_hi) {
6377 assigned[i].pci_phys_hi);
6378 kmem_free(assigned, assigned_len);
6382 kmem_free(assigned, assigned_len);
6536 * Now that memory locations are assigned,
6537 * update the assigned address property.
6540 DEBUG1("updating assigned-addresss for %x\n", phys_spec.pci_phys_hi);
6644 * Now that memory locations are assigned,
6645 * update the assigned address property.
6648 DEBUG1("updating assigned-addresss for %x\n", phys_spec.pci_phys_hi);
6664 pci_regspec_t *assigned, *assigned_copy;
6668 "assigned-addresses", (caddr_t)&assigned, &alen);
6673 DEBUG0("no memory for assigned-addresses property\n");
6676 DEBUG0("assigned-addresses property does not exist\n");
6681 * Make a copy of old assigned-addresses property.
6684 bcopy(assigned, assigned_copy, alen);
6686 status = ndi_prop_remove(DDI_DEV_T_NONE, dip, "assigned-addresses");
6690 * If "assigned-addresses" is retrieved from PROM, the
6700 kmem_free((caddr_t)assigned, alen);
6708 * Rebuild the assigned-addresses property.
6718 * Free the copy of the original assigned-addresses.
6725 kmem_free((caddr_t)assigned, alen);