/freebsd-10.0-release/sys/dev/mvs/ |
H A D | mvs_soc.c | 98 struct mvs_controller *ctlr = device_get_softc(dev); local 104 ctlr->dev = dev; 110 ctlr->channels = mvs_ids[i].ports; 111 ctlr->quirks = mvs_ids[i].quirks; 113 device_get_unit(dev), "ccc", &ctlr->ccc); 114 ctlr->cccc = 8; 116 device_get_unit(dev), "cccc", &ctlr->cccc); 117 if (ctlr->ccc == 0 || ctlr->cccc == 0) { 118 ctlr 178 struct mvs_controller *ctlr = device_get_softc(dev); local 201 struct mvs_controller *ctlr = device_get_softc(dev); local 232 struct mvs_controller *ctlr = device_get_softc(dev); local 251 struct mvs_controller *ctlr = device_get_softc(dev); local 270 struct mvs_controller *ctlr = device_get_softc(dev); local 296 struct mvs_controller *ctlr = data; local 335 struct mvs_controller *ctlr = device_get_softc(dev); local 386 struct mvs_controller *ctlr = device_get_softc(dev); local 402 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-10.0-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-10.0-release/sys/dev/ata/chipsets/ |
H A D | ata-jmicron.c | 64 struct ata_pci_controller *ctlr = device_get_softc(dev); local 86 ctlr->chip = idx; 87 ctlr->chipinit = ata_jmicron_chipinit; 94 struct ata_pci_controller *ctlr = device_get_softc(dev); local 107 ctlr->ch_attach = ata_jmicron_ch_attach; 108 ctlr->ch_detach = ata_pci_ch_detach; 109 ctlr->reset = ata_generic_reset; 110 ctlr->setmode = ata_jmicron_setmode; 111 ctlr->channels = ctlr 148 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local [all...] |
H A D | ata-promise.c | 79 static void ata_promise_queue_hpkt(struct ata_pci_controller *ctlr, u_int32_t hpkt); 80 static void ata_promise_next_hpkt(struct ata_pci_controller *ctlr); 130 struct ata_pci_controller *ctlr = device_get_softc(dev); local 210 ctlr->chip = idx; 211 ctlr->chipinit = ata_promise_chipinit; 218 struct ata_pci_controller *ctlr = device_get_softc(dev); local 224 switch (ctlr->chip->cfg1) { 227 ATA_OUTB(ctlr->r_res1, 0x11, ATA_INB(ctlr->r_res1, 0x11) | 0x0a); 232 ATA_OUTB(ctlr 369 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 390 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 402 struct ata_pci_controller *ctlr=device_get_softc(device_get_parent(request->parent)); local 425 struct ata_pci_controller *ctlr=device_get_softc(device_get_parent(request->parent)); local 457 struct ata_pci_controller *ctlr = device_get_softc(parent); local 545 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 599 struct ata_pci_controller *ctlr = data; local 624 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 669 struct ata_pci_controller *ctlr=device_get_softc(device_get_parent(request->parent)); local 708 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 839 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 890 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 942 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 1030 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 1046 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 1061 struct ata_pci_controller *ctlr = data; local 1094 struct ata_pci_controller *ctlr = device_get_softc(gparent); local 1247 ata_promise_queue_hpkt(struct ata_pci_controller *ctlr, u_int32_t hpkt) argument 1266 ata_promise_next_hpkt(struct ata_pci_controller *ctlr) argument [all...] |
H A D | ata-nvidia.c | 76 struct ata_pci_controller *ctlr = device_get_softc(dev); local 180 if (!(ctlr->chip = ata_match_chip(dev, ids))) 184 if ((ctlr->chip->cfg1 & NVAHCI) && 185 ((force_ahci == 1 && (ctlr->chip->cfg1 & NVNOFORCE) == 0) || 187 ctlr->chipinit = ata_ahci_chipinit; 189 ctlr->chipinit = ata_nvidia_chipinit; 196 struct ata_pci_controller *ctlr = device_get_softc(dev); local 201 if (ctlr->chip->cfg1 & NVAHCI) { 202 ctlr->ch_attach = ata_nvidia_ch_attach_dumb; 203 ctlr 255 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 289 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 330 struct ata_pci_controller *ctlr = device_get_softc(parent); local [all...] |
H A D | ata-ahci.c | 83 struct ata_pci_controller *ctlr = device_get_softc(dev); local 101 ctlr->chipinit = ata_ahci_chipinit; 108 struct ata_pci_controller *ctlr = device_get_softc(dev); local 113 ctlr->chipinit = ata_ahci_chipinit; 120 struct ata_pci_controller *ctlr = device_get_softc(dev); local 125 ctlr->legacy = 0; 126 ctlr->ichannels = -1; 127 ctlr->ch_attach = ata_pci_ch_attach; 128 ctlr->ch_detach = ata_pci_ch_detach; 129 ctlr 151 struct ata_pci_controller *ctlr = device_get_softc(dev); local 244 struct ata_pci_controller *ctlr = device_get_softc(dev); local 278 struct ata_pci_controller *ctlr = device_get_softc(dev); local 289 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 335 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 360 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 449 struct ata_pci_controller *ctlr=device_get_softc(device_get_parent(request->parent)); local 537 struct ata_pci_controller *ctlr=device_get_softc(device_get_parent(request->parent)); local 588 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 682 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 756 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 782 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 804 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 828 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 841 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 863 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 934 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 1022 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local [all...] |
H A D | ata-siliconimage.c | 88 struct ata_pci_controller *ctlr = device_get_softc(dev); local 111 if (!(ctlr->chip = ata_match_chip(dev, ids))) 115 ctlr->chipinit = ata_sii_chipinit; 122 struct ata_pci_controller *ctlr = device_get_softc(dev); local 127 switch (ctlr->chip->cfg1) { 129 ctlr->r_type1 = SYS_RES_MEMORY; 130 ctlr->r_rid1 = PCIR_BAR(0); 131 if (!(ctlr->r_res1 = bus_alloc_resource_any(dev, ctlr->r_type1, 132 &ctlr 232 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 266 struct ata_pci_controller *ctlr = device_get_softc(parent); local 299 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 362 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 381 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 401 struct ata_pci_controller *ctlr = device_get_softc(parent); local 479 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 522 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 545 struct ata_pci_controller *ctlr=device_get_softc(device_get_parent(request->parent)); local 612 struct ata_pci_controller *ctlr=device_get_softc(device_get_parent(request->parent)); local 690 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 727 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 770 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 816 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 847 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local [all...] |
H A D | ata-acerlabs.c | 76 struct ata_pci_controller *ctlr = device_get_softc(dev); local 93 if (!(ctlr->chip = ata_match_chip(dev, ids))) 97 ctlr->chipinit = ata_ali_chipinit; 98 ctlr->chipdeinit = ata_ali_chipdeinit; 105 struct ata_pci_controller *ctlr = device_get_softc(dev); local 112 switch (ctlr->chip->cfg2) { 114 ctlr->channels = ctlr->chip->cfg1; 115 ctlr->ch_attach = ata_ali_sata_ch_attach; 116 ctlr 179 struct ata_pci_controller *ctlr = device_get_softc(dev); local 200 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 225 struct ata_pci_controller *ctlr = device_get_softc(parent); local 266 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 300 struct ata_pci_controller *ctlr = device_get_softc(parent); local [all...] |
H A D | ata-marvell.c | 100 struct ata_pci_controller *ctlr = device_get_softc(dev); local 123 if (!(ctlr->chip = ata_match_chip(dev, ids))) 128 switch (ctlr->chip->cfg2) { 133 ctlr->chipinit = ata_marvell_edma_chipinit; 136 ctlr->chipinit = ata_marvell_chipinit; 139 ctlr->chipinit = ata_marvell_dummy_chipinit; 148 struct ata_pci_controller *ctlr = device_get_softc(dev); local 154 if (ctlr->chip->cfg1) { 161 ctlr->ch_attach = ata_marvell_ch_attach; 162 ctlr 185 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 202 struct ata_pci_controller *ctlr = device_get_softc(dev); local 211 struct ata_pci_controller *ctlr = device_get_softc(dev); local 256 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 387 struct ata_pci_controller *ctlr=device_get_softc(device_get_parent(request->parent)); local 504 struct ata_pci_controller *ctlr=device_get_softc(device_get_parent(request->parent)); local 561 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 613 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local [all...] |
H A D | ata-intel.c | 94 #define ATA_INTEL_SMAP(ctlr, ch) \ 95 &((struct ata_intel_data *)((ctlr)->chipset_data))->smap[(ch)->unit * 2] 96 #define ATA_INTEL_LOCK(ctlr) \ 97 mtx_lock(&((struct ata_intel_data *)((ctlr)->chipset_data))->lock) 98 #define ATA_INTEL_UNLOCK(ctlr) \ 99 mtx_unlock(&((struct ata_intel_data *)((ctlr)->chipset_data))->lock) 107 struct ata_pci_controller *ctlr = device_get_softc(dev); local 237 if (!(ctlr->chip = ata_match_chip(dev, ids))) 241 ctlr->chipinit = ata_intel_chipinit; 242 ctlr 249 struct ata_pci_controller *ctlr = device_get_softc(dev); local 347 struct ata_pci_controller *ctlr = device_get_softc(dev); local 360 struct ata_pci_controller *ctlr; local 455 struct ata_pci_controller *ctlr = device_get_softc(parent); local 514 struct ata_pci_controller *ctlr = device_get_softc(parent); local 524 struct ata_pci_controller *ctlr = device_get_softc(parent); local 597 struct ata_pci_controller *ctlr = device_get_softc(parent); local 648 struct ata_pci_controller *ctlr; local 680 struct ata_pci_controller *ctlr; local 714 struct ata_pci_controller *ctlr; local 745 struct ata_pci_controller *ctlr; local 777 struct ata_pci_controller *ctlr; local 811 struct ata_pci_controller *ctlr; local 868 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local [all...] |
H A D | ata-ati.c | 76 struct ata_pci_controller *ctlr = device_get_softc(dev); local 104 if (!(ctlr->chip = ata_match_chip(dev, ids))) 109 switch (ctlr->chip->cfg1) { 111 ctlr->chipinit = ata_ati_chipinit; 117 ctlr->chipinit = ata_sii_chipinit; 121 ctlr->chipinit = ata_ahci_chipinit; 123 ctlr->chipinit = ata_ati_chipinit; 132 struct ata_pci_controller *ctlr = device_get_softc(dev); local 139 if (ctlr->chip->cfg1 == ATI_AHCI) { 140 ctlr 195 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 213 struct ata_pci_controller *ctlr = device_get_softc(parent); local [all...] |
H A D | ata-amd.c | 68 struct ata_pci_controller *ctlr = device_get_softc(dev); local 80 if (!(ctlr->chip = ata_match_chip(dev, ids))) 84 ctlr->chipinit = ata_amd_chipinit; 91 struct ata_pci_controller *ctlr = device_get_softc(dev); local 97 if (ctlr->chip->cfg1 & AMD_BUG) 102 ctlr->ch_attach = ata_amd_ch_attach; 103 ctlr->setmode = ata_amd_setmode; 111 struct ata_pci_controller *ctlr = device_get_softc(parent); local 121 mode = min(mode, ctlr->chip->max_dma); 122 if (ctlr 145 struct ata_pci_controller *ctlr; local [all...] |
H A D | ata-sis.c | 74 struct ata_pci_controller *ctlr = device_get_softc(dev); local 155 ctlr->chip = idx; 156 ctlr->chipinit = ata_sis_chipinit; 163 struct ata_pci_controller *ctlr = device_get_softc(dev); local 168 switch (ctlr->chip->cfg1) { 184 ctlr->r_type2 = SYS_RES_IOPORT; 185 ctlr->r_rid2 = PCIR_BAR(5); 186 if ((ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2, 187 &ctlr 205 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 242 struct ata_pci_controller *ctlr = device_get_softc(parent); local [all...] |
H A D | ata-via.c | 90 struct ata_pci_controller *ctlr = device_get_softc(dev); local 134 if (!(ctlr->chip = ata_find_chip(dev, ids, -99))) 138 if (!(ctlr->chip = ata_match_chip(dev, new_ids))) 143 ctlr->chipinit = ata_via_chipinit; 150 struct ata_pci_controller *ctlr = device_get_softc(dev); local 156 if (ctlr->chip->cfg2 & VIAAHCI) { 161 if (ctlr->chip->cfg2 & VIASATA) { 162 ctlr->ch_attach = ata_via_sata_ch_attach; 163 ctlr->setmode = ata_via_sata_setmode; 164 ctlr 217 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 274 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 299 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 324 struct ata_pci_controller *ctlr = device_get_softc(parent); local 353 struct ata_pci_controller *ctlr = device_get_softc(parent); local [all...] |
H A D | ata-serverworks.c | 76 struct ata_pci_controller *ctlr = device_get_softc(dev); local 94 if (!(ctlr->chip = ata_match_chip(dev, ids))) 98 ctlr->chipinit = ata_serverworks_chipinit; 106 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 111 if (!(ATA_INL(ctlr->r_res2, 0x1f80) & (1 << ch->unit))) 127 struct ata_pci_controller *ctlr = device_get_softc(dev); local 132 if (ctlr->chip->cfg1 == SWKS_MIO) { 133 ctlr->r_type2 = SYS_RES_MEMORY; 134 ctlr->r_rid2 = PCIR_BAR(5); 135 if (!(ctlr 176 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 318 struct ata_pci_controller *ctlr = device_get_softc(parent); local [all...] |
H A D | ata-highpoint.c | 73 struct ata_pci_controller *ctlr = device_get_softc(dev); local 104 ctlr->chip = idx; 105 ctlr->chipinit = ata_highpoint_chipinit; 112 struct ata_pci_controller *ctlr = device_get_softc(dev); local 117 if (ctlr->chip->cfg2 == HPT_OLD) { 130 if (ctlr->chip->cfg1 < HPT_372) 136 ctlr->ch_attach = ata_highpoint_ch_attach; 137 ctlr->ch_detach = ata_pci_ch_detach; 138 ctlr->setmode = ata_highpoint_setmode; 145 struct ata_pci_controller *ctlr local 162 struct ata_pci_controller *ctlr = device_get_softc(parent); local 201 struct ata_pci_controller *ctlr = device_get_softc(parent); local [all...] |
H A D | ata-cyrix.c | 64 struct ata_pci_controller *ctlr = device_get_softc(dev); local 68 ctlr->chipinit = ata_cyrix_chipinit; 77 struct ata_pci_controller *ctlr = device_get_softc(dev); local 81 ctlr->ch_attach = ata_cyrix_ch_attach; 82 ctlr->setmode = ata_cyrix_setmode; 99 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 112 if (ctlr->r_res1) {
|
/freebsd-10.0-release/sys/dev/ata/ |
H A D | ata-cbus.c | 103 struct ata_cbus_controller *ctlr = device_get_softc(dev); local 109 if (!(ctlr->io = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, 114 if (!(ctlr->ctlio = 116 rman_get_start(ctlr->io) + ATA_PC98_CTLOFFSET, ~0, 118 bus_release_resource(dev, SYS_RES_IOPORT, ATA_IOADDR_RID, ctlr->io); 123 if (!(ctlr->bankio = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 126 bus_release_resource(dev, SYS_RES_IOPORT, ATA_IOADDR_RID, ctlr->io); 127 bus_release_resource(dev, SYS_RES_IOPORT, ATA_CTLADDR_RID, ctlr->ctlio); 132 if (!(ctlr->irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, 135 bus_release_resource(dev, SYS_RES_IOPORT, ATA_IOADDR_RID, ctlr 173 struct ata_cbus_controller *ctlr = device_get_softc(dev); local 222 struct ata_cbus_controller *ctlr = data; local 271 struct ata_cbus_controller *ctlr = device_get_softc(device_get_parent(dev)); local [all...] |
H A D | ata-pci.c | 62 struct ata_pci_controller *ctlr = device_get_softc(dev); local 75 ctlr->chipinit = ata_generic_chipinit; 84 struct ata_pci_controller *ctlr = device_get_softc(dev); local 90 ctlr->legacy = ata_legacy(dev); 91 if (ctlr->legacy || pci_read_config(dev, PCIR_BAR(2), 4) & IOMASK) 92 ctlr->channels = 2; 94 ctlr->channels = 1; 95 ctlr->ichannels = -1; 96 ctlr->ch_attach = ata_pci_ch_attach; 97 ctlr 134 struct ata_pci_controller *ctlr = device_get_softc(dev); local 168 struct ata_pci_controller *ctlr = device_get_softc(dev); local 180 struct ata_pci_controller *ctlr = device_get_softc(dev); local 384 struct ata_pci_controller *ctlr = device_get_softc(dev); local 395 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 631 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 654 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 673 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 692 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 708 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 725 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 736 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local 794 struct ata_pci_controller *ctlr = data; local 807 struct ata_pci_controller *ctlr = device_get_softc(dev); local 843 struct ata_pci_controller *ctlr = device_get_softc(dev); local [all...] |