Lines Matching refs:pgid
138 struct pgid *pgid = &cdev->private->pgid[i]; in spid_build_cp() local
140 pgid->inf.fc = fn; in spid_build_cp()
142 cp->cda = (u32) (addr_t) pgid; in spid_build_cp()
143 cp->count = sizeof(*pgid); in spid_build_cp()
279 static int pgid_is_reset(struct pgid *p) in pgid_is_reset()
290 static int pgid_cmp(struct pgid *p1, struct pgid *p2) in pgid_cmp()
293 sizeof(struct pgid) - 1); in pgid_cmp()
299 static void pgid_analyze(struct ccw_device *cdev, struct pgid **p, in pgid_analyze()
302 struct pgid *pgid = &cdev->private->pgid[0]; in pgid_analyze() local
303 struct pgid *first = NULL; in pgid_analyze()
310 for (i = 0, lpm = 0x80; i < 8; i++, pgid++, lpm >>= 1) { in pgid_analyze()
313 if (pgid->inf.ps.state2 == SNID_STATE2_RESVD_ELSE) in pgid_analyze()
315 if (pgid_is_reset(pgid)) { in pgid_analyze()
320 first = pgid; in pgid_analyze()
323 if (pgid_cmp(pgid, first) != 0) in pgid_analyze()
334 struct pgid *pgid; in pgid_to_donepm() local
344 pgid = &cdev->private->pgid[i]; in pgid_to_donepm()
346 if (pgid->inf.ps.state1 != SNID_STATE1_GROUPED) in pgid_to_donepm()
349 if (pgid->inf.ps.state1 != SNID_STATE1_UNGROUPED) in pgid_to_donepm()
353 if (pgid->inf.ps.state3 != SNID_STATE3_MULTI_PATH) in pgid_to_donepm()
356 if (pgid->inf.ps.state3 != SNID_STATE3_SINGLE_PATH) in pgid_to_donepm()
365 static void pgid_fill(struct ccw_device *cdev, struct pgid *pgid) in pgid_fill() argument
370 memcpy(&cdev->private->pgid[i], pgid, sizeof(struct pgid)); in pgid_fill()
380 struct pgid *pgid; in snid_done() local
388 pgid_analyze(cdev, &pgid, &mismatch, &reserved, &reset); in snid_done()
399 pgid_fill(cdev, pgid); in snid_done()
442 cp->cda = (u32) (addr_t) &cdev->private->pgid[i]; in snid_build_cp()
443 cp->count = sizeof(struct pgid); in snid_build_cp()
518 memset(cdev->private->pgid, 0, sizeof(cdev->private->pgid)); in verify_start()