Lines Matching defs:ppd

237 static void pcmcia_ppd_free(struct pcmcia_parent_private *ppd);
518 struct pcmcia_parent_private *ppd;
573 ppd = (struct pcmcia_parent_private *)
575 if (ppd == NULL)
579 if (ppd == NULL)
582 (int)ppd->ppd_reg[0].phys_hi);
603 if (pcmcia_debug && ppd != NULL) {
606 ppd->ppd_nreg, ppd->ppd_intr,
607 ppd->ppd_socket, ppd->ppd_function,
608 ppd->ppd_active, ppd->ppd_flags);
615 if (ppd->ppd_function > 0) {
618 sock = ppd->ppd_socket;
619 func = ppd->ppd_function;
622 (void) sprintf(name, "%x", ppd->ppd_socket);
660 ppd = (struct pcmcia_parent_private *)
662 if (ppd != NULL && ppd->ppd_flags & PPD_CB_BUSMASTER)
671 ppd = (struct pcmcia_parent_private *)
673 if (ppd != NULL)
674 *((uint32_t *)result) = (ppd->ppd_nreg);
680 ppd = (struct pcmcia_parent_private *)
682 if (ppd != NULL && ppd->ppd_nreg > 0)
689 ppd = (struct pcmcia_parent_private *)
692 if (ppd == NULL)
700 if (!ppd->ppd_active)
704 pcmcia_sockets[ppd->ppd_socket]->ls_adapter)
719 e = ppd->ppd_socket;
724 pcmcia_do_suspend(ppd->ppd_socket,
727 ppd->ppd_flags |= PPD_SUSPENDED;
811 struct pcmcia_parent_private *ppd;
814 ppd = (struct pcmcia_parent_private *)ddi_get_parent_data(ch_dip);
818 if (ppd == NULL)
832 propptr = (caddr_t)ppd->ppd_reg;
833 proplen = ppd->ppd_nreg * sizeof (struct pcm_regs);
836 propptr = (caddr_t)&ppd->ppd_intr;
842 if (!ppd->ppd_active) {
848 if (ppd->ppd_flags & PPD_CARD_CARDBUS)
853 if (!(ppd->ppd_flags * PPD_CARD_CARDBUS))
908 struct pcmcia_parent_private *ppd;
909 ppd = (struct pcmcia_parent_private *)ddi_get_parent_data(dip);
910 if (ppd->ppd_nreg < rnumber)
912 return ((struct regspec *)&ppd->ppd_reg[rnumber]);
918 struct pcmcia_parent_private *ppd;
919 ppd = (struct pcmcia_parent_private *)ddi_get_parent_data(dip);
920 if (ppd->ppd_nreg < rnumber)
922 if (ppd->ppd_assigned == NULL)
924 if (ppd->ppd_assigned[rnumber].phys_len == 0)
927 return ((struct regspec *)&ppd->ppd_assigned[rnumber]);
933 struct pcmcia_parent_private *ppd;
937 ppd = (struct pcmcia_parent_private *)ddi_get_parent_data(dip);
938 if (ppd == NULL)
940 for (regp = (struct regspec *)ppd->ppd_reg, i = 0;
941 i < ppd->ppd_nreg; i++, regp++) {
945 for (regp = (struct regspec *)ppd->ppd_assigned, i = 0;
946 i < ppd->ppd_nreg; i++, regp++) {
1366 struct pcmcia_parent_private *ppd;
1370 ppd = kmem_zalloc(sizeof (struct pcmcia_parent_private),
1372 ppd->ppd_reg = kmem_zalloc(sizeof (struct pcm_regs), KM_SLEEP);
1373 ppd->ppd_nreg = 1;
1374 ppd->ppd_reg[0].phys_hi = localsocket;
1375 ddi_set_parent_data(child, (caddr_t)ppd);
1377 kmem_free(ppd->ppd_reg, sizeof (struct pcm_regs));
1378 kmem_free(ppd, sizeof (struct pcmcia_parent_private));
1561 struct pcmcia_parent_private *ppd;
1579 ppd = (struct pcmcia_parent_private *)
1581 if (ppd == NULL) {
1587 ppd_socket = CS_MAKE_SOCKET_NUMBER(ppd->ppd_socket,
1588 ppd->ppd_function);
1609 socket == ppd->ppd_socket)
1963 struct pcmcia_parent_private *ppd;
1964 ppd = (struct pcmcia_parent_private *)
1966 ppd->ppd_active = 0;
1970 pcmcia_ppd_free(ppd);
2146 struct pcmcia_parent_private *ppd;
2149 ppd = (struct pcmcia_parent_private *)
2151 ppd->ppd_flags |= PPD_SUSPENDED;
2845 struct pcmcia_parent_private *ppd)
2852 if (ppd->ppd_flags & PPD_CARD_CARDBUS) {
2900 ppd->ppd_nreg = num_regs;
2901 ppd->ppd_reg = kmem_alloc(len, KM_SLEEP);
2902 bcopy(regs, ppd->ppd_reg, len);
2903 len = sizeof (struct pcm_regs) * ppd->ppd_nreg;
2904 ppd->ppd_assigned = kmem_zalloc(len, KM_SLEEP);
3158 struct pcmcia_parent_private *ppd;
3186 ppd = (struct pcmcia_parent_private *)
3192 ppd->ppd_active = 1;
3197 ppd->ppd_active = 0;
3229 ppd = kmem_zalloc(sizeof (struct pcmcia_parent_private),
3232 ppd->ppd_socket = info->pd_socket;
3233 ppd->ppd_function = info->pd_function;
3246 ppd->ppd_flags |= PPD_CARD_MULTI;
3253 pcmcia_find_regs(dip, info, ppd);
3255 ppd->ppd_intr = pcmcia_need_intr(unit, info);
3257 if (ppd->ppd_nreg > 0)
3259 "reg", (int *)ppd->ppd_reg, ppd->ppd_nreg *
3261 if (ppd->ppd_intr) {
3263 "interrupts", ppd->ppd_intr);
3264 ppd->ppd_intrspec =
3269 ddi_set_parent_data(dip, (caddr_t)ppd);
3290 ppd->ppd_active = 1;
3301 pcmcia_ppd_free(ppd);
3331 pcmcia_ppd_free(struct pcmcia_parent_private *ppd)
3335 if (ppd->ppd_nreg != 0) {
3336 len = ppd->ppd_nreg * sizeof (uint32_t) * 3;
3337 kmem_free(ppd->ppd_reg, len);
3338 len = sizeof (struct pcm_regs) * ppd->ppd_nreg;
3339 kmem_free(ppd->ppd_assigned, len);
3345 if (ppd->ppd_intr != 0) {
3346 len = sizeof (struct intrspec) * ppd->ppd_intr;
3347 kmem_free(ppd->ppd_intrspec, len);
3350 kmem_free(ppd, sizeof (*ppd));
3788 struct pcmcia_parent_private *ppd;
3811 ppd = (struct pcmcia_parent_private *)ddi_get_parent_data(dip);
3824 handler->irq = ppd->ppd_intrspec->intrspec_vec;
4344 struct pcmcia_parent_private *ppd;
4353 ppd = (struct pcmcia_parent_private *)ddi_get_parent_data(dip);
4354 if (ppd == NULL)
4356 for (rnum = 1; rnum < ppd->ppd_nreg; rnum++) {
4358 p = &ppd->ppd_reg[rnum];
4387 if (rnum >= ppd->ppd_nreg)
4462 struct pcmcia_parent_private *ppd;
4465 ppd = (struct pcmcia_parent_private *)ddi_get_parent_data(dip);
4466 if (ppd) {
4467 reg = &ppd->ppd_reg[rnum];
4468 assign = &ppd->ppd_assigned[rnum];
4718 struct pcmcia_parent_private *ppd;
4734 ppd = (struct pcmcia_parent_private *)ddi_get_parent_data(rdip);
4735 socket = ppd->ppd_socket;
4744 ppd->ppd_flags, PPD_CARD_MULTI,
4745 (void *) ppd->ppd_intrspec,
4753 pispec = ppd->ppd_intrspec;
4773 if (ppd->ppd_flags & PPD_CARD_MULTI) {
4873 struct pcmcia_parent_private *ppd;
4887 ppd = (struct pcmcia_parent_private *)ddi_get_parent_data(rdip);
4888 socket = ppd->ppd_socket;
4890 pispec = ppd->ppd_intrspec;
5054 struct pcmcia_parent_private *ppd;
5060 ppd = (struct pcmcia_parent_private *)ddi_get_parent_data(rdip);
5061 if (ppd == NULL || ppd->ppd_intrspec == NULL)
5064 if ((socket = ppd->ppd_socket) < 0)
5070 intrspec = ppd->ppd_intrspec;
5085 struct pcmcia_parent_private *ppd;
5094 ppd = (struct pcmcia_parent_private *)ddi_get_parent_data(rdip);
5095 socket = ppd->ppd_socket;
5099 ispecp = ppd->ppd_intrspec;
5111 if (ppd->ppd_flags & PPD_CARD_MULTI &&
5212 struct pcmcia_parent_private *ppd;
5221 ppd = (struct pcmcia_parent_private *)ddi_get_parent_data(rdip);
5222 socket = ppd->ppd_socket;
5226 ispecp = ppd->ppd_intrspec;
5235 ASSERT(ppd->ppd_flags & PPD_CARD_MULTI);
5403 struct pcmcia_parent_private *ppd;
5414 ppd = (struct pcmcia_parent_private *)ddi_get_parent_data(rdip);
5415 socket = ppd->ppd_socket;
5418 ispecp = ppd->ppd_intrspec;