Lines Matching refs:template
313 * @template: optional integrity profile to register
317 * register the capability with the block layer. The template is a
319 * hardware. If template is NULL the new profile is allocated but
322 int blk_integrity_register(struct gendisk *disk, struct blk_integrity *template)
349 /* Use the provided profile as template */
350 if (template != NULL) {
351 bi->name = template->name;
352 bi->generate_fn = template->generate_fn;
353 bi->verify_fn = template->verify_fn;
354 bi->tuple_size = template->tuple_size;
355 bi->set_tag_fn = template->set_tag_fn;
356 bi->get_tag_fn = template->get_tag_fn;
357 bi->tag_size = template->tag_size;