Home
last modified time | relevance | path

Searched refs:osh (Results 1 – 25 of 34) sorted by relevance

12

/hardware/broadcom/wlan/bcm4329/src/include/
Dlinux_osl.h53 #define OSL_PCMCIA_READ_ATTR(osh, offset, buf, size) \ argument
54 osl_pcmcia_read_attr((osh), (offset), (buf), (size))
55 #define OSL_PCMCIA_WRITE_ATTR(osh, offset, buf, size) \ argument
56 osl_pcmcia_write_attr((osh), (offset), (buf), (size))
57 extern void osl_pcmcia_read_attr(osl_t *osh, uint offset, void *buf, int size);
58 extern void osl_pcmcia_write_attr(osl_t *osh, uint offset, void *buf, int size);
61 #define OSL_PCI_READ_CONFIG(osh, offset, size) \ argument
62 osl_pci_read_config((osh), (offset), (size))
63 #define OSL_PCI_WRITE_CONFIG(osh, offset, size, val) \ argument
64 osl_pci_write_config((osh), (offset), (size), (val))
[all …]
Dosl.h44 #define SET_REG(osh, r, mask, val) W_REG((osh), (r), ((R_REG((osh), r) & ~(mask)) | (val))) argument
47 #define AND_REG(osh, r, v) W_REG(osh, (r), R_REG(osh, r) & (v)) argument
51 #define OR_REG(osh, r, v) W_REG(osh, (r), R_REG(osh, r) | (v)) argument
Dbcmsdh_sdmmc.h65 osl_t *osh; /* osh handler */ member
110 extern uint32 *sdioh_sdmmc_reg_map(osl_t *osh, int32 addr, int size);
111 extern void sdioh_sdmmc_reg_unmap(osl_t *osh, int32 addr, int size);
Dhndpmu.h31 extern void si_pmu_otp_power(si_t *sih, osl_t *osh, bool on);
32 extern void si_sdiod_drive_strength_init(si_t *sih, osl_t *osh, uint32 drivestrength);
Dbcmsdspi.h61 osl_t *osh; /* osh handler */ member
118 extern uint32 *spi_reg_map(osl_t *osh, uintptr addr, int size);
119 extern void spi_reg_unmap(osl_t *osh, uintptr addr, int size);
Dbcmsdh.h50 extern bcmsdh_info_t *bcmsdh_attach(osl_t *osh, void *cfghdl, void **regsva, uint irq);
53 extern int bcmsdh_detach(osl_t *osh, void *sdh);
181 uint16 func, uint bustype, void * regsva, osl_t * osh,
Dbcmsdstd.h96 osl_t *osh; /* osh handler */ member
211 extern uint32 *sdstd_reg_map(osl_t *osh, int32 addr, int size);
212 extern void sdstd_reg_unmap(osl_t *osh, int32 addr, int size);
Dbcmutils.h151 extern void pktq_pflush(osl_t *osh, struct pktq *pq, int prec, bool dir);
153 extern void pktq_flush(osl_t *osh, struct pktq *pq, bool dir);
184 extern uint pktcopy(osl_t *osh, void *p, uint offset, int len, uchar *buf);
185 extern uint pktfrombuf(osl_t *osh, void *p, uint offset, int len, uchar *buf);
186 extern uint pkttotlen(osl_t *osh, void *p);
187 extern void *pktlast(osl_t *osh, void *p);
188 extern uint pktsegcnt(osl_t *osh, void *p);
/hardware/broadcom/wlan/bcm4329/src/shared/
Dlinux_osl.c153 osl_t *osh; in osl_attach() local
157 osh = kmalloc(sizeof(osl_t), flags); in osl_attach()
158 ASSERT(osh); in osl_attach()
160 bzero(osh, sizeof(osl_t)); in osl_attach()
165 osh->magic = OS_HANDLE_MAGIC; in osl_attach()
166 osh->malloced = 0; in osl_attach()
167 osh->failed = 0; in osl_attach()
168 osh->dbgmem_list = NULL; in osl_attach()
169 osh->pdev = pdev; in osl_attach()
170 osh->pub.pkttag = pkttag; in osl_attach()
[all …]
Daiutils.c122 erombase = R_REG(sii->osh, &cc->eromptr); in ai_scan()
134 OSL_PCI_WRITE_CONFIG(sii->osh, PCI_BAR0_WIN, 4, erombase); in ai_scan()
422 return (R_REG(sii->osh, &ai->oobselouta30) & 0x1f); in ai_flag()
435 W_REG(sii->osh, (uint32 *)((uint8 *)ai+offset), val); in ai_write_wrap_reg()
470 return (((R_REG(sii->osh, &ai->ioctrl) & (SICF_FGC | SICF_CLOCK_EN)) == SICF_CLOCK_EN) && in ai_iscoreup()
471 ((R_REG(sii->osh, &ai->resetctrl) & AIRC_RESET) == 0)); in ai_iscoreup()
549 w = (R_REG(sii->osh, r) & ~mask) | val; in ai_corereg()
550 W_REG(sii->osh, r, w); in ai_corereg()
554 w = R_REG(sii->osh, r); in ai_corereg()
580 if (R_REG(sii->osh, &ai->resetctrl) & AIRC_RESET) in ai_core_disable()
[all …]
Dsiutils.c50 static si_info_t *si_doattach(si_info_t *sii, uint devid, osl_t *osh, void *regs,
73 si_attach(uint devid, osl_t *osh, void *regs, in si_attach() argument
79 if ((sii = MALLOC(osh, sizeof (si_info_t))) == NULL) { in si_attach()
80 SI_ERROR(("si_attach: malloc failed! malloced %d bytes\n", MALLOCED(osh))); in si_attach()
84 if (si_doattach(sii, devid, osh, regs, bustype, sdh, vars, varsz) == NULL) { 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()
103 si_kattach(osl_t *osh) in si_kattach() argument
110 if (si_doattach(&ksii, BCM4710_DEVICE_ID, osh, regs, in si_kattach()
112 osh != SI_OSH ? &ksii.vars : NULL, in si_kattach()
[all …]
Dsbutils.c77 OSL_PCMCIA_WRITE_ATTR(sii->osh, MEM_SEG, &tmp, 1); in sb_read_sbreg()
81 val = R_REG(sii->osh, sbr); in sb_read_sbreg()
85 OSL_PCMCIA_WRITE_ATTR(sii->osh, MEM_SEG, &tmp, 1); in sb_read_sbreg()
109 OSL_PCMCIA_WRITE_ATTR(sii->osh, MEM_SEG, &tmp, 1); in sb_write_sbreg()
115 dummy = R_REG(sii->osh, sbr); in sb_write_sbreg()
116 W_REG(sii->osh, ((volatile uint16 *)sbr + 1), (uint16)((v >> 16) & 0xffff)); in sb_write_sbreg()
117 dummy = R_REG(sii->osh, sbr); in sb_write_sbreg()
118 W_REG(sii->osh, (volatile uint16 *)sbr, (uint16)(v & 0xffff)); in sb_write_sbreg()
120 dummy = R_REG(sii->osh, sbr); in sb_write_sbreg()
121 W_REG(sii->osh, (volatile uint16 *)sbr, (uint16)(v & 0xffff)); in sb_write_sbreg()
[all …]
Dhndpmu.c70 si_sdiod_drive_strength_init(si_t *sih, osl_t *osh, uint32 drivestrength) in si_sdiod_drive_strength_init() argument
118 W_REG(osh, &cc->chipcontrol_addr, 1); in si_sdiod_drive_strength_init()
119 cc_data_temp = R_REG(osh, &cc->chipcontrol_data); in si_sdiod_drive_strength_init()
123 W_REG(osh, &cc->chipcontrol_data, cc_data_temp); in si_sdiod_drive_strength_init()
Dbcmutils.c56 pktcopy(osl_t *osh, void *p, uint offset, int len, uchar *buf) in pktcopy() argument
64 for (; p && offset; p = PKTNEXT(osh, p)) { in pktcopy()
65 if (offset < (uint)PKTLEN(osh, p)) in pktcopy()
67 offset -= PKTLEN(osh, p); in pktcopy()
74 for (; p && len; p = PKTNEXT(osh, p)) { in pktcopy()
75 n = MIN((uint)PKTLEN(osh, p) - offset, (uint)len); in pktcopy()
76 bcopy(PKTDATA(osh, p) + offset, buf, n); in pktcopy()
88 pktfrombuf(osl_t *osh, void *p, uint offset, int len, uchar *buf) in pktfrombuf() argument
93 for (; p && offset; p = PKTNEXT(osh, p)) { in pktfrombuf()
94 if (offset < (uint)PKTLEN(osh, p)) in pktfrombuf()
[all …]
Dsiutils_priv.h69 void *osh; /* osl os handle */ member
183 extern bool sb_pci_fastpmecap(struct osl_info *osh);
189 extern si_t *ai_attach(uint pcidev, osl_t *osh, void *regs, uint bustype,
191 extern si_t *ai_kattach(osl_t *osh);
/hardware/broadcom/wlan/bcm4329/src/bcmsdio/sys/
Dbcmpcispi.c50 #define SPIPCI_ANDREG(osh, r, v) SPIPCI_WREG(osh, (r), (SPIPCI_RREG(osh, r) & (v))) argument
51 #define SPIPCI_ORREG(osh, r, v) SPIPCI_WREG(osh, (r), (SPIPCI_RREG(osh, r) | (v))) argument
59 osl_t *osh; /* osh handle */ member
70 osl_t *osh; in spi_hw_attach() local
75 osh = sd->osh; in spi_hw_attach()
77 if ((si = (spih_info_t *)MALLOC(osh, sizeof(spih_info_t))) == NULL) { in spi_hw_attach()
78 sd_err(("%s: out of memory, malloced %d bytes\n", __FUNCTION__, MALLOCED(osh))); in spi_hw_attach()
86 si->osh = sd->osh; in spi_hw_attach()
87 si->rev = OSL_PCI_READ_CONFIG(sd->osh, PCI_CFG_REV, 4) & 0xFF; in spi_hw_attach()
91 MFREE(osh, si, sizeof(spih_info_t)); in spi_hw_attach()
[all …]
Dbcmsdh_linux.c73 osl_t *osh; member
173 osl_t *osh = NULL; in bcmsdh_probe() local
207 if (!(osh = osl_attach(dev, PCI_BUS, FALSE))) { in bcmsdh_probe()
211 if (!(sdhc = MALLOC(osh, sizeof(bcmsdh_hc_t)))) { in bcmsdh_probe()
214 MALLOCED(osh))); in bcmsdh_probe()
218 sdhc->osh = osh; in bcmsdh_probe()
223 if (!(sdh = bcmsdh_attach(osh, (void *)0, in bcmsdh_probe()
229 if (!(sdh = bcmsdh_attach(osh, (void *)r->start, in bcmsdh_probe()
263 bcmsdh_detach(sdhc->osh, sdhc->sdh); in bcmsdh_probe()
264 MFREE(osh, sdhc, sizeof(bcmsdh_hc_t)); in bcmsdh_probe()
[all …]
Dbcmsdh_sdmmc.c123 sdioh_attach(osl_t *osh, void *bar0, uint irq) in sdioh_attach() argument
135 if ((sd = (sdioh_info_t *)MALLOC(osh, sizeof(sdioh_info_t))) == NULL) { in sdioh_attach()
136 sd_err(("sdioh_attach: out of memory, malloced %d bytes\n", MALLOCED(osh))); in sdioh_attach()
140 sd->osh = osh; in sdioh_attach()
143 MFREE(sd->osh, sd, sizeof(sdioh_info_t)); in sdioh_attach()
189 sdioh_detach(osl_t *osh, sdioh_info_t *sd) in sdioh_detach() argument
208 MFREE(sd->osh, sd, sizeof(sdioh_info_t)); in sdioh_detach()
906 for (pnext = pkt; pnext; pnext = PKTNEXT(sd->osh, pnext)) { in sdioh_request_packet()
907 uint pkt_len = PKTLEN(sd->osh, pnext); in sdioh_request_packet()
921 ASSERT(((uint32)(PKTDATA(sd->osh, pkt)) & DMA_ALIGN_MASK) == 0); in sdioh_request_packet()
[all …]
Dbcmsdh.c52 osl_t *osh; member
71 bcmsdh_attach(osl_t *osh, void *cfghdl, void **regsva, uint irq) in bcmsdh_attach() argument
75 if ((bcmsdh = (bcmsdh_info_t *)MALLOC(osh, sizeof(bcmsdh_info_t))) == NULL) { in bcmsdh_attach()
76 BCMSDH_ERROR(("bcmsdh_attach: out of memory, malloced %d bytes\n", MALLOCED(osh))); in bcmsdh_attach()
84 if (!(bcmsdh->sdioh = sdioh_attach(osh, cfghdl, irq))) { in bcmsdh_attach()
85 bcmsdh_detach(osh, bcmsdh); in bcmsdh_attach()
89 bcmsdh->osh = osh; in bcmsdh_attach()
100 bcmsdh_detach(osl_t *osh, void *sdh) in bcmsdh_detach() argument
106 sdioh_detach(osh, bcmsdh->sdioh); in bcmsdh_detach()
109 MFREE(osh, bcmsdh, sizeof(bcmsdh_info_t)); in bcmsdh_detach()
[all …]
Dbcmsdspi_linux.c112 spi_reg_map(osl_t *osh, uintptr addr, int size) in spi_reg_map() argument
118 spi_reg_unmap(osl_t *osh, uintptr addr, int size) in spi_reg_unmap() argument
128 sdos = (struct sdos_info*)MALLOC(sd->osh, sizeof(struct sdos_info)); in spi_osinit()
146 MFREE(sd->osh, sdos, sizeof(struct sdos_info)); in spi_osfree()
Dbcmsdstd_linux.c102 sdstd_reg_map(osl_t *osh, int32 addr, int size) in sdstd_reg_map() argument
108 sdstd_reg_unmap(osl_t *osh, int32 addr, int size) in sdstd_reg_unmap() argument
118 sdos = (struct sdos_info*)MALLOC(sd->osh, sizeof(struct sdos_info)); in sdstd_osinit()
136 MFREE(sd->osh, sdos, sizeof(struct sdos_info)); in sdstd_osfree()
Dbcmsdstd.c188 sdioh_attach(osl_t *osh, void *bar0, uint irq) in sdioh_attach() argument
193 if ((sd = (sdioh_info_t *)MALLOC(osh, sizeof(sdioh_info_t))) == NULL) { in sdioh_attach()
194 sd_err(("sdioh_attach: out of memory, malloced %d bytes\n", MALLOCED(osh))); in sdioh_attach()
199 sd->osh = osh; in sdioh_attach()
202 MFREE(sd->osh, sd, sizeof(sdioh_info_t)); in sdioh_attach()
205 sd->mem_space = (volatile char *)sdstd_reg_map(osh, (uintptr)bar0, SDIOH_REG_WINSZ); in sdioh_attach()
211 MFREE(sd->osh, sd, sizeof(sdioh_info_t)); in sdioh_attach()
237 sdstd_reg_unmap(osh, (uintptr)sd->mem_space, SDIOH_REG_WINSZ); in sdioh_attach()
241 MFREE(sd->osh, sd, sizeof(sdioh_info_t)); in sdioh_attach()
246 OSL_DMADDRWIDTH(osh, 32); in sdioh_attach()
[all …]
/hardware/broadcom/wlan/bcm4329/src/dhd/sys/
Ddhd_sdio.c145 PKTFREE(bus->dhd->osh, pkt, FALSE);
356 #define PKTALIGN(osh, p, len, align) \ argument
359 datalign = (uintptr)PKTDATA((osh), (p)); \
362 ASSERT(PKTLEN((osh), (p)) >= ((len) + datalign)); \
364 PKTPULL((osh), (p), datalign); \
365 PKTSETLEN((osh), (p), (len)); \
386 regvar = R_REG(bus->dhd->osh, regaddr); \
402 W_REG(bus->dhd->osh, regaddr, regval); \
433 static void dhdsdio_release(dhd_bus_t *bus, osl_t *osh);
434 static void dhdsdio_release_malloc(dhd_bus_t *bus, osl_t *osh);
[all …]
Ddhd_cdc.c340 PKTPUSH(dhd->osh, pktbuf, BDC_HEADER_LEN); in dhd_prot_hdrpush()
342 h = (struct bdc_header *)PKTDATA(dhd->osh, pktbuf); in dhd_prot_hdrpush()
363 if (PKTLEN(dhd->osh, pktbuf) < BDC_HEADER_LEN) { in dhd_proto_fcinfo()
365 __FUNCTION__, PKTLEN(dhd->osh, pktbuf), BDC_HEADER_LEN)); in dhd_proto_fcinfo()
369 h = (struct bdc_header *)PKTDATA(dhd->osh, pktbuf); in dhd_proto_fcinfo()
391 if (PKTLEN(dhd->osh, pktbuf) < BDC_HEADER_LEN) { in dhd_prot_hdrpull()
393 PKTLEN(dhd->osh, pktbuf), BDC_HEADER_LEN)); in dhd_prot_hdrpull()
397 h = (struct bdc_header *)PKTDATA(dhd->osh, pktbuf); in dhd_prot_hdrpull()
419 PKTPULL(dhd->osh, pktbuf, BDC_HEADER_LEN); in dhd_prot_hdrpull()
431 if (!(cdc = (dhd_prot_t *)MALLOC(dhd->osh, sizeof(dhd_prot_t)))) { in dhd_prot_attach()
[all …]
Ddhd_linux.c774 if (!(bufp = buf = MALLOC(dhd->pub.osh, buflen))) { in _dhd_set_multicast_list()
817 MFREE(dhd->pub.osh, buf, buflen); in _dhd_set_multicast_list()
825 if (!(buf = MALLOC(dhd->pub.osh, buflen))) { in _dhd_set_multicast_list()
834 MFREE(dhd->pub.osh, buf, buflen); in _dhd_set_multicast_list()
851 MFREE(dhd->pub.osh, buf, buflen); in _dhd_set_multicast_list()
975 MFREE(dhd->pub.osh, ifp, sizeof(*ifp)); in dhd_op_if()
1084 if (PKTLEN(dhdp->osh, pktbuf) >= ETHER_ADDR_LEN) { in dhd_sendpkt()
1085 uint8 *pktdata = (uint8 *)PKTDATA(dhdp->osh, pktbuf); in dhd_sendpkt()
1163 if (!(pktbuf = PKTFRMNATIVE(dhd->pub.osh, skb))) { in dhd_start_xmit()
1220 pnext = PKTNEXT(dhdp->osh, pktbuf); in dhd_rx_frame()
[all …]

12