Lines Matching +full:int +full:- +full:enum

4  * SPDX-License-Identifier: Apache-2.0
24 enum eswifi_security_type {
33 enum eswifi_request {
40 enum eswifi_role {
47 enum eswifi_security_type security;
51 int rssi;
69 enum eswifi_request req;
70 enum eswifi_role role;
75 unsigned int mutex_depth;
81 int (*init)(struct eswifi_dev *eswifi);
82 int (*request)(struct eswifi_dev *eswifi, char *cmd, size_t clen,
86 static inline int eswifi_request(struct eswifi_dev *eswifi, char *cmd, in eswifi_request()
89 return eswifi->bus->request(eswifi, cmd, clen, rsp, rlen); in eswifi_request()
95 if (atomic_get(&eswifi->mutex_owner) != (atomic_t)(uintptr_t)arch_current_thread()) { in eswifi_lock()
96 k_mutex_lock(&eswifi->mutex, K_FOREVER); in eswifi_lock()
97 atomic_set(&eswifi->mutex_owner, (atomic_t)(uintptr_t)arch_current_thread()); in eswifi_lock()
98 eswifi->mutex_depth = 1; in eswifi_lock()
100 eswifi->mutex_depth++; in eswifi_lock()
106 if (!--eswifi->mutex_depth) { in eswifi_unlock()
107 atomic_set(&eswifi->mutex_owner, -1); in eswifi_unlock()
108 k_mutex_unlock(&eswifi->mutex); in eswifi_unlock()
112 int eswifi_at_cmd(struct eswifi_dev *eswifi, char *cmd);
113 static inline int __select_socket(struct eswifi_dev *eswifi, uint8_t idx) in __select_socket()
115 snprintk(eswifi->buf, sizeof(eswifi->buf), "P0=%d\r", idx); in __select_socket()
116 return eswifi_at_cmd(eswifi, eswifi->buf); in __select_socket()
122 return CONTAINER_OF(socket - socket->index, struct eswifi_dev, socket[0]); in eswifi_socket_to_dev()
126 int eswifi_offload_init(struct eswifi_dev *eswifi);
128 int eswifi_at_cmd_rsp(struct eswifi_dev *eswifi, char *cmd, char **rsp);
131 int eswifi_socket_create(int family, int type, int proto);
133 int eswifi_socket_type_from_zephyr(int proto, enum eswifi_transport_type *type);
135 int __eswifi_socket_free(struct eswifi_dev *eswifi,
137 int __eswifi_socket_new(struct eswifi_dev *eswifi, int family, int type,
138 int proto, void *context);
139 int __eswifi_off_start_client(struct eswifi_dev *eswifi,
141 int __eswifi_listen(struct eswifi_dev *eswifi, struct eswifi_off_socket *socket, int backlog);
142 int __eswifi_accept(struct eswifi_dev *eswifi, struct eswifi_off_socket *socket);
143 int __eswifi_bind(struct eswifi_dev *eswifi, struct eswifi_off_socket *socket,
146 int eswifi_socket_offload_init(struct eswifi_dev *leswifi);