Lines Matching refs:status

251 	map_word status, status_OK;
281 * 'read' mode. Make sure that we switch to 'read status'
289 status = map_read(map, cmd_addr);
290 if (map_word_andequal(map, status, status_OK, status_OK))
296 /* make sure we're in 'read status' mode */
302 "suspended: status = 0x%lx\n", status.x[0]);
330 status = map_read(map, cmd_addr);
331 if (map_word_andequal(map, status, status_OK, status_OK)) {
340 printk(KERN_ERR "waiting for chip to be ready timed out in read. WSM status = %lx\n", status.x[0]);
352 someone changes the status */
425 map_word status, status_OK;
463 printk("%s: 1 status[%x]\n", __func__, map_read(map, cmd_adr));
467 status = map_read(map, cmd_adr);
468 if (map_word_andequal(map, status, status_OK, status_OK))
473 printk(KERN_ERR "waiting for chip to be ready timed out in buffer write Xstatus = %lx, status = %lx\n",
474 status.x[0], map_read(map, cmd_adr).x[0]);
485 someone changes the status */
501 status = map_read(map, cmd_adr);
502 if (map_word_andequal(map, status, status_OK, status_OK))
515 printk(KERN_ERR "Chip not ready for buffer write. Xstatus = %lx\n", status.x[0]);
553 status = map_read(map, cmd_adr);
554 if (map_word_andequal(map, status, status_OK, status_OK))
559 /* clear status */
561 /* put back into read status register mode */
589 if (map_word_bitsset(map, status, CMD(0x3a))) {
591 printk("%s: 2 status[%lx]\n", __func__, status.x[0]);
593 /* clear status */
595 /* put back into read status register mode */
599 return map_word_bitsset(map, status, CMD(0x02)) ? -EROFS : -EIO;
736 map_word status, status_OK;
760 status = map_read(map, adr);
761 if (map_word_andequal(map, status, status_OK, status_OK))
778 someone changes the status */
789 /* Clear the status register first */
818 status = map_read(map, adr);
819 if (map_word_andequal(map, status, status_OK, status_OK))
826 printk(KERN_ERR "waiting for erase to complete timed out. Xstatus = %lx, status = %lx.\n", status.x[0], map_read(map, adr).x[0]);
844 status = map_read(map, adr);
847 if (map_word_bitsset(map, status, CMD(0x3a))) {
848 unsigned char chipstatus = status.x[0];
849 if (!map_word_equal(map, status, CMD(chipstatus))) {
853 chipstatus |= status.x[w] >> (cfi->device_type * 8);
857 status.x[0], chipstatus);
864 printk(KERN_NOTICE "Chip reports improper command sequence: status 0x%x\n", chipstatus);
871 printk(KERN_WARNING "Chip reports voltage low on erase: status 0x%x\n", chipstatus);
875 printk(KERN_DEBUG "Chip erase failed at 0x%08lx: status 0x%x. Retrying...\n", adr, chipstatus);
881 printk(KERN_DEBUG "Chip erase failed at 0x%08lx: status 0x%x\n", adr, chipstatus);
1035 map_word status, status_OK;
1057 status = map_read(map, adr);
1058 if (map_word_andequal(map, status, status_OK, status_OK))
1075 someone changes the status */
1100 status = map_read(map, adr);
1101 if (map_word_andequal(map, status, status_OK, status_OK))
1108 printk(KERN_ERR "waiting for lock to complete timed out. Xstatus = %lx, status = %lx.\n", status.x[0], map_read(map, adr).x[0]);
1150 printk("before lock: block status register is %x\n",cfi_read_query(map, adr+(2*ofs_factor)));
1158 printk("after lock: block status register is %x\n",cfi_read_query(map, adr+(2*ofs_factor)));
1181 map_word status, status_OK;
1203 status = map_read(map, adr);
1204 if (map_word_andequal(map, status, status_OK, status_OK))
1221 someone changes the status */
1246 status = map_read(map, adr);
1247 if (map_word_andequal(map, status, status_OK, status_OK))
1254 printk(KERN_ERR "waiting for unlock to complete timed out. Xstatus = %lx, status = %lx.\n", status.x[0], map_read(map, adr).x[0]);
1293 printk("before unlock %x: block status register is %x\n",temp_adr,cfi_read_query(map, temp_adr+(2*ofs_factor)));
1305 printk("after unlock: block status register is %x\n",cfi_read_query(map, adr+(2*ofs_factor)));