Lines Matching defs:index
1659 int aw88395_dev_set_profile_index(struct aw_device *aw_dev, int index)
1661 /* check the index whether is valid */
1662 if ((index >= aw_dev->prof_info.count) || (index < 0))
1664 /* check the index whether change */
1665 if (aw_dev->prof_index == index)
1668 aw_dev->prof_index = index;
1670 aw_dev->prof_info.prof_name_list[aw_dev->prof_info.prof_desc[index].id]);
1676 char *aw88395_dev_get_prof_name(struct aw_device *aw_dev, int index)
1681 if ((index >= aw_dev->prof_info.count) || (index < 0)) {
1682 dev_err(aw_dev->dev, "index[%d] overflow count[%d]",
1683 index, aw_dev->prof_info.count);
1687 prof_desc = &aw_dev->prof_info.prof_desc[index];
1693 int aw88395_dev_get_prof_data(struct aw_device *aw_dev, int index,
1696 if ((index >= aw_dev->prof_info.count) || (index < 0)) {
1697 dev_err(aw_dev->dev, "%s: index[%d] overflow count[%d]\n",
1698 __func__, index, aw_dev->prof_info.count);
1702 *prof_desc = &aw_dev->prof_info.prof_desc[index];