tag | line | file | source code |
res_reg | 568 | drivers/block/cdu31a.c | unsigned char res_reg[12]; |
res_reg | 578 | drivers/block/cdu31a.c | res_reg, |
res_reg | 580 | drivers/block/cdu31a.c | if ((res_size < 2) || ((res_reg[0] & 0xf0) == 0x20)) |
res_reg | 582 | drivers/block/cdu31a.c | printk(" Unable to set spin-down time: 0x%2.2x\n", res_reg[1]); |
res_reg | 594 | drivers/block/cdu31a.c | res_reg, |
res_reg | 596 | drivers/block/cdu31a.c | if ((res_size < 2) || ((res_reg[0] & 0xf0) == 0x20)) |
res_reg | 598 | drivers/block/cdu31a.c | printk(" Unable to set mechanical parameters: 0x%2.2x\n", res_reg[1]); |
res_reg | 608 | drivers/block/cdu31a.c | unsigned char res_reg[12]; |
res_reg | 621 | drivers/block/cdu31a.c | do_sony_cd_cmd(SONY_SPIN_UP_CMD, NULL, 0, res_reg, &res_size); |
res_reg | 622 | drivers/block/cdu31a.c | if ((res_size < 2) || ((res_reg[0] & 0xf0) == 0x20)) |
res_reg | 624 | drivers/block/cdu31a.c | printk("cdu31a: Unable to spin up drive: 0x%2.2x\n", res_reg[1]); |
res_reg | 631 | drivers/block/cdu31a.c | do_sony_cd_cmd(SONY_READ_TOC_CMD, NULL, 0, res_reg, &res_size); |
res_reg | 632 | drivers/block/cdu31a.c | if ((res_size < 2) || ((res_reg[0] & 0xf0) == 0x20)) |
res_reg | 634 | drivers/block/cdu31a.c | printk("cdu31a: Unable to read TOC: 0x%2.2x\n", res_reg[1]); |
res_reg | 1261 | drivers/block/cdu31a.c | unsigned char res_reg[], |
res_reg | 1270 | drivers/block/cdu31a.c | res_reg[0] = 0; |
res_reg | 1271 | drivers/block/cdu31a.c | res_reg[1] = 0; |
res_reg | 1320 | drivers/block/cdu31a.c | res_reg[0] = 0x20; |
res_reg | 1321 | drivers/block/cdu31a.c | res_reg[1] = SONY_BAD_DATA_ERR; |
res_reg | 1333 | drivers/block/cdu31a.c | get_result(res_reg, res_size); |
res_reg | 1352 | drivers/block/cdu31a.c | get_result(res_reg, res_size); |
res_reg | 1353 | drivers/block/cdu31a.c | if ((res_reg[0] & 0xf0) != 0x20) |
res_reg | 1356 | drivers/block/cdu31a.c | res_reg[0]); |
res_reg | 1357 | drivers/block/cdu31a.c | res_reg[0] = 0x20; |
res_reg | 1358 | drivers/block/cdu31a.c | res_reg[1] = SONY_BAD_DATA_ERR; |
res_reg | 1368 | drivers/block/cdu31a.c | res_reg[0] = 0x20; |
res_reg | 1369 | drivers/block/cdu31a.c | res_reg[1] = SONY_TIMEOUT_OP_ERR; |
res_reg | 1393 | drivers/block/cdu31a.c | res_reg[0] = 0x20; |
res_reg | 1394 | drivers/block/cdu31a.c | res_reg[1] = SONY_TIMEOUT_OP_ERR; |
res_reg | 1400 | drivers/block/cdu31a.c | get_result(res_reg, res_size); |
res_reg | 1403 | drivers/block/cdu31a.c | if ((res_reg[0] & 0xf0) == 0x50) |
res_reg | 1406 | drivers/block/cdu31a.c | if ( (res_reg[0] == SONY_NO_CIRC_ERR_BLK_STAT) |
res_reg | 1407 | drivers/block/cdu31a.c | || (res_reg[0] == SONY_NO_LECC_ERR_BLK_STAT) |
res_reg | 1408 | drivers/block/cdu31a.c | || (res_reg[0] == SONY_RECOV_LECC_ERR_BLK_STAT)) |
res_reg | 1416 | drivers/block/cdu31a.c | res_reg[0] = 0x20; |
res_reg | 1417 | drivers/block/cdu31a.c | res_reg[1] = SONY_BAD_DATA_ERR; |
res_reg | 1423 | drivers/block/cdu31a.c | printk("CDU31A: Data block error: 0x%x\n", res_reg[0]); |
res_reg | 1424 | drivers/block/cdu31a.c | res_reg[0] = 0x20; |
res_reg | 1425 | drivers/block/cdu31a.c | res_reg[1] = SONY_BAD_DATA_ERR; |
res_reg | 1439 | drivers/block/cdu31a.c | get_result(res_reg, res_size); |
res_reg | 1442 | drivers/block/cdu31a.c | else if ((res_reg[0] & 0xf0) != 0x20) |
res_reg | 1446 | drivers/block/cdu31a.c | printk("CDU31A: Invalid block status: 0x%x\n", res_reg[0]); |
res_reg | 1448 | drivers/block/cdu31a.c | res_reg[0] = 0x20; |
res_reg | 1449 | drivers/block/cdu31a.c | res_reg[1] = SONY_BAD_DATA_ERR; |
res_reg | 1468 | drivers/block/cdu31a.c | unsigned char res_reg[12]; |
res_reg | 1643 | drivers/block/cdu31a.c | read_data_block(CURRENT->buffer, block, nblock, res_reg, &res_size); |
res_reg | 1644 | drivers/block/cdu31a.c | if (res_reg[0] == 0x20) |
res_reg | 1653 | drivers/block/cdu31a.c | if (res_reg[1] == SONY_NOT_SPIN_ERR) |
res_reg | 1655 | drivers/block/cdu31a.c | do_sony_cd_cmd(SONY_SPIN_UP_CMD, NULL, 0, res_reg, &res_size); |
res_reg | 1659 | drivers/block/cdu31a.c | printk("CDU31A: Read error: 0x%2.2x\n", res_reg[1]); |
res_reg | 1720 | drivers/block/cdu31a.c | unsigned char res_reg[2]; |
res_reg | 1748 | drivers/block/cdu31a.c | res_reg, |
res_reg | 1752 | drivers/block/cdu31a.c | printk("%2.2x %2.2x\n", res_reg[0], res_reg[1]); |
res_reg | 1755 | drivers/block/cdu31a.c | if ((res_size < 2) || ((res_reg[0] & 0xf0) == 0x20)) |
res_reg | 1984 | drivers/block/cdu31a.c | unsigned char res_reg[], |
res_reg | 1991 | drivers/block/cdu31a.c | res_reg[0] = 0; |
res_reg | 1992 | drivers/block/cdu31a.c | res_reg[1] = 0; |
res_reg | 2012 | drivers/block/cdu31a.c | get_result(res_reg, res_size); |
res_reg | 2015 | drivers/block/cdu31a.c | if ((res_reg[0] & 0xf0) == 0x50) |
res_reg | 2021 | drivers/block/cdu31a.c | else if ((res_reg[0] & 0xf0) != 0x20) |
res_reg | 2024 | drivers/block/cdu31a.c | res_reg[0]); |
res_reg | 2025 | drivers/block/cdu31a.c | res_reg[0] = 0x20; |
res_reg | 2026 | drivers/block/cdu31a.c | res_reg[1] = SONY_BAD_DATA_ERR; |
res_reg | 2036 | drivers/block/cdu31a.c | res_reg[0] = 0x20; |
res_reg | 2037 | drivers/block/cdu31a.c | res_reg[1] = SONY_TIMEOUT_OP_ERR; |
res_reg | 2075 | drivers/block/cdu31a.c | res_reg[0] = 0x20; |
res_reg | 2076 | drivers/block/cdu31a.c | res_reg[1] = SONY_TIMEOUT_OP_ERR; |
res_reg | 2083 | drivers/block/cdu31a.c | get_result(res_reg, res_size); |
res_reg | 2087 | drivers/block/cdu31a.c | if ((res_reg[0] & 0xf0) == 0x50) |
res_reg | 2089 | drivers/block/cdu31a.c | if ( (res_reg[0] == SONY_NO_CIRC_ERR_BLK_STAT) |
res_reg | 2090 | drivers/block/cdu31a.c | || (res_reg[0] == SONY_NO_LECC_ERR_BLK_STAT) |
res_reg | 2091 | drivers/block/cdu31a.c | || (res_reg[0] == SONY_RECOV_LECC_ERR_BLK_STAT) |
res_reg | 2092 | drivers/block/cdu31a.c | || (res_reg[0] == SONY_NO_ERR_DETECTION_STAT)) |
res_reg | 2098 | drivers/block/cdu31a.c | printk("CDU31A: Data block error: 0x%x\n", res_reg[0]); |
res_reg | 2099 | drivers/block/cdu31a.c | res_reg[0] = 0x20; |
res_reg | 2100 | drivers/block/cdu31a.c | res_reg[1] = SONY_BAD_DATA_ERR; |
res_reg | 2104 | drivers/block/cdu31a.c | else if ((res_reg[0] & 0xf0) != 0x20) |
res_reg | 2108 | drivers/block/cdu31a.c | printk("CDU31A: Invalid block status: 0x%x\n", res_reg[0]); |
res_reg | 2110 | drivers/block/cdu31a.c | res_reg[0] = 0x20; |
res_reg | 2111 | drivers/block/cdu31a.c | res_reg[1] = SONY_BAD_DATA_ERR; |
res_reg | 2125 | drivers/block/cdu31a.c | unsigned char res_reg[12]; |
res_reg | 2160 | drivers/block/cdu31a.c | res_reg, |
res_reg | 2162 | drivers/block/cdu31a.c | if ((res_size < 2) || ((res_reg[0] & 0xf0) == 0x20)) |
res_reg | 2164 | drivers/block/cdu31a.c | printk("CDU31A: Unable to set decode params: 0x%2.2x\n", res_reg[1]); |
res_reg | 2184 | drivers/block/cdu31a.c | read_audio_data(readahead_buffer, res_reg, &res_size); |
res_reg | 2185 | drivers/block/cdu31a.c | if ((res_reg[0] & 0xf0) == 0x20) |
res_reg | 2187 | drivers/block/cdu31a.c | if (res_reg[1] == SONY_BAD_DATA_ERR) |
res_reg | 2192 | drivers/block/cdu31a.c | else if (res_reg[1] == SONY_ILL_TRACK_R_ERR) |
res_reg | 2203 | drivers/block/cdu31a.c | res_reg, |
res_reg | 2205 | drivers/block/cdu31a.c | if ((res_size < 2) || ((res_reg[0] & 0xf0) == 0x20)) |
res_reg | 2207 | drivers/block/cdu31a.c | printk("CDU31A: Unable to set decode params: 0x%2.2x\n", res_reg[1]); |
res_reg | 2222 | drivers/block/cdu31a.c | read_audio_data(readahead_buffer, res_reg, &res_size); |
res_reg | 2223 | drivers/block/cdu31a.c | if ((res_reg[0] & 0xf0) == 0x20) |
res_reg | 2225 | drivers/block/cdu31a.c | if (res_reg[1] == SONY_BAD_DATA_ERR) |
res_reg | 2234 | drivers/block/cdu31a.c | res_reg[1]); |
res_reg | 2250 | drivers/block/cdu31a.c | res_reg[1]); |
res_reg | 2265 | drivers/block/cdu31a.c | get_result(res_reg, &res_size); |
res_reg | 2266 | drivers/block/cdu31a.c | if ((res_reg[0] & 0xf0) == 0x20) |
res_reg | 2269 | drivers/block/cdu31a.c | res_reg[1]); |
res_reg | 2289 | drivers/block/cdu31a.c | res_reg, |
res_reg | 2291 | drivers/block/cdu31a.c | if ((res_size < 2) || ((res_reg[0] & 0xf0) == 0x20)) |
res_reg | 2293 | drivers/block/cdu31a.c | printk("CDU31A: Unable to reset decode params: 0x%2.2x\n", res_reg[1]); |
res_reg | 2329 | drivers/block/cdu31a.c | unsigned char res_reg[12]; |
res_reg | 2343 | drivers/block/cdu31a.c | return do_sony_cd_cmd_chk("START",SONY_SPIN_UP_CMD, NULL, 0, res_reg, &res_size); |
res_reg | 2348 | drivers/block/cdu31a.c | do_sony_cd_cmd(SONY_AUDIO_STOP_CMD, NULL, 0, res_reg, &res_size); |
res_reg | 2355 | drivers/block/cdu31a.c | return do_sony_cd_cmd_chk("STOP",SONY_SPIN_DOWN_CMD, NULL, 0, res_reg, &res_size); |
res_reg | 2358 | drivers/block/cdu31a.c | if(do_sony_cd_cmd_chk("PAUSE", SONY_AUDIO_STOP_CMD, NULL, 0, res_reg, &res_size)) |
res_reg | 2378 | drivers/block/cdu31a.c | do_sony_cd_cmd(SONY_SPIN_UP_CMD, NULL, 0, res_reg, &res_size); |
res_reg | 2388 | drivers/block/cdu31a.c | if(do_sony_cd_cmd_chk("RESUME",SONY_AUDIO_PLAYBACK_CMD, params, 7, res_reg, &res_size)<0) |
res_reg | 2397 | drivers/block/cdu31a.c | do_sony_cd_cmd(SONY_SPIN_UP_CMD, NULL, 0, res_reg, &res_size); |
res_reg | 2406 | drivers/block/cdu31a.c | if(do_sony_cd_cmd_chk("PLAYMSF",SONY_AUDIO_PLAYBACK_CMD, params, 7, res_reg, &res_size)<0) |
res_reg | 2549 | drivers/block/cdu31a.c | do_sony_cd_cmd(SONY_SPIN_UP_CMD, NULL, 0, res_reg, &res_size); |
res_reg | 2551 | drivers/block/cdu31a.c | do_sony_cd_cmd(SONY_AUDIO_PLAYBACK_CMD, params, 7, res_reg, &res_size); |
res_reg | 2553 | drivers/block/cdu31a.c | if ((res_size < 2) || ((res_reg[0] & 0xf0) == 0x20)) |
res_reg | 2557 | drivers/block/cdu31a.c | printk("Sony CDROM error 0x%2.2x (CDROMPLAYTRKIND\n", res_reg[1]); |
res_reg | 2584 | drivers/block/cdu31a.c | return do_sony_cd_cmd_chk("VOLCTRL",SONY_SET_DRIVE_PARAM_CMD, params, 3, res_reg, &res_size); |
res_reg | 2587 | drivers/block/cdu31a.c | do_sony_cd_cmd(SONY_AUDIO_STOP_CMD, NULL, 0, res_reg, &res_size); |
res_reg | 2588 | drivers/block/cdu31a.c | do_sony_cd_cmd(SONY_SPIN_DOWN_CMD, NULL, 0, res_reg, &res_size); |
res_reg | 2591 | drivers/block/cdu31a.c | return do_sony_cd_cmd_chk("EJECT",SONY_EJECT_CMD, NULL, 0, res_reg, &res_size); |
res_reg | 2669 | drivers/block/cdu31a.c | unsigned char res_reg[12]; |
res_reg | 2683 | drivers/block/cdu31a.c | do_sony_cd_cmd(SONY_SPIN_UP_CMD, NULL, 0, res_reg, &res_size); |
res_reg | 2687 | drivers/block/cdu31a.c | if ((res_size < 2) || ((res_reg[0] != 0) && (res_reg[1] != 0))) |
res_reg | 2689 | drivers/block/cdu31a.c | printk("Sony CDROM error 0x%2.2x (scd_open, spin up)\n", res_reg[1]); |
res_reg | 2693 | drivers/block/cdu31a.c | do_sony_cd_cmd(SONY_READ_TOC_CMD, NULL, 0, res_reg, &res_size); |
res_reg | 2697 | drivers/block/cdu31a.c | if ((res_size < 2) || ((res_reg[0] != 0) && (res_reg[1] != 0))) |
res_reg | 2700 | drivers/block/cdu31a.c | if ((res_reg[1] == SONY_AUDIO_PLAYING_ERR) || (res_reg[1] == 0)) |
res_reg | 2707 | drivers/block/cdu31a.c | if ( (res_reg[1] == SONY_NOT_SPIN_ERR) |
res_reg | 2714 | drivers/block/cdu31a.c | printk("Sony CDROM error 0x%2.2x (scd_open, read toc)\n", res_reg[1]); |
res_reg | 2715 | drivers/block/cdu31a.c | do_sony_cd_cmd(SONY_SPIN_DOWN_CMD, NULL, 0, res_reg, &res_size); |
res_reg | 2723 | drivers/block/cdu31a.c | do_sony_cd_cmd(SONY_SPIN_DOWN_CMD, NULL, 0, res_reg, &res_size); |
res_reg | 2737 | drivers/block/cdu31a.c | res_reg, |
res_reg | 2739 | drivers/block/cdu31a.c | if ((res_size < 2) || ((res_reg[0] & 0xf0) == 0x20)) |
res_reg | 2741 | drivers/block/cdu31a.c | printk("CDU31A: Unable to set XA params: 0x%2.2x\n", res_reg[1]); |
res_reg | 2753 | drivers/block/cdu31a.c | res_reg, |
res_reg | 2755 | drivers/block/cdu31a.c | if ((res_size < 2) || ((res_reg[0] & 0xf0) == 0x20)) |
res_reg | 2757 | drivers/block/cdu31a.c | printk("CDU31A: Unable to reset XA params: 0x%2.2x\n", res_reg[1]); |
res_reg | 2787 | drivers/block/cdu31a.c | unsigned char res_reg[12]; |
res_reg | 2798 | drivers/block/cdu31a.c | do_sony_cd_cmd(SONY_SPIN_DOWN_CMD, NULL, 0, res_reg, &res_size); |
res_reg | 2827 | drivers/block/cdu31a.c | unsigned char res_reg[], |
res_reg | 2868 | drivers/block/cdu31a.c | res_reg[0] = 0x20; |
res_reg | 2879 | drivers/block/cdu31a.c | (unsigned char *) res_reg, |
res_reg | 2885 | drivers/block/cdu31a.c | res_reg[0] = 0x20; |