tag | line | file | source code |
cmdblk | 280 | drivers/block/xd.c | u_char cmdblk[6],sense[4]; |
cmdblk | 302 | drivers/block/xd.c | xd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,control); |
cmdblk | 304 | drivers/block/xd.c | switch (xd_command(cmdblk,mode,(u_char *) buffer,(u_char *) buffer,sense,XD_TIMEOUT)) { |
cmdblk | 326 | drivers/block/xd.c | u_char cmdblk[6]; |
cmdblk | 328 | drivers/block/xd.c | xd_build(cmdblk,CMD_RECALIBRATE,drive,0,0,0,0,0); |
cmdblk | 329 | drivers/block/xd.c | if (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 8)) |
cmdblk | 372 | 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 | 374 | drivers/block/xd.c | cmdblk[0] = command; |
cmdblk | 375 | drivers/block/xd.c | cmdblk[1] = ((drive & 0x07) << 5) | (head & 0x1F); |
cmdblk | 376 | drivers/block/xd.c | cmdblk[2] = ((cylinder & 0x300) >> 2) | (sector & 0x3F); |
cmdblk | 377 | drivers/block/xd.c | cmdblk[3] = cylinder & 0xFF; |
cmdblk | 378 | drivers/block/xd.c | cmdblk[4] = count; |
cmdblk | 379 | drivers/block/xd.c | cmdblk[5] = control; |
cmdblk | 381 | drivers/block/xd.c | return (cmdblk); |
cmdblk | 398 | drivers/block/xd.c | u_char cmdblk[6],csb,complete = 0; |
cmdblk | 444 | drivers/block/xd.c | xd_build(cmdblk,CMD_SENSE,(csb & CSB_LUN) >> 5,0,0,0,0,0); |
cmdblk | 445 | drivers/block/xd.c | if (xd_command(cmdblk,0,sense,0,0,XD_TIMEOUT)) |
cmdblk | 458 | drivers/block/xd.c | u_char cmdblk[6],i,count = 0; |
cmdblk | 461 | drivers/block/xd.c | xd_build(cmdblk,CMD_TESTREADY,i,0,0,0,0,0); |
cmdblk | 462 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2)) { |
cmdblk | 487 | drivers/block/xd.c | u_char cmdblk[6],buf[64]; |
cmdblk | 489 | drivers/block/xd.c | xd_build(cmdblk,CMD_DTCGETGEOM,drive,0,0,0,0,0); |
cmdblk | 490 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
cmdblk | 502 | drivers/block/xd.c | xd_build(cmdblk,CMD_DTCSETSTEP,drive,0,0,0,0,7); |
cmdblk | 503 | drivers/block/xd.c | if (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2)) |
cmdblk | 531 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
cmdblk | 533 | drivers/block/xd.c | xd_build(cmdblk,CMD_READ,drive,0,0,0,1,0); |
cmdblk | 534 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
cmdblk | 570 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
cmdblk | 572 | drivers/block/xd.c | xd_build(cmdblk,CMD_ST11GETGEOM,drive,0,0,0,1,0); |
cmdblk | 573 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
cmdblk | 588 | drivers/block/xd.c | u_char cmdblk[6],i; |
cmdblk | 593 | 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 | 594 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2)) |
cmdblk | 623 | drivers/block/xd.c | u_char cmdblk[14]; |
cmdblk | 625 | drivers/block/xd.c | xd_build(cmdblk,command,drive,0,0,0,0,0); |
cmdblk | 626 | drivers/block/xd.c | cmdblk[6] = (u_char) (cylinders >> 8) & 0x03; |
cmdblk | 627 | drivers/block/xd.c | cmdblk[7] = (u_char) (cylinders & 0xFF); |
cmdblk | 628 | drivers/block/xd.c | cmdblk[8] = heads & 0x1F; |
cmdblk | 629 | drivers/block/xd.c | cmdblk[9] = (u_char) (rwrite >> 8) & 0x03; |
cmdblk | 630 | drivers/block/xd.c | cmdblk[10] = (u_char) (rwrite & 0xFF); |
cmdblk | 631 | drivers/block/xd.c | cmdblk[11] = (u_char) (wprecomp >> 8) & 0x03; |
cmdblk | 632 | drivers/block/xd.c | cmdblk[12] = (u_char) (wprecomp & 0xFF); |
cmdblk | 633 | drivers/block/xd.c | cmdblk[13] = ecc; |
cmdblk | 635 | 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); |