Lines Matching refs:packp
856 packet_t *packp; in sgfru_getpackets() local
881 packp = (packet_t *)kmem_zalloc(ssize, KM_SLEEP); in sgfru_getpackets()
884 if ((ret = sgfru_packet_pad(datap, max_cnt, &packs.fru_info, packp)) in sgfru_getpackets()
887 kmem_free(packp, ssize); in sgfru_getpackets()
895 kmem_free(packp, ssize); in sgfru_getpackets()
899 if (sgfru_copyout_packets(iargp, &packs, packp) != 0) { in sgfru_getpackets()
900 kmem_free(packp, ssize); in sgfru_getpackets()
904 kmem_free(packp, ssize); in sgfru_getpackets()
1654 const packet_t *packp) in sgfru_copyout_packets() argument
1660 if (ddi_copyout((void *)packp, (void *)frup->frus, size, argp->mode) in sgfru_copyout_packets()
1808 packet_t *packp) in sgfru_packet_pad() argument
1817 for (i = 0, pp = packp; i < fru->cnt; i++, pp++) { in sgfru_packet_pad()
1870 sgfru_packet_unpad(const fru_info_t *fru, const packet_t *packp, caddr_t datap) in sgfru_packet_unpad() argument
1878 bcopy((caddr_t)&packp->handle, tdatap, FRU_HDL_SIZE); in sgfru_packet_unpad()
1880 bcopy((caddr_t)&packp->tag, tdatap, TAG_SIZE); in sgfru_packet_unpad()