Searched refs:obj_idx (Results 1 – 2 of 2) sorted by relevance
/linux-4.1.27/mm/ |
D | zsmalloc.c | 802 static void *location_to_obj(struct page *page, unsigned long obj_idx) in location_to_obj() argument 807 BUG_ON(obj_idx); in location_to_obj() 812 obj |= ((obj_idx) & OBJ_INDEX_MASK); in location_to_obj() 824 unsigned long *obj_idx) in obj_to_location() argument 828 *obj_idx = (obj & OBJ_INDEX_MASK); in obj_to_location() 847 unsigned long obj_idx, int class_size) in obj_idx_to_offset() 854 return off + obj_idx * class_size; in obj_idx_to_offset() 1265 unsigned long obj, obj_idx, off; in zs_map_object() local 1287 obj_to_location(obj, &page, &obj_idx); in zs_map_object() 1290 off = obj_idx_to_offset(page, obj_idx, class->size); in zs_map_object() [all …]
|
/linux-4.1.27/drivers/net/ethernet/intel/i40e/ |
D | i40e_lan_hmc.c | 1002 u32 obj_idx) in i40e_hmc_get_object_va() argument 1032 if (obj_idx >= hmc_info->hmc_obj[rsrc_type].cnt) { in i40e_hmc_get_object_va() 1039 I40E_FIND_SD_INDEX_LIMIT(hmc_info, rsrc_type, obj_idx, 1, in i40e_hmc_get_object_va() 1044 hmc_info->hmc_obj[rsrc_type].size * obj_idx; in i40e_hmc_get_object_va() 1047 I40E_FIND_PD_INDEX_LIMIT(hmc_info, rsrc_type, obj_idx, 1, in i40e_hmc_get_object_va()
|