Lines Matching refs:pp
22 static inline void pti_reset(struct ptifddi *pp) in pti_reset() argument
24 pp->reset = 1; in pti_reset()
27 static inline void pti_unreset(struct ptifddi *pp) in pti_unreset() argument
29 pp->unreset = 1; in pti_unreset()
37 static inline void pti_clear_dpram(struct ptifddi *pp) in pti_clear_dpram() argument
39 memset(pp->dpram, 0, DPRAM_SIZE); in pti_clear_dpram()
44 static inline int pti_card_test(struct ptifddi *pp) in pti_card_test() argument
46 struct dfddi_ram *rp = pp->dpram; in pti_card_test()
52 pti_clear_dpram(pp); in pti_card_test()
59 pti_load_code_base(pp, test_firmware_dev_addr); in pti_card_test()
68 pti_unreset(pp); in pti_card_test()
73 pti_reset(pp); in pti_card_test()
81 static inline void pti_init_firmware_loader(struct ptifddi *pp) in pti_init_firmware_loader() argument
83 struct dfddi_ram *rp = pp->dpram; in pti_init_firmware_loader()
90 static inline void pti_load_main_firmware(struct ptifddi *pp) in pti_load_main_firmware() argument
92 struct dfddi_ram *rp = pp->dpram; in pti_load_main_firmware()
99 static void pti_init_rings(struct ptifddi *pp, int from_irq) in pti_init_rings() argument
103 static int pti_init(struct ptifddi *pp, int from_irq) in pti_init() argument
107 static void pti_is_not_so_happy(struct ptifddi *pp) in pti_is_not_so_happy() argument
111 static inline void pti_tx(struct ptifddi *pp, struct net_device *dev) in pti_tx() argument
115 static inline void myri_rx(struct ptifddi *pp, struct net_device *dev) in myri_rx() argument
122 struct ptifddi *pp = (struct ptifddi *) dev->priv; in pti_interrupt() local
128 struct ptifddi *pp = (struct ptifddi *) dev->priv; in pti_open() local
130 return pti_init(pp, in_interrupt()); in pti_open()
135 struct ptifddi *pp = (struct ptifddi *) dev->priv; in pti_close() local
142 struct ptifddi *pp = (struct ptifddi *) dev->priv; in pti_start_xmit() local
155 struct ptifddi *pp; in pti_fddi_init() local
164 pp->dpram = (struct dfddi_ram *) sbus_ioremap( in pti_fddi_init()
166 if(!pp->dpram) { in pti_fddi_init()
172 pp->reset = (unsigned char *) sbus_ioremap( in pti_fddi_init()
174 if(!pp->reset) { in pti_fddi_init()
180 pp->unreset = (unsigned char *) sbus_ioremap( in pti_fddi_init()
182 if(!pp->unreset) { in pti_fddi_init()
188 pti_reset(pp); in pti_fddi_init()
191 i = pti_card_test(pp); in pti_fddi_init()
198 pti_clear_dpram(pp); in pti_fddi_init()
201 pti_init_firmware_loader(pp); in pti_fddi_init()
204 pti_load_main_firmware(pp); in pti_fddi_init()
248 struct ptifddi *pp; in cleanup_module() local
252 pp = root_pti_dev->next_module; in cleanup_module()