• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/common/

Lines Matching defs:safe

58 	/* safe buffer info */
60 void *safe;
106 /* allocate a 'safe' buffer and keep track of it */
139 buf->safe = dma_pool_alloc(pool->pool, GFP_ATOMIC,
142 buf->safe = dma_alloc_coherent(dev, size, &buf->safe_dma_addr,
146 if (buf->safe == NULL) {
167 /* determine if a buffer is from our "safe" pool */
200 dma_pool_free(buf->pool->pool, buf->safe, buf->safe_dma_addr);
202 dma_free_coherent(device_info->dev, buf->size, buf->safe,
267 buf->safe, buf->safe_dma_addr);
271 dev_dbg(dev, "%s: copy unsafe %p to safe %p, size %d\n",
272 __func__, ptr, buf->safe, size);
273 memcpy(buf->safe, ptr, size);
275 ptr = buf->safe;
301 buf->safe, buf->safe_dma_addr);
309 "%s: copy back safe %p to unsafe %p size %d\n",
310 __func__, buf->safe, ptr, size);
311 memcpy(ptr, buf->safe, size);
330 * allocate a 'safe' buffer and copy the unsafe buffer into it.
331 * substitute the safe buffer for the unsafe one.
332 * (basically move the buffer from an unsafe area to a safe one)
347 * see if a mapped address was really a "safe" buffer and if so, copy
348 * the data from the safe buffer back to the unsafe buffer and free up
349 * the safe buffer. (basically return things back to the way they
381 * see if a mapped address was really a "safe" buffer and if so, copy
382 * the data from the safe buffer back to the unsafe buffer and free up
383 * the safe buffer. (basically return things back to the way they
412 buf->safe, buf->safe_dma_addr);
417 dev_dbg(dev, "%s: copy back safe %p to unsafe %p size %d\n",
418 __func__, buf->safe + off, buf->ptr + off, sz);
419 memcpy(buf->ptr + off, buf->safe + off, sz);
441 buf->safe, buf->safe_dma_addr);
446 dev_dbg(dev, "%s: copy out unsafe %p to safe %p, size %d\n",
447 __func__,buf->ptr + off, buf->safe + off, sz);
448 memcpy(buf->safe + off, buf->ptr + off, sz);