Home
last modified time | relevance | path

Searched refs:sii (Results 1 – 3 of 3) sorted by relevance

/hardware/broadcom/wlan/bcm4329/src/shared/
Dsbutils.c42 static uint _sb_coreidx(si_info_t *sii, uint32 sba);
43 static uint _sb_scan(si_info_t *sii, uint32 sba, void *regs, uint bus, uint32 sbba,
45 static uint32 _sb_coresba(si_info_t *sii);
46 static void *_sb_setcoreidx(si_info_t *sii, uint coreidx);
48 #define SET_SBREG(sii, r, mask, val) \ argument
49 W_SBREG((sii), (r), ((R_SBREG((sii), (r)) & ~(mask)) | (val)))
56 #define R_SBREG(sii, sbr) sb_read_sbreg((sii), (sbr)) argument
57 #define W_SBREG(sii, sbr, v) sb_write_sbreg((sii), (sbr), (v)) argument
58 #define AND_SBREG(sii, sbr, v) W_SBREG((sii), (sbr), (R_SBREG((sii), (sbr)) & (v))) argument
59 #define OR_SBREG(sii, sbr, v) W_SBREG((sii), (sbr), (R_SBREG((sii), (sbr)) | (v))) argument
[all …]
Daiutils.c118 si_info_t *sii = SI_INFO(sih); in ai_scan() local
122 erombase = R_REG(sii->osh, &cc->eromptr); in ai_scan()
131 sii->curwrap = (void *)((uintptr)regs + SI_CORE_SIZE); in ai_scan()
134 OSL_PCI_WRITE_CONFIG(sii->osh, PCI_BAR0_WIN, 4, erombase); in ai_scan()
164 SI_MSG(("Found END of erom after %d cores\n", sii->numcores)); in ai_scan()
195 sii->common_info->oob_router = addrl; in ai_scan()
201 idx = sii->numcores; in ai_scan()
203 sii->common_info->cia[idx] = cia; in ai_scan()
204 sii->common_info->cib[idx] = cib; in ai_scan()
205 sii->common_info->coreid[idx] = cid; in ai_scan()
[all …]
Dsiutils.c50 static si_info_t *si_doattach(si_info_t *sii, uint devid, osl_t *osh, void *regs,
52 static bool si_buscore_prep(si_info_t *sii, uint bustype, uint devid, void *sdh);
53 static bool si_buscore_setup(si_info_t *sii, chipcregs_t *cc, uint bustype, uint32 savewin,
76 si_info_t *sii; in si_attach() local
79 if ((sii = MALLOC(osh, sizeof (si_info_t))) == NULL) { in si_attach()
84 if (si_doattach(sii, devid, osh, regs, bustype, sdh, vars, varsz) == NULL) { in si_attach()
85 if (NULL != sii->common_info) in si_attach()
86 MFREE(osh, sii->common_info, sizeof(si_common_info_t)); in si_attach()
87 MFREE(osh, sii, sizeof(si_info_t)); in si_attach()
90 sii->vars = vars ? *vars : NULL; in si_attach()
[all …]