Lines Matching defs:primary
626 * depending on the primary/secondary state of the device it has to be
631 bool primary)
636 if (primary) {
638 data->dev_info[i].primary == uid.real_unit_addr)
673 i = dasd_devmap_entry_from_pprc_data(data, uid, entry->primary);
680 if (entry->primary) {
682 dev_warn(&device->cdev->dev, "Copy pair secondary is setup as primary\n");
686 data->dev_info[i].primary != uid.real_unit_addr) {
688 "Primary device %s does not match copy pair status primary device %04x\n",
691 data->dev_info[i].primary);
696 dev_warn(&device->cdev->dev, "Copy pair primary is setup as secondary\n");
726 if (dasd_devmap_entry_from_pprc_data(tmp_dat, uid, entry->primary) < 0) {
2048 * primary,secondary[1] primary,secondary[2], ...
2068 /* find primary */
2070 if (copy->entry[i].configured && copy->entry[i].primary) {
2081 if (copy->entry[i].configured && !copy->entry[i].primary)
2093 char *busid, bool primary)
2112 if (primary) {
2114 copy->entry[i].primary = true;
2143 copy->entry[i].primary = false;
2200 char *primary, *secondary, *tmp, *pt;
2208 primary = strsep(&tmp, ",");
2209 if (!primary) {
2218 if (dasd_busid(primary, &id0, &id1, &id2)) {
2259 /* allocate primary devmap if needed */
2295 /* if primary device is already online call device setup directly */
2334 /* only the active device is primary */
2336 len = sysfs_emit(buf, "primary\n");