• Home
  • Raw
  • Download

Lines Matching refs:writeb

63 	writeb (port[num].ctl_reg, port[num].ioaddr.ctl_addr);  in sata_bus_softreset()
65 writeb (port[num].ctl_reg | ATA_SRST, port[num].ioaddr.ctl_addr); in sata_bus_softreset()
67 writeb (port[num].ctl_reg, port[num].ioaddr.ctl_addr); in sata_bus_softreset()
119 writeb (cmd, port[num].ioaddr.command_addr); in sata_identify()
185 writeb (SETFEATURES_XFER, port[num].ioaddr.feature_addr); in set_Feature_cmd()
186 writeb (XFER_PIO_4, port[num].ioaddr.nsect_addr); in set_Feature_cmd()
187 writeb (0, port[num].ioaddr.lbal_addr); in set_Feature_cmd()
188 writeb (0, port[num].ioaddr.lbam_addr); in set_Feature_cmd()
189 writeb (0, port[num].ioaddr.lbah_addr); in set_Feature_cmd()
191 writeb (ATA_DEVICE_OBS, port[num].ioaddr.device_addr); in set_Feature_cmd()
192 writeb (ATA_CMD_SET_FEATURES, port[num].ioaddr.command_addr); in set_Feature_cmd()
230 writeb (0x00, port[num].ioaddr.feature_addr); in sil3114_spin_down()
232 writeb (0x00, port[num].ioaddr.nsect_addr); in sil3114_spin_down()
233 writeb (0x00, port[num].ioaddr.lbal_addr); in sil3114_spin_down()
234 writeb (0x00, port[num].ioaddr.lbam_addr); in sil3114_spin_down()
235 writeb (0x00, port[num].ioaddr.lbah_addr); in sil3114_spin_down()
237 writeb (ATA_DEVICE_OBS, port[num].ioaddr.device_addr); in sil3114_spin_down()
238 writeb (ATA_CMD_STANDBY, port[num].ioaddr.command_addr); in sil3114_spin_down()
278 writeb (0x00, port[num].ioaddr.feature_addr); in sil3114_spin_up()
280 writeb (0x00, port[num].ioaddr.nsect_addr); in sil3114_spin_up()
281 writeb (0x00, port[num].ioaddr.lbal_addr); in sil3114_spin_up()
282 writeb (0x00, port[num].ioaddr.lbam_addr); in sil3114_spin_up()
283 writeb (0x00, port[num].ioaddr.lbah_addr); in sil3114_spin_up()
285 writeb (ATA_DEVICE_OBS, port[num].ioaddr.device_addr); in sil3114_spin_up()
286 writeb (ATA_CMD_IDLE, port[num].ioaddr.command_addr); in sil3114_spin_up()
330 writeb (0, port[num].ioaddr.feature_addr); in check_power_mode()
331 writeb (0, port[num].ioaddr.nsect_addr); in check_power_mode()
332 writeb (0, port[num].ioaddr.lbal_addr); in check_power_mode()
333 writeb (0, port[num].ioaddr.lbam_addr); in check_power_mode()
334 writeb (0, port[num].ioaddr.lbah_addr); in check_power_mode()
336 writeb (ATA_DEVICE_OBS, port[num].ioaddr.device_addr); in check_power_mode()
337 writeb (ATA_CMD_CHK_POWER, port[num].ioaddr.command_addr); in check_power_mode()
453 writeb (0, port[device].ioaddr.nsect_addr); in do_one_read()
454 writeb ((blknr >> 24) & 0xFF, port[device].ioaddr.lbal_addr); in do_one_read()
455 writeb ((blknr >> 32) & 0xFF, port[device].ioaddr.lbam_addr); in do_one_read()
456 writeb ((blknr >> 40) & 0xFF, port[device].ioaddr.lbah_addr); in do_one_read()
459 writeb (blkcnt, port[device].ioaddr.nsect_addr); in do_one_read()
460 writeb (((blknr) >> 0) & 0xFF, port[device].ioaddr.lbal_addr); in do_one_read()
461 writeb ((blknr >> 8) & 0xFF, port[device].ioaddr.lbam_addr); in do_one_read()
462 writeb ((blknr >> 16) & 0xFF, port[device].ioaddr.lbah_addr); in do_one_read()
466 writeb (ATA_LBA, port[device].ioaddr.device_addr); in do_one_read()
467 writeb (ATA_CMD_PIO_READ_EXT, port[device].ioaddr.command_addr); in do_one_read()
471 writeb (ATA_LBA | ((blknr >> 24) & 0xF), in do_one_read()
473 writeb (ATA_CMD_PIO_READ, port[device].ioaddr.command_addr); in do_one_read()
580 writeb (0, port[num].ioaddr.nsect_addr); in sata_write()
581 writeb ((blknr >> 24) & 0xFF, in sata_write()
583 writeb ((blknr >> 32) & 0xFF, in sata_write()
585 writeb ((blknr >> 40) & 0xFF, in sata_write()
589 writeb (1, port[num].ioaddr.nsect_addr); in sata_write()
590 writeb ((blknr >> 0) & 0xFF, port[num].ioaddr.lbal_addr); in sata_write()
591 writeb ((blknr >> 8) & 0xFF, port[num].ioaddr.lbam_addr); in sata_write()
592 writeb ((blknr >> 16) & 0xFF, port[num].ioaddr.lbah_addr); in sata_write()
595 writeb (ATA_LBA, port[num].ioaddr.device_addr); in sata_write()
596 writeb (ATA_CMD_PIO_WRITE_EXT, port[num].ioaddr.command_addr); in sata_write()
600 writeb (ATA_LBA | ((blknr >> 24) & 0xF), in sata_write()
602 writeb (ATA_CMD_PIO_WRITE, port[num].ioaddr.command_addr); in sata_write()