Lines Matching refs:css
365 static int verify_css_header(struct hfi1_devdata *dd, struct css_header *css) in verify_css_header() argument
368 if (invalid_header(dd, "module_type", css->module_type, in verify_css_header()
370 invalid_header(dd, "header_len", css->header_len, in verify_css_header()
372 invalid_header(dd, "header_version", css->header_version, in verify_css_header()
374 invalid_header(dd, "module_vendor", css->module_vendor, in verify_css_header()
376 invalid_header(dd, "key_size", css->key_size, KEY_SIZE / 4) || in verify_css_header()
377 invalid_header(dd, "modulus_size", css->modulus_size, in verify_css_header()
379 invalid_header(dd, "exponent_size", css->exponent_size, in verify_css_header()
411 struct css_header *css; in obtain_one_firmware() local
429 css = (struct css_header *)fdet->fw->data; in obtain_one_firmware()
434 hfi1_cdbg(FIRMWARE, " module_type 0x%x", css->module_type); in obtain_one_firmware()
436 css->header_len, 4 * css->header_len); in obtain_one_firmware()
437 hfi1_cdbg(FIRMWARE, " header_version 0x%x", css->header_version); in obtain_one_firmware()
438 hfi1_cdbg(FIRMWARE, " module_id 0x%x", css->module_id); in obtain_one_firmware()
439 hfi1_cdbg(FIRMWARE, " module_vendor 0x%x", css->module_vendor); in obtain_one_firmware()
440 hfi1_cdbg(FIRMWARE, " date 0x%x", css->date); in obtain_one_firmware()
442 css->size, 4 * css->size); in obtain_one_firmware()
444 css->key_size, 4 * css->key_size); in obtain_one_firmware()
446 css->modulus_size, 4 * css->modulus_size); in obtain_one_firmware()
448 css->exponent_size, 4 * css->exponent_size); in obtain_one_firmware()
462 ret = verify_css_header(dd, css); in obtain_one_firmware()
465 } else if ((css->size * 4) == fdet->fw->size) { in obtain_one_firmware()
474 fdet->css_header = css; in obtain_one_firmware()
490 } else if ((css->size * 4) + AUGMENT_SIZE == fdet->fw->size) { in obtain_one_firmware()
499 fdet->css_header = css; in obtain_one_firmware()
515 css->size); in obtain_one_firmware()