tag | line | file | source code |
cmdblk | 325 | drivers/block/xd.c | u_char cmdblk[6],sense[4]; |
cmdblk | 347 | drivers/block/xd.c | xd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,control); |
cmdblk | 349 | drivers/block/xd.c | switch (xd_command(cmdblk,mode,(u_char *) buffer,(u_char *) buffer,sense,XD_TIMEOUT)) { |
cmdblk | 375 | drivers/block/xd.c | u_char cmdblk[6]; |
cmdblk | 377 | drivers/block/xd.c | xd_build(cmdblk,CMD_RECALIBRATE,drive,0,0,0,0,0); |
cmdblk | 378 | drivers/block/xd.c | if (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 8)) |
cmdblk | 421 | 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 | 423 | drivers/block/xd.c | cmdblk[0] = command; |
cmdblk | 424 | drivers/block/xd.c | cmdblk[1] = ((drive & 0x07) << 5) | (head & 0x1F); |
cmdblk | 425 | drivers/block/xd.c | cmdblk[2] = ((cylinder & 0x300) >> 2) | (sector & 0x3F); |
cmdblk | 426 | drivers/block/xd.c | cmdblk[3] = cylinder & 0xFF; |
cmdblk | 427 | drivers/block/xd.c | cmdblk[4] = count; |
cmdblk | 428 | drivers/block/xd.c | cmdblk[5] = control; |
cmdblk | 430 | drivers/block/xd.c | return (cmdblk); |
cmdblk | 447 | drivers/block/xd.c | u_char cmdblk[6],csb,complete = 0; |
cmdblk | 496 | drivers/block/xd.c | xd_build(cmdblk,CMD_SENSE,(csb & CSB_LUN) >> 5,0,0,0,0,0); |
cmdblk | 497 | drivers/block/xd.c | if (xd_command(cmdblk,0,sense,0,0,XD_TIMEOUT)) |
cmdblk | 510 | drivers/block/xd.c | u_char cmdblk[6],i,count = 0; |
cmdblk | 513 | drivers/block/xd.c | xd_build(cmdblk,CMD_TESTREADY,i,0,0,0,0,0); |
cmdblk | 514 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 8)) { |
cmdblk | 539 | drivers/block/xd.c | u_char cmdblk[6],buf[64]; |
cmdblk | 541 | drivers/block/xd.c | xd_build(cmdblk,CMD_DTCGETGEOM,drive,0,0,0,0,0); |
cmdblk | 542 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
cmdblk | 554 | drivers/block/xd.c | xd_build(cmdblk,CMD_DTCSETSTEP,drive,0,0,0,0,7); |
cmdblk | 555 | drivers/block/xd.c | if (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2)) |
cmdblk | 583 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
cmdblk | 585 | drivers/block/xd.c | xd_build(cmdblk,CMD_READ,drive,0,0,0,1,0); |
cmdblk | 586 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
cmdblk | 622 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
cmdblk | 624 | drivers/block/xd.c | xd_build(cmdblk,CMD_ST11GETGEOM,drive,0,0,0,1,0); |
cmdblk | 625 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
cmdblk | 668 | drivers/block/xd.c | u_char cmdblk[6],i; |
cmdblk | 673 | 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 | 674 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2)) |
cmdblk | 703 | drivers/block/xd.c | u_char cmdblk[14]; |
cmdblk | 705 | drivers/block/xd.c | xd_build(cmdblk,command,drive,0,0,0,0,0); |
cmdblk | 706 | drivers/block/xd.c | cmdblk[6] = (u_char) (cylinders >> 8) & 0x03; |
cmdblk | 707 | drivers/block/xd.c | cmdblk[7] = (u_char) (cylinders & 0xFF); |
cmdblk | 708 | drivers/block/xd.c | cmdblk[8] = heads & 0x1F; |
cmdblk | 709 | drivers/block/xd.c | cmdblk[9] = (u_char) (rwrite >> 8) & 0x03; |
cmdblk | 710 | drivers/block/xd.c | cmdblk[10] = (u_char) (rwrite & 0xFF); |
cmdblk | 711 | drivers/block/xd.c | cmdblk[11] = (u_char) (wprecomp >> 8) & 0x03; |
cmdblk | 712 | drivers/block/xd.c | cmdblk[12] = (u_char) (wprecomp & 0xFF); |
cmdblk | 713 | drivers/block/xd.c | cmdblk[13] = ecc; |
cmdblk | 715 | drivers/block/xd.c | if (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2)) |
cmdblk | 123 | 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); |