Searched refs:tb_cache (Results 1 - 2 of 2) sorted by relevance
/linux-4.4.14/drivers/ps3/ |
H A D | ps3-lpm.c | 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; member in struct:ps3_lpm_priv 936 if (!lpm_priv->tb_cache) ps3_lpm_copy_tb() 960 memcpy(buf, lpm_priv->tb_cache, tmp); ps3_lpm_copy_tb() 991 if (!lpm_priv->tb_cache) ps3_lpm_copy_tb_to_user() 1014 result = copy_to_user(buf, lpm_priv->tb_cache, tmp); ps3_lpm_copy_tb_to_user() 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, ps3_lpm_open() argument 1096 if (tb_type == PS3_LPM_TB_TYPE_NONE && tb_cache) ps3_lpm_open() 1104 /* Note tb_cache needs 128 byte alignment. */ ps3_lpm_open() 1109 lpm_priv->tb_cache = NULL; ps3_lpm_open() 1110 } else if (tb_cache) { ps3_lpm_open() 1111 if (tb_cache != (void *)_ALIGN_UP((unsigned long)tb_cache, 128) ps3_lpm_open() 1113 dev_err(sbd_core(), "%s:%u: unaligned tb_cache\n", ps3_lpm_open() 1120 lpm_priv->tb_cache = tb_cache; ps3_lpm_open() 1126 dev_err(sbd_core(), "%s:%u: alloc internal tb_cache " ps3_lpm_open() 1131 lpm_priv->tb_cache = (void *)_ALIGN_UP( ps3_lpm_open() 1136 ps3_mm_phys_to_lpar(__pa(lpm_priv->tb_cache)), ps3_lpm_open()
|
/linux-4.4.14/arch/powerpc/include/asm/ |
H A D | ps3.h | 494 int ps3_lpm_open(enum ps3_lpm_tb_type tb_type, void *tb_cache,
|
Completed in 119 milliseconds