/* auto-generated by gen_syscalls.py, don't edit */

#ifndef Z_INCLUDE_SYSCALLS_BIOMETRICS_H
#define Z_INCLUDE_SYSCALLS_BIOMETRICS_H


#include <zephyr/tracing/tracing_syscall.h>

#ifndef _ASMLANGUAGE

#include <stdarg.h>

#include <zephyr/syscall_list.h>
#include <zephyr/syscall.h>

#include <zephyr/linker/sections.h>


#ifdef __cplusplus
extern "C" {
#endif

extern int z_impl_biometric_get_capabilities(const struct device * dev, struct biometric_capabilities * caps);

__pinned_func
static inline int biometric_get_capabilities(const struct device * dev, struct biometric_capabilities * caps)
{
#ifdef CONFIG_USERSPACE
	if (z_syscall_trap()) {
		union { uintptr_t x; const struct device * val; } parm0 = { .val = dev };
		union { uintptr_t x; struct biometric_capabilities * val; } parm1 = { .val = caps };
		return (int) arch_syscall_invoke2(parm0.x, parm1.x, K_SYSCALL_BIOMETRIC_GET_CAPABILITIES);
	}
#endif
	compiler_barrier();
	return z_impl_biometric_get_capabilities(dev, caps);
}

#if defined(CONFIG_TRACING_SYSCALL)
#ifndef DISABLE_SYSCALL_TRACING

#define biometric_get_capabilities(dev, caps) ({ 	int syscall__retval; 	sys_port_trace_syscall_enter(K_SYSCALL_BIOMETRIC_GET_CAPABILITIES, biometric_get_capabilities, dev, caps); 	syscall__retval = biometric_get_capabilities(dev, caps); 	sys_port_trace_syscall_exit(K_SYSCALL_BIOMETRIC_GET_CAPABILITIES, biometric_get_capabilities, dev, caps, syscall__retval); 	syscall__retval; })
#endif
#endif


extern int z_impl_biometric_attr_set(const struct device * dev, enum biometric_attribute attr, int32_t val);

__pinned_func
static inline int biometric_attr_set(const struct device * dev, enum biometric_attribute attr, int32_t val)
{
#ifdef CONFIG_USERSPACE
	if (z_syscall_trap()) {
		union { uintptr_t x; const struct device * val; } parm0 = { .val = dev };
		union { uintptr_t x; enum biometric_attribute val; } parm1 = { .val = attr };
		union { uintptr_t x; int32_t val; } parm2 = { .val = val };
		return (int) arch_syscall_invoke3(parm0.x, parm1.x, parm2.x, K_SYSCALL_BIOMETRIC_ATTR_SET);
	}
#endif
	compiler_barrier();
	return z_impl_biometric_attr_set(dev, attr, val);
}

#if defined(CONFIG_TRACING_SYSCALL)
#ifndef DISABLE_SYSCALL_TRACING

#define biometric_attr_set(dev, attr, val) ({ 	int syscall__retval; 	sys_port_trace_syscall_enter(K_SYSCALL_BIOMETRIC_ATTR_SET, biometric_attr_set, dev, attr, val); 	syscall__retval = biometric_attr_set(dev, attr, val); 	sys_port_trace_syscall_exit(K_SYSCALL_BIOMETRIC_ATTR_SET, biometric_attr_set, dev, attr, val, syscall__retval); 	syscall__retval; })
#endif
#endif


extern int z_impl_biometric_attr_get(const struct device * dev, enum biometric_attribute attr, int32_t * val);

__pinned_func
static inline int biometric_attr_get(const struct device * dev, enum biometric_attribute attr, int32_t * val)
{
#ifdef CONFIG_USERSPACE
	if (z_syscall_trap()) {
		union { uintptr_t x; const struct device * val; } parm0 = { .val = dev };
		union { uintptr_t x; enum biometric_attribute val; } parm1 = { .val = attr };
		union { uintptr_t x; int32_t * val; } parm2 = { .val = val };
		return (int) arch_syscall_invoke3(parm0.x, parm1.x, parm2.x, K_SYSCALL_BIOMETRIC_ATTR_GET);
	}
#endif
	compiler_barrier();
	return z_impl_biometric_attr_get(dev, attr, val);
}

#if defined(CONFIG_TRACING_SYSCALL)
#ifndef DISABLE_SYSCALL_TRACING

#define biometric_attr_get(dev, attr, val) ({ 	int syscall__retval; 	sys_port_trace_syscall_enter(K_SYSCALL_BIOMETRIC_ATTR_GET, biometric_attr_get, dev, attr, val); 	syscall__retval = biometric_attr_get(dev, attr, val); 	sys_port_trace_syscall_exit(K_SYSCALL_BIOMETRIC_ATTR_GET, biometric_attr_get, dev, attr, val, syscall__retval); 	syscall__retval; })
#endif
#endif


extern int z_impl_biometric_enroll_start(const struct device * dev, uint16_t template_id);

__pinned_func
static inline int biometric_enroll_start(const struct device * dev, uint16_t template_id)
{
#ifdef CONFIG_USERSPACE
	if (z_syscall_trap()) {
		union { uintptr_t x; const struct device * val; } parm0 = { .val = dev };
		union { uintptr_t x; uint16_t val; } parm1 = { .val = template_id };
		return (int) arch_syscall_invoke2(parm0.x, parm1.x, K_SYSCALL_BIOMETRIC_ENROLL_START);
	}
#endif
	compiler_barrier();
	return z_impl_biometric_enroll_start(dev, template_id);
}

#if defined(CONFIG_TRACING_SYSCALL)
#ifndef DISABLE_SYSCALL_TRACING

#define biometric_enroll_start(dev, template_id) ({ 	int syscall__retval; 	sys_port_trace_syscall_enter(K_SYSCALL_BIOMETRIC_ENROLL_START, biometric_enroll_start, dev, template_id); 	syscall__retval = biometric_enroll_start(dev, template_id); 	sys_port_trace_syscall_exit(K_SYSCALL_BIOMETRIC_ENROLL_START, biometric_enroll_start, dev, template_id, syscall__retval); 	syscall__retval; })
#endif
#endif


extern int z_impl_biometric_enroll_capture(const struct device * dev, k_timeout_t timeout, struct biometric_capture_result * result);

__pinned_func
static inline int biometric_enroll_capture(const struct device * dev, k_timeout_t timeout, struct biometric_capture_result * result)
{
#ifdef CONFIG_USERSPACE
	if (z_syscall_trap()) {
		union { uintptr_t x; const struct device * val; } parm0 = { .val = dev };
		union { struct { uintptr_t lo, hi; } split; k_timeout_t val; } parm1 = { .val = timeout };
		union { uintptr_t x; struct biometric_capture_result * val; } parm2 = { .val = result };
		return (int) arch_syscall_invoke4(parm0.x, parm1.split.lo, parm1.split.hi, parm2.x, K_SYSCALL_BIOMETRIC_ENROLL_CAPTURE);
	}
#endif
	compiler_barrier();
	return z_impl_biometric_enroll_capture(dev, timeout, result);
}

#if defined(CONFIG_TRACING_SYSCALL)
#ifndef DISABLE_SYSCALL_TRACING

#define biometric_enroll_capture(dev, timeout, result) ({ 	int syscall__retval; 	sys_port_trace_syscall_enter(K_SYSCALL_BIOMETRIC_ENROLL_CAPTURE, biometric_enroll_capture, dev, timeout, result); 	syscall__retval = biometric_enroll_capture(dev, timeout, result); 	sys_port_trace_syscall_exit(K_SYSCALL_BIOMETRIC_ENROLL_CAPTURE, biometric_enroll_capture, dev, timeout, result, syscall__retval); 	syscall__retval; })
#endif
#endif


extern int z_impl_biometric_enroll_finalize(const struct device * dev);

__pinned_func
static inline int biometric_enroll_finalize(const struct device * dev)
{
#ifdef CONFIG_USERSPACE
	if (z_syscall_trap()) {
		union { uintptr_t x; const struct device * val; } parm0 = { .val = dev };
		return (int) arch_syscall_invoke1(parm0.x, K_SYSCALL_BIOMETRIC_ENROLL_FINALIZE);
	}
#endif
	compiler_barrier();
	return z_impl_biometric_enroll_finalize(dev);
}

#if defined(CONFIG_TRACING_SYSCALL)
#ifndef DISABLE_SYSCALL_TRACING

#define biometric_enroll_finalize(dev) ({ 	int syscall__retval; 	sys_port_trace_syscall_enter(K_SYSCALL_BIOMETRIC_ENROLL_FINALIZE, biometric_enroll_finalize, dev); 	syscall__retval = biometric_enroll_finalize(dev); 	sys_port_trace_syscall_exit(K_SYSCALL_BIOMETRIC_ENROLL_FINALIZE, biometric_enroll_finalize, dev, syscall__retval); 	syscall__retval; })
#endif
#endif


extern int z_impl_biometric_enroll_abort(const struct device * dev);

__pinned_func
static inline int biometric_enroll_abort(const struct device * dev)
{
#ifdef CONFIG_USERSPACE
	if (z_syscall_trap()) {
		union { uintptr_t x; const struct device * val; } parm0 = { .val = dev };
		return (int) arch_syscall_invoke1(parm0.x, K_SYSCALL_BIOMETRIC_ENROLL_ABORT);
	}
#endif
	compiler_barrier();
	return z_impl_biometric_enroll_abort(dev);
}

#if defined(CONFIG_TRACING_SYSCALL)
#ifndef DISABLE_SYSCALL_TRACING

#define biometric_enroll_abort(dev) ({ 	int syscall__retval; 	sys_port_trace_syscall_enter(K_SYSCALL_BIOMETRIC_ENROLL_ABORT, biometric_enroll_abort, dev); 	syscall__retval = biometric_enroll_abort(dev); 	sys_port_trace_syscall_exit(K_SYSCALL_BIOMETRIC_ENROLL_ABORT, biometric_enroll_abort, dev, syscall__retval); 	syscall__retval; })
#endif
#endif


extern int z_impl_biometric_template_store(const struct device * dev, uint16_t id, const uint8_t * data, size_t size);

__pinned_func
static inline int biometric_template_store(const struct device * dev, uint16_t id, const uint8_t * data, size_t size)
{
#ifdef CONFIG_USERSPACE
	if (z_syscall_trap()) {
		union { uintptr_t x; const struct device * val; } parm0 = { .val = dev };
		union { uintptr_t x; uint16_t val; } parm1 = { .val = id };
		union { uintptr_t x; const uint8_t * val; } parm2 = { .val = data };
		union { uintptr_t x; size_t val; } parm3 = { .val = size };
		return (int) arch_syscall_invoke4(parm0.x, parm1.x, parm2.x, parm3.x, K_SYSCALL_BIOMETRIC_TEMPLATE_STORE);
	}
#endif
	compiler_barrier();
	return z_impl_biometric_template_store(dev, id, data, size);
}

#if defined(CONFIG_TRACING_SYSCALL)
#ifndef DISABLE_SYSCALL_TRACING

#define biometric_template_store(dev, id, data, size) ({ 	int syscall__retval; 	sys_port_trace_syscall_enter(K_SYSCALL_BIOMETRIC_TEMPLATE_STORE, biometric_template_store, dev, id, data, size); 	syscall__retval = biometric_template_store(dev, id, data, size); 	sys_port_trace_syscall_exit(K_SYSCALL_BIOMETRIC_TEMPLATE_STORE, biometric_template_store, dev, id, data, size, syscall__retval); 	syscall__retval; })
#endif
#endif


extern int z_impl_biometric_template_read(const struct device * dev, uint16_t id, uint8_t * data, size_t size);

__pinned_func
static inline int biometric_template_read(const struct device * dev, uint16_t id, uint8_t * data, size_t size)
{
#ifdef CONFIG_USERSPACE
	if (z_syscall_trap()) {
		union { uintptr_t x; const struct device * val; } parm0 = { .val = dev };
		union { uintptr_t x; uint16_t val; } parm1 = { .val = id };
		union { uintptr_t x; uint8_t * val; } parm2 = { .val = data };
		union { uintptr_t x; size_t val; } parm3 = { .val = size };
		return (int) arch_syscall_invoke4(parm0.x, parm1.x, parm2.x, parm3.x, K_SYSCALL_BIOMETRIC_TEMPLATE_READ);
	}
#endif
	compiler_barrier();
	return z_impl_biometric_template_read(dev, id, data, size);
}

#if defined(CONFIG_TRACING_SYSCALL)
#ifndef DISABLE_SYSCALL_TRACING

#define biometric_template_read(dev, id, data, size) ({ 	int syscall__retval; 	sys_port_trace_syscall_enter(K_SYSCALL_BIOMETRIC_TEMPLATE_READ, biometric_template_read, dev, id, data, size); 	syscall__retval = biometric_template_read(dev, id, data, size); 	sys_port_trace_syscall_exit(K_SYSCALL_BIOMETRIC_TEMPLATE_READ, biometric_template_read, dev, id, data, size, syscall__retval); 	syscall__retval; })
#endif
#endif


extern int z_impl_biometric_template_delete(const struct device * dev, uint16_t id);

__pinned_func
static inline int biometric_template_delete(const struct device * dev, uint16_t id)
{
#ifdef CONFIG_USERSPACE
	if (z_syscall_trap()) {
		union { uintptr_t x; const struct device * val; } parm0 = { .val = dev };
		union { uintptr_t x; uint16_t val; } parm1 = { .val = id };
		return (int) arch_syscall_invoke2(parm0.x, parm1.x, K_SYSCALL_BIOMETRIC_TEMPLATE_DELETE);
	}
#endif
	compiler_barrier();
	return z_impl_biometric_template_delete(dev, id);
}

#if defined(CONFIG_TRACING_SYSCALL)
#ifndef DISABLE_SYSCALL_TRACING

#define biometric_template_delete(dev, id) ({ 	int syscall__retval; 	sys_port_trace_syscall_enter(K_SYSCALL_BIOMETRIC_TEMPLATE_DELETE, biometric_template_delete, dev, id); 	syscall__retval = biometric_template_delete(dev, id); 	sys_port_trace_syscall_exit(K_SYSCALL_BIOMETRIC_TEMPLATE_DELETE, biometric_template_delete, dev, id, syscall__retval); 	syscall__retval; })
#endif
#endif


extern int z_impl_biometric_template_delete_all(const struct device * dev);

__pinned_func
static inline int biometric_template_delete_all(const struct device * dev)
{
#ifdef CONFIG_USERSPACE
	if (z_syscall_trap()) {
		union { uintptr_t x; const struct device * val; } parm0 = { .val = dev };
		return (int) arch_syscall_invoke1(parm0.x, K_SYSCALL_BIOMETRIC_TEMPLATE_DELETE_ALL);
	}
#endif
	compiler_barrier();
	return z_impl_biometric_template_delete_all(dev);
}

#if defined(CONFIG_TRACING_SYSCALL)
#ifndef DISABLE_SYSCALL_TRACING

#define biometric_template_delete_all(dev) ({ 	int syscall__retval; 	sys_port_trace_syscall_enter(K_SYSCALL_BIOMETRIC_TEMPLATE_DELETE_ALL, biometric_template_delete_all, dev); 	syscall__retval = biometric_template_delete_all(dev); 	sys_port_trace_syscall_exit(K_SYSCALL_BIOMETRIC_TEMPLATE_DELETE_ALL, biometric_template_delete_all, dev, syscall__retval); 	syscall__retval; })
#endif
#endif


extern int z_impl_biometric_template_list(const struct device * dev, uint16_t * ids, size_t max_count, size_t * actual_count);

__pinned_func
static inline int biometric_template_list(const struct device * dev, uint16_t * ids, size_t max_count, size_t * actual_count)
{
#ifdef CONFIG_USERSPACE
	if (z_syscall_trap()) {
		union { uintptr_t x; const struct device * val; } parm0 = { .val = dev };
		union { uintptr_t x; uint16_t * val; } parm1 = { .val = ids };
		union { uintptr_t x; size_t val; } parm2 = { .val = max_count };
		union { uintptr_t x; size_t * val; } parm3 = { .val = actual_count };
		return (int) arch_syscall_invoke4(parm0.x, parm1.x, parm2.x, parm3.x, K_SYSCALL_BIOMETRIC_TEMPLATE_LIST);
	}
#endif
	compiler_barrier();
	return z_impl_biometric_template_list(dev, ids, max_count, actual_count);
}

#if defined(CONFIG_TRACING_SYSCALL)
#ifndef DISABLE_SYSCALL_TRACING

#define biometric_template_list(dev, ids, max_count, actual_count) ({ 	int syscall__retval; 	sys_port_trace_syscall_enter(K_SYSCALL_BIOMETRIC_TEMPLATE_LIST, biometric_template_list, dev, ids, max_count, actual_count); 	syscall__retval = biometric_template_list(dev, ids, max_count, actual_count); 	sys_port_trace_syscall_exit(K_SYSCALL_BIOMETRIC_TEMPLATE_LIST, biometric_template_list, dev, ids, max_count, actual_count, syscall__retval); 	syscall__retval; })
#endif
#endif


extern int z_impl_biometric_match(const struct device * dev, enum biometric_match_mode mode, uint16_t template_id, k_timeout_t timeout, struct biometric_match_result * result);

__pinned_func
static inline int biometric_match(const struct device * dev, enum biometric_match_mode mode, uint16_t template_id, k_timeout_t timeout, struct biometric_match_result * result)
{
#ifdef CONFIG_USERSPACE
	if (z_syscall_trap()) {
		union { uintptr_t x; const struct device * val; } parm0 = { .val = dev };
		union { uintptr_t x; enum biometric_match_mode val; } parm1 = { .val = mode };
		union { uintptr_t x; uint16_t val; } parm2 = { .val = template_id };
		union { struct { uintptr_t lo, hi; } split; k_timeout_t val; } parm3 = { .val = timeout };
		union { uintptr_t x; struct biometric_match_result * val; } parm4 = { .val = result };
		return (int) arch_syscall_invoke6(parm0.x, parm1.x, parm2.x, parm3.split.lo, parm3.split.hi, parm4.x, K_SYSCALL_BIOMETRIC_MATCH);
	}
#endif
	compiler_barrier();
	return z_impl_biometric_match(dev, mode, template_id, timeout, result);
}

#if defined(CONFIG_TRACING_SYSCALL)
#ifndef DISABLE_SYSCALL_TRACING

#define biometric_match(dev, mode, template_id, timeout, result) ({ 	int syscall__retval; 	sys_port_trace_syscall_enter(K_SYSCALL_BIOMETRIC_MATCH, biometric_match, dev, mode, template_id, timeout, result); 	syscall__retval = biometric_match(dev, mode, template_id, timeout, result); 	sys_port_trace_syscall_exit(K_SYSCALL_BIOMETRIC_MATCH, biometric_match, dev, mode, template_id, timeout, result, syscall__retval); 	syscall__retval; })
#endif
#endif


extern int z_impl_biometric_led_control(const struct device * dev, enum biometric_led_state state);

__pinned_func
static inline int biometric_led_control(const struct device * dev, enum biometric_led_state state)
{
#ifdef CONFIG_USERSPACE
	if (z_syscall_trap()) {
		union { uintptr_t x; const struct device * val; } parm0 = { .val = dev };
		union { uintptr_t x; enum biometric_led_state val; } parm1 = { .val = state };
		return (int) arch_syscall_invoke2(parm0.x, parm1.x, K_SYSCALL_BIOMETRIC_LED_CONTROL);
	}
#endif
	compiler_barrier();
	return z_impl_biometric_led_control(dev, state);
}

#if defined(CONFIG_TRACING_SYSCALL)
#ifndef DISABLE_SYSCALL_TRACING

#define biometric_led_control(dev, state) ({ 	int syscall__retval; 	sys_port_trace_syscall_enter(K_SYSCALL_BIOMETRIC_LED_CONTROL, biometric_led_control, dev, state); 	syscall__retval = biometric_led_control(dev, state); 	sys_port_trace_syscall_exit(K_SYSCALL_BIOMETRIC_LED_CONTROL, biometric_led_control, dev, state, syscall__retval); 	syscall__retval; })
#endif
#endif


#ifdef __cplusplus
}
#endif

#endif
#endif /* include guard */
