Lines Matching defs:resources
219 * Constrain the number of resources we will try to program
243 * Now program the resources.
385 u_char *resources, int len)
396 resp = resources;
456 * Parse the resources for the previous
468 * resources.
501 device_printf(parent, "malformed resources\n");
522 * Read 'amount' bytes of resources from the card, allocating memory
527 * number of bytes of resources in '*spacep' and '*lenp' respectively.
536 u_char *resources = *resourcesp;
543 resources = malloc(space, M_TEMP, M_NOWAIT);
544 if (!resources)
554 /* XXX: free resources */
557 bcopy(resources, newres, len);
558 free(resources, M_TEMP);
559 resources = newres;
563 if (pnp_get_resource_info(resources + len, amount) != amount)
567 *resourcesp = resources;
575 * Read all resources from the card, allocating memory as needed. If a
578 * in '*resourcesp' with its size and the number of bytes of resources
584 u_char *resources = *resourcesp;
593 error = pnp_read_bytes(1, &resources, &space, &len);
596 tag = resources[len-1];
602 &resources, &space, &len);
611 error = pnp_read_bytes(2, &resources, &space, &len);
614 error = pnp_read_bytes(resources[len-2]
615 + (resources[len-1] << 8), &resources, &space,
623 *resourcesp = resources;
645 u_char *resources = NULL;
685 * resources, creating devices as we find
692 error = pnp_read_resources(&resources, &space, &len);
695 pnp_create_devices(parent, &id, csn, resources, len);
711 * now. Their resources will be programmed later.
718 if (resources)
719 free(resources, M_TEMP);