Lines Matching refs:ppd
5558 static void bge_chip_peek_cfg(bge_t *bgep, bge_peekpoke_t *ppd);
5562 bge_chip_peek_cfg(bge_t *bgep, bge_peekpoke_t *ppd)
5568 (void *)bgep, (void *)ppd));
5570 regno = ppd->pp_acc_offset;
5572 switch (ppd->pp_acc_size) {
5590 ppd->pp_acc_data = regval;
5593 static void bge_chip_poke_cfg(bge_t *bgep, bge_peekpoke_t *ppd);
5597 bge_chip_poke_cfg(bge_t *bgep, bge_peekpoke_t *ppd)
5603 (void *)bgep, (void *)ppd));
5605 regno = ppd->pp_acc_offset;
5606 regval = ppd->pp_acc_data;
5608 switch (ppd->pp_acc_size) {
5627 static void bge_chip_peek_reg(bge_t *bgep, bge_peekpoke_t *ppd);
5631 bge_chip_peek_reg(bge_t *bgep, bge_peekpoke_t *ppd)
5637 (void *)bgep, (void *)ppd));
5639 regaddr = PIO_ADDR(bgep, ppd->pp_acc_offset);
5641 switch (ppd->pp_acc_size) {
5659 ppd->pp_acc_data = regval;
5662 static void bge_chip_poke_reg(bge_t *bgep, bge_peekpoke_t *ppd);
5666 bge_chip_poke_reg(bge_t *bgep, bge_peekpoke_t *ppd)
5672 (void *)bgep, (void *)ppd));
5674 regaddr = PIO_ADDR(bgep, ppd->pp_acc_offset);
5675 regval = ppd->pp_acc_data;
5677 switch (ppd->pp_acc_size) {
5697 static void bge_chip_peek_nic(bge_t *bgep, bge_peekpoke_t *ppd);
5701 bge_chip_peek_nic(bge_t *bgep, bge_peekpoke_t *ppd)
5708 (void *)bgep, (void *)ppd));
5710 regoff = ppd->pp_acc_offset;
5716 switch (ppd->pp_acc_size) {
5734 ppd->pp_acc_data = regval;
5737 static void bge_chip_poke_nic(bge_t *bgep, bge_peekpoke_t *ppd);
5741 bge_chip_poke_nic(bge_t *bgep, bge_peekpoke_t *ppd)
5748 (void *)bgep, (void *)ppd));
5750 regoff = ppd->pp_acc_offset;
5755 regval = ppd->pp_acc_data;
5757 switch (ppd->pp_acc_size) {
5777 static void bge_chip_peek_mii(bge_t *bgep, bge_peekpoke_t *ppd);
5781 bge_chip_peek_mii(bge_t *bgep, bge_peekpoke_t *ppd)
5784 (void *)bgep, (void *)ppd));
5786 ppd->pp_acc_data = bge_mii_get16(bgep, ppd->pp_acc_offset/2);
5789 static void bge_chip_poke_mii(bge_t *bgep, bge_peekpoke_t *ppd);
5793 bge_chip_poke_mii(bge_t *bgep, bge_peekpoke_t *ppd)
5796 (void *)bgep, (void *)ppd));
5798 bge_mii_put16(bgep, ppd->pp_acc_offset/2, ppd->pp_acc_data);
5803 static void bge_chip_peek_seeprom(bge_t *bgep, bge_peekpoke_t *ppd);
5807 bge_chip_peek_seeprom(bge_t *bgep, bge_peekpoke_t *ppd)
5813 (void *)bgep, (void *)ppd));
5815 err = bge_nvmem_rw32(bgep, BGE_SEE_READ, ppd->pp_acc_offset, &data);
5816 ppd->pp_acc_data = err ? ~0ull : data;
5819 static void bge_chip_poke_seeprom(bge_t *bgep, bge_peekpoke_t *ppd);
5823 bge_chip_poke_seeprom(bge_t *bgep, bge_peekpoke_t *ppd)
5828 (void *)bgep, (void *)ppd));
5830 data = ppd->pp_acc_data;
5831 (void) bge_nvmem_rw32(bgep, BGE_SEE_WRITE, ppd->pp_acc_offset, &data);
5837 static void bge_chip_peek_flash(bge_t *bgep, bge_peekpoke_t *ppd);
5841 bge_chip_peek_flash(bge_t *bgep, bge_peekpoke_t *ppd)
5847 (void *)bgep, (void *)ppd));
5849 err = bge_nvmem_rw32(bgep, BGE_FLASH_READ, ppd->pp_acc_offset, &data);
5850 ppd->pp_acc_data = err ? ~0ull : data;
5853 static void bge_chip_poke_flash(bge_t *bgep, bge_peekpoke_t *ppd);
5857 bge_chip_poke_flash(bge_t *bgep, bge_peekpoke_t *ppd)
5862 (void *)bgep, (void *)ppd));
5864 data = ppd->pp_acc_data;
5866 ppd->pp_acc_offset, &data);
5870 static void bge_chip_peek_mem(bge_t *bgep, bge_peekpoke_t *ppd);
5874 bge_chip_peek_mem(bge_t *bgep, bge_peekpoke_t *ppd)
5880 (void *)bgep, (void *)ppd));
5882 vaddr = (void *)(uintptr_t)ppd->pp_acc_offset;
5884 switch (ppd->pp_acc_size) {
5903 (void *)bgep, (void *)ppd, regval, vaddr));
5905 ppd->pp_acc_data = regval;
5908 static void bge_chip_poke_mem(bge_t *bgep, bge_peekpoke_t *ppd);
5912 bge_chip_poke_mem(bge_t *bgep, bge_peekpoke_t *ppd)
5918 (void *)bgep, (void *)ppd));
5920 vaddr = (void *)(uintptr_t)ppd->pp_acc_offset;
5921 regval = ppd->pp_acc_data;
5924 (void *)bgep, (void *)ppd, regval, vaddr));
5926 switch (ppd->pp_acc_size) {
5952 void (*ppfn)(bge_t *bgep, bge_peekpoke_t *ppd);
5953 bge_peekpoke_t *ppd;
5982 ppd = (void *)mp->b_cont->b_rptr;
5987 switch (ppd->pp_acc_space) {
6029 ppd->pp_acc_offset *= 2;
6087 switch (ppd->pp_acc_space) {
6116 switch (ppd->pp_acc_size) {
6124 if ((ppd->pp_acc_size & sizemask) == 0)
6129 if ((ppd->pp_acc_offset % ppd->pp_acc_size) != 0)
6132 if (ppd->pp_acc_offset >= maxoff)
6135 if (ppd->pp_acc_offset+ppd->pp_acc_size > maxoff)
6141 ppd->pp_acc_offset += mem_va;
6142 (*ppfn)(bgep, ppd);