• Home
  • Raw
  • Download

Lines Matching refs:pgid

139 	struct pgid *pgid = &cdev->private->dma_area->pgid[i];  in spid_build_cp()  local
141 pgid->inf.fc = fn; in spid_build_cp()
143 cp->cda = (u32) (addr_t) pgid; in spid_build_cp()
144 cp->count = sizeof(*pgid); in spid_build_cp()
280 static int pgid_is_reset(struct pgid *p) in pgid_is_reset()
291 static int pgid_cmp(struct pgid *p1, struct pgid *p2) in pgid_cmp()
294 sizeof(struct pgid) - 1); in pgid_cmp()
300 static void pgid_analyze(struct ccw_device *cdev, struct pgid **p, in pgid_analyze()
303 struct pgid *pgid = &cdev->private->dma_area->pgid[0]; in pgid_analyze() local
304 struct pgid *first = NULL; in pgid_analyze()
311 for (i = 0, lpm = 0x80; i < 8; i++, pgid++, lpm >>= 1) { in pgid_analyze()
314 if (pgid->inf.ps.state2 == SNID_STATE2_RESVD_ELSE) in pgid_analyze()
316 if (pgid_is_reset(pgid)) { in pgid_analyze()
321 first = pgid; in pgid_analyze()
324 if (pgid_cmp(pgid, first) != 0) in pgid_analyze()
335 struct pgid *pgid; in pgid_to_donepm() local
345 pgid = &cdev->private->dma_area->pgid[i]; in pgid_to_donepm()
347 if (pgid->inf.ps.state1 != SNID_STATE1_GROUPED) in pgid_to_donepm()
350 if (pgid->inf.ps.state1 != SNID_STATE1_UNGROUPED) in pgid_to_donepm()
354 if (pgid->inf.ps.state3 != SNID_STATE3_MULTI_PATH) in pgid_to_donepm()
357 if (pgid->inf.ps.state3 != SNID_STATE3_SINGLE_PATH) in pgid_to_donepm()
366 static void pgid_fill(struct ccw_device *cdev, struct pgid *pgid) in pgid_fill() argument
371 memcpy(&cdev->private->dma_area->pgid[i], pgid, in pgid_fill()
372 sizeof(struct pgid)); in pgid_fill()
382 struct pgid *pgid; in snid_done() local
390 pgid_analyze(cdev, &pgid, &mismatch, &reserved, &reset); in snid_done()
401 pgid_fill(cdev, pgid); in snid_done()
444 cp->cda = (u32) (addr_t) &cdev->private->dma_area->pgid[i]; in snid_build_cp()
445 cp->count = sizeof(struct pgid); in snid_build_cp()
520 memset(cdev->private->dma_area->pgid, 0, in verify_start()
521 sizeof(cdev->private->dma_area->pgid)); in verify_start()