Lines Matching refs:ppd

107 static int nge_chip_peek_cfg(nge_t *ngep, nge_peekpoke_t *ppd);
111 nge_chip_peek_cfg(nge_t *ngep, nge_peekpoke_t *ppd)
118 (void *)ngep, (void *)ppd));
121 regno = ppd->pp_acc_offset;
123 switch (ppd->pp_acc_size) {
140 ppd->pp_acc_data = regval;
144 static int nge_chip_poke_cfg(nge_t *ngep, nge_peekpoke_t *ppd);
147 nge_chip_poke_cfg(nge_t *ngep, nge_peekpoke_t *ppd)
154 (void *)ngep, (void *)ppd));
157 regno = ppd->pp_acc_offset;
158 regval = ppd->pp_acc_data;
160 switch (ppd->pp_acc_size) {
182 static int nge_chip_peek_reg(nge_t *ngep, nge_peekpoke_t *ppd);
185 nge_chip_peek_reg(nge_t *ngep, nge_peekpoke_t *ppd)
192 (void *)ngep, (void *)ppd));
195 regaddr = PIO_ADDR(ngep, ppd->pp_acc_offset);
197 switch (ppd->pp_acc_size) {
218 ppd->pp_acc_data = regval;
222 static int nge_chip_poke_reg(nge_t *ngep, nge_peekpoke_t *ppd);
225 nge_chip_poke_reg(nge_t *ngep, nge_peekpoke_t *ppd)
232 (void *)ngep, (void *)ppd));
235 regaddr = PIO_ADDR(ngep, ppd->pp_acc_offset);
236 regval = ppd->pp_acc_data;
238 switch (ppd->pp_acc_size) {
258 static int nge_chip_peek_mii(nge_t *ngep, nge_peekpoke_t *ppd);
262 nge_chip_peek_mii(nge_t *ngep, nge_peekpoke_t *ppd)
267 ppd->pp_acc_data = nge_mii_get16(ngep, ppd->pp_acc_offset/2);
271 static int nge_chip_poke_mii(nge_t *ngep, nge_peekpoke_t *ppd);
275 nge_chip_poke_mii(nge_t *ngep, nge_peekpoke_t *ppd)
279 nge_mii_put16(ngep, ppd->pp_acc_offset/2, ppd->pp_acc_data);
403 nge_chip_peek_seeprom(nge_t *ngep, nge_peekpoke_t *ppd)
409 ppd->pp_acc_offset, &data);
410 ppd->pp_acc_data = data;
415 nge_chip_poke_seeprom(nge_t *ngep, nge_peekpoke_t *ppd)
420 data = ppd->pp_acc_data;
422 ppd->pp_acc_offset, &data);
1853 nge_peekpoke_t *ppd;
1854 int (*ppfn)(nge_t *ngep, nge_peekpoke_t *ppd);
1876 ppd = (nge_peekpoke_t *)mp->b_cont->b_rptr;
1881 switch (ppd->pp_acc_space) {
1920 switch (ppd->pp_acc_size) {
1928 if ((ppd->pp_acc_size & sizemask) == 0)
1933 if ((ppd->pp_acc_offset % ppd->pp_acc_size) != 0)
1936 if (ppd->pp_acc_offset >= maxoff)
1939 if (ppd->pp_acc_offset+ppd->pp_acc_size > maxoff)
1945 ppd->pp_acc_offset += mem_va;
1947 err = (*ppfn)(ngep, ppd);