Lines Matching refs:ccs_limits

99 	linfo = &ccs_limits[ccs_limit_offsets[limit].info];  in ccs_limit_ptr()
101 if (WARN_ON(!sensor->ccs_limits) || in ccs_limit_ptr()
106 *__ptr = sensor->ccs_limits + ccs_limit_offsets[limit].lim + offset; in ccs_limit_ptr()
123 linfo = &ccs_limits[ccs_limit_offsets[limit].info]; in ccs_replace_limit()
142 switch (CCI_REG_WIDTH_BYTES(ccs_limits[ccs_limit_offsets[limit].info].reg)) { in ccs_get_limit()
157 return ccs_reg_conv(sensor, ccs_limits[limit].reg, val); in ccs_get_limit()
167 kfree(sensor->ccs_limits); in ccs_read_all_limits()
168 sensor->ccs_limits = NULL; in ccs_read_all_limits()
176 sensor->ccs_limits = alloc; in ccs_read_all_limits()
178 for (i = 0, l = 0, ptr = alloc; ccs_limits[i].size; i++) { in ccs_read_all_limits()
179 u32 reg = ccs_limits[i].reg; in ccs_read_all_limits()
190 for (j = 0; j < ccs_limits[i].size / width; in ccs_read_all_limits()
219 reg, ccs_limits[i].name, val, val, str); in ccs_read_all_limits()
222 if (ccs_limits[i].flags & CCS_L_FL_SAME_REG) in ccs_read_all_limits()
242 sensor->ccs_limits = NULL; in ccs_read_all_limits()
1526 if (!sensor->ccs_limits) in ccs_update_phy_ctrl()
3576 kfree(sensor->ccs_limits); in ccs_probe()
3602 kfree(sensor->ccs_limits); in ccs_remove()
3649 for (i = 0, l = 0; ccs_limits[i].size && l < CCS_L_LAST; i++) { in ccs_module_init()
3650 if (!(ccs_limits[i].flags & CCS_L_FL_SAME_REG)) { in ccs_module_init()
3653 ccs_limits[i].size, in ccs_module_init()
3654 ccs_limits[i + 1].reg ? in ccs_module_init()
3655 CCI_REG_WIDTH_BYTES(ccs_limits[i + 1].reg) : in ccs_module_init()
3660 ccs_limit_offsets[l].lim += ccs_limits[i].size; in ccs_module_init()
3664 if (WARN_ON(ccs_limits[i].size)) in ccs_module_init()