Lines Matching refs:bc_struct
219 struct asd_bios_chim_struct *bc_struct; in asd_get_bios_chim() local
228 bc_struct = kmalloc(sizeof(*bc_struct), GFP_KERNEL); in asd_get_bios_chim()
229 if (!bc_struct) { in asd_get_bios_chim()
233 err = asd_read_ocm_seg(asd_ha, (void *)bc_struct, offs, in asd_get_bios_chim()
234 sizeof(*bc_struct)); in asd_get_bios_chim()
239 if (strncmp(bc_struct->sig, "SOIB", 4) in asd_get_bios_chim()
240 && strncmp(bc_struct->sig, "IPSA", 4)) { in asd_get_bios_chim()
242 bc_struct->sig[0], bc_struct->sig[1], in asd_get_bios_chim()
243 bc_struct->sig[2], bc_struct->sig[3]); in asd_get_bios_chim()
247 if (bc_struct->major != 1) { in asd_get_bios_chim()
249 bc_struct->major); in asd_get_bios_chim()
253 if (bc_struct->flags & BC_BIOS_PRESENT) { in asd_get_bios_chim()
255 asd_ha->hw_prof.bios.maj = bc_struct->bios_major; in asd_get_bios_chim()
256 asd_ha->hw_prof.bios.min = bc_struct->bios_minor; in asd_get_bios_chim()
257 asd_ha->hw_prof.bios.bld = le32_to_cpu(bc_struct->bios_build); in asd_get_bios_chim()
263 asd_ha->hw_prof.ue.num = le16_to_cpu(bc_struct->ue_num); in asd_get_bios_chim()
264 asd_ha->hw_prof.ue.size= le16_to_cpu(bc_struct->ue_size); in asd_get_bios_chim()
274 offs + sizeof(*bc_struct), size); in asd_get_bios_chim()
284 kfree(bc_struct); in asd_get_bios_chim()