Lines Matching refs:tb_cache
114 * @tb_cache: Kernel buffer to receive the data from the lv1 trace buffer.
116 * @tb_cache_size: Size of the kernel @tb_cache buffer. Must be 128 byte
120 * NULL tb_cache argument. Otherwise unused.
137 void *tb_cache;
936 if (!lpm_priv->tb_cache)
960 memcpy(buf, lpm_priv->tb_cache, tmp);
991 if (!lpm_priv->tb_cache)
1014 result = copy_to_user(buf, lpm_priv->tb_cache, tmp);
1079 * @tb_cache: Optional user supplied buffer to use as the trace buffer cache.
1082 * @tb_cache_size: The size in bytes of the user supplied @tb_cache buffer.
1083 * Unused when @tb_cache is NULL or @tb_type is PS3_LPM_TB_TYPE_NONE.
1086 int ps3_lpm_open(enum ps3_lpm_tb_type tb_type, void *tb_cache,
1096 if (tb_type == PS3_LPM_TB_TYPE_NONE && tb_cache)
1104 /* Note tb_cache needs 128 byte alignment. */
1109 lpm_priv->tb_cache = NULL;
1110 } else if (tb_cache) {
1111 if (tb_cache != (void *)_ALIGN_UP((unsigned long)tb_cache, 128)
1113 dev_err(sbd_core(), "%s:%u: unaligned tb_cache\n",
1120 lpm_priv->tb_cache = tb_cache;
1126 dev_err(sbd_core(), "%s:%u: alloc internal tb_cache "
1131 lpm_priv->tb_cache = (void *)_ALIGN_UP(
1136 ps3_mm_phys_to_lpar(__pa(lpm_priv->tb_cache)),