Searched refs:wdc_c (Results 1 – 3 of 3) sorted by relevance
55 struct wdc_command wdc_c; in ata_get_params() local62 bzero(&wdc_c, sizeof(struct wdc_command)); in ata_get_params()65 wdc_c.r_command = WDCC_IDENTIFY; in ata_get_params()66 wdc_c.r_st_bmask = WDCS_DRDY; in ata_get_params()67 wdc_c.r_st_pmask = 0; in ata_get_params()68 wdc_c.timeout = 3000; /* 3s */ in ata_get_params()70 wdc_c.r_command = ATAPI_IDENTIFY_DEVICE; in ata_get_params()71 wdc_c.r_st_bmask = 0; in ata_get_params()72 wdc_c.r_st_pmask = 0; in ata_get_params()73 wdc_c.timeout = 10000; /* 10s */ in ata_get_params()[all …]
173 struct wdc_command wdc_c; in wdattach() local273 bzero(&wdc_c, sizeof(struct wdc_command)); in wdattach()274 wdc_c.r_command = SET_FEATURES; in wdattach()275 wdc_c.r_features = WDSF_READAHEAD_EN; in wdattach()276 wdc_c.timeout = 1000; in wdattach()277 wdc_c.flags = at_poll; in wdattach()279 if (wdc_exec_command(wd->drvp, &wdc_c) != WDC_COMPLETE) { in wdattach()287 bzero(&wdc_c, sizeof(struct wdc_command)); in wdattach()288 wdc_c.r_command = SET_FEATURES; in wdattach()289 wdc_c.r_features = WDSF_EN_WR_CACHE; in wdattach()[all …]
1611 wdc_exec_command(struct ata_drive_datas *drvp, struct wdc_command *wdc_c) in wdc_exec_command() argument1622 xfer = wdc_get_xfer(wdc_c->flags & AT_WAIT ? WDC_CANSLEEP : in wdc_exec_command()1628 if (wdc_c->flags & AT_POLL) in wdc_exec_command()1631 xfer->databuf = wdc_c->data; in wdc_exec_command()1632 xfer->c_bcount = wdc_c->bcount; in wdc_exec_command()1633 xfer->cmd = wdc_c; in wdc_exec_command()1641 if ((wdc_c->flags & AT_POLL) != 0 && in wdc_exec_command()1642 (wdc_c->flags & AT_DONE) == 0) in wdc_exec_command()1645 if (wdc_c->flags & AT_DONE) { in wdc_exec_command()1648 if (wdc_c->flags & AT_WAIT) { in wdc_exec_command()[all …]