Lines Matching refs:pi
160 iec61883_plug_init_t pi;
162 if (ddi_copyin(arg, &pi, sizeof (pi), mode) != 0) {
167 if (((pi.pi_type != IEC61883_PLUG_IN) &&
168 (pi.pi_type != IEC61883_PLUG_OUT) &&
169 (pi.pi_type != IEC61883_PLUG_MASTER_IN) &&
170 (pi.pi_type != IEC61883_PLUG_MASTER_OUT)) ||
171 (((pi.pi_num < 0) || (pi.pi_num >= AV1394_NPCR)) &&
172 (pi.pi_num != IEC61883_PLUG_ANY))) {
176 if (pi.pi_loc == IEC61883_LOC_LOCAL) {
177 ret = av1394_ioctl_plug_init_local(avp, &pi);
178 } else if (pi.pi_loc == IEC61883_LOC_REMOTE) {
179 ret = av1394_ioctl_plug_init_remote(avp, &pi);
185 if (ddi_copyout(&pi, arg, sizeof (pi), mode) != 0) {