Searched refs:osh (Results 1 - 25 of 41) sorted by relevance

12

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/include/
H A Dhndpmu.h39 extern void si_pmu_init(si_t *sih, osl_t *osh);
40 extern void si_pmu_chip_init(si_t *sih, osl_t *osh);
41 extern void si_pmu_pll_init(si_t *sih, osl_t *osh, uint32 xtalfreq);
42 extern bool si_pmu_is_autoresetphyclk_disabled(si_t *sih, osl_t *osh);
43 extern void si_pmu_res_init(si_t *sih, osl_t *osh);
44 extern void si_pmu_swreg_init(si_t *sih, osl_t *osh);
45 extern uint32 si_pmu_force_ilp(si_t *sih, osl_t *osh, bool force);
46 extern uint32 si_pmu_enb_ht_req(si_t *sih, osl_t *osh, bool enb);
47 extern void si_pmu_res_minmax_update(si_t *sih, osl_t *osh);
49 extern uint32 si_pmu_si_clock(si_t *sih, osl_t *osh);
[all...]
H A Dlinux_osl.h37 extern void osl_detach(osl_t *osh);
64 #define OSL_PCMCIA_READ_ATTR(osh, offset, buf, size) \
65 osl_pcmcia_read_attr((osh), (offset), (buf), (size))
66 #define OSL_PCMCIA_WRITE_ATTR(osh, offset, buf, size) \
67 osl_pcmcia_write_attr((osh), (offset), (buf), (size))
68 extern void osl_pcmcia_read_attr(osl_t *osh, uint offset, void *buf, int size);
69 extern void osl_pcmcia_write_attr(osl_t *osh, uint offset, void *buf, int size);
72 #define OSL_PCI_READ_CONFIG(osh, offset, size) \
73 osl_pci_read_config((osh), (offset), (size))
74 #define OSL_PCI_WRITE_CONFIG(osh, offse
[all...]
H A Dmin_osl.h50 #define OSL_PCMCIA_READ_ATTR(osh, offset, buf, size) \
52 #define OSL_PCMCIA_WRITE_ATTR(osh, offset, buf, size) \
62 #define OSL_PCI_BUS(osh) (0)
63 #define OSL_PCI_SLOT(osh) (0)
98 #define R_REG(osh, r) ({ \
107 #define W_REG(osh, r, v) do { \
114 #define AND_REG(osh, r, v) W_REG(osh, (r), R_REG(osh, r) & (v))
115 #define OR_REG(osh,
[all...]
H A Dbcmsrom.h27 extern int srom_var_init(si_t *sih, uint bus, void *curmap, osl_t *osh,
31 extern int srom_read(si_t *sih, uint bus, void *curmap, osl_t *osh,
35 extern int srom_write(si_t *sih, uint bus, void *curmap, osl_t *osh,
38 extern int srom_write_short(si_t *sih, uint bustype, void *curmap, osl_t *osh,
40 extern int srom_otp_cisrwvar(si_t *sih, osl_t *osh, char *vars, int *count);
47 extern int srom_parsecis(osl_t *osh, uint8 **pcis, uint ciscnt,
52 extern uint srom_size(si_t *sih, osl_t *osh);
H A Dosl.h118 #define PKTDBG_TRACE(osh, pkt, bit)
122 #define PKTCTFMAP(osh, p)
129 #define SET_REG(osh, r, mask, val) W_REG((osh), (r), ((R_REG((osh), r) & ~(mask)) | (val)))
132 #define AND_REG(osh, r, v) W_REG(osh, (r), R_REG(osh, r) & (v))
136 #define OR_REG(osh, r, v) W_REG(osh, (
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/shared/
H A Dlinux_osl.c41 #define OS_HANDLE_MAGIC 0x1234abcd /* Magic # to recognize osh */
74 void *osh; member in struct:bcm_mem_link
91 shared_osl_t *oshsh; /* osh shared */
205 extern uint8* dhd_os_prealloc(void *osh, int section, int size);
210 osl_t *osh; local
212 osh = kmalloc(sizeof(osl_t), GFP_ATOMIC);
213 ASSERT(osh);
215 bzero(osh, sizeof(osl_t));
220 osh->magic = OS_HANDLE_MAGIC;
221 atomic_set(&osh
291 osl_detach(osl_t *osh) argument
344 osl_ctfpool_add(osl_t *osh) argument
393 osl_ctfpool_replenish(osl_t *osh, uint thresh) argument
409 osl_ctfpool_init(osl_t *osh, uint numobj, uint size) argument
433 osl_ctfpool_cleanup(osl_t *osh) argument
463 osl_ctfpool_stats(osl_t *osh, void *b) argument
492 osl_pktfastget(osl_t *osh, uint len) argument
549 osl_pkt_tonative(osl_t *osh, void *pkt) argument
592 osl_pkt_frmnative(osl_t *osh, void *pkt, int line, char *file) argument
641 osl_pktget(osl_t *osh, uint len, int line, char *file) argument
684 osl_pktfastfree(osl_t *osh, struct sk_buff *skb) argument
729 osl_pktfree(osl_t *osh, void *p, bool send) argument
797 osl_pktget_static(osl_t *osh, uint len) argument
846 osl_pktfree_static(osl_t *osh, void *p, bool send) argument
873 osl_pci_read_config(osl_t *osh, uint offset, uint size) argument
894 osl_pci_write_config(osl_t *osh, uint offset, uint size, uint val) argument
915 osl_pci_bus(osl_t *osh) argument
924 osl_pci_slot(osl_t *osh) argument
937 osl_pci_device(osl_t *osh) argument
945 osl_pcmcia_attr(osl_t *osh, uint offset, char *buf, int size, bool write) argument
950 osl_pcmcia_read_attr(osl_t *osh, uint offset, void *buf, int size) argument
956 osl_pcmcia_write_attr(osl_t *osh, uint offset, void *buf, int size) argument
971 osl_malloc(osl_t *osh, uint size) argument
1034 osl_mfree(osl_t *osh, void *addr, uint size) argument
1066 osl_malloced(osl_t *osh) argument
1073 osl_malloc_failed(osl_t *osh) argument
1084 osl_debug_malloc(osl_t *osh, uint size, int line, const char* file) argument
1134 osl_debug_mfree(osl_t *osh, void *addr, uint size, int line, const char* file) argument
1189 osl_debug_memdump(osl_t *osh, struct bcmstrbuf *b) argument
1238 osl_dma_alloc_consistent(osl_t *osh, uint size, uint16 align_bits, uint *alloced, ulong *pap) argument
1259 osl_dma_free_consistent(osl_t *osh, void *va, uint size, ulong pa) argument
1271 osl_dma_map(osl_t *osh, void *va, uint size, int direction, void *p, hnddma_seg_map_t *dmah) argument
1319 osl_dma_unmap(osl_t *osh, uint pa, uint size, int direction) argument
1391 osl_oshsh_init(osl_t *osh, shared_osl_t* oshsh) argument
1399 in_long_delay(osl_t *osh) argument
1405 osl_long_delay(osl_t *osh, uint usec, bool yield) argument
1452 osl_pktdup(osl_t *osh, void *skb, int line, char *file) argument
1520 osl_pkt_is_frmnative(osl_t *osh, struct sk_buff *pkt) argument
1539 osl_ctrace_dump(osl_t *osh, struct bcmstrbuf *b) argument
1581 osl_pkttrace(osl_t *osh, void *pkt, uint16 bit) argument
1588 osl_pktlist_dump(osl_t *osh, char *buf) argument
1595 osl_pktlist_add(osl_t *osh, void *p, int line, char *file) argument
1604 osl_pktlist_remove(osl_t *osh, void *p) argument
1618 osl_readb(osl_t *osh, volatile uint8 *r) argument
1628 osl_readw(osl_t *osh, volatile uint16 *r) argument
1637 osl_readl(osl_t *osh, volatile uint32 *r) argument
1646 osl_writeb(osl_t *osh, volatile uint8 *r, uint8 v) argument
1656 osl_writew(osl_t *osh, volatile uint16 *r, uint16 v) argument
1665 osl_writel(osl_t *osh, volatile uint32 *r, uint32 v) argument
1908 osl_pktdata(osl_t *osh, void *skb) argument
1914 osl_pktlen(osl_t *osh, void *skb) argument
1920 osl_pktheadroom(osl_t *osh, void *skb) argument
1926 osl_pkttailroom(osl_t *osh, void *skb) argument
1932 osl_pktnext(osl_t *osh, void *skb) argument
1944 osl_pktsetlen(osl_t *osh, void *skb, uint len) argument
1950 osl_pktpush(osl_t *osh, void *skb, int bytes) argument
1956 osl_pktpull(osl_t *osh, void *skb, int bytes) argument
1993 osl_pktalloced(osl_t *osh) argument
[all...]
H A Dhndgige.c42 osl_t *osh; local
59 osh = si_osh(sih);
74 W_REG(osh, &pci->base[0], base);
75 W_REG(osh, &pci->base[1], 0);
82 OR_REG(osh, &pci->command, 2);
96 W_REG(osh, &ocp->FlushStatusControl, 0x68);
112 statelow = R_REG(osh, &sb->sbtmstatelow); /* DLL controls */
113 statehigh = R_REG(osh, &sb->sbtmstatehigh); /* GMII/RGMII mode */
127 W_REG(osh, &sb->sbtmstatelow, statelow);
H A Dsflash.c39 sflash_cmd(osl_t *osh, chipcregs_t *cc, uint opcode) argument
41 W_REG(osh, &cc->flashcontrol, SFLASH_START | opcode);
42 while (R_REG(osh, &cc->flashcontrol) & SFLASH_BUSY);
53 osl_t *osh; local
57 osh = si_osh(sih);
67 sflash_cmd(osh, cc, SFLASH_ST_DP);
68 W_REG(osh, &cc->flashaddress, 0);
69 sflash_cmd(osh, cc, SFLASH_ST_RES);
70 id = R_REG(osh, &cc->flashdata);
82 sflash_cmd(osh, c
293 osl_t *osh; local
341 osl_t *osh; local
503 osl_t *osh; local
544 osl_t *osh; local
[all...]
H A Dhndpmu.c68 static void si_pmu0_pllinit0(si_t *sih, osl_t *osh, chipcregs_t *cc, uint32 xtal);
69 static void si_pmu1_pllinit0(si_t *sih, osl_t *osh, chipcregs_t *cc, uint32 xtal);
70 static void si_pmu1_pllinit1(si_t *sih, osl_t *osh, chipcregs_t *cc, uint32 xtal);
71 static void si_pmu2_pllinit0(si_t *sih, osl_t *osh, chipcregs_t *cc, uint32 xtal);
72 static void si_pmu_pll_off(si_t *sih, osl_t *osh, chipcregs_t *cc, uint32 *min_mask,
74 static void si_pmu_pll_off_isdone(si_t *sih, osl_t *osh, chipcregs_t *cc);
75 static void si_pmu_pll_on(si_t *sih, osl_t *osh, chipcregs_t *cc, uint32 min_mask,
77 void si_pmu_otp_pllcontrol(si_t *sih, osl_t *osh);
78 void si_pmu_otp_regcontrol(si_t *sih, osl_t *osh);
79 void si_pmu_otp_chipcontrol(si_t *sih, osl_t *osh);
168 osl_t *osh; local
194 si_pmu_otp_pllcontrol(si_t *sih, osl_t *osh) argument
235 si_pmu_otp_regcontrol(si_t *sih, osl_t *osh) argument
276 si_pmu_otp_chipcontrol(si_t *sih, osl_t *osh) argument
312 si_pmu_set_switcher_voltage(si_t *sih, osl_t *osh, uint8 bb_voltage, uint8 rf_voltage) argument
341 si_pmu_set_ldo_voltage(si_t *sih, osl_t *osh, uint8 ldo, uint8 voltage) argument
555 si_pmu_paref_ldo_enable(si_t *sih, osl_t *osh, bool enable) argument
588 si_pmu_fast_pwrup_delay(si_t *sih, osl_t *osh) argument
765 si_pmu_force_ilp(si_t *sih, osl_t *osh, bool force) argument
793 si_pmu_enb_ht_req(si_t *sih, osl_t *osh, bool enb) argument
2176 si_pmu_res_init(si_t *sih, osl_t *osh) argument
2636 si_pmu0_pllinit0(si_t *sih, osl_t *osh, chipcregs_t *cc, uint32 xtal) argument
2734 si_pmu0_alpclk0(si_t *sih, osl_t *osh, chipcregs_t *cc) argument
2753 si_pmu0_cpuclk0(si_t *sih, osl_t *osh, chipcregs_t *cc) argument
3292 osl_t *osh; local
3335 si_pmu1_alpclk0(si_t *sih, osl_t *osh, chipcregs_t *cc) argument
3411 si_pmu_minresmask_htavail_set(si_t *sih, osl_t *osh, bool set_clear) argument
3437 si_pll_minresmask_reset(si_t *sih, osl_t *osh) argument
3470 si_pmu_def_alp_clock(si_t *sih, osl_t *osh) argument
3498 si_pmu_pllctrlreg_update(si_t *sih, osl_t *osh, chipcregs_t *cc, uint32 xtal, uint8 spur_mode, const pllctrl_data_t *pllctrlreg_update, uint32 array_size, const uint32 *pllctrlreg_val) argument
3548 si_pmu_update_pllcontrol(si_t *sih, osl_t *osh, uint32 xtal, bool update_required) argument
3762 si_pmu_get_pmutimer(osl_t *osh, chipcregs_t *cc) argument
3777 si_pmu_get_pmutime_diff(osl_t *osh, chipcregs_t *cc, uint32 *prev) argument
3801 si_pmu_wait_for_res_pending(osl_t *osh, chipcregs_t *cc, uint usec, bool cond, uint32 *elapsed_time) argument
3851 si_pmu_wait_for_steady_state(osl_t *osh, chipcregs_t *cc) argument
3900 si_pmu_pll_off(si_t *sih, osl_t *osh, chipcregs_t *cc, uint32 *min_mask, uint32 *max_mask, uint32 *clk_ctl_st) argument
3942 si_pmu_pll_off_PARR(si_t *sih, osl_t *osh, uint32 *min_mask, uint32 *max_mask, uint32 *clk_ctl_st) argument
3986 si_pmu_pll_off_isdone(si_t *sih, osl_t *osh, chipcregs_t *cc) argument
4002 si_pmu_pll_on(si_t *sih, osl_t *osh, chipcregs_t *cc, uint32 min_mask_mask, uint32 max_mask_mask, uint32 clk_ctl_st_mask) argument
4095 si_pmu2_pll_vars_init(si_t *sih, osl_t *osh, chipcregs_t *cc) argument
4148 si_pmu2_pllinit0(si_t *sih, osl_t *osh, chipcregs_t *cc, uint32 xtal) argument
4243 si_pmu2_cpuclk0(si_t *sih, osl_t *osh, chipcregs_t *cc) argument
4280 si_pmu2_alpclk0(si_t *sih, osl_t *osh, chipcregs_t *cc) argument
4315 si_pmu1_pllinit1(si_t *sih, osl_t *osh, chipcregs_t *cc, uint32 xtal) argument
4378 si_pmu1_pllinit0(si_t *sih, osl_t *osh, chipcregs_t *cc, uint32 xtal) argument
4626 si_pmu1_cpuclk0(si_t *sih, osl_t *osh, chipcregs_t *cc) argument
4689 si_mac_clk(si_t *sih, osl_t *osh) argument
4724 si_pmu_is_autoresetphyclk_disabled(si_t *sih, osl_t *osh) argument
4751 si_set_bb_vcofreq_frac(si_t *sih, osl_t *osh, int vcofreq, int frac, int xtalfreq) argument
4815 si_pmu_get_bb_vcofreq(si_t *sih, osl_t *osh, int xtalfreq) argument
4873 si_pmu_pll_init(si_t *sih, osl_t *osh, uint xtalfreq) argument
5011 si_pmu_alp_clock(si_t *sih, osl_t *osh) argument
5114 si_pmu5_clock(si_t *sih, osl_t *osh, chipcregs_t *cc, uint pll0, uint m) argument
5166 si_4706_pmu_clock(si_t *sih, osl_t *osh, chipcregs_t *cc, uint pll0, uint m) argument
5205 si_pmu_si_clock(si_t *sih, osl_t *osh) argument
5313 si_pmu_cpu_clock(si_t *sih, osl_t *osh) argument
5390 si_pmu_mem_clock(si_t *sih, osl_t *osh) argument
5464 si_pmu_ilp_clock(si_t *sih, osl_t *osh) argument
5565 si_sdiod_drive_strength_init(si_t *sih, osl_t *osh, uint32 drivestrength) argument
5650 si_pmu_init(si_t *sih, osl_t *osh) argument
5699 si_pmu_res_uptime(si_t *sih, osl_t *osh, chipcregs_t *cc, uint8 rsrc) argument
5740 si_pmu_res_deps(si_t *sih, osl_t *osh, chipcregs_t *cc, uint32 rsrcs, bool all) argument
5760 si_pmu_otp_power(si_t *sih, osl_t *osh, bool on) argument
5870 si_pmu_rcal(si_t *sih, osl_t *osh) argument
6014 si_pmu_spuravoid(si_t *sih, osl_t *osh, uint8 spuravoid) argument
6069 si_pmu_spuravoid_isdone(si_t *sih, osl_t *osh, uint32 min_res_mask, uint32 max_res_mask, uint32 clk_ctl_st, uint8 spuravoid) argument
6154 si_pmu_pllctrl_spurupdate(osl_t *osh, chipcregs_t *cc, uint8 spuravoid, const pllctrl_spuravoid_t *pllctrl_spur, uint32 array_size) argument
6167 si_pmu_spuravoid_pllupdate(si_t *sih, chipcregs_t *cc, osl_t *osh, uint8 spuravoid) argument
6596 si_pmu_cal_fvco(si_t *sih, osl_t *osh) argument
6655 si_pmu_gband_spurwar(si_t *sih, osl_t *osh) argument
6726 si_pmu_is_otp_powered(si_t *sih, osl_t *osh) argument
6819 si_pmu_sprom_enable(si_t *sih, osl_t *osh, bool enable) argument
6857 si_pmu_is_sprom_enabled(si_t *sih, osl_t *osh) argument
6891 si_pmu_set_lpoclk(si_t *sih, osl_t *osh) argument
6987 si_pmu_chip_init(si_t *sih, osl_t *osh) argument
7128 si_pmu_swreg_init(si_t *sih, osl_t *osh) argument
7283 si_pmu_waitforclk_on_backplane(si_t *sih, osl_t *osh, uint32 clk, uint32 delay_val) argument
7312 si_pmu_measure_alpclk(si_t *sih, osl_t *osh) argument
7414 si_pmu_res_minmax_update(si_t *sih, osl_t *osh) argument
[all...]
H A Dccsflash.c48 ccsflash_cmd(osl_t *osh, chipcregs_t *cc, uint opcode) argument
50 W_REG(osh, &cc->flashcontrol, SFLASH_START | opcode);
51 while (R_REG(osh, &cc->flashcontrol) & SFLASH_BUSY);
63 osl_t *osh; local
77 osh = si_osh(sih);
95 ccsflash_cmd(osh, cc, SFLASH_ST_DP);
96 W_REG(osh, &cc->flashaddress, 0);
97 ccsflash_cmd(osh, cc, SFLASH_ST_RES);
98 id = R_REG(osh, &cc->flashdata);
110 ccsflash_cmd(osh, c
324 osl_t *osh; local
373 osl_t *osh; local
535 osl_t *osh; local
576 osl_t *osh; local
[all...]
H A Dnflash.c158 nflash_ctrlcmd(osl_t *osh, chipcregs_t *cc, uint ctrlcode) argument
162 W_REG(osh, &cc->nflashctrl, ctrlcode | NFC_START);
164 while ((R_REG(osh, &cc->nflashctrl) & NFC_START) != 0) {
176 nflash_cmd(osl_t *osh, chipcregs_t *cc, uint opcode) argument
178 W_REG(osh, &cc->nand_cmd_start, opcode);
180 R_REG(osh, &cc->nand_cmd_start);
233 osl_t *osh; local
254 osh = si_osh(sih);
275 val = R_REG(osh, &cc->eci.flashconf.flashstrconfig) | FLSTRCF4706_NF1;
276 W_REG(osh,
513 osl_t *osh; local
630 osl_t *osh; local
670 osl_t *osh; local
819 osl_t *osh; local
884 osl_t *osh; local
953 osl_t *osh; local
1038 osl_t *osh; local
1081 osl_t *osh; local
1139 osl_t *osh; local
[all...]
H A Dcfe_osl.c32 osl_t *osh; local
34 osh = (osl_t *)KMALLOC(sizeof(osl_t), 0);
35 ASSERT(osh);
37 bzero(osh, sizeof(osl_t));
38 osh->pdev = pdev;
39 return osh;
43 osl_detach(osl_t *osh) argument
45 if (osh == NULL)
47 KFREE((void*) KERNADDR(PHYSADDR((ulong)osh)));
71 osl_pktfree(osl_t *osh, struc argument
[all...]
H A Dsromstubs.c32 srom_var_init(si_t *sih, uint bus, void *curmap, osl_t *osh, char **vars, uint *count) argument
38 srom_read(si_t *sih, uint bus, void *curmap, osl_t *osh, uint byteoff, uint nbytes, uint16 *buf, argument
45 srom_write(si_t *sih, uint bus, void *curmap, osl_t *osh, uint byteoff, uint nbytes, uint16 *buf) argument
H A Daiutils.c139 if ((R_REG(sii->osh, &cpu->oobselina74) != 0x08060504) ||
140 (R_REG(sii->osh, &pcie->oobselina74) != 0x08060504) ||
141 (R_REG(sii->osh, &i2s->oobselouta30) != 0x88)) {
145 W_REG(sii->osh, &cpu->oobselina74, 0x07060504);
146 W_REG(sii->osh, &pcie->oobselina74, 0x07060504);
147 W_REG(sii->osh, &i2s->oobselouta30, 0x87);
233 erombase = R_REG(sii->osh, &cc->eromptr);
245 OSL_PCI_WRITE_CONFIG(sii->osh, PCI_BAR0_WIN, 4, erombase);
429 i = (R_REG(sii->osh, &cc->chipid) & CID_PKG_MASK) >> CID_PKG_SHIFT;
499 OSL_PCI_WRITE_CONFIG(sii->osh, PCI_BAR0_WI
1070 osl_t *osh; local
[all...]
H A Dnicpci.c42 osl_t *osh; /* OSL handle */ member in struct:__anon11565
107 (BYTE_VAL(OSL_PCI_READ_CONFIG(osh, DWORD_ALIGN(a), 4), a) & 0xff)
110 (WORD_VAL(OSL_PCI_READ_CONFIG(osh, DWORD_ALIGN(a), 4), a) & 0xffff)
114 tmpval = (OSL_PCI_READ_CONFIG(osh, DWORD_ALIGN(a), 4) & ~0xFF << BYTE_POS(a)) | \
116 OSL_PCI_WRITE_CONFIG(osh, DWORD_ALIGN(a), 4, tmpval); \
121 tmpval = (OSL_PCI_READ_CONFIG(osh, DWORD_ALIGN(a), 4) & ~0xFFFF << WORD_POS(a)) | \
123 OSL_PCI_WRITE_CONFIG(osh, DWORD_ALIGN(a), 4, tmpval); \
134 pcicore_init(si_t *sih, osl_t *osh, void *regs) argument
142 if ((pi = MALLOC(osh, sizeof(pcicore_info_t))) == NULL) {
143 PCI_ERROR(("pci_attach: malloc failed! malloced %d bytes\n", MALLOCED(osh)));
193 pcicore_find_pci_capability(osl_t *osh, uint8 req_cap_id, uchar *buf, uint32 *buflen) argument
254 osl_t *osh = si_osh(sih); local
288 osl_t *osh = si_osh(sih); local
1398 pcicore_pmecap_fast(osl_t *osh) argument
1524 osl_t *osh; local
[all...]
H A Dhnddma.c73 void *osh; /* os handle */ member in struct:dma_info
235 static void *dma_ringalloc(osl_t *osh, uint32 boundary, uint size, uint16 *alignbits, uint* alloced,
274 static bool _dma32_addrext(osl_t *osh, dma32regs_t *dma32regs);
300 static bool _dma64_addrext(osl_t *osh, dma64regs_t *dma64regs);
443 dma_attach(osl_t *osh, const char *name, si_t *sih, argument
453 if ((di = MALLOC(osh, sizeof (dma_info_t))) == NULL) {
502 DMA_TRACE(("%s: %s: %s osh %p flags 0x%x ntxd %d nrxd %d rxbufsize %d "
505 osh, di->hnddma.dmactrlflags, ntxd, nrxd,
512 di->osh = osh;
846 _dma32_addrext(osl_t *osh, dma32regs_t *dma32regs) argument
1731 dma_txpioloopback(osl_t *osh, dma32regs_t *regs) argument
1756 dma_ringalloc(osl_t *osh, uint32 boundary, uint size, uint16 *alignbits, uint* alloced, dmaaddr_t *descpa, osldma_t **dmah) argument
3230 _dma64_addrext(osl_t *osh, dma64regs_t *dma64regs) argument
3319 osl_t *osh; local
[all...]
H A Dhndmips.c79 osl_t *osh; local
86 osh = si_osh(sih);
96 if (R_REG(osh, &((mips74kregs_t *)regs)->intmask[irq]) &
104 sbipsflag = R_REG(osh, &sb->sbipsflag);
141 osl_t *osh; local
145 osh = si_osh(sih);
148 W_REG(osh, &((mips74kregs_t *)regs)->intmask[irq], 0);
152 W_REG(osh, &sb->sbintvec, 0);
154 OR_REG(osh, &sb->sbipsflag, sbips_int_mask[irq]);
168 osl_t *osh; local
219 osl_t *osh; local
332 osl_t *osh; local
388 osl_t *osh; local
762 osl_t *osh; local
814 osl_t *osh; local
911 osl_t *osh; local
1188 osl_t *osh; local
1774 osl_t *osh; local
[all...]
H A Dhndpci.c166 osl_t *osh; local
172 osh = si_osh(sih);
208 W_REG(osh, sbtopci1, win);
214 W_REG(osh, sbtopci1, SBTOPCI_CFG0);
223 W_REG(osh, sbtopci1, SBTOPCI_CFG1);
249 osl_t *osh; local
260 osh = si_osh(sih);
268 *val = R_REG(osh, *addr);
285 *val = R_REG(osh, *addr);
347 osl_t *osh; local
448 osl_t *osh; local
481 osl_t *osh; local
552 osl_t *osh; local
711 osl_t *osh; local
1089 osl_t *osh; local
[all...]
H A Dbcmsrom.c95 static int initvars_srom_si(si_t *sih, osl_t *osh, void *curmap, char **vars, uint *count);
97 static int initvars_tcm_pcidev(si_t *sih, osl_t *osh, void *curmap, char **vars, uint *count);
101 static int initvars_cis_pcmcia(si_t *sih, osl_t *osh, char **vars, uint *count);
107 static int initvars_cis_spi(osl_t *osh, char **vars, uint *count);
109 static int sprom_cmd_pcmcia(osl_t *osh, uint8 cmd);
110 static int sprom_read_pcmcia(osl_t *osh, uint16 addr, uint16 *data);
112 static int sprom_write_pcmcia(osl_t *osh, uint16 addr, uint16 data);
114 static int sprom_read_pci(osl_t *osh, si_t *sih, uint16 *sprom, uint wordoff, uint16 *buf,
117 static int otp_read_pci(osl_t *osh, si_t *sih, uint16 *buf, uint bufsz);
119 static uint16 srom_cc_cmd(si_t *sih, osl_t *osh, voi
1541 srom_var_init(si_t *sih, uint bustype, void *curmap, osl_t *osh, char **vars, uint *count) argument
1580 srom_read(si_t *sih, uint bustype, void *curmap, osl_t *osh, uint byteoff, uint nbytes, uint16 *buf, bool check_crc) argument
1666 srom_write(si_t *sih, uint bustype, void *curmap, osl_t *osh, uint byteoff, uint nbytes, uint16 *buf) argument
1923 srom_write_short(si_t *sih, uint bustype, void *curmap, osl_t *osh, uint byteoff, uint16 value) argument
2063 srom_cmd_si_pcmcia(osl_t *osh, uint8 *pcmregs, uint8 cmd) argument
2085 srom_read_si_pcmcia(osl_t *osh, uint8 *pcmregs, uint16 addr, uint16 *data) argument
2111 srom_write_si_pcmcia(osl_t *osh, uint8 *pcmregs, uint16 addr, uint16 data) argument
2142 get_si_pcmcia_srom(si_t *sih, osl_t *osh, uint8 *pcmregs, uint boff, uint16 *srom, uint bsz, bool check_crc) argument
2205 set_si_pcmcia_srom(si_t *sih, osl_t *osh, uint8 *pcmregs, uint boff, uint16 *srom, uint bsz) argument
2591 srom_parsecis(osl_t *osh, uint8 *pcis[], uint ciscnt, char **vars, uint *count) argument
4516 sprom_cmd_pcmcia(osl_t *osh, uint8 cmd) argument
4536 sprom_read_pcmcia(osl_t *osh, uint16 addr, uint16 *data) argument
4563 sprom_write_pcmcia(osl_t *osh, uint16 addr, uint16 data) argument
4590 srom_cc_cmd(si_t *sih, osl_t *osh, void *ccregs, uint32 cmd, uint wordoff, uint16 data) argument
4623 sprom_read_pci(osl_t *osh, si_t *sih, uint16 *sprom, uint wordoff, uint16 *buf, uint nwords, bool check_crc) argument
4717 otp_read_pci(osl_t *osh, si_t *sih, uint16 *buf, uint bufsz) argument
4835 initvars_table(osl_t *osh, char *start, char *end, char **vars, uint *count) argument
4863 initvars_flash(si_t *sih, osl_t *osh, char **base, uint len) argument
4945 osl_t *osh = si_osh(sih); local
5271 osl_t *osh = si_osh(sih); local
5523 initvars_cis_pcmcia(si_t *sih, osl_t *osh, char **vars, uint *count) argument
5559 initvars_cis_spi(osl_t *osh, char **vars, uint *count) argument
5599 srom_size(si_t *sih, osl_t *osh) argument
5656 initvars_cis_usbdriver(si_t *sih, osl_t *osh, char **vars, uint *count) argument
5683 initvars_srom_si_usbdriver(si_t *sih, osl_t *osh, char **vars, uint *varsz) argument
5803 initvars_srom_si_bl(si_t *sih, osl_t *osh, void *curmap, char **vars, uint *varsz) argument
5873 initvars_srom_si(si_t *sih, osl_t *osh, void *curmap, char **vars, uint *varsz) argument
6243 srom_load_nvram(si_t *sih, osl_t *osh, uint8 *pcis[], uint ciscnt, char **vars, uint *varsz) argument
6336 initvars_srom_si(si_t *sih, osl_t *osh, void *curmap, char **vars, uint *varsz) argument
6473 initvars_srom_si(si_t *sih, osl_t *osh, void *curmap, char **vars, uint *varsz) argument
6492 initvars_tcm_pcidev(si_t *sih, osl_t *osh, void *curmap, char **vars, uint *varsz) argument
6502 initvars_srom_si(si_t *sih, osl_t *osh, void *curmap, char **vars, uint *varsz) argument
[all...]
H A Dsiutils.c56 static si_info_t *si_doattach(si_info_t *sii, uint devid, osl_t *osh, void *regs,
73 void si_gci_chipctrl_overrides(osl_t *osh, si_t *sih, char *pvars);
89 * osh - opaque OS handle
96 BCMATTACHFN(si_attach)(uint devid, osl_t *osh, void *regs, argument
102 if ((sii = MALLOC(osh, sizeof (si_info_t))) == NULL) {
103 SI_ERROR(("si_attach: malloc failed! malloced %d bytes\n", MALLOCED(osh)));
107 if (si_doattach(sii, devid, osh, regs, bustype, sdh, vars, varsz) == NULL) {
108 MFREE(osh, sii, sizeof(si_info_t));
124 BCMATTACHFN(si_kattach)(osl_t *osh) argument
134 if (si_doattach(&ksii, BCM4710_DEVICE_ID, osh, reg
996 si_gci_chipctrl_overrides(osl_t *osh, si_t *sih, char *pvars) argument
1024 si_doattach(si_info_t *sii, uint devid, osl_t *osh, void *regs, uint bustype, void *sdh, char **vars, uint *varsz) argument
1512 si_setosh(si_t *sih, osl_t *osh) argument
5686 osl_t *osh; local
5704 osl_t *osh; local
6147 jtagm_rreg(osl_t *osh, chipcregs_t *cc, uint reg) argument
6165 jtagm_wreg(osl_t *osh, chipcregs_t *cc, uint reg, uint32 data) argument
6191 osl_t *osh; local
[all...]
H A Dhndchipc.c75 osl_t *osh; local
82 osh = si_osh(sih);
98 R_REG(osh, &cc->clockcontrol_n),
99 R_REG(osh, &cc->clockcontrol_m2));
108 AND_REG(osh, &cc->corecontrol, ~CC_UARTCLKEN);
110 OR_REG(osh, &cc->corecontrol, CC_UARTCLKO);
112 OR_REG(osh, &cc->corecontrol, CC_UARTCLKEN);
117 W_REG(osh, &cc->clkdiv,
118 ((R_REG(osh, &cc->clkdiv) & ~CLKD_UART) | div));
126 if ((R_REG(osh,
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/sound/soc/bcm947xx/
H A Dbcm947xx-i2s.c106 uint32 i2scontrol = R_REG(snd_bcm.osh, &snd_bcm->regs->i2scontrol);
116 W_REG(snd_bcm.osh, &snd_bcm->regs->i2scontrol, i2scontrol);
122 W_REG(snd_bcm.osh, &snd_bcm->regs->i2scontrol, i2scontrol);
135 u32 devctrl = R_REG(snd_bcm.osh, &snd_bcm->regs->devcontrol);
180 W_REG(snd_bcm.osh, &snd_bcm->regs->devcontrol, devctrl);
204 u32 devctrl = R_REG(snd_bcm.osh, &snd_bcm->regs->devcontrol);
205 u32 clkdiv = R_REG(snd_bcm.osh, &snd_bcm->regs->clkdivider);
206 u32 stxctrl = R_REG(snd_bcm.osh, &snd_bcm->regs->stxctrl);
230 W_REG(snd_bcm.osh, &snd_bcm->regs->clkdivider, clkdiv | srate);
233 R_REG(snd_bcm.osh,
368 osl_t *osh = NULL; local
440 osl_t *osh = sndbcm->osh; local
[all...]
H A Dbcm947xx-i2s.h41 osl_t *osh; member in struct:bcm947xx_i2s_info
H A Dbcm947xx-pcm.c173 uint32 intstatus = R_REG(snd_bcm->osh, &snd_bcm->regs->intstatus);
175 uint32 intmask = R_REG(snd_bcm->osh, &snd_bcm->regs->intmask);
196 W_REG(snd_bcm->osh, &snd_bcm->regs->intmask, 0);
208 W_REG(snd_bcm->osh, &snd_bcm->regs->intstatus, intstatus_new);
239 R_REG(snd_bcm->osh, &snd_bcm->regs->devcontrol),
240 R_REG(snd_bcm->osh, &snd_bcm->regs->devstatus));
242 R_REG(snd_bcm->osh, &snd_bcm->regs->intstatus),
243 R_REG(snd_bcm->osh, &snd_bcm->regs->intmask));
245 R_REG(snd_bcm->osh, &snd_bcm->regs->i2scontrol));
247 R_REG(snd_bcm->osh,
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/mtd/47xxnand/
H A Dbrcmnand_47xx.c230 brcmnand_cmd(osl_t *osh, chipcregs_t *cc, uint opcode) argument
232 W_REG(osh, &cc->nand_cmd_start, opcode);
234 R_REG(osh, &cc->nand_cmd_start);
241 osl_t *osh; local
247 osh = si_osh(sih);
248 addr = R_REG(osh, &cc->nand_ecc_corr_addr);
250 ext_addr = R_REG(osh, &cc->nand_ecc_corr_addr_x);
252 W_REG(osh, &cc->nand_ecc_corr_addr, 0);
253 W_REG(osh, &cc->nand_ecc_corr_addr_x, 0);
261 addr = R_REG(osh,
280 osl_t *osh; local
438 osl_t *osh; local
492 osl_t *osh; local
781 osl_t *osh; local
1029 osl_t *osh; local
1062 osl_t *osh; local
1146 osl_t *osh; local
1527 osl_t *osh; local
1855 osl_t *osh; local
1883 osl_t *osh; local
2165 osl_t *osh; local
2190 osl_t *osh; local
2279 osl_t *osh; local
[all...]

Completed in 224 milliseconds

12