Lines Matching refs:parent
468 * @parent: the crypto profile for the parent device
471 * This clears all crypto capabilities in @parent that aren't set in @child. If
472 * @child is NULL, then this clears all parent capabilities.
477 void blk_crypto_intersect_capabilities(struct blk_crypto_profile *parent,
483 parent->max_dun_bytes_supported =
484 min(parent->max_dun_bytes_supported,
487 parent->modes_supported[i] &= child->modes_supported[i];
489 parent->max_dun_bytes_supported = 0;
490 memset(parent->modes_supported, 0,
491 sizeof(parent->modes_supported));