Lines Matching defs:core_id

125     const struct siba_core_id *core_id)
129 dinfo->core_id = *core_id;
132 for (uint8_t i = 0; i < core_id->num_admatch; i++) {
140 bus_reserved = core_id->num_cfg_blocks * SIBA_CFG_SIZE;
144 core_id->admatch[i].am_base, core_id->admatch[i].am_size,
172 if (!dinfo->core_id.intr_en)
185 "%d\n", dinfo->core_id.core_info.core_idx, error);
259 * @p core_id and @p port_type.
264 * @param core_id The siba core info.
268 siba_port_count(struct siba_core_id *core_id, bhnd_port_type port_type)
273 return (min(core_id->num_admatch, 2));
277 if (core_id->num_cfg_blocks > 0)
290 * Return true if @p port of @p port_type is defined by @p core_id, false
293 * @param core_id The siba core info.
298 siba_is_port_valid(struct siba_core_id *core_id, bhnd_port_type port_type,
302 if (siba_port_count(core_id, port_type) <= port)
309 * Return the number of bhnd(4) regions to advertise for @p core_id on the
312 * @param core_id The siba core info.
316 siba_port_region_count(struct siba_core_id *core_id, bhnd_port_type port_type,
320 if (!siba_is_port_valid(core_id, port_type, port))
327 return (min(core_id->num_admatch, 1));
330 if (port == 1 && core_id->num_admatch >= 2)
331 return (core_id->num_admatch - 1);
338 return (core_id->num_cfg_blocks);
372 siba_cfg_index(struct siba_core_id *core_id, bhnd_port_type port_type,
380 if (!siba_is_port_valid(core_id, port_type, port))
383 if (region >= core_id->num_cfg_blocks)
413 error = siba_cfg_index(&dinfo->core_id, type, port, region, &cfgidx);
434 * @param core_id The siba core info.
445 siba_addrspace_index(struct siba_core_id *core_id, bhnd_port_type port_type,
455 if (!siba_is_port_valid(core_id, port_type, port))
465 if (idx >= core_id->num_admatch)
492 error = siba_addrspace_index(&dinfo->core_id, type, port, region,
580 if (dinfo->core_id.intr_en && dinfo->intr.mapped) {