Searched refs:obj_idx (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/mm/
H A Dzsmalloc.c86 * Object location (<PFN>, <obj_idx>) is encoded as
89 * Note that object index <obj_idx> is relative to system
91 * to a zspage, obj_idx starts with 0.
111 * encoding <page, obj_idx> and the encoded value has a room
233 * 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.4.14/drivers/net/ethernet/intel/i40e/
H A Di40e_lan_hmc.c992 * @obj_idx: hmc object index
1001 u32 obj_idx) i40e_hmc_get_object_va()
1031 if (obj_idx >= hmc_info->hmc_obj[rsrc_type].cnt) { i40e_hmc_get_object_va()
1038 I40E_FIND_SD_INDEX_LIMIT(hmc_info, rsrc_type, obj_idx, 1, i40e_hmc_get_object_va()
1043 hmc_info->hmc_obj[rsrc_type].size * obj_idx; i40e_hmc_get_object_va()
1046 I40E_FIND_PD_INDEX_LIMIT(hmc_info, rsrc_type, obj_idx, 1, i40e_hmc_get_object_va()
998 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 1393 milliseconds