Lines Matching refs:bc_struct
201 struct asd_bios_chim_struct *bc_struct; in asd_get_bios_chim() local
210 bc_struct = kmalloc(sizeof(*bc_struct), GFP_KERNEL); in asd_get_bios_chim()
211 if (!bc_struct) { in asd_get_bios_chim()
215 err = asd_read_ocm_seg(asd_ha, (void *)bc_struct, offs, in asd_get_bios_chim()
216 sizeof(*bc_struct)); in asd_get_bios_chim()
221 if (strncmp(bc_struct->sig, "SOIB", 4) in asd_get_bios_chim()
222 && strncmp(bc_struct->sig, "IPSA", 4)) { in asd_get_bios_chim()
224 bc_struct->sig[0], bc_struct->sig[1], in asd_get_bios_chim()
225 bc_struct->sig[2], bc_struct->sig[3]); in asd_get_bios_chim()
229 if (bc_struct->major != 1) { in asd_get_bios_chim()
231 bc_struct->major); in asd_get_bios_chim()
235 if (bc_struct->flags & BC_BIOS_PRESENT) { in asd_get_bios_chim()
237 asd_ha->hw_prof.bios.maj = bc_struct->bios_major; in asd_get_bios_chim()
238 asd_ha->hw_prof.bios.min = bc_struct->bios_minor; in asd_get_bios_chim()
239 asd_ha->hw_prof.bios.bld = le32_to_cpu(bc_struct->bios_build); in asd_get_bios_chim()
245 asd_ha->hw_prof.ue.num = le16_to_cpu(bc_struct->ue_num); in asd_get_bios_chim()
246 asd_ha->hw_prof.ue.size= le16_to_cpu(bc_struct->ue_size); in asd_get_bios_chim()
256 offs + sizeof(*bc_struct), size); in asd_get_bios_chim()
266 kfree(bc_struct); in asd_get_bios_chim()