Lines Matching refs:len32
4420 u32 cmd_flags, offset32, len32, extra; in bnx2_nvram_read() local
4432 len32 = buf_size; in bnx2_nvram_read()
4445 if (pre_len >= len32) { in bnx2_nvram_read()
4446 pre_len = len32; in bnx2_nvram_read()
4463 len32 -= pre_len; in bnx2_nvram_read()
4465 if (len32 & 3) { in bnx2_nvram_read()
4466 extra = 4 - (len32 & 3); in bnx2_nvram_read()
4467 len32 = (len32 + 4) & ~3; in bnx2_nvram_read()
4470 if (len32 == 4) { in bnx2_nvram_read()
4483 else if (len32 > 0) { in bnx2_nvram_read()
4497 len32 -= 4; in bnx2_nvram_read()
4499 while (len32 > 4 && rc == 0) { in bnx2_nvram_read()
4505 len32 -= 4; in bnx2_nvram_read()
4529 u32 written, offset32, len32; in bnx2_nvram_write() local
4536 len32 = buf_size; in bnx2_nvram_write()
4541 len32 += align_start; in bnx2_nvram_write()
4542 if (len32 < 4) in bnx2_nvram_write()
4543 len32 = 4; in bnx2_nvram_write()
4548 if (len32 & 3) { in bnx2_nvram_write()
4549 align_end = 4 - (len32 & 3); in bnx2_nvram_write()
4550 len32 += align_end; in bnx2_nvram_write()
4551 if ((rc = bnx2_nvram_read(bp, offset32 + len32 - 4, end, 4))) in bnx2_nvram_write()
4556 align_buf = kmalloc(len32, GFP_KERNEL); in bnx2_nvram_write()
4563 memcpy(align_buf + len32 - 4, end, 4); in bnx2_nvram_write()
4578 while ((written < len32) && (rc == 0)) { in bnx2_nvram_write()
4591 data_end = (page_end > offset32 + len32) ? in bnx2_nvram_write()
4592 (offset32 + len32) : page_end; in bnx2_nvram_write()