Lines Matching defs:new
414 ctmpl_device_t *new;
419 new = kmem_zalloc(sizeof (ctmpl_device_t), KM_SLEEP);
426 ctmpl_copy(&new->ctd_ctmpl, template);
428 new->ctd_ctmpl.ctmpl_data = new;
429 new->ctd_aset = old->ctd_aset;
430 new->ctd_minor = NULL;
431 new->ctd_noneg = old->ctd_noneg;
452 new->ctd_minor = minor;
456 return (&new->ctd_ctmpl);
729 ctmpl_device_t *new;
731 new = kmem_zalloc(sizeof (ctmpl_device_t), KM_SLEEP);
732 ctmpl_init(&new->ctd_ctmpl, &ctmpl_device_ops, device_type, new);
734 new->ctd_aset = CT_DEV_EV_ONLINE | CT_DEV_EV_DEGRADED;
735 new->ctd_noneg = 0;
736 new->ctd_ctmpl.ctmpl_ev_info = CT_DEV_EV_DEGRADED;
737 new->ctd_ctmpl.ctmpl_ev_crit = CT_DEV_EV_OFFLINE;
739 return (&new->ctd_ctmpl);
942 is_sync_neg(uint_t old, uint_t new)
947 ASSERT(new & CT_DEV_ALLEVENT);
949 if (old == new) {
951 state_str(new)));
957 new == ct_dev_negtable[i].st_new) {
963 "old = %s -> new = %s", state_str(old), state_str(new)));
1035 * Negotiation only if new state is not in A-set
1152 * Creates a new contract synchronously with the breaking of an existing
1656 * This is a new event, not a NEGEND event. Wait for previous