tag | line | file | source code |
cmdblk | 326 | drivers/block/xd.c | u_char cmdblk[6],sense[4]; |
cmdblk | 348 | drivers/block/xd.c | xd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,control); |
cmdblk | 350 | drivers/block/xd.c | switch (xd_command(cmdblk,mode,(u_char *) buffer,(u_char *) buffer,sense,XD_TIMEOUT)) { |
cmdblk | 376 | drivers/block/xd.c | u_char cmdblk[6]; |
cmdblk | 378 | drivers/block/xd.c | xd_build(cmdblk,CMD_RECALIBRATE,drive,0,0,0,0,0); |
cmdblk | 379 | drivers/block/xd.c | if (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 8)) |
cmdblk | 422 | drivers/block/xd.c | static u_char *xd_build (u_char *cmdblk,u_char command,u_char drive,u_char head,u_short cylinder,u_char sector,u_char count,u_char control) |
cmdblk | 424 | drivers/block/xd.c | cmdblk[0] = command; |
cmdblk | 425 | drivers/block/xd.c | cmdblk[1] = ((drive & 0x07) << 5) | (head & 0x1F); |
cmdblk | 426 | drivers/block/xd.c | cmdblk[2] = ((cylinder & 0x300) >> 2) | (sector & 0x3F); |
cmdblk | 427 | drivers/block/xd.c | cmdblk[3] = cylinder & 0xFF; |
cmdblk | 428 | drivers/block/xd.c | cmdblk[4] = count; |
cmdblk | 429 | drivers/block/xd.c | cmdblk[5] = control; |
cmdblk | 431 | drivers/block/xd.c | return (cmdblk); |
cmdblk | 448 | drivers/block/xd.c | u_char cmdblk[6],csb,complete = 0; |
cmdblk | 497 | drivers/block/xd.c | xd_build(cmdblk,CMD_SENSE,(csb & CSB_LUN) >> 5,0,0,0,0,0); |
cmdblk | 498 | drivers/block/xd.c | if (xd_command(cmdblk,0,sense,0,0,XD_TIMEOUT)) |
cmdblk | 511 | drivers/block/xd.c | u_char cmdblk[6],i,count = 0; |
cmdblk | 514 | drivers/block/xd.c | xd_build(cmdblk,CMD_TESTREADY,i,0,0,0,0,0); |
cmdblk | 515 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 8)) { |
cmdblk | 540 | drivers/block/xd.c | u_char cmdblk[6],buf[64]; |
cmdblk | 542 | drivers/block/xd.c | xd_build(cmdblk,CMD_DTCGETGEOM,drive,0,0,0,0,0); |
cmdblk | 543 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
cmdblk | 555 | drivers/block/xd.c | xd_build(cmdblk,CMD_DTCSETSTEP,drive,0,0,0,0,7); |
cmdblk | 556 | drivers/block/xd.c | if (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2)) |
cmdblk | 584 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
cmdblk | 586 | drivers/block/xd.c | xd_build(cmdblk,CMD_READ,drive,0,0,0,1,0); |
cmdblk | 587 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
cmdblk | 623 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
cmdblk | 625 | drivers/block/xd.c | xd_build(cmdblk,CMD_ST11GETGEOM,drive,0,0,0,1,0); |
cmdblk | 626 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
cmdblk | 669 | drivers/block/xd.c | u_char cmdblk[6],i; |
cmdblk | 674 | drivers/block/xd.c | xd_build(cmdblk,CMD_SEEK,drive,(u_char) test[0],(u_short) test[1],(u_char) test[2],0,0); |
cmdblk | 675 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2)) |
cmdblk | 704 | drivers/block/xd.c | u_char cmdblk[14]; |
cmdblk | 706 | drivers/block/xd.c | xd_build(cmdblk,command,drive,0,0,0,0,0); |
cmdblk | 707 | drivers/block/xd.c | cmdblk[6] = (u_char) (cylinders >> 8) & 0x03; |
cmdblk | 708 | drivers/block/xd.c | cmdblk[7] = (u_char) (cylinders & 0xFF); |
cmdblk | 709 | drivers/block/xd.c | cmdblk[8] = heads & 0x1F; |
cmdblk | 710 | drivers/block/xd.c | cmdblk[9] = (u_char) (rwrite >> 8) & 0x03; |
cmdblk | 711 | drivers/block/xd.c | cmdblk[10] = (u_char) (rwrite & 0xFF); |
cmdblk | 712 | drivers/block/xd.c | cmdblk[11] = (u_char) (wprecomp >> 8) & 0x03; |
cmdblk | 713 | drivers/block/xd.c | cmdblk[12] = (u_char) (wprecomp & 0xFF); |
cmdblk | 714 | drivers/block/xd.c | cmdblk[13] = ecc; |
cmdblk | 716 | drivers/block/xd.c | if (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2)) |
cmdblk | 122 | include/linux/xd.h | static u_char *xd_build (u_char *cmdblk,u_char command,u_char drive,u_char head,u_short cylinder,u_char sector,u_char count,u_char control); |