Lines Matching defs:mem
123 unsigned char *mem = NULL;
164 mem = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
165 if (mem == MAP_FAILED) {
177 munmap(mem, st.st_size);
183 munmap(mem, st.st_size);
190 if (((mem[0x01]<<8) + mem[0x00]) != 0xaa55) {
192 munmap(mem, st.st_size);
199 munmap(mem, st.st_size);
205 fwheader = (MPI2_FW_IMAGE_HEADER *)mem;
211 munmap(mem, st.st_size);
221 munmap(mem, st.st_size);
229 if (mps_firmware_send(fd, mem, st.st_size, bios) < 0) {
231 munmap(mem, st.st_size);
237 munmap(mem, st.st_size);