Searched refs:ctlr (Results 1 - 25 of 47) sorted by relevance

12

/freebsd-11-stable/sys/dev/mvs/
H A Dmvs_pci.c100 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;
114 ctlr->ccc = 0;
116 device_get_unit(dev), "ccc", &ctlr->ccc);
117 ctlr->cccc = 8;
119 device_get_unit(dev), "cccc", &ctlr->cccc);
120 if (ctlr->ccc == 0 || ctlr
180 struct mvs_controller *ctlr = device_get_softc(dev); local
204 struct mvs_controller *ctlr = device_get_softc(dev); local
251 struct mvs_controller *ctlr = device_get_softc(dev); local
272 struct mvs_controller *ctlr = device_get_softc(dev); local
293 struct mvs_controller *ctlr = device_get_softc(dev); local
331 struct mvs_controller *ctlr = data; local
395 struct mvs_controller *ctlr = device_get_softc(dev); local
446 struct mvs_controller *ctlr = device_get_softc(dev); local
462 struct mvs_controller *ctlr = device_get_softc(dev); local
[all...]
H A Dmvs_soc.c103 struct mvs_controller *ctlr = device_get_softc(dev); local
109 ctlr->dev = dev;
115 ctlr->channels = mvs_ids[i].ports;
116 ctlr->quirks = mvs_ids[i].quirks;
117 ctlr->ccc = 0;
119 device_get_unit(dev), "ccc", &ctlr->ccc);
120 ctlr->cccc = 8;
122 device_get_unit(dev), "cccc", &ctlr->cccc);
123 if (ctlr->ccc == 0 || ctlr
184 struct mvs_controller *ctlr = device_get_softc(dev); local
207 struct mvs_controller *ctlr = device_get_softc(dev); local
238 struct mvs_controller *ctlr = device_get_softc(dev); local
257 struct mvs_controller *ctlr = device_get_softc(dev); local
276 struct mvs_controller *ctlr = device_get_softc(dev); local
302 struct mvs_controller *ctlr = data; local
341 struct mvs_controller *ctlr = device_get_softc(dev); local
392 struct mvs_controller *ctlr = device_get_softc(dev); local
408 struct mvs_controller *ctlr = device_get_softc(dev); local
[all...]
/freebsd-11-stable/sys/dev/twa/
H A Dtw_cl_intr.c67 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 Dtw_cl_init.c254 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 Dtw_cl.h54 /* 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 Dtw_cl_io.c73 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 Dtw_cl_misc.c73 * 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 Dtw_cl_externs.h55 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-11-stable/sys/dev/ata/chipsets/
H A Data-siliconimage.c76 struct ata_pci_controller *ctlr = device_get_softc(dev); local
95 if (!(ctlr->chip = ata_match_chip(dev, ids)))
99 ctlr->chipinit = ata_sii_chipinit;
106 struct ata_pci_controller *ctlr = device_get_softc(dev); local
111 switch (ctlr->chip->cfg1) {
113 ctlr->r_type2 = SYS_RES_MEMORY;
114 ctlr->r_rid2 = PCIR_BAR(5);
115 if (!(ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2,
116 &ctlr
178 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local
212 struct ata_pci_controller *ctlr = device_get_softc(parent); local
245 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local
308 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local
327 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local
347 struct ata_pci_controller *ctlr = device_get_softc(parent); local
[all...]
H A Data-jmicron.c64 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
104 ctlr->ch_attach = ata_jmicron_ch_attach;
105 ctlr->ch_detach = ata_pci_ch_detach;
106 ctlr->reset = ata_generic_reset;
107 ctlr->setmode = ata_jmicron_setmode;
108 ctlr->channels = ctlr
146 struct ata_pci_controller *ctlr = device_get_softc(parent); local
[all...]
H A Data-promise.c79 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 Data-intel.c93 #define ATA_INTEL_SMAP(ctlr, ch) \
94 &((struct ata_intel_data *)((ctlr)->chipset_data))->smap[(ch)->unit * 2]
95 #define ATA_INTEL_LOCK(ctlr) \
96 mtx_lock(&((struct ata_intel_data *)((ctlr)->chipset_data))->lock)
97 #define ATA_INTEL_UNLOCK(ctlr) \
98 mtx_unlock(&((struct ata_intel_data *)((ctlr)->chipset_data))->lock)
106 struct ata_pci_controller *ctlr = device_get_softc(dev); local
197 if (!(ctlr->chip = ata_match_chip(dev, ids)))
201 ctlr->chipinit = ata_intel_chipinit;
202 ctlr
209 struct ata_pci_controller *ctlr = device_get_softc(dev); local
298 struct ata_pci_controller *ctlr = device_get_softc(dev); local
311 struct ata_pci_controller *ctlr; local
408 struct ata_pci_controller *ctlr = device_get_softc(parent); local
467 struct ata_pci_controller *ctlr = device_get_softc(parent); local
477 struct ata_pci_controller *ctlr = device_get_softc(parent); local
550 struct ata_pci_controller *ctlr = device_get_softc(parent); local
601 struct ata_pci_controller *ctlr; local
633 struct ata_pci_controller *ctlr; local
667 struct ata_pci_controller *ctlr; local
698 struct ata_pci_controller *ctlr; local
730 struct ata_pci_controller *ctlr; local
764 struct ata_pci_controller *ctlr; local
821 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local
[all...]
H A Data-marvell.c88 struct ata_pci_controller *ctlr = device_get_softc(dev); local
103 if (!(ctlr->chip = ata_match_chip(dev, ids)))
108 switch (ctlr->chip->cfg2) {
110 ctlr->chipinit = ata_marvell_chipinit;
113 ctlr->chipinit = ata_marvell_dummy_chipinit;
122 struct ata_pci_controller *ctlr = device_get_softc(dev); local
128 if (ctlr->chip->cfg1) {
135 ctlr->ch_attach = ata_marvell_ch_attach;
136 ctlr->ch_detach = ata_pci_ch_detach;
137 ctlr
159 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local
176 struct ata_pci_controller *ctlr = device_get_softc(dev); local
[all...]
H A Data-nvidia.c72 struct ata_pci_controller *ctlr = device_get_softc(dev); local
176 if (!(ctlr->chip = ata_match_chip(dev, ids)))
179 if ((ctlr->chip->cfg1 & NVAHCI) &&
184 ctlr->chipinit = ata_nvidia_chipinit;
191 struct ata_pci_controller *ctlr = device_get_softc(dev); local
196 if (ctlr->chip->cfg1 & NVAHCI) {
197 ctlr->ch_attach = ata_nvidia_ch_attach_dumb;
198 ctlr->setmode = ata_sata_setmode;
199 } else if (ctlr->chip->max_dma >= ATA_SA150) {
201 ctlr
250 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local
284 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local
325 struct ata_pci_controller *ctlr = device_get_softc(parent); local
[all...]
H A Data-acerlabs.c76 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
174 struct ata_pci_controller *ctlr = device_get_softc(dev); local
195 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local
220 struct ata_pci_controller *ctlr = device_get_softc(parent); local
261 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local
295 struct ata_pci_controller *ctlr = device_get_softc(parent); local
[all...]
H A Data-amd.c68 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 Data-ati.c73 struct ata_pci_controller *ctlr = device_get_softc(dev); local
101 if (!(ctlr->chip = ata_match_chip(dev, ids)))
104 switch (ctlr->chip->cfg1) {
106 ctlr->chipinit = ata_ati_chipinit;
112 ctlr->chipinit = ata_sii_chipinit;
117 ctlr->chipinit = ata_ati_chipinit;
128 struct ata_pci_controller *ctlr = device_get_softc(dev); local
135 if (ctlr->chip->cfg1 == ATI_AHCI) {
136 ctlr->ch_attach = ata_ati_dumb_ch_attach;
137 ctlr
191 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local
209 struct ata_pci_controller *ctlr = device_get_softc(parent); local
[all...]
H A Data-sis.c74 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 Data-via.c89 struct ata_pci_controller *ctlr = device_get_softc(dev); local
132 if (!(ctlr->chip = ata_find_chip(dev, ids, -99)))
136 if (!(ctlr->chip = ata_match_chip(dev, new_ids)))
141 ctlr->chipinit = ata_via_chipinit;
148 struct ata_pci_controller *ctlr = device_get_softc(dev); local
154 if (ctlr->chip->cfg2 & VIASATA) {
155 ctlr->ch_attach = ata_via_sata_ch_attach;
156 ctlr->setmode = ata_via_sata_setmode;
157 ctlr->getrev = ata_via_sata_getrev;
158 ctlr
210 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local
267 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local
292 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local
317 struct ata_pci_controller *ctlr = device_get_softc(parent); local
346 struct ata_pci_controller *ctlr = device_get_softc(parent); local
[all...]
H A Data-serverworks.c76 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
175 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local
317 struct ata_pci_controller *ctlr = device_get_softc(parent); local
[all...]
/freebsd-11-stable/sys/arm/allwinner/
H A Da10_ahci.c158 struct ahci_controller *ctlr = device_get_softc(dev); local
172 ATA_OUTL(ctlr->r_mem, AHCI_RWCR, 0);
179 ahci_set(ctlr->r_mem, AHCI_PHYCS1R, PHYCS1R_HIGHZ);
184 ahci_mask_set(ctlr->r_mem, AHCI_PHYCS0R,
191 ahci_mask_set(ctlr->r_mem, AHCI_PHYCS1R,
198 ahci_set(ctlr->r_mem, AHCI_PHYCS1R, PHYCS1R_BIT15 | PHYCS1R_BIT28);
205 ahci_clr(ctlr->r_mem, AHCI_PHYCS1R, PHYCS1R_HIGHZ);
210 ahci_mask_set(ctlr->r_mem, AHCI_PHYCS0R,
216 ahci_mask_set(ctlr->r_mem, AHCI_PHYCS2R, ~PHYCS2R_UF1_MASK,
225 ahci_set(ctlr
299 struct ahci_controller *ctlr; local
[all...]
/freebsd-11-stable/sys/dev/ata/
H A Data-cbus.c103 struct ata_cbus_controller *ctlr = device_get_softc(dev); local
109 if (!(ctlr->io = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid,
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
174 struct ata_cbus_controller *ctlr = device_get_softc(dev); local
223 struct ata_cbus_controller *ctlr = data; local
272 struct ata_cbus_controller *ctlr = device_get_softc(device_get_parent(dev)); local
[all...]
H A Data-pci.c62 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
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
709 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local
726 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local
737 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); local
795 struct ata_pci_controller *ctlr = data; local
808 struct ata_pci_controller *ctlr = device_get_softc(dev); local
844 struct ata_pci_controller *ctlr = device_get_softc(dev); local
[all...]
/freebsd-11-stable/sys/dev/ahci/
H A Dahci_generic.c80 struct ahci_controller *ctlr = device_get_softc(dev); local
83 ctlr->r_rid = 0;
84 ctlr->r_mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &ctlr->r_rid,
86 if (ctlr->r_mem == NULL)
90 ctlr->numirqs = 1;
97 if (ctlr->r_mem != NULL)
98 bus_release_resource(dev, SYS_RES_MEMORY, ctlr->r_rid,
99 ctlr->r_mem);
/freebsd-11-stable/sys/arm/freescale/imx/
H A Dimx6_ahci.c234 struct ahci_controller* ctlr; local
239 ctlr = device_get_softc(dev);
248 ctlr->vendorid = 0;
249 ctlr->deviceid = 0;
250 ctlr->subvendorid = 0;
251 ctlr->subdeviceid = 0;
252 ctlr->numirqs = 1;
253 ctlr->r_rid = 0;
254 if ((ctlr->r_mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
255 &ctlr
[all...]

Completed in 129 milliseconds

12