Lines Matching full:context
23 static int eswifi_off_bind(struct net_context *context, in eswifi_off_bind() argument
27 struct eswifi_off_socket *socket = context->offload_context; in eswifi_off_bind()
28 struct eswifi_dev *eswifi = eswifi_by_iface_idx(context->iface); in eswifi_off_bind()
39 static int eswifi_off_listen(struct net_context *context, int backlog) in eswifi_off_listen() argument
41 struct eswifi_off_socket *socket = context->offload_context; in eswifi_off_listen()
42 struct eswifi_dev *eswifi = eswifi_by_iface_idx(context->iface); in eswifi_off_listen()
70 struct net_context *context; in eswifi_off_connect_work() local
81 context = socket->context; in eswifi_off_connect_work()
87 net_context_set_state(socket->context, NET_CONTEXT_CONNECTED); in eswifi_off_connect_work()
95 cb(context, err, user_data); in eswifi_off_connect_work()
99 static int eswifi_off_connect(struct net_context *context, in eswifi_off_connect() argument
106 struct eswifi_off_socket *socket = context->offload_context; in eswifi_off_connect()
107 struct eswifi_dev *eswifi = eswifi_by_iface_idx(context->iface); in eswifi_off_connect()
146 cb(context, err, user_data); in eswifi_off_connect()
152 static int eswifi_off_accept(struct net_context *context, in eswifi_off_accept() argument
156 struct eswifi_off_socket *socket = context->offload_context; in eswifi_off_accept()
157 struct eswifi_dev *eswifi = eswifi_by_iface_idx(context->iface); in eswifi_off_accept()
225 struct net_context *context; in eswifi_off_send_work() local
237 context = socket->context; in eswifi_off_send_work()
245 cb(context, err, user_data); in eswifi_off_send_work()
254 struct eswifi_off_socket *socket = pkt->context->offload_context; in eswifi_off_send()
255 struct eswifi_dev *eswifi = eswifi_by_iface_idx(socket->context->iface); in eswifi_off_send()
290 cb(socket->context, err, user_data); in eswifi_off_send()
303 struct eswifi_off_socket *socket = pkt->context->offload_context; in eswifi_off_sendto()
304 struct eswifi_dev *eswifi = eswifi_by_iface_idx(socket->context->iface); in eswifi_off_sendto()
346 cb(socket->context, err, user_data); in eswifi_off_sendto()
352 static int eswifi_off_recv(struct net_context *context, in eswifi_off_recv() argument
357 struct eswifi_off_socket *socket = context->offload_context; in eswifi_off_recv()
358 struct eswifi_dev *eswifi = eswifi_by_iface_idx(context->iface); in eswifi_off_recv()
384 static int eswifi_off_put(struct net_context *context) in eswifi_off_put() argument
386 struct eswifi_off_socket *socket = context->offload_context; in eswifi_off_put()
387 struct eswifi_dev *eswifi = eswifi_by_iface_idx(context->iface); in eswifi_off_put()
400 socket->context = NULL; in eswifi_off_put()
410 struct net_context **context) in eswifi_off_get() argument
412 struct eswifi_dev *eswifi = eswifi_by_iface_idx((*context)->iface); in eswifi_off_get()
420 idx = __eswifi_socket_new(eswifi, family, type, ip_proto, *context); in eswifi_off_get()
426 (*context)->offload_context = socket; in eswifi_off_get()
475 if (s->context && s->port == port && in eswifi_offload_async_msg()
497 socket->context->flags |= NET_CONTEXT_REMOTE_ADDR_SET; in eswifi_offload_async_msg()
498 memcpy(&socket->context->remote, &socket->peer_addr, in eswifi_offload_async_msg()
505 socket->accept_cb(socket->context, in eswifi_offload_async_msg()