Lines Matching refs:slot

248 	int				slot;
596 unsigned int *slot, bool *overwrite)
600 *slot = AD4130_INVALID_SLOT;
609 *slot = i;
617 /* Find the least used slot. */
618 if (*slot == AD4130_INVALID_SLOT ||
619 slot_info->channels < st->slots_info[*slot].channels)
620 *slot = i;
623 if (*slot == AD4130_INVALID_SLOT)
634 struct ad4130_slot_info *slot_info = &st->slots_info[chan_info->slot];
636 chan_info->slot = AD4130_INVALID_SLOT;
640 static int ad4130_unlink_slot(struct ad4130_state *st, unsigned int slot)
647 if (!chan_info->initialized || chan_info->slot != slot)
657 unsigned int channel, unsigned int slot)
659 struct ad4130_slot_info *slot_info = &st->slots_info[slot];
665 FIELD_PREP(AD4130_CHANNEL_SETUP_MASK, slot));
669 chan_info->slot = slot;
676 unsigned int slot,
690 ret = regmap_write(st->regmap, AD4130_CONFIG_X_REG(slot), val);
697 ret = regmap_write(st->regmap, AD4130_FILTER_X_REG(slot), val);
701 memcpy(&st->slots_info[slot].setup, setup_info, sizeof(*setup_info));
712 int slot;
719 * - Find a slot. If not possible, return error.
720 * - Unlink channel from current slot.
721 * - If the slot has channels linked to it, unlink all channels, and
723 * - Link channel to new slot.
726 * - Find a slot. If not possible, return error.
727 * - If the slot has channels linked to it, unlink all channels, and
729 * - Link channel to the slot.
732 * - Unlink channel from current slot.
740 if (on_enable && chan_info->slot != AD4130_INVALID_SLOT)
744 if (chan_info->slot != AD4130_INVALID_SLOT)
753 ret = ad4130_find_slot(st, setup_info, &slot, &overwrite);
757 if (chan_info->slot != AD4130_INVALID_SLOT)
762 ret = ad4130_unlink_slot(st, slot);
766 ret = ad4130_write_slot_setup(st, slot, setup_info);
771 return ad4130_link_channel_slot(st, channel, slot);
790 slot_info = &st->slots_info[chan_info->slot];
1560 chan_info->slot = AD4130_INVALID_SLOT;