Lines Matching defs:tb_cache
102 * @tb_cache: Kernel buffer to receive the data from the lv1 trace buffer.
104 * @tb_cache_size: Size of the kernel @tb_cache buffer. Must be 128 byte
108 * NULL tb_cache argument. Otherwise unused.
125 void *tb_cache;
924 if (!lpm_priv->tb_cache)
948 memcpy(buf, lpm_priv->tb_cache, tmp);
979 if (!lpm_priv->tb_cache)
1002 result = copy_to_user(buf, lpm_priv->tb_cache, tmp);
1067 * @tb_cache: Optional user supplied buffer to use as the trace buffer cache.
1070 * @tb_cache_size: The size in bytes of the user supplied @tb_cache buffer.
1071 * Unused when @tb_cache is NULL or @tb_type is PS3_LPM_TB_TYPE_NONE.
1074 int ps3_lpm_open(enum ps3_lpm_tb_type tb_type, void *tb_cache,
1084 if (tb_type == PS3_LPM_TB_TYPE_NONE && tb_cache)
1092 /* Note tb_cache needs 128 byte alignment. */
1097 lpm_priv->tb_cache = NULL;
1098 } else if (tb_cache) {
1099 if (tb_cache != (void *)ALIGN((unsigned long)tb_cache, 128)
1101 dev_err(sbd_core(), "%s:%u: unaligned tb_cache\n",
1108 lpm_priv->tb_cache = tb_cache;
1117 lpm_priv->tb_cache = (void *)ALIGN(
1122 ps3_mm_phys_to_lpar(__pa(lpm_priv->tb_cache)),