Lines Matching defs:handle

57 static uint16_t cnx_check_hwver_img(ib_cnx_encap_ident_t *handle);
58 static void cnx_flash_verify_flash_match_img(ib_cnx_encap_ident_t *handle);
59 static void cnx_flash_verify_flash_pn_img(ib_cnx_encap_ident_t *handle,
61 static uchar_t *cnx_flash_get_psid_img(ib_cnx_encap_ident_t *handle);
62 static void cnx_display_fwver(ib_cnx_encap_ident_t *handle);
69 struct ib_cnx_encap_ident_s *handle;
74 handle = (struct ib_cnx_encap_ident_s *)devicenode->ident->encap_ident;
76 if (CNX_I_CHECK_HANDLE(handle)) {
99 cnx_flash_verify_flash_match_img(handle);
102 ver = cnx_check_hwver_img(handle);
109 if (handle->hwfw_match == 0) {
112 if (handle->pn_len != 0) {
133 handle->info.mlx_psid, verifier->imgfile);
135 cnx_display_fwver(handle);
142 cnx_check_hwver_img(ib_cnx_encap_ident_t *handle)
148 if ((handle->state & FWFLASH_IB_STATE_IMAGE_PRI) == 0 &&
149 (handle->state & FWFLASH_IB_STATE_IMAGE_SEC) == 0) {
156 hwver = (uint8_t)handle->hwrev;
181 cnx_display_fwver(ib_cnx_encap_ident_t *handle)
187 handle->hwfw_img_info.fw_rev.major,
188 handle->hwfw_img_info.fw_rev.minor,
189 handle->hwfw_img_info.fw_rev.subminor);
192 handle->file_img_info.fw_rev.major,
193 handle->file_img_info.fw_rev.minor,
194 handle->file_img_info.fw_rev.subminor);
198 cnx_flash_get_psid_img(ib_cnx_encap_ident_t *handle)
220 &handle->file_img_info, CNX_FILE_IMG) != FWFLASH_SUCCESS) {
226 return (handle->file_img_info.psid);
230 cnx_flash_verify_flash_pn_img(ib_cnx_encap_ident_t *handle, uchar_t *psid,
238 if (handle->hwfw_match == 1) {
245 if (handle->hwfw_match == 1) {
262 handle->info.mlx_pn, mlx_mdr[i].mlx_pn);
265 if (strncmp(handle->info.mlx_pn, mlx_mdr[i].mlx_pn,
266 handle->pn_len) == 0) {
267 handle->hwfw_match = 1;
271 handle->hwfw_match = 0;
280 handle->hwfw_match = 0;
281 handle->pn_len = 0;
284 if (handle->hwfw_match == 0) {
288 handle->info.mlx_pn);
294 cnx_flash_verify_flash_match_img(ib_cnx_encap_ident_t *handle)
300 psid = cnx_flash_get_psid_img(handle);
302 handle->hwfw_match = 0;
303 handle->pn_len = 0;
314 if (handle->pn_len != 0) {
315 cnx_flash_verify_flash_pn_img(handle, psid, CNX_PSID_SZ);