Lines Matching defs:skip_im
629 static int ble_skip_image_i2c(struct skip_image *skip_im)
636 static int ble_skip_image_other(struct skip_image *skip_im)
643 static int ble_skip_image_gpio(struct skip_image *skip_im)
649 switch (skip_im->info.test.cp_ap) {
651 mpp_address = MVEBU_CP_GPIO_DATA_IN(skip_im->info.test.cp_index,
652 skip_im->info.gpio.num);
653 if (skip_im->info.gpio.num > NUM_OF_GPIO_PER_REG)
654 offset = skip_im->info.gpio.num - NUM_OF_GPIO_PER_REG;
656 offset = skip_im->info.gpio.num;
660 offset = skip_im->info.gpio.num;
666 if ((!val && skip_im->info.gpio.button_state == HIGH) ||
667 (val && skip_im->info.gpio.button_state == LOW)) {
683 struct skip_image *skip_im;
686 skip_im = (struct skip_image *)plat_marvell_get_skip_image_data();
688 if (skip_im == NULL)
695 switch (skip_im->detection_method) {
697 return ble_skip_image_gpio(skip_im);
699 return ble_skip_image_i2c(skip_im);
701 return ble_skip_image_other(skip_im);