tag | line | file | source code |
cmdblk | 336 | drivers/block/xd.c | u_char cmdblk[6],sense[4]; |
cmdblk | 358 | drivers/block/xd.c | xd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,control); |
cmdblk | 360 | drivers/block/xd.c | switch (xd_command(cmdblk,mode,(u_char *) buffer,(u_char *) buffer,sense,XD_TIMEOUT)) { |
cmdblk | 386 | drivers/block/xd.c | u_char cmdblk[6]; |
cmdblk | 388 | drivers/block/xd.c | xd_build(cmdblk,CMD_RECALIBRATE,drive,0,0,0,0,0); |
cmdblk | 389 | drivers/block/xd.c | if (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 8)) |
cmdblk | 432 | 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 | 434 | drivers/block/xd.c | cmdblk[0] = command; |
cmdblk | 435 | drivers/block/xd.c | cmdblk[1] = ((drive & 0x07) << 5) | (head & 0x1F); |
cmdblk | 436 | drivers/block/xd.c | cmdblk[2] = ((cylinder & 0x300) >> 2) | (sector & 0x3F); |
cmdblk | 437 | drivers/block/xd.c | cmdblk[3] = cylinder & 0xFF; |
cmdblk | 438 | drivers/block/xd.c | cmdblk[4] = count; |
cmdblk | 439 | drivers/block/xd.c | cmdblk[5] = control; |
cmdblk | 441 | drivers/block/xd.c | return (cmdblk); |
cmdblk | 458 | drivers/block/xd.c | u_char cmdblk[6],csb,complete = 0; |
cmdblk | 507 | drivers/block/xd.c | xd_build(cmdblk,CMD_SENSE,(csb & CSB_LUN) >> 5,0,0,0,0,0); |
cmdblk | 508 | drivers/block/xd.c | if (xd_command(cmdblk,0,sense,0,0,XD_TIMEOUT)) |
cmdblk | 521 | drivers/block/xd.c | u_char cmdblk[6],i,count = 0; |
cmdblk | 524 | drivers/block/xd.c | xd_build(cmdblk,CMD_TESTREADY,i,0,0,0,0,0); |
cmdblk | 525 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 8)) { |
cmdblk | 550 | drivers/block/xd.c | u_char cmdblk[6],buf[64]; |
cmdblk | 552 | drivers/block/xd.c | xd_build(cmdblk,CMD_DTCGETGEOM,drive,0,0,0,0,0); |
cmdblk | 553 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
cmdblk | 565 | drivers/block/xd.c | xd_build(cmdblk,CMD_DTCSETSTEP,drive,0,0,0,0,7); |
cmdblk | 566 | drivers/block/xd.c | if (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2)) |
cmdblk | 594 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
cmdblk | 596 | drivers/block/xd.c | xd_build(cmdblk,CMD_READ,drive,0,0,0,1,0); |
cmdblk | 597 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
cmdblk | 633 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
cmdblk | 635 | drivers/block/xd.c | xd_build(cmdblk,CMD_ST11GETGEOM,drive,0,0,0,1,0); |
cmdblk | 636 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
cmdblk | 679 | drivers/block/xd.c | u_char cmdblk[6],i; |
cmdblk | 684 | 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 | 685 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2)) |
cmdblk | 714 | drivers/block/xd.c | u_char cmdblk[14]; |
cmdblk | 716 | drivers/block/xd.c | xd_build(cmdblk,command,drive,0,0,0,0,0); |
cmdblk | 717 | drivers/block/xd.c | cmdblk[6] = (u_char) (cylinders >> 8) & 0x03; |
cmdblk | 718 | drivers/block/xd.c | cmdblk[7] = (u_char) (cylinders & 0xFF); |
cmdblk | 719 | drivers/block/xd.c | cmdblk[8] = heads & 0x1F; |
cmdblk | 720 | drivers/block/xd.c | cmdblk[9] = (u_char) (rwrite >> 8) & 0x03; |
cmdblk | 721 | drivers/block/xd.c | cmdblk[10] = (u_char) (rwrite & 0xFF); |
cmdblk | 722 | drivers/block/xd.c | cmdblk[11] = (u_char) (wprecomp >> 8) & 0x03; |
cmdblk | 723 | drivers/block/xd.c | cmdblk[12] = (u_char) (wprecomp & 0xFF); |
cmdblk | 724 | drivers/block/xd.c | cmdblk[13] = ecc; |
cmdblk | 726 | 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); |