Lines Matching refs:core
89 struct bhnd_core_info *core);
92 struct bcma_erom_core *core);
100 static void bcma_erom_to_core_info(const struct bcma_erom_core *core,
202 struct bhnd_core_info *core) in bcma_erom_lookup_core() argument
207 return (bcma_erom_seek_matching_core(sc, desc, core)); in bcma_erom_lookup_core()
213 struct bhnd_core_info *core, bhnd_addr_t *addr, bhnd_size_t *size) in bcma_erom_lookup_core_addr() argument
226 if ((error = bcma_erom_seek_matching_core(sc, desc, core))) in bcma_erom_lookup_core_addr()
377 struct bcma_erom_core core; in bcma_erom_get_core_table() local
387 if ((error = bcma_erom_parse_core(sc, &core))) in bcma_erom_get_core_table()
402 struct bcma_erom_core core; in bcma_erom_get_core_table() local
410 error = bcma_erom_parse_core(sc, &core); in bcma_erom_get_core_table()
423 bcma_erom_to_core_info(&core, i, unit, &buffer[i]); in bcma_erom_get_core_table()
533 struct bcma_erom_core core; in bcma_erom_skip_core() local
534 return (bcma_erom_parse_core(erom, &core)); in bcma_erom_skip_core()
650 const struct bhnd_core_match *desc, struct bhnd_core_info *core) in bcma_erom_seek_matching_core() argument
714 if (core != NULL) in bcma_erom_seek_matching_core()
715 *core = ci; in bcma_erom_seek_matching_core()
735 bcma_erom_parse_core(struct bcma_erom *erom, struct bcma_erom_core *core) in bcma_erom_parse_core() argument
755 core->vendor = BCMA_EROM_GET_ATTR(entry, COREA_DESIGNER); in bcma_erom_parse_core()
756 core->device = BCMA_EROM_GET_ATTR(entry, COREA_ID); in bcma_erom_parse_core()
766 core->rev = BCMA_EROM_GET_ATTR(entry, COREB_REV); in bcma_erom_parse_core()
767 core->num_mport = BCMA_EROM_GET_ATTR(entry, COREB_NUM_MP); in bcma_erom_parse_core()
768 core->num_dport = BCMA_EROM_GET_ATTR(entry, COREB_NUM_DP); in bcma_erom_parse_core()
769 core->num_mwrap = BCMA_EROM_GET_ATTR(entry, COREB_NUM_WMP); in bcma_erom_parse_core()
770 core->num_swrap = BCMA_EROM_GET_ATTR(entry, COREB_NUM_WSP); in bcma_erom_parse_core()
888 bcma_erom_to_core_info(const struct bcma_erom_core *core, u_int core_idx, in bcma_erom_to_core_info() argument
891 info->vendor = core->vendor; in bcma_erom_to_core_info()
892 info->device = core->device; in bcma_erom_to_core_info()
893 info->hwrev = core->rev; in bcma_erom_to_core_info()
1057 struct bcma_erom_core core; in bcma_erom_next_corecfg() local
1068 if ((error = bcma_erom_parse_core(erom, &core))) in bcma_erom_next_corecfg()
1087 if (core.vendor == prev_core.vendor && in bcma_erom_next_corecfg()
1088 core.device == prev_core.device) in bcma_erom_next_corecfg()
1104 cfg = bcma_alloc_corecfg(core_index, core_unit, core.vendor, in bcma_erom_next_corecfg()
1105 core.device, core.rev); in bcma_erom_next_corecfg()
1111 KASSERT(core.num_mport <= BCMA_PID_MAX, ("unsupported mport count")); in bcma_erom_next_corecfg()
1112 KASSERT(core.num_dport <= BCMA_PID_MAX, ("unsupported dport count")); in bcma_erom_next_corecfg()
1113 KASSERT(core.num_mwrap + core.num_swrap <= BCMA_PID_MAX, in bcma_erom_next_corecfg()
1120 bhnd_vendor_name(core.vendor), in bcma_erom_next_corecfg()
1121 bhnd_find_core_name(core.vendor, core.device), in bcma_erom_next_corecfg()
1122 core.device, core.rev, core_unit); in bcma_erom_next_corecfg()
1125 cfg->num_master_ports = core.num_mport; in bcma_erom_next_corecfg()
1128 cfg->num_wrapper_ports = core.num_mwrap + core.num_swrap; in bcma_erom_next_corecfg()
1131 for (uint8_t i = 0; i < core.num_mport; i++) { in bcma_erom_next_corecfg()
1164 if (core.num_dport > 0) { in bcma_erom_next_corecfg()
1175 cfg->num_bridge_ports = core.num_dport; in bcma_erom_next_corecfg()
1178 cfg->num_dev_ports = core.num_dport; in bcma_erom_next_corecfg()
1184 for (uint8_t sp_num = 0; sp_num < core.num_dport; sp_num++) { in bcma_erom_next_corecfg()
1193 for (uint8_t sp_num = 0; sp_num < core.num_mwrap; sp_num++) { in bcma_erom_next_corecfg()
1202 for (uint8_t i = 0; i < core.num_swrap; i++) { in bcma_erom_next_corecfg()
1222 sp_num = (core.num_mwrap > 0) ? in bcma_erom_next_corecfg()
1223 core.num_mwrap : in bcma_erom_next_corecfg()
1224 ((core.vendor == BHND_MFGID_BCM) ? 1 : 0) + i; in bcma_erom_next_corecfg()