tag | line | file | source code |
cmdblk | 324 | drivers/block/xd.c | u_char cmdblk[6],sense[4]; |
cmdblk | 346 | drivers/block/xd.c | xd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,control); |
cmdblk | 348 | drivers/block/xd.c | switch (xd_command(cmdblk,mode,(u_char *) buffer,(u_char *) buffer,sense,XD_TIMEOUT)) { |
cmdblk | 374 | drivers/block/xd.c | u_char cmdblk[6]; |
cmdblk | 376 | drivers/block/xd.c | xd_build(cmdblk,CMD_RECALIBRATE,drive,0,0,0,0,0); |
cmdblk | 377 | drivers/block/xd.c | if (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 8)) |
cmdblk | 420 | 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 | 422 | drivers/block/xd.c | cmdblk[0] = command; |
cmdblk | 423 | drivers/block/xd.c | cmdblk[1] = ((drive & 0x07) << 5) | (head & 0x1F); |
cmdblk | 424 | drivers/block/xd.c | cmdblk[2] = ((cylinder & 0x300) >> 2) | (sector & 0x3F); |
cmdblk | 425 | drivers/block/xd.c | cmdblk[3] = cylinder & 0xFF; |
cmdblk | 426 | drivers/block/xd.c | cmdblk[4] = count; |
cmdblk | 427 | drivers/block/xd.c | cmdblk[5] = control; |
cmdblk | 429 | drivers/block/xd.c | return (cmdblk); |
cmdblk | 446 | drivers/block/xd.c | u_char cmdblk[6],csb,complete = 0; |
cmdblk | 495 | drivers/block/xd.c | xd_build(cmdblk,CMD_SENSE,(csb & CSB_LUN) >> 5,0,0,0,0,0); |
cmdblk | 496 | drivers/block/xd.c | if (xd_command(cmdblk,0,sense,0,0,XD_TIMEOUT)) |
cmdblk | 509 | drivers/block/xd.c | u_char cmdblk[6],i,count = 0; |
cmdblk | 512 | drivers/block/xd.c | xd_build(cmdblk,CMD_TESTREADY,i,0,0,0,0,0); |
cmdblk | 513 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 8)) { |
cmdblk | 538 | drivers/block/xd.c | u_char cmdblk[6],buf[64]; |
cmdblk | 540 | drivers/block/xd.c | xd_build(cmdblk,CMD_DTCGETGEOM,drive,0,0,0,0,0); |
cmdblk | 541 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
cmdblk | 553 | drivers/block/xd.c | xd_build(cmdblk,CMD_DTCSETSTEP,drive,0,0,0,0,7); |
cmdblk | 554 | drivers/block/xd.c | if (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2)) |
cmdblk | 582 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
cmdblk | 584 | drivers/block/xd.c | xd_build(cmdblk,CMD_READ,drive,0,0,0,1,0); |
cmdblk | 585 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
cmdblk | 621 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
cmdblk | 623 | drivers/block/xd.c | xd_build(cmdblk,CMD_ST11GETGEOM,drive,0,0,0,1,0); |
cmdblk | 624 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
cmdblk | 667 | drivers/block/xd.c | u_char cmdblk[6],i; |
cmdblk | 672 | 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 | 673 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2)) |
cmdblk | 702 | drivers/block/xd.c | u_char cmdblk[14]; |
cmdblk | 704 | drivers/block/xd.c | xd_build(cmdblk,command,drive,0,0,0,0,0); |
cmdblk | 705 | drivers/block/xd.c | cmdblk[6] = (u_char) (cylinders >> 8) & 0x03; |
cmdblk | 706 | drivers/block/xd.c | cmdblk[7] = (u_char) (cylinders & 0xFF); |
cmdblk | 707 | drivers/block/xd.c | cmdblk[8] = heads & 0x1F; |
cmdblk | 708 | drivers/block/xd.c | cmdblk[9] = (u_char) (rwrite >> 8) & 0x03; |
cmdblk | 709 | drivers/block/xd.c | cmdblk[10] = (u_char) (rwrite & 0xFF); |
cmdblk | 710 | drivers/block/xd.c | cmdblk[11] = (u_char) (wprecomp >> 8) & 0x03; |
cmdblk | 711 | drivers/block/xd.c | cmdblk[12] = (u_char) (wprecomp & 0xFF); |
cmdblk | 712 | drivers/block/xd.c | cmdblk[13] = ecc; |
cmdblk | 714 | 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); |