kmem              180 arch/x86/kernel/cpu/resctrl/internal.h 	void			*kmem;
kmem              247 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	kfree(plr->kmem);
kmem              248 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	plr->kmem = NULL;
kmem              362 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	plr->kmem = kzalloc(plr->size, GFP_KERNEL);
kmem              363 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	if (!plr->kmem) {
kmem              465 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	mem_r = plr->kmem;
kmem              879 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	mem_r = READ_ONCE(plr->kmem);
kmem              982 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	mem_r = READ_ONCE(plr->kmem);
kmem             1507 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	physical = __pa(plr->kmem) >> PAGE_SHIFT;
kmem             1529 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	memset(plr->kmem + off, 0, vsize);
kmem              308 drivers/crypto/nx/nx.c 	memset(nx_ctx->kmem, 0, nx_ctx->kmem_len);
kmem              668 drivers/crypto/nx/nx.c 	nx_ctx->kmem = kmalloc(nx_ctx->kmem_len, GFP_KERNEL);
kmem              669 drivers/crypto/nx/nx.c 	if (!nx_ctx->kmem)
kmem              673 drivers/crypto/nx/nx.c 	nx_ctx->csbcpb = (struct nx_csbcpb *)(round_up((u64)nx_ctx->kmem,
kmem              748 drivers/crypto/nx/nx.c 	kzfree(nx_ctx->kmem);
kmem              759 drivers/crypto/nx/nx.c 	kzfree(nx_ctx->kmem);
kmem              119 drivers/crypto/nx/nx.h 	void *kmem;		  /* unaligned, kmalloc'd buffer */
kmem             1023 drivers/infiniband/hw/i40iw/i40iw_verbs.c 		i40iw_free_dma_mem(iwdev->sc_dev.hw, &iwcq->kmem);
kmem             1165 drivers/infiniband/hw/i40iw/i40iw_verbs.c 		status = i40iw_allocate_dma_mem(dev->hw, &iwcq->kmem,
kmem             1171 drivers/infiniband/hw/i40iw/i40iw_verbs.c 		ukinfo->cq_base = iwcq->kmem.va;
kmem             1172 drivers/infiniband/hw/i40iw/i40iw_verbs.c 		info.cq_base_pa = iwcq->kmem.pa;
kmem             1174 drivers/infiniband/hw/i40iw/i40iw_verbs.c 		ukinfo->shadow_area = iwcq->kmem.va + rsize;
kmem              114 drivers/infiniband/hw/i40iw/i40iw_verbs.h 	struct i40iw_dma_mem kmem;
kmem             1725 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	u8 *kmem;
kmem             1735 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	kmem = dma_alloc_coherent(&bp->pdev->dev, data_len, &dma_handle,
kmem             1737 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	if (!kmem) {
kmem             1742 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	memcpy(kmem, data, data_len);
kmem             1746 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	dma_free_coherent(&bp->pdev->dev, data_len, kmem, dma_handle);
kmem             2034 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 		u8 *kmem;
kmem             2042 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 		kmem = dma_alloc_coherent(&bp->pdev->dev, fw->size,
kmem             2044 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 		if (!kmem) {
kmem             2050 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 			memcpy(kmem, fw->data, fw->size);
kmem             2055 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 			dma_free_coherent(&bp->pdev->dev, fw->size, kmem,
kmem              220 include/linux/memcontrol.h 	struct page_counter kmem;
kmem                3 include/trace/events/kmem.h #define TRACE_SYSTEM kmem
kmem              477 lib/test_kasan.c 	char *kmem;
kmem              482 lib/test_kasan.c 	kmem = kmalloc(size, GFP_KERNEL);
kmem              483 lib/test_kasan.c 	if (!kmem)
kmem              491 lib/test_kasan.c 		kfree(kmem);
kmem              496 lib/test_kasan.c 	unused = copy_from_user(kmem, usermem, size + 1);
kmem              499 lib/test_kasan.c 	unused = copy_to_user(usermem, kmem, size + 1);
kmem              502 lib/test_kasan.c 	unused = __copy_from_user(kmem, usermem, size + 1);
kmem              505 lib/test_kasan.c 	unused = __copy_to_user(usermem, kmem, size + 1);
kmem              508 lib/test_kasan.c 	unused = __copy_from_user_inatomic(kmem, usermem, size + 1);
kmem              511 lib/test_kasan.c 	unused = __copy_to_user_inatomic(usermem, kmem, size + 1);
kmem              514 lib/test_kasan.c 	unused = strncpy_from_user(kmem, usermem, size + 1);
kmem              517 lib/test_kasan.c 	kfree(kmem);
kmem               47 lib/test_user_copy.c static int test_check_nonzero_user(char *kmem, char __user *umem, size_t size)
kmem               64 lib/test_user_copy.c 	kmem += start;
kmem               81 lib/test_user_copy.c 	memset(kmem, 0x0, size);
kmem               83 lib/test_user_copy.c 		kmem[i] = 0xff;
kmem               85 lib/test_user_copy.c 		kmem[i] = 0xff;
kmem               87 lib/test_user_copy.c 	ret |= test(copy_to_user(umem, kmem, size),
kmem               94 lib/test_user_copy.c 			int expected = is_zeroed(kmem + start, len);
kmem              105 lib/test_user_copy.c static int test_copy_struct_from_user(char *kmem, char __user *umem,
kmem              133 lib/test_user_copy.c 	memset(kmem, 0x0, size);
kmem              134 lib/test_user_copy.c 	ret |= test(copy_struct_from_user(kmem, ksize, umem, usize),
kmem              136 lib/test_user_copy.c 	ret |= test(memcmp(kmem, expected, ksize),
kmem              146 lib/test_user_copy.c 	memset(kmem, 0x0, size);
kmem              147 lib/test_user_copy.c 	ret |= test(copy_struct_from_user(kmem, ksize, umem, usize),
kmem              149 lib/test_user_copy.c 	ret |= test(memcmp(kmem, expected, ksize),
kmem              156 lib/test_user_copy.c 	memset(kmem, 0x0, size);
kmem              157 lib/test_user_copy.c 	ret |= test(copy_struct_from_user(kmem, ksize, umem, usize) != -E2BIG,
kmem              168 lib/test_user_copy.c 	memset(kmem, 0x0, size);
kmem              169 lib/test_user_copy.c 	ret |= test(copy_struct_from_user(kmem, ksize, umem, usize),
kmem              171 lib/test_user_copy.c 	ret |= test(memcmp(kmem, expected, ksize),
kmem              183 lib/test_user_copy.c 	char *kmem;
kmem              194 lib/test_user_copy.c 	kmem = kmalloc(PAGE_SIZE * 2, GFP_KERNEL);
kmem              195 lib/test_user_copy.c 	if (!kmem)
kmem              203 lib/test_user_copy.c 		kfree(kmem);
kmem              213 lib/test_user_copy.c 	memset(kmem, 0x3a, PAGE_SIZE * 2);
kmem              214 lib/test_user_copy.c 	ret |= test(copy_to_user(usermem, kmem, PAGE_SIZE),
kmem              216 lib/test_user_copy.c 	memset(kmem, 0x0, PAGE_SIZE);
kmem              217 lib/test_user_copy.c 	ret |= test(copy_from_user(kmem, usermem, PAGE_SIZE),
kmem              219 lib/test_user_copy.c 	ret |= test(memcmp(kmem, kmem + PAGE_SIZE, PAGE_SIZE),
kmem              248 lib/test_user_copy.c 	ret |= test_check_nonzero_user(kmem, usermem, 2 * PAGE_SIZE);
kmem              250 lib/test_user_copy.c 	ret |= test_copy_struct_from_user(kmem, usermem, 2 * PAGE_SIZE);
kmem              257 lib/test_user_copy.c 	memset(kmem, 0x5a, PAGE_SIZE);
kmem              258 lib/test_user_copy.c 	memset(kmem + PAGE_SIZE, 0, PAGE_SIZE);
kmem              261 lib/test_user_copy.c 	ret |= test(!copy_from_user(kmem, (char __user *)(kmem + PAGE_SIZE),
kmem              266 lib/test_user_copy.c 	ret |= test(memcmp(kmem + PAGE_SIZE, kmem, PAGE_SIZE),
kmem              276 lib/test_user_copy.c 	ret |= test(!copy_from_user(bad_usermem, (char __user *)kmem,
kmem              280 lib/test_user_copy.c 	ret |= test(!copy_to_user((char __user *)kmem, kmem + PAGE_SIZE,
kmem              283 lib/test_user_copy.c 	ret |= test(!copy_to_user((char __user *)kmem, bad_usermem,
kmem              290 lib/test_user_copy.c 		ret |= test(!get_user(val_##size, (size __user *)kmem),	    \
kmem              298 lib/test_user_copy.c 		ret |= test(!put_user(val_##size, (size __user *)kmem),	    \
kmem              311 lib/test_user_copy.c 	kfree(kmem);
kmem             1549 mm/memcontrol.c 			K((u64)page_counter_read(&memcg->kmem)),
kmem             1550 mm/memcontrol.c 			K((u64)memcg->kmem.max), memcg->kmem.failcnt);
kmem             3025 mm/memcontrol.c 	    !page_counter_try_charge(&memcg->kmem, nr_pages, &counter)) {
kmem             3033 mm/memcontrol.c 			page_counter_charge(&memcg->kmem, nr_pages);
kmem             3079 mm/memcontrol.c 		page_counter_uncharge(&memcg->kmem, nr_pages);
kmem             3444 mm/memcontrol.c 		counter = &memcg->kmem;
kmem             3634 mm/memcontrol.c 	ret = page_counter_set_max(&memcg->kmem, max);
kmem             3736 mm/memcontrol.c 		counter = &memcg->kmem;
kmem             5189 mm/memcontrol.c 		page_counter_init(&memcg->kmem, &parent->kmem);
kmem             5195 mm/memcontrol.c 		page_counter_init(&memcg->kmem, NULL);
kmem             5327 mm/memcontrol.c 	page_counter_set_max(&memcg->kmem, PAGE_COUNTER_MAX);
kmem             6677 mm/memcontrol.c 			page_counter_uncharge(&ug->memcg->kmem, ug->nr_kmem);