Searched refs:cmdblk (Results 1 – 2 of 2) sorted by relevance
/linux-2.4.37.9/drivers/block/ |
D | xd.c | 425 u8 cmdblk[6],sense[4]; in xd_readwrite() local 457 …xd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,co… in xd_readwrite() 459 switch (xd_command(cmdblk,mode,(u8 *)(*real_buffer),(u8 *)(*real_buffer),sense,XD_TIMEOUT)) in xd_readwrite() 503 u8 cmdblk[6]; in xd_recalibrate() local 505 xd_build(cmdblk,CMD_RECALIBRATE,drive,0,0,0,0,0); in xd_recalibrate() 506 if (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 8)) in xd_recalibrate() 551 static u8 *xd_build (u8 *cmdblk,u8 command,u8 drive,u8 head,u16 cylinder,u8 sector,u8 count,u8 cont… in xd_build() argument 553 cmdblk[0] = command; in xd_build() 554 cmdblk[1] = ((drive & 0x07) << 5) | (head & 0x1F); in xd_build() 555 cmdblk[2] = ((cylinder & 0x300) >> 2) | (sector & 0x3F); in xd_build() [all …]
|
D | xd.h | 123 static u8 *xd_build (u8 *cmdblk,u8 command,u8 drive,u8 head,u16 cylinder,u8 sector,u8 count,u8 cont…
|