Lines Matching refs:iop_base
152 static volatile struct mac_iop *iop_base[NUM_IOPS]; variable
241 iop_base[IOP_NUM_SCC] = (struct mac_iop *)SCC_IOP_BASE_IIFX; in iop_init()
243 iop_base[IOP_NUM_SCC] = (struct mac_iop *)SCC_IOP_BASE_QUADRA; in iop_init()
245 pr_debug("SCC IOP detected at %p\n", iop_base[IOP_NUM_SCC]); in iop_init()
249 iop_base[IOP_NUM_ISM] = (struct mac_iop *)ISM_IOP_BASE_IIFX; in iop_init()
251 iop_base[IOP_NUM_ISM] = (struct mac_iop *)ISM_IOP_BASE_QUADRA; in iop_init()
253 pr_debug("ISM IOP detected at %p\n", iop_base[IOP_NUM_ISM]); in iop_init()
255 iop_stop(iop_base[IOP_NUM_ISM]); in iop_init()
256 iop_start(iop_base[IOP_NUM_ISM]); in iop_init()
257 iop_alive(iop_base[IOP_NUM_ISM]); /* clears the alive flag */ in iop_init()
292 if (!iop_alive(iop_base[IOP_NUM_ISM])) { in iop_register_interrupts()
312 if ((iop_num >= NUM_IOPS) || !iop_base[iop_num]) return -EINVAL; in iop_listen()
338 iop_writeb(iop_base[iop_num], offset, msg->reply[i]); in iop_complete_message()
341 iop_writeb(iop_base[iop_num], in iop_complete_message()
343 iop_interrupt(iop_base[msg->iop_num]); in iop_complete_message()
354 volatile struct mac_iop *iop = iop_base[msg->iop_num]; in iop_do_send()
378 volatile struct mac_iop *iop = iop_base[iop_num]; in iop_handle_send()
409 volatile struct mac_iop *iop = iop_base[iop_num]; in iop_handle_recv()
454 if ((iop_num >= NUM_IOPS) || !iop_base[iop_num]) return -EINVAL; in iop_send_message()
487 if ((iop_num >= NUM_IOPS) || !iop_base[iop_num]) return; in iop_upload_code()
489 iop_loadaddr(iop_base[iop_num], shared_ram_start); in iop_upload_code()
492 iop_base[iop_num]->ram_data = *code_start++; in iop_upload_code()
503 if ((iop_num >= NUM_IOPS) || !iop_base[iop_num]) return; in iop_download_code()
505 iop_loadaddr(iop_base[iop_num], shared_ram_start); in iop_download_code()
508 *code_start++ = iop_base[iop_num]->ram_data; in iop_download_code()
521 if ((iop_num >= NUM_IOPS) || !iop_base[iop_num]) return code_start; in iop_compare_code()
523 iop_loadaddr(iop_base[iop_num], shared_ram_start); in iop_compare_code()
526 if (*code_start != iop_base[iop_num]->ram_data) { in iop_compare_code()
541 volatile struct mac_iop *iop = iop_base[iop_num]; in iop_ism_irq()