lpbfifo 46 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c } lpbfifo; lpbfifo 70 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c spin_lock_irqsave(&lpbfifo.lock, flags); lpbfifo 72 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (!lpbfifo.regs) lpbfifo 75 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c req = lpbfifo.req; lpbfifo 81 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c status = in_be32(&lpbfifo.regs->status); lpbfifo 84 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c out_be32(&lpbfifo.regs->enable, lpbfifo 89 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c out_be32(&lpbfifo.regs->status, MPC512X_SCLPC_SUCCESS); lpbfifo 91 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.wait_lpbfifo_irq = false; lpbfifo 93 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (lpbfifo.wait_lpbfifo_callback) lpbfifo 97 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.req = NULL; lpbfifo 99 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c spin_unlock_irqrestore(&lpbfifo.lock, flags); lpbfifo 107 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c spin_unlock_irqrestore(&lpbfifo.lock, flags); lpbfifo 121 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c spin_lock_irqsave(&lpbfifo.lock, flags); lpbfifo 123 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (!lpbfifo.regs) { lpbfifo 124 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c spin_unlock_irqrestore(&lpbfifo.lock, flags); lpbfifo 128 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c req = lpbfifo.req; lpbfifo 131 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c spin_unlock_irqrestore(&lpbfifo.lock, flags); lpbfifo 140 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c dma_unmap_single(lpbfifo.chan->device->dev, lpbfifo 141 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.ram_bus_addr, req->size, dir); lpbfifo 143 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.wait_lpbfifo_callback = false; lpbfifo 145 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (!lpbfifo.wait_lpbfifo_irq) { lpbfifo 147 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.req = NULL; lpbfifo 149 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c spin_unlock_irqrestore(&lpbfifo.lock, flags); lpbfifo 154 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c spin_unlock_irqrestore(&lpbfifo.lock, flags); lpbfifo 189 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (lpbfifo.req->size == 0 || !IS_ALIGNED(lpbfifo.req->size, 4)) lpbfifo 192 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (lpbfifo.req->portsize != LPB_DEV_PORTSIZE_UNDEFINED) { lpbfifo 193 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c bpt = lpbfifo.req->portsize; lpbfifo 198 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (IS_ALIGNED(lpbfifo.req->dev_phys_addr, min(bpt, 0x8u)) && lpbfifo 199 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c IS_ALIGNED(lpbfifo.req->size, bpt)) { lpbfifo 211 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c for (i = 0; i < lpbfifo.cs_n; i++) { lpbfifo 212 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c phys_addr_t cs_start = lpbfifo.cs_ranges[i].addr; lpbfifo 213 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c phys_addr_t cs_end = cs_start + lpbfifo.cs_ranges[i].size; lpbfifo 214 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c phys_addr_t access_start = lpbfifo.req->dev_phys_addr; lpbfifo 215 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c phys_addr_t access_end = access_start + lpbfifo.req->size; lpbfifo 218 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c cs = lpbfifo.cs_ranges[i].csnum; lpbfifo 222 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (i == lpbfifo.cs_n) lpbfifo 226 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c dma_dev = lpbfifo.chan->device; lpbfifo 228 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (lpbfifo.req->dir == MPC512X_LPBFIFO_REQ_DIR_WRITE) { lpbfifo 231 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c dma_conf.dst_addr = lpbfifo.regs_phys + lpbfifo 236 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c dma_conf.src_addr = lpbfifo.regs_phys + lpbfifo 243 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (dma_dev->device_config(lpbfifo.chan, &dma_conf)) { lpbfifo 251 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.req->ram_virt_addr, lpbfifo.req->size, dir); lpbfifo 255 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.ram_bus_addr = sg_dma_address(&sg); /* For freeing later */ lpbfifo 257 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c sg_dma_len(&sg) = lpbfifo.req->size; lpbfifo 259 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c dma_tx = dmaengine_prep_slave_sg(lpbfifo.chan, &sg, lpbfifo 269 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c out_be32(&lpbfifo.regs->enable, lpbfifo 271 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c out_be32(&lpbfifo.regs->enable, 0x0); lpbfifo 280 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c out_be32(&lpbfifo.regs->fifo_ctrl, MPC512X_SCLPC_FIFO_CTRL(0x7)); lpbfifo 281 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c out_be32(&lpbfifo.regs->fifo_alarm, MPC512X_SCLPC_FIFO_ALARM(0x200)); lpbfifo 287 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c out_be32(&lpbfifo.regs->start_addr, lpbfifo.req->dev_phys_addr); lpbfifo 294 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (lpbfifo.req->dir == MPC512X_LPBFIFO_REQ_DIR_READ) lpbfifo 299 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c out_be32(&lpbfifo.regs->ctrl, bits); lpbfifo 303 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (lpbfifo.req->dir == MPC512X_LPBFIFO_REQ_DIR_WRITE) lpbfifo 306 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.wait_lpbfifo_irq = false; lpbfifo 308 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c out_be32(&lpbfifo.regs->enable, bits); lpbfifo 311 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c bits = lpbfifo.req->size | MPC512X_SCLPC_START; lpbfifo 312 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c out_be32(&lpbfifo.regs->pkt_size, bits); lpbfifo 324 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c out_be32(&lpbfifo.regs->enable, lpbfifo 328 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.req->size, dir); lpbfifo 336 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (!lpbfifo.regs) lpbfifo 340 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (lpbfifo.req) lpbfifo 343 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.wait_lpbfifo_irq = true; lpbfifo 344 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.wait_lpbfifo_callback = true; lpbfifo 345 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.req = req; lpbfifo 349 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.req = NULL; /* Set the FIFO as idle */ lpbfifo 359 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c spin_lock_irqsave(&lpbfifo.lock, flags); lpbfifo 361 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c spin_unlock_irqrestore(&lpbfifo.lock, flags); lpbfifo 406 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.cs_n = proplen / 4; lpbfifo 407 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.cs_ranges = devm_kcalloc(dev, lpbfifo.cs_n, lpbfifo 409 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (!lpbfifo.cs_ranges) lpbfifo 413 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c (u32 *)lpbfifo.cs_ranges, proplen) != 0) { lpbfifo 417 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c for (i = 0; i < lpbfifo.cs_n; i++) { lpbfifo 418 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (lpbfifo.cs_ranges[i].base != 0) lpbfifo 434 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c memset(&lpbfifo, 0, sizeof(struct lpbfifo_data)); lpbfifo 435 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c spin_lock_init(&lpbfifo.lock); lpbfifo 437 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.chan = dma_request_slave_channel(&pdev->dev, "rx-tx"); lpbfifo 438 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (lpbfifo.chan == NULL) lpbfifo 447 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.regs_phys = r.start; lpbfifo 448 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.regs_size = resource_size(&r); lpbfifo 450 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (!devm_request_mem_region(&pdev->dev, lpbfifo.regs_phys, lpbfifo 451 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.regs_size, DRV_NAME)) { lpbfifo 457 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.regs = devm_ioremap(&pdev->dev, lpbfifo 458 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.regs_phys, lpbfifo.regs_size); lpbfifo 459 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (!lpbfifo.regs) { lpbfifo 465 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c out_be32(&lpbfifo.regs->enable, lpbfifo 474 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.irq = irq_of_parse_and_map(pdev->dev.of_node, 0); lpbfifo 475 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (!lpbfifo.irq) { lpbfifo 481 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (request_irq(lpbfifo.irq, mpc512x_lpbfifo_irq, 0, lpbfifo 492 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c irq_dispose_mapping(lpbfifo.irq); lpbfifo 494 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c dma_release_channel(lpbfifo.chan); lpbfifo 501 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c struct dma_device *dma_dev = lpbfifo.chan->device; lpbfifo 504 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c spin_lock_irqsave(&lpbfifo.lock, flags); lpbfifo 505 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c regs = lpbfifo.regs; lpbfifo 506 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.regs = NULL; lpbfifo 507 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c spin_unlock_irqrestore(&lpbfifo.lock, flags); lpbfifo 509 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c dma_dev->device_terminate_all(lpbfifo.chan); lpbfifo 512 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c free_irq(lpbfifo.irq, &pdev->dev); lpbfifo 513 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c irq_dispose_mapping(lpbfifo.irq); lpbfifo 514 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c dma_release_channel(lpbfifo.chan); lpbfifo 57 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c static struct mpc52xx_lpbfifo lpbfifo; lpbfifo 75 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c out_be32(lpbfifo.regs + LPBFIFO_REG_ENABLE, 0x01010000); lpbfifo 78 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c out_be32(lpbfifo.regs + LPBFIFO_REG_ENABLE, 0x00000001); lpbfifo 94 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c reg = lpbfifo.regs + LPBFIFO_REG_FIFO_DATA; lpbfifo 101 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c out_be32(lpbfifo.regs + LPBFIFO_REG_ENABLE, 0x00000301); lpbfifo 111 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c out_be32(lpbfifo.regs + LPBFIFO_REG_FIFO_ALARM, 0x1e4); lpbfifo 112 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c out_8(lpbfifo.regs + LPBFIFO_REG_FIFO_CONTROL, 7); lpbfifo 113 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c lpbfifo.bcom_cur_task = lpbfifo.bcom_tx_task; lpbfifo 115 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c out_be32(lpbfifo.regs + LPBFIFO_REG_FIFO_ALARM, 0x1ff); lpbfifo 116 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c out_8(lpbfifo.regs + LPBFIFO_REG_FIFO_CONTROL, 0); lpbfifo 117 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c lpbfifo.bcom_cur_task = lpbfifo.bcom_rx_task; lpbfifo 120 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c if (lpbfifo.dma_irqs_enabled) { lpbfifo 121 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c disable_irq(bcom_get_task_irq(lpbfifo.bcom_rx_task)); lpbfifo 122 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c lpbfifo.dma_irqs_enabled = 0; lpbfifo 125 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c if (!lpbfifo.dma_irqs_enabled) { lpbfifo 126 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c enable_irq(bcom_get_task_irq(lpbfifo.bcom_rx_task)); lpbfifo 127 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c lpbfifo.dma_irqs_enabled = 1; lpbfifo 132 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c bd = bcom_prepare_next_buffer(lpbfifo.bcom_cur_task); lpbfifo 150 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c bcom_submit_next_buffer(lpbfifo.bcom_cur_task, NULL); lpbfifo 158 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c out_be32(lpbfifo.regs + LPBFIFO_REG_ENABLE, bit_fields); lpbfifo 162 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c out_be32(lpbfifo.regs + LPBFIFO_REG_START_ADDRESS, lpbfifo 164 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c out_be32(lpbfifo.regs + LPBFIFO_REG_PACKET_SIZE, transfer_size); lpbfifo 169 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c out_be32(lpbfifo.regs + LPBFIFO_REG_CONTROL, bit_fields); lpbfifo 172 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c if (!lpbfifo.req->defer_xfer_start) lpbfifo 173 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c out_8(lpbfifo.regs + LPBFIFO_REG_PACKET_SIZE, 0x01); lpbfifo 175 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c bcom_enable(lpbfifo.bcom_cur_task); lpbfifo 222 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c u32 status = in_8(lpbfifo.regs + LPBFIFO_REG_BYTES_DONE_STATUS); lpbfifo 231 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c spin_lock_irqsave(&lpbfifo.lock, flags); lpbfifo 234 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c req = lpbfifo.req; lpbfifo 236 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c spin_unlock_irqrestore(&lpbfifo.lock, flags); lpbfifo 246 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c spin_unlock_irqrestore(&lpbfifo.lock, flags); lpbfifo 257 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c out_be32(lpbfifo.regs + LPBFIFO_REG_ENABLE, 0x01010000); lpbfifo 263 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c count = in_be32(lpbfifo.regs + LPBFIFO_REG_BYTES_DONE_STATUS); lpbfifo 268 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c reg = lpbfifo.regs + LPBFIFO_REG_FIFO_DATA; lpbfifo 285 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c out_8(lpbfifo.regs + LPBFIFO_REG_BYTES_DONE_STATUS, 0x01); lpbfifo 298 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c bcom_retrieve_buffer(lpbfifo.bcom_cur_task, &status, NULL); lpbfifo 305 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c lpbfifo.req = NULL; lpbfifo 311 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c spin_unlock_irqrestore(&lpbfifo.lock, flags); lpbfifo 332 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c spin_lock_irqsave(&lpbfifo.lock, flags); lpbfifo 335 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c req = lpbfifo.req; lpbfifo 337 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c spin_unlock_irqrestore(&lpbfifo.lock, flags); lpbfifo 344 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c if (!bcom_buffer_done(lpbfifo.bcom_cur_task)) { lpbfifo 345 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c spin_unlock_irqrestore(&lpbfifo.lock, flags); lpbfifo 354 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c bcom_retrieve_buffer(lpbfifo.bcom_cur_task, &status, NULL); lpbfifo 361 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c lpbfifo.req = NULL; lpbfifo 365 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c spin_unlock_irqrestore(&lpbfifo.lock, flags); lpbfifo 378 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c struct mpc52xx_lpbfifo_request *req = lpbfifo.req; lpbfifo 400 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c if (!lpbfifo.regs) lpbfifo 403 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c spin_lock_irqsave(&lpbfifo.lock, flags); lpbfifo 406 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c if (lpbfifo.req) { lpbfifo 407 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c spin_unlock_irqrestore(&lpbfifo.lock, flags); lpbfifo 412 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c lpbfifo.req = req; lpbfifo 419 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c spin_unlock_irqrestore(&lpbfifo.lock, flags); lpbfifo 428 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c if (!lpbfifo.regs) lpbfifo 431 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c spin_lock_irqsave(&lpbfifo.lock, flags); lpbfifo 437 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c if (lpbfifo.req && !lpbfifo.req->defer_xfer_start) { lpbfifo 438 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c spin_unlock_irqrestore(&lpbfifo.lock, flags); lpbfifo 446 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c if (lpbfifo.req && lpbfifo.req == req && lpbfifo 447 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c lpbfifo.req->defer_xfer_start) { lpbfifo 448 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c out_8(lpbfifo.regs + LPBFIFO_REG_PACKET_SIZE, 0x01); lpbfifo 451 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c spin_unlock_irqrestore(&lpbfifo.lock, flags); lpbfifo 460 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c spin_lock_irqsave(&lpbfifo.lock, flags); lpbfifo 461 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c if (lpbfifo.req == req) { lpbfifo 463 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c bcom_gen_bd_rx_reset(lpbfifo.bcom_rx_task); lpbfifo 464 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c bcom_gen_bd_tx_reset(lpbfifo.bcom_tx_task); lpbfifo 465 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c out_be32(lpbfifo.regs + LPBFIFO_REG_ENABLE, 0x01010000); lpbfifo 466 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c lpbfifo.req = NULL; lpbfifo 468 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c spin_unlock_irqrestore(&lpbfifo.lock, flags); lpbfifo 477 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c if (lpbfifo.dev != NULL) lpbfifo 480 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c lpbfifo.irq = irq_of_parse_and_map(op->dev.of_node, 0); lpbfifo 481 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c if (!lpbfifo.irq) lpbfifo 486 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c lpbfifo.regs_phys = res.start; lpbfifo 487 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c lpbfifo.regs = of_iomap(op->dev.of_node, 0); lpbfifo 488 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c if (!lpbfifo.regs) lpbfifo 491 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c spin_lock_init(&lpbfifo.lock); lpbfifo 494 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c out_be32(lpbfifo.regs + LPBFIFO_REG_ENABLE, 0x01010000); lpbfifo 497 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c rc = request_irq(lpbfifo.irq, mpc52xx_lpbfifo_irq, 0, lpbfifo 498 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c "mpc52xx-lpbfifo", &lpbfifo); lpbfifo 503 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c lpbfifo.bcom_rx_task = lpbfifo 507 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c if (!lpbfifo.bcom_rx_task) lpbfifo 510 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c rc = request_irq(bcom_get_task_irq(lpbfifo.bcom_rx_task), lpbfifo 512 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c "mpc52xx-lpbfifo-rx", &lpbfifo); lpbfifo 516 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c lpbfifo.dma_irqs_enabled = 1; lpbfifo 519 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c lpbfifo.bcom_tx_task = lpbfifo 522 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c if (!lpbfifo.bcom_tx_task) lpbfifo 525 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c lpbfifo.dev = &op->dev; lpbfifo 529 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c free_irq(bcom_get_task_irq(lpbfifo.bcom_rx_task), &lpbfifo); lpbfifo 531 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c bcom_gen_bd_rx_release(lpbfifo.bcom_rx_task); lpbfifo 534 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c iounmap(lpbfifo.regs); lpbfifo 535 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c lpbfifo.regs = NULL; lpbfifo 544 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c if (lpbfifo.dev != &op->dev) lpbfifo 548 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c out_be32(lpbfifo.regs + LPBFIFO_REG_ENABLE, 0x01010000); lpbfifo 551 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c free_irq(bcom_get_task_irq(lpbfifo.bcom_tx_task), &lpbfifo); lpbfifo 552 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c bcom_gen_bd_tx_release(lpbfifo.bcom_tx_task); lpbfifo 555 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c free_irq(bcom_get_task_irq(lpbfifo.bcom_rx_task), &lpbfifo); lpbfifo 556 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c bcom_gen_bd_rx_release(lpbfifo.bcom_rx_task); lpbfifo 558 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c free_irq(lpbfifo.irq, &lpbfifo); lpbfifo 559 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c iounmap(lpbfifo.regs); lpbfifo 560 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c lpbfifo.regs = NULL; lpbfifo 561 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c lpbfifo.dev = NULL;