• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/bhnd/siba/

Lines Matching defs:core_id

128     const struct siba_core_id *core_id)
132 dinfo->core_id = *core_id;
135 for (uint8_t i = 0; i < core_id->num_admatch; i++) {
143 bus_reserved = core_id->num_cfg_blocks * SIBA_CFG_SIZE;
147 core_id->admatch[i].am_base, core_id->admatch[i].am_size,
176 if (!dinfo->core_id.intr_en)
189 "%d\n", dinfo->core_id.core_info.core_idx, error);
263 * @p core_id and @p port_type.
268 * @param core_id The siba core info.
272 siba_port_count(struct siba_core_id *core_id, bhnd_port_type port_type)
277 return (min(core_id->num_admatch, 2));
281 if (core_id->num_cfg_blocks > 0)
294 * Return true if @p port of @p port_type is defined by @p core_id, false
297 * @param core_id The siba core info.
302 siba_is_port_valid(struct siba_core_id *core_id, bhnd_port_type port_type,
306 if (siba_port_count(core_id, port_type) <= port)
313 * Return the number of bhnd(4) regions to advertise for @p core_id on the
316 * @param core_id The siba core info.
320 siba_port_region_count(struct siba_core_id *core_id, bhnd_port_type port_type,
324 if (!siba_is_port_valid(core_id, port_type, port))
331 return (min(core_id->num_admatch, 1));
334 if (port == 1 && core_id->num_admatch >= 2)
335 return (core_id->num_admatch - 1);
342 return (core_id->num_cfg_blocks);
376 siba_cfg_index(struct siba_core_id *core_id, bhnd_port_type port_type,
384 if (!siba_is_port_valid(core_id, port_type, port))
387 if (region >= core_id->num_cfg_blocks)
417 error = siba_cfg_index(&dinfo->core_id, type, port, region, &cfgidx);
438 * @param core_id The siba core info.
449 siba_addrspace_index(struct siba_core_id *core_id, bhnd_port_type port_type,
459 if (!siba_is_port_valid(core_id, port_type, port))
469 if (idx >= core_id->num_admatch)
496 error = siba_addrspace_index(&dinfo->core_id, type, port, region,
584 if (dinfo->core_id.intr_en && dinfo->intr.mapped) {