imsg_ring 2119 drivers/rapidio/devices/tsi721.c spin_lock(&priv->imsg_ring[mbox].lock); imsg_ring 2139 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].dev_id, mbox, -1); imsg_ring 2150 drivers/rapidio/devices/tsi721.c spin_unlock(&priv->imsg_ring[mbox].lock); imsg_ring 2182 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].dev_id = dev_id; imsg_ring 2183 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].size = entries; imsg_ring 2184 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].rx_slot = 0; imsg_ring 2185 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].desc_rdptr = 0; imsg_ring 2186 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].fq_wrptr = 0; imsg_ring 2187 drivers/rapidio/devices/tsi721.c for (i = 0; i < priv->imsg_ring[mbox].size; i++) imsg_ring 2188 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imq_base[i] = NULL; imsg_ring 2189 drivers/rapidio/devices/tsi721.c spin_lock_init(&priv->imsg_ring[mbox].lock); imsg_ring 2192 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].buf_base = imsg_ring 2195 drivers/rapidio/devices/tsi721.c &priv->imsg_ring[mbox].buf_phys, imsg_ring 2198 drivers/rapidio/devices/tsi721.c if (priv->imsg_ring[mbox].buf_base == NULL) { imsg_ring 2206 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imfq_base = imsg_ring 2209 drivers/rapidio/devices/tsi721.c &priv->imsg_ring[mbox].imfq_phys, imsg_ring 2212 drivers/rapidio/devices/tsi721.c if (priv->imsg_ring[mbox].imfq_base == NULL) { imsg_ring 2220 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imd_base = imsg_ring 2223 drivers/rapidio/devices/tsi721.c &priv->imsg_ring[mbox].imd_phys, GFP_KERNEL); imsg_ring 2225 drivers/rapidio/devices/tsi721.c if (priv->imsg_ring[mbox].imd_base == NULL) { imsg_ring 2234 drivers/rapidio/devices/tsi721.c free_ptr = priv->imsg_ring[mbox].imfq_base; imsg_ring 2237 drivers/rapidio/devices/tsi721.c (u64)(priv->imsg_ring[mbox].buf_phys) + imsg_ring 2258 drivers/rapidio/devices/tsi721.c iowrite32(((u64)priv->imsg_ring[mbox].imfq_phys >> 32), imsg_ring 2260 drivers/rapidio/devices/tsi721.c iowrite32(((u64)priv->imsg_ring[mbox].imfq_phys & imsg_ring 2267 drivers/rapidio/devices/tsi721.c iowrite32(((u64)priv->imsg_ring[mbox].imd_phys >> 32), imsg_ring 2269 drivers/rapidio/devices/tsi721.c iowrite32(((u32)priv->imsg_ring[mbox].imd_phys & imsg_ring 2313 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].fq_wrptr = entries - 1; imsg_ring 2322 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].size * sizeof(struct tsi721_imsg_desc), imsg_ring 2323 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imd_base, imsg_ring 2324 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imd_phys); imsg_ring 2326 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imd_base = NULL; imsg_ring 2331 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].size * 8, imsg_ring 2332 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imfq_base, imsg_ring 2333 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imfq_phys); imsg_ring 2335 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imfq_base = NULL; imsg_ring 2339 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].size * TSI721_MSG_BUFFER_SIZE, imsg_ring 2340 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].buf_base, imsg_ring 2341 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].buf_phys); imsg_ring 2343 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].buf_base = NULL; imsg_ring 2379 drivers/rapidio/devices/tsi721.c for (rx_slot = 0; rx_slot < priv->imsg_ring[mbox].size; rx_slot++) imsg_ring 2380 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imq_base[rx_slot] = NULL; imsg_ring 2384 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].size * TSI721_MSG_BUFFER_SIZE, imsg_ring 2385 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].buf_base, imsg_ring 2386 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].buf_phys); imsg_ring 2388 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].buf_base = NULL; imsg_ring 2392 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].size * 8, imsg_ring 2393 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imfq_base, imsg_ring 2394 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imfq_phys); imsg_ring 2396 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imfq_base = NULL; imsg_ring 2400 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].size * sizeof(struct tsi721_imsg_desc), imsg_ring 2401 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imd_base, imsg_ring 2402 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imd_phys); imsg_ring 2404 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imd_base = NULL; imsg_ring 2419 drivers/rapidio/devices/tsi721.c rx_slot = priv->imsg_ring[mbox].rx_slot; imsg_ring 2420 drivers/rapidio/devices/tsi721.c if (priv->imsg_ring[mbox].imq_base[rx_slot]) { imsg_ring 2428 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imq_base[rx_slot] = buf; imsg_ring 2430 drivers/rapidio/devices/tsi721.c if (++priv->imsg_ring[mbox].rx_slot == priv->imsg_ring[mbox].size) imsg_ring 2431 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].rx_slot = 0; imsg_ring 2459 drivers/rapidio/devices/tsi721.c desc = priv->imsg_ring[mbox].imd_base; imsg_ring 2460 drivers/rapidio/devices/tsi721.c desc += priv->imsg_ring[mbox].desc_rdptr; imsg_ring 2465 drivers/rapidio/devices/tsi721.c rx_slot = priv->imsg_ring[mbox].rx_slot; imsg_ring 2466 drivers/rapidio/devices/tsi721.c while (priv->imsg_ring[mbox].imq_base[rx_slot] == NULL) { imsg_ring 2467 drivers/rapidio/devices/tsi721.c if (++rx_slot == priv->imsg_ring[mbox].size) imsg_ring 2474 drivers/rapidio/devices/tsi721.c rx_virt = priv->imsg_ring[mbox].buf_base + imsg_ring 2475 drivers/rapidio/devices/tsi721.c (rx_phys - (u64)priv->imsg_ring[mbox].buf_phys); imsg_ring 2477 drivers/rapidio/devices/tsi721.c buf = priv->imsg_ring[mbox].imq_base[rx_slot]; imsg_ring 2483 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imq_base[rx_slot] = NULL; imsg_ring 2486 drivers/rapidio/devices/tsi721.c if (++priv->imsg_ring[mbox].desc_rdptr == priv->imsg_ring[mbox].size) imsg_ring 2487 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].desc_rdptr = 0; imsg_ring 2489 drivers/rapidio/devices/tsi721.c iowrite32(priv->imsg_ring[mbox].desc_rdptr, imsg_ring 2493 drivers/rapidio/devices/tsi721.c free_ptr = priv->imsg_ring[mbox].imfq_base; imsg_ring 2494 drivers/rapidio/devices/tsi721.c free_ptr[priv->imsg_ring[mbox].fq_wrptr] = cpu_to_le64(rx_phys); imsg_ring 2496 drivers/rapidio/devices/tsi721.c if (++priv->imsg_ring[mbox].fq_wrptr == priv->imsg_ring[mbox].size) imsg_ring 2497 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].fq_wrptr = 0; imsg_ring 2499 drivers/rapidio/devices/tsi721.c iowrite32(priv->imsg_ring[mbox].fq_wrptr, imsg_ring 897 drivers/rapidio/devices/tsi721.h struct tsi721_imsg_ring imsg_ring[TSI721_IMSG_CHNUM];