/freebsd-9.3-release/sys/dev/mvs/ |
H A D | mvs_soc.c | 97 struct mvs_controller *ctlr = device_get_softc(dev); local 103 ctlr->dev = dev; 109 ctlr->channels = mvs_ids[i].ports; 110 ctlr->quirks = mvs_ids[i].quirks; 112 device_get_unit(dev), "ccc", &ctlr->ccc); 113 ctlr->cccc = 8; 115 device_get_unit(dev), "cccc", &ctlr->cccc); 116 if (ctlr->ccc == 0 || ctlr->cccc == 0) { 117 ctlr 177 struct mvs_controller *ctlr = device_get_softc(dev); local 200 struct mvs_controller *ctlr = device_get_softc(dev); local 231 struct mvs_controller *ctlr = device_get_softc(dev); local 250 struct mvs_controller *ctlr = device_get_softc(dev); local 269 struct mvs_controller *ctlr = device_get_softc(dev); local 295 struct mvs_controller *ctlr = data; local 334 struct mvs_controller *ctlr = device_get_softc(dev); local 385 struct mvs_controller *ctlr = device_get_softc(dev); local 401 struct mvs_controller *ctlr = device_get_softc(dev); local [all...] |
H A D | mvs_pci.c | 100 struct mvs_controller *ctlr = device_get_softc(dev); local 106 ctlr->dev = dev; 112 ctlr->channels = mvs_ids[i].ports; 113 ctlr->quirks = mvs_ids[i].quirks; 115 device_get_unit(dev), "ccc", &ctlr->ccc); 116 ctlr->cccc = 8; 118 device_get_unit(dev), "cccc", &ctlr->cccc); 119 if (ctlr->ccc == 0 || ctlr->cccc == 0) { 120 ctlr 179 struct mvs_controller *ctlr = device_get_softc(dev); local 203 struct mvs_controller *ctlr = device_get_softc(dev); local 250 struct mvs_controller *ctlr = device_get_softc(dev); local 271 struct mvs_controller *ctlr = device_get_softc(dev); local 292 struct mvs_controller *ctlr = device_get_softc(dev); local 330 struct mvs_controller *ctlr = data; local 393 struct mvs_controller *ctlr = device_get_softc(dev); local 444 struct mvs_controller *ctlr = device_get_softc(dev); local 460 struct mvs_controller *ctlr = device_get_softc(dev); local [all...] |
/freebsd-9.3-release/sys/dev/twa/ |
H A D | tw_cl_intr.c | 67 struct tw_cli_ctlr_context *ctlr = local 75 if (ctlr == NULL) 81 if (ctlr->reset_in_progress || !(ctlr->active)) 86 if (tw_cli_check_ctlr_state(ctlr, status_reg)) 100 tw_cli_process_attn_intr(ctlr); 108 tw_cli_process_cmd_intr(ctlr); 109 if ((TW_CL_Q_FIRST_ITEM(&(ctlr->req_q_head[TW_CLI_PENDING_Q]))) == TW_CL_NULL) 117 tw_cli_process_resp_intr(ctlr); 130 * Input: ctlr 135 tw_cli_process_host_intr(struct tw_cli_ctlr_context *ctlr) argument 153 tw_cli_process_attn_intr(struct tw_cli_ctlr_context *ctlr) argument 189 tw_cli_process_cmd_intr(struct tw_cli_ctlr_context *ctlr) argument 216 tw_cli_process_resp_intr(struct tw_cli_ctlr_context *ctlr) argument 282 tw_cli_submit_pending_queue(struct tw_cli_ctlr_context *ctlr) argument 352 tw_cli_process_complete_queue(struct tw_cli_ctlr_context *ctlr) argument 382 struct tw_cli_ctlr_context *ctlr = req->ctlr; local 519 struct tw_cli_ctlr_context *ctlr = req->ctlr; local 573 struct tw_cli_ctlr_context *ctlr = req->ctlr; local 645 tw_cli_manage_aen(struct tw_cli_ctlr_context *ctlr, struct tw_cli_req_context *req) argument 726 tw_cli_enable_interrupts(struct tw_cli_ctlr_context *ctlr) argument 748 tw_cli_disable_interrupts(struct tw_cli_ctlr_context *ctlr) argument [all...] |
H A D | tw_cl_init.c | 254 struct tw_cli_ctlr_context *ctlr; local 263 ctlr = (struct tw_cli_ctlr_context *) 300 ctlr = (struct tw_cli_ctlr_context *)free_non_dma_mem; 303 ctlr_handle->cl_ctlr_ctxt = ctlr; 304 ctlr->ctlr_handle = ctlr_handle; 306 ctlr->device_id = (TW_UINT32)device_id; 307 ctlr->arch_id = TWA_ARCH_ID(device_id); 308 ctlr->flags = flags; 309 ctlr->sg_size_factor = TWA_SG_ELEMENT_SIZE_FACTOR(device_id); 310 ctlr 411 tw_cli_start_ctlr(struct tw_cli_ctlr_context *ctlr) argument 560 struct tw_cli_ctlr_context *ctlr = local 629 tw_cli_init_connection(struct tw_cli_ctlr_context *ctlr, TW_UINT16 message_credits, TW_UINT32 set_features, TW_UINT16 current_fw_srl, TW_UINT16 current_fw_arch_id, TW_UINT16 current_fw_branch, TW_UINT16 current_fw_build, TW_UINT16 *fw_on_ctlr_srl, TW_UINT16 *fw_on_ctlr_arch_id, TW_UINT16 *fw_on_ctlr_branch, TW_UINT16 *fw_on_ctlr_build, TW_UINT32 *init_connect_result) argument [all...] |
H A D | tw_cl.h | 54 /* Possible values of ctlr->ioctl_lock.lock. */ 99 struct tw_cli_ctlr_context *ctlr; /* ptr to CL's controller context */ member in struct:tw_cli_req_context 100 struct tw_cl_command_packet *cmd_pkt;/* ptr to ctlr cmd pkt */ 123 struct tw_cl_ctlr_handle *ctlr_handle; /* handle to track ctlr between 218 #define TW_CLI_Q_INIT(ctlr, q_type) do { \ 219 (ctlr)->q_stats[q_type].cur_len = 0; \ 220 (ctlr)->q_stats[q_type].max_len = 0; \ 224 #define TW_CLI_Q_INSERT(ctlr, q_type) do { \ 225 struct tw_cli_q_stats *q_stats = &((ctlr)->q_stats[q_type]); \ 232 #define TW_CLI_Q_REMOVE(ctlr, q_typ 246 tw_cli_req_q_init(struct tw_cli_ctlr_context *ctlr, TW_UINT8 q_type) argument 258 struct tw_cli_ctlr_context *ctlr = req->ctlr; local 272 struct tw_cli_ctlr_context *ctlr = req->ctlr; local 284 tw_cli_req_q_remove_head(struct tw_cli_ctlr_context *ctlr, TW_UINT8 q_type) argument 307 struct tw_cli_ctlr_context *ctlr = req->ctlr; local [all...] |
H A D | tw_cl_io.c | 73 struct tw_cli_ctlr_context *ctlr; local 81 ctlr = (struct tw_cli_ctlr_context *)(ctlr_handle->cl_ctlr_ctxt); 89 (ctlr->working_srl < TWA_MULTI_LUN_FW_SRL)) { 96 if ((req = tw_cli_get_request(ctlr 138 tw_cli_fill_sg_list(ctlr, scsi_req->sg_list, 142 if (((TW_CL_Q_FIRST_ITEM(&(ctlr->req_q_head[TW_CLI_PENDING_Q]))) != TW_CL_NULL) || 143 (ctlr->reset_in_progress)) { 170 struct tw_cli_ctlr_context *ctlr = req->ctlr; local 171 struct tw_cl_ctlr_handle *ctlr_handle = ctlr 265 struct tw_cli_ctlr_context *ctlr; local 373 struct tw_cli_ctlr_context *ctlr = local 717 tw_cli_get_param(struct tw_cli_ctlr_context *ctlr, TW_INT32 table_id, TW_INT32 param_id, TW_VOID *param_data, TW_INT32 param_size, TW_VOID (* callback)(struct tw_cli_req_context *req)) argument 834 tw_cli_set_param(struct tw_cli_ctlr_context *ctlr, TW_INT32 table_id, TW_INT32 param_id, TW_INT32 param_size, TW_VOID *data, TW_VOID (* callback)(struct tw_cli_req_context *req)) argument 951 struct tw_cli_ctlr_context *ctlr = req->ctlr; local 1051 struct tw_cli_ctlr_context *ctlr = local 1135 struct tw_cli_ctlr_context *ctlr = local 1144 struct tw_cli_ctlr_context *ctlr = local 1153 struct tw_cli_ctlr_context *ctlr = local 1172 tw_cli_soft_reset(struct tw_cli_ctlr_context *ctlr) argument 1295 struct tw_cli_ctlr_context *ctlr; local 1363 tw_cli_get_aen(struct tw_cli_ctlr_context *ctlr) argument 1402 tw_cli_fill_sg_list(struct tw_cli_ctlr_context *ctlr, TW_VOID *sgl_src, TW_VOID *sgl_dest, TW_INT32 num_sgl_entries) argument [all...] |
H A D | tw_cl_misc.c | 73 * Input: ctlr -- ptr to CL internal ctlr context 78 tw_cli_drain_complete_queue(struct tw_cli_ctlr_context *ctlr) argument 83 tw_cli_dbg_printf(3, ctlr->ctlr_handle, tw_osl_cur_func(), "entered"); 86 while ((req = tw_cli_req_q_remove_head(ctlr, TW_CLI_COMPLETE_Q)) != 127 * Input: ctlr -- ptr to CL internal ctlr context 132 tw_cli_drain_busy_queue(struct tw_cli_ctlr_context *ctlr) argument 137 tw_cli_dbg_printf(3, ctlr->ctlr_handle, tw_osl_cur_func(), "entered"); 140 while ((req = tw_cli_req_q_remove_head(ctlr, TW_CLI_BUSY_ 186 tw_cli_drain_pending_queue(struct tw_cli_ctlr_context *ctlr) argument 240 tw_cli_drain_response_queue(struct tw_cli_ctlr_context *ctlr) argument 270 tw_cli_find_response(struct tw_cli_ctlr_context *ctlr, TW_INT32 req_id) argument 309 tw_cli_drain_aen_queue(struct tw_cli_ctlr_context *ctlr) argument 401 tw_cli_find_aen(struct tw_cli_ctlr_context *ctlr, TW_UINT16 aen_code) argument 439 tw_cli_poll_status(struct tw_cli_ctlr_context *ctlr, TW_UINT32 status, TW_UINT32 timeout) argument 489 struct tw_cli_ctlr_context *ctlr = ctlr_handle->cl_ctlr_ctxt; local 660 tw_cli_notify_ctlr_info(struct tw_cli_ctlr_context *ctlr) argument 708 tw_cli_check_ctlr_state(struct tw_cli_ctlr_context *ctlr, TW_UINT32 status_reg) argument 870 struct tw_cli_ctlr_context *ctlr = local 915 struct tw_cli_ctlr_context *ctlr = local 939 struct tw_cli_ctlr_context *ctlr = req->ctlr; local [all...] |
H A D | tw_cl_externs.h | 55 extern TW_INT32 tw_cli_start_ctlr(struct tw_cli_ctlr_context *ctlr); 58 extern TW_INT32 tw_cli_init_connection(struct tw_cli_ctlr_context *ctlr, 74 extern TW_INT32 tw_cli_get_param(struct tw_cli_ctlr_context *ctlr, 79 extern TW_INT32 tw_cli_set_param(struct tw_cli_ctlr_context *ctlr, 88 extern TW_INT32 tw_cli_soft_reset(struct tw_cli_ctlr_context *ctlr); 97 extern TW_INT32 tw_cli_get_aen(struct tw_cli_ctlr_context *ctlr); 100 extern TW_VOID tw_cli_fill_sg_list(struct tw_cli_ctlr_context *ctlr, 108 extern TW_VOID tw_cli_process_host_intr(struct tw_cli_ctlr_context *ctlr); 111 extern TW_VOID tw_cli_process_attn_intr(struct tw_cli_ctlr_context *ctlr); 114 extern TW_VOID tw_cli_process_cmd_intr(struct tw_cli_ctlr_context *ctlr); [all...] |
/freebsd-9.3-release/sys/dev/ata/ |
H A D | ata-cbus.c | 113 struct ata_cbus_controller *ctlr = device_get_softc(dev); local 119 if (!(ctlr->io = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, 124 if (!(ctlr->ctlio = 126 rman_get_start(ctlr->io) + ATA_PC98_CTLOFFSET, ~0, 128 bus_release_resource(dev, SYS_RES_IOPORT, ATA_IOADDR_RID, ctlr->io); 133 if (!(ctlr->bankio = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 136 bus_release_resource(dev, SYS_RES_IOPORT, ATA_IOADDR_RID, ctlr->io); 137 bus_release_resource(dev, SYS_RES_IOPORT, ATA_CTLADDR_RID, ctlr->ctlio); 142 if (!(ctlr->irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, 145 bus_release_resource(dev, SYS_RES_IOPORT, ATA_IOADDR_RID, ctlr 191 struct ata_cbus_controller *ctlr = device_get_softc(dev); local 240 struct ata_cbus_controller *ctlr = data; local 292 struct ata_cbus_controller *ctlr = device_get_softc(device_get_parent(dev)); local 356 struct ata_cbus_controller *ctlr = device_get_softc(device_get_parent(dev)); local [all...] |
H A D | ata-pci.c | 63 struct ata_pci_controller *ctlr = device_get_softc(dev); local 76 ctlr->chipinit = ata_generic_chipinit; 85 struct ata_pci_controller *ctlr = device_get_softc(dev); local 91 ctlr->legacy = ata_legacy(dev); 92 if (ctlr->legacy || pci_read_config(dev, PCIR_BAR(2), 4) & IOMASK) 93 ctlr->channels = 2; 95 ctlr->channels = 1; 96 ctlr->ichannels = -1; 97 ctlr->ch_attach = ata_pci_ch_attach; 98 ctlr 135 struct ata_pci_controller *ctlr = device_get_softc(dev); local 169 struct ata_pci_controller *ctlr = device_get_softc(dev); local 181 struct ata_pci_controller *ctlr = device_get_softc(dev); local 385 struct ata_pci_controller *ctlr = device_get_softc(dev); local 396 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 632 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 655 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 674 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 693 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 711 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 724 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 741 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 752 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 813 struct ata_pci_controller *ctlr = data; local 826 struct ata_pci_controller *ctlr = device_get_softc(dev); local 862 struct ata_pci_controller *ctlr = device_get_softc(dev); local [all...] |
/freebsd-9.3-release/sys/dev/ata/chipsets/ |
H A D | ata-jmicron.c | 65 struct ata_pci_controller *ctlr = device_get_softc(dev); local 87 ctlr->chip = idx; 88 ctlr->chipinit = ata_jmicron_chipinit; 95 struct ata_pci_controller *ctlr = device_get_softc(dev); local 108 ctlr->ch_attach = ata_jmicron_ch_attach; 109 ctlr->ch_detach = ata_pci_ch_detach; 110 ctlr->reset = ata_generic_reset; 111 ctlr->setmode = ata_jmicron_setmode; 112 ctlr->channels = ctlr 149 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local [all...] |
H A D | ata-promise.c | 80 static void ata_promise_queue_hpkt(struct ata_pci_controller *ctlr, u_int32_t hpkt); 81 static void ata_promise_next_hpkt(struct ata_pci_controller *ctlr); 131 struct ata_pci_controller *ctlr = device_get_softc(dev); local 211 ctlr->chip = idx; 212 ctlr->chipinit = ata_promise_chipinit; 219 struct ata_pci_controller *ctlr = device_get_softc(dev); local 225 switch (ctlr->chip->cfg1) { 228 ATA_OUTB(ctlr->r_res1, 0x11, ATA_INB(ctlr->r_res1, 0x11) | 0x0a); 233 ATA_OUTB(ctlr 370 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 391 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 403 struct ata_pci_controller *ctlr=device_get_softc(device_get_parent(request->parent)); local 426 struct ata_pci_controller *ctlr=device_get_softc(device_get_parent(request->parent)); local 458 struct ata_pci_controller *ctlr = device_get_softc(parent); local 546 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 600 struct ata_pci_controller *ctlr = data; local 625 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 670 struct ata_pci_controller *ctlr=device_get_softc(device_get_parent(request->parent)); local 709 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 840 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 891 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 943 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 1031 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 1047 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 1062 struct ata_pci_controller *ctlr = data; local 1095 struct ata_pci_controller *ctlr = device_get_softc(gparent); local 1248 ata_promise_queue_hpkt(struct ata_pci_controller *ctlr, u_int32_t hpkt) argument 1267 ata_promise_next_hpkt(struct ata_pci_controller *ctlr) argument [all...] |
H A D | ata-acard.c | 83 struct ata_pci_controller *ctlr = device_get_softc(dev); local 95 if (!(ctlr->chip = ata_match_chip(dev, ids))) 99 ctlr->chipinit = ata_acard_chipinit; 101 ctlr->chipdeinit = ata_acard_chipdeinit; 109 struct ata_pci_controller *ctlr = device_get_softc(dev); local 117 ctlr->ch_attach = ata_acard_ch_attach; 118 ctlr->ch_detach = ata_pci_ch_detach; 119 if (ctlr->chip->cfg1 == ATP_OLD) { 120 ctlr->setmode = ata_acard_850_setmode; 122 ctlr 142 struct ata_pci_controller *ctlr = device_get_softc(dev); local 172 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 202 struct ata_pci_controller *ctlr = device_get_softc(parent); local 226 struct ata_pci_controller *ctlr = device_get_softc(parent); local 259 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local [all...] |
H A D | ata-nvidia.c | 77 struct ata_pci_controller *ctlr = device_get_softc(dev); local 181 if (!(ctlr->chip = ata_match_chip(dev, ids))) 185 if ((ctlr->chip->cfg1 & NVAHCI) && 186 ((force_ahci == 1 && (ctlr->chip->cfg1 & NVNOFORCE) == 0) || 188 ctlr->chipinit = ata_ahci_chipinit; 190 ctlr->chipinit = ata_nvidia_chipinit; 197 struct ata_pci_controller *ctlr = device_get_softc(dev); local 202 if (ctlr->chip->cfg1 & NVAHCI) { 203 ctlr->ch_attach = ata_nvidia_ch_attach_dumb; 204 ctlr 256 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 290 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 331 struct ata_pci_controller *ctlr = device_get_softc(parent); local [all...] |
H A D | ata-ahci.c | 84 struct ata_pci_controller *ctlr = device_get_softc(dev); local 102 ctlr->chipinit = ata_ahci_chipinit; 109 struct ata_pci_controller *ctlr = device_get_softc(dev); local 114 ctlr->chipinit = ata_ahci_chipinit; 121 struct ata_pci_controller *ctlr = device_get_softc(dev); local 126 ctlr->legacy = 0; 127 ctlr->ichannels = -1; 128 ctlr->ch_attach = ata_pci_ch_attach; 129 ctlr->ch_detach = ata_pci_ch_detach; 130 ctlr 152 struct ata_pci_controller *ctlr = device_get_softc(dev); local 245 struct ata_pci_controller *ctlr = device_get_softc(dev); local 279 struct ata_pci_controller *ctlr = device_get_softc(dev); local 290 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 336 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 361 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 392 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 450 struct ata_pci_controller *ctlr=device_get_softc(device_get_parent(request->parent)); local 538 struct ata_pci_controller *ctlr=device_get_softc(device_get_parent(request->parent)); local 589 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 683 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 731 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 757 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 783 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 805 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 829 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 842 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 864 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 935 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 1023 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local [all...] |
H A D | ata-siliconimage.c | 89 struct ata_pci_controller *ctlr = device_get_softc(dev); local 112 if (!(ctlr->chip = ata_match_chip(dev, ids))) 116 ctlr->chipinit = ata_sii_chipinit; 123 struct ata_pci_controller *ctlr = device_get_softc(dev); local 128 switch (ctlr->chip->cfg1) { 130 ctlr->r_type1 = SYS_RES_MEMORY; 131 ctlr->r_rid1 = PCIR_BAR(0); 132 if (!(ctlr->r_res1 = bus_alloc_resource_any(dev, ctlr->r_type1, 133 &ctlr 233 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 269 struct ata_pci_controller *ctlr = device_get_softc(parent); local 302 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 365 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 384 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 404 struct ata_pci_controller *ctlr = device_get_softc(parent); local 482 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 525 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 548 struct ata_pci_controller *ctlr=device_get_softc(device_get_parent(request->parent)); local 615 struct ata_pci_controller *ctlr=device_get_softc(device_get_parent(request->parent)); local 693 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 730 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 773 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 819 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 850 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local [all...] |
H A D | ata-acerlabs.c | 77 struct ata_pci_controller *ctlr = device_get_softc(dev); local 94 if (!(ctlr->chip = ata_match_chip(dev, ids))) 98 ctlr->chipinit = ata_ali_chipinit; 99 ctlr->chipdeinit = ata_ali_chipdeinit; 106 struct ata_pci_controller *ctlr = device_get_softc(dev); local 113 switch (ctlr->chip->cfg2) { 115 ctlr->channels = ctlr->chip->cfg1; 116 ctlr->ch_attach = ata_ali_sata_ch_attach; 117 ctlr 180 struct ata_pci_controller *ctlr = device_get_softc(dev); local 201 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 228 struct ata_pci_controller *ctlr = device_get_softc(parent); local 269 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 303 struct ata_pci_controller *ctlr = device_get_softc(parent); local [all...] |
H A D | ata-marvell.c | 101 struct ata_pci_controller *ctlr = device_get_softc(dev); local 124 if (!(ctlr->chip = ata_match_chip(dev, ids))) 129 switch (ctlr->chip->cfg2) { 134 ctlr->chipinit = ata_marvell_edma_chipinit; 137 ctlr->chipinit = ata_marvell_chipinit; 140 ctlr->chipinit = ata_marvell_dummy_chipinit; 149 struct ata_pci_controller *ctlr = device_get_softc(dev); local 155 if (ctlr->chip->cfg1) { 162 ctlr->ch_attach = ata_marvell_ch_attach; 163 ctlr 186 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 203 struct ata_pci_controller *ctlr = device_get_softc(dev); local 212 struct ata_pci_controller *ctlr = device_get_softc(dev); local 257 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 366 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 388 struct ata_pci_controller *ctlr=device_get_softc(device_get_parent(request->parent)); local 505 struct ata_pci_controller *ctlr=device_get_softc(device_get_parent(request->parent)); local 562 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 614 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local [all...] |
H A D | ata-intel.c | 95 #define ATA_INTEL_SMAP(ctlr, ch) \ 96 &((struct ata_intel_data *)((ctlr)->chipset_data))->smap[(ch)->unit * 2] 97 #define ATA_INTEL_LOCK(ctlr) \ 98 mtx_lock(&((struct ata_intel_data *)((ctlr)->chipset_data))->lock) 99 #define ATA_INTEL_UNLOCK(ctlr) \ 100 mtx_unlock(&((struct ata_intel_data *)((ctlr)->chipset_data))->lock) 108 struct ata_pci_controller *ctlr = device_get_softc(dev); local 238 if (!(ctlr->chip = ata_match_chip(dev, ids))) 242 ctlr->chipinit = ata_intel_chipinit; 243 ctlr 250 struct ata_pci_controller *ctlr = device_get_softc(dev); local 348 struct ata_pci_controller *ctlr = device_get_softc(dev); local 361 struct ata_pci_controller *ctlr; local 456 struct ata_pci_controller *ctlr = device_get_softc(parent); local 515 struct ata_pci_controller *ctlr = device_get_softc(parent); local 525 struct ata_pci_controller *ctlr = device_get_softc(parent); local 598 struct ata_pci_controller *ctlr = device_get_softc(parent); local 649 struct ata_pci_controller *ctlr; local 681 struct ata_pci_controller *ctlr; local 715 struct ata_pci_controller *ctlr; local 746 struct ata_pci_controller *ctlr; local 778 struct ata_pci_controller *ctlr; local 812 struct ata_pci_controller *ctlr; local 869 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local [all...] |
H A D | ata-ati.c | 77 struct ata_pci_controller *ctlr = device_get_softc(dev); local 105 if (!(ctlr->chip = ata_match_chip(dev, ids))) 110 switch (ctlr->chip->cfg1) { 112 ctlr->chipinit = ata_ati_chipinit; 118 ctlr->chipinit = ata_sii_chipinit; 122 ctlr->chipinit = ata_ahci_chipinit; 124 ctlr->chipinit = ata_ati_chipinit; 133 struct ata_pci_controller *ctlr = device_get_softc(dev); local 140 if (ctlr->chip->cfg1 == ATI_AHCI) { 141 ctlr 196 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 214 struct ata_pci_controller *ctlr = device_get_softc(parent); local [all...] |
H A D | ata-amd.c | 69 struct ata_pci_controller *ctlr = device_get_softc(dev); local 81 if (!(ctlr->chip = ata_match_chip(dev, ids))) 85 ctlr->chipinit = ata_amd_chipinit; 92 struct ata_pci_controller *ctlr = device_get_softc(dev); local 98 if (ctlr->chip->cfg1 & AMD_BUG) 103 ctlr->ch_attach = ata_amd_ch_attach; 104 ctlr->setmode = ata_amd_setmode; 112 struct ata_pci_controller *ctlr = device_get_softc(parent); local 122 mode = min(mode, ctlr->chip->max_dma); 123 if (ctlr 146 struct ata_pci_controller *ctlr; local [all...] |
H A D | ata-sis.c | 75 struct ata_pci_controller *ctlr = device_get_softc(dev); local 156 ctlr->chip = idx; 157 ctlr->chipinit = ata_sis_chipinit; 164 struct ata_pci_controller *ctlr = device_get_softc(dev); local 169 switch (ctlr->chip->cfg1) { 185 ctlr->r_type2 = SYS_RES_IOPORT; 186 ctlr->r_rid2 = PCIR_BAR(5); 187 if ((ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2, 188 &ctlr 206 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 243 struct ata_pci_controller *ctlr = device_get_softc(parent); local [all...] |
H A D | ata-via.c | 91 struct ata_pci_controller *ctlr = device_get_softc(dev); local 135 if (!(ctlr->chip = ata_find_chip(dev, ids, -99))) 139 if (!(ctlr->chip = ata_match_chip(dev, new_ids))) 144 ctlr->chipinit = ata_via_chipinit; 151 struct ata_pci_controller *ctlr = device_get_softc(dev); local 157 if (ctlr->chip->cfg2 & VIAAHCI) { 162 if (ctlr->chip->cfg2 & VIASATA) { 163 ctlr->ch_attach = ata_via_sata_ch_attach; 164 ctlr->setmode = ata_via_sata_setmode; 165 ctlr 218 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 275 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 300 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 325 struct ata_pci_controller *ctlr = device_get_softc(parent); local 354 struct ata_pci_controller *ctlr = device_get_softc(parent); local [all...] |
H A D | ata-highpoint.c | 74 struct ata_pci_controller *ctlr = device_get_softc(dev); local 105 ctlr->chip = idx; 106 ctlr->chipinit = ata_highpoint_chipinit; 113 struct ata_pci_controller *ctlr = device_get_softc(dev); local 118 if (ctlr->chip->cfg2 == HPT_OLD) { 131 if (ctlr->chip->cfg1 < HPT_372) 137 ctlr->ch_attach = ata_highpoint_ch_attach; 138 ctlr->ch_detach = ata_pci_ch_detach; 139 ctlr->setmode = ata_highpoint_setmode; 146 struct ata_pci_controller *ctlr local 163 struct ata_pci_controller *ctlr = device_get_softc(parent); local 202 struct ata_pci_controller *ctlr = device_get_softc(parent); local [all...] |
H A D | ata-cyrix.c | 65 struct ata_pci_controller *ctlr = device_get_softc(dev); local 69 ctlr->chipinit = ata_cyrix_chipinit; 78 struct ata_pci_controller *ctlr = device_get_softc(dev); local 82 ctlr->ch_attach = ata_cyrix_ch_attach; 83 ctlr->setmode = ata_cyrix_setmode; 100 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 113 if (ctlr->r_res1) {
|