Searched refs:obj_idx (Results 1 - 2 of 2) sorted by relevance
/linux-4.1.27/mm/ |
H A D | zsmalloc.c | 90 * Object location (<PFN>, <obj_idx>) is encoded as 93 * Note that object index <obj_idx> is relative to system 95 * to a zspage, obj_idx starts with 0. 115 * encoding <page, obj_idx> and the encoded value has a room 238 * Position of next free chunk (encodes <PFN, obj_idx>) 799 * Encode <page, obj_idx> as a single handle value. 802 static void *location_to_obj(struct page *page, unsigned long obj_idx) location_to_obj() argument 807 BUG_ON(obj_idx); location_to_obj() 812 obj |= ((obj_idx) & OBJ_INDEX_MASK); location_to_obj() 819 * Decode <page, obj_idx> pair from the given object handle. We adjust the 820 * decoded obj_idx back to its original value since it was adjusted in 824 unsigned long *obj_idx) obj_to_location() 828 *obj_idx = (obj & OBJ_INDEX_MASK); obj_to_location() 847 unsigned long obj_idx, int class_size) obj_idx_to_offset() 854 return off + obj_idx * class_size; obj_idx_to_offset() 1265 unsigned long obj, obj_idx, off; zs_map_object() local 1287 obj_to_location(obj, &page, &obj_idx); zs_map_object() 1290 off = obj_idx_to_offset(page, obj_idx, class->size); zs_map_object() 1318 unsigned long obj, obj_idx, off; zs_unmap_object() local 1328 obj_to_location(obj, &page, &obj_idx); zs_unmap_object() 1331 off = obj_idx_to_offset(page, obj_idx, class->size); zs_unmap_object() 823 obj_to_location(unsigned long obj, struct page **page, unsigned long *obj_idx) obj_to_location() argument 846 obj_idx_to_offset(struct page *page, unsigned long obj_idx, int class_size) obj_idx_to_offset() argument
|
/linux-4.1.27/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_lan_hmc.c | 993 * @obj_idx: hmc object index 1002 u32 obj_idx) i40e_hmc_get_object_va() 1032 if (obj_idx >= hmc_info->hmc_obj[rsrc_type].cnt) { i40e_hmc_get_object_va() 1039 I40E_FIND_SD_INDEX_LIMIT(hmc_info, rsrc_type, obj_idx, 1, i40e_hmc_get_object_va() 1044 hmc_info->hmc_obj[rsrc_type].size * obj_idx; i40e_hmc_get_object_va() 1047 I40E_FIND_PD_INDEX_LIMIT(hmc_info, rsrc_type, obj_idx, 1, i40e_hmc_get_object_va() 999 i40e_hmc_get_object_va(struct i40e_hmc_info *hmc_info, u8 **object_base, enum i40e_hmc_lan_rsrc_type rsrc_type, u32 obj_idx) i40e_hmc_get_object_va() argument
|
Completed in 96 milliseconds