Home
last modified time | relevance | path

Searched full:host (Results 1 – 25 of 492) sorted by relevance

12345678910>>...20

/nrf52832-nimble/rt-thread/components/drivers/sdio/
H A Dmmcsd_core.c46 void mmcsd_host_lock(struct rt_mmcsd_host *host) in mmcsd_host_lock() argument
48 rt_mutex_take(&host->bus_lock, RT_WAITING_FOREVER); in mmcsd_host_lock()
51 void mmcsd_host_unlock(struct rt_mmcsd_host *host) in mmcsd_host_unlock() argument
53 rt_mutex_release(&host->bus_lock); in mmcsd_host_unlock()
56 void mmcsd_req_complete(struct rt_mmcsd_host *host) in mmcsd_req_complete() argument
58 rt_sem_release(&host->sem_ack); in mmcsd_req_complete()
61 void mmcsd_send_request(struct rt_mmcsd_host *host, struct rt_mmcsd_req *req) in mmcsd_send_request() argument
79 host->ops->request(host, req); in mmcsd_send_request()
81 rt_sem_take(&host->sem_ack, RT_WAITING_FOREVER); in mmcsd_send_request()
88 rt_int32_t mmcsd_send_cmd(struct rt_mmcsd_host *host, in mmcsd_send_cmd() argument
[all …]
H A Dsdio.c63 rt_int32_t sdio_io_send_op_cond(struct rt_mmcsd_host *host, in sdio_io_send_op_cond() argument
70 RT_ASSERT(host != RT_NULL); in sdio_io_send_op_cond()
80 err = mmcsd_send_cmd(host, &cmd, 0); in sdio_io_send_op_cond()
89 if (controller_is_spi(host)) in sdio_io_send_op_cond()
112 *cmd5_resp = cmd.resp[controller_is_spi(host) ? 1 : 0]; in sdio_io_send_op_cond()
144 err = mmcsd_send_cmd(card->host, &cmd, 0); in sdio_io_rw_direct()
148 if (!controller_is_spi(card->host)) in sdio_io_rw_direct()
160 if (controller_is_spi(card->host)) in sdio_io_rw_direct()
216 mmcsd_send_request(card->host, &req); in sdio_io_rw_extended()
223 if (!controller_is_spi(card->host)) in sdio_io_rw_extended()
[all …]
H A Dsd.c122 The host should not use TAAC, NSAC, and R2W_FACTOR in mmcsd_parse_csd()
161 /* host should not use this factor and should use 250ms for write timeout */ in mmcsd_parse_csd()
191 struct rt_mmcsd_host *host = card->host; in mmcsd_switch() local
230 mmcsd_send_request(host, &req); in mmcsd_switch()
260 mmcsd_send_request(host, &req); in mmcsd_switch()
288 static rt_err_t mmcsd_app_cmd(struct rt_mmcsd_host *host, in mmcsd_app_cmd() argument
307 err = mmcsd_send_cmd(host, &cmd, 0); in mmcsd_app_cmd()
312 if (!controller_is_spi(host) && !(cmd.resp[0] & R1_APP_CMD)) in mmcsd_app_cmd()
319 rt_err_t mmcsd_send_app_cmd(struct rt_mmcsd_host *host, in mmcsd_send_app_cmd() argument
339 err = mmcsd_app_cmd(host, card); in mmcsd_send_app_cmd()
[all …]
H A Dmmc.c171 mmcsd_send_request(card->host, &req); in mmc_get_ext_csd()
217 struct rt_mmcsd_host *host = card->host; in mmc_switch() local
225 err = mmcsd_send_cmd(host, &cmd, 3); in mmc_switch()
301 struct rt_mmcsd_host *host = card->host; in mmc_select_bus_width() local
316 * Host is capable of 8bit transfer, then switch in mmc_select_bus_width()
320 * bus width on the host. in mmc_select_bus_width()
329 mmcsd_set_bus_width(host, bus_width); in mmc_select_bus_width()
354 rt_err_t mmc_send_op_cond(struct rt_mmcsd_host *host, in mmc_send_op_cond() argument
364 cmd.arg = controller_is_spi(host) ? 0 : ocr; in mmc_send_op_cond()
368 err = mmcsd_send_cmd(host, &cmd, 3); in mmc_send_op_cond()
[all …]
H A Dblock_dev.c60 err = mmcsd_send_cmd(card->host, &cmd, 0); in mmcsd_num_wr_blocks()
63 if (!controller_is_spi(card->host) && !(cmd.resp[0] & R1_APP_CMD)) in mmcsd_num_wr_blocks()
79 (card->host->io_cfg.clock / 1000); in mmcsd_num_wr_blocks()
97 mmcsd_send_request(card->host, &req); in mmcsd_num_wr_blocks()
114 struct rt_mmcsd_host *host = card->host; in rt_mmcsd_req_blk() local
117 mmcsd_host_lock(host); in rt_mmcsd_req_blk()
137 if (!controller_is_spi(card->host) || !dir) in rt_mmcsd_req_blk()
167 mmcsd_send_request(host, &req); in rt_mmcsd_req_blk()
169 if (!controller_is_spi(card->host) && dir != 0) in rt_mmcsd_req_blk()
178 err = mmcsd_send_cmd(card->host, &cmd, 5); in rt_mmcsd_req_blk()
[all …]
/nrf52832-nimble/packages/NimBLE-latest/porting/nimble/
H A DMakefile.defs26 $(NIMBLE_ROOT)/nimble/host/include \
27 $(NIMBLE_ROOT)/nimble/host/services/ans/include \
28 $(NIMBLE_ROOT)/nimble/host/services/bas/include \
29 $(NIMBLE_ROOT)/nimble/host/services/bleuart/include \
30 $(NIMBLE_ROOT)/nimble/host/services/gap/include \
31 $(NIMBLE_ROOT)/nimble/host/services/gatt/include \
32 $(NIMBLE_ROOT)/nimble/host/services/ias/include \
33 $(NIMBLE_ROOT)/nimble/host/services/lls/include \
34 $(NIMBLE_ROOT)/nimble/host/services/tps/include \
35 $(NIMBLE_ROOT)/nimble/host/store/ram/include \
[all …]
H A DMakefile.mesh19 $(NIMBLE_ROOT)/nimble/host/mesh/include \
23 $(NIMBLE_ROOT)/nimble/host/mesh/src/access.c \
24 $(NIMBLE_ROOT)/nimble/host/mesh/src/adv.c \
25 $(NIMBLE_ROOT)/nimble/host/mesh/src/beacon.c \
26 $(NIMBLE_ROOT)/nimble/host/mesh/src/cfg_cli.c \
27 $(NIMBLE_ROOT)/nimble/host/mesh/src/cfg_srv.c \
28 $(NIMBLE_ROOT)/nimble/host/mesh/src/crypto.c \
29 $(NIMBLE_ROOT)/nimble/host/mesh/src/friend.c \
30 $(NIMBLE_ROOT)/nimble/host/mesh/src/glue.c \
31 $(NIMBLE_ROOT)/nimble/host/mesh/src/health_cli.c \
[all …]
H A Dpkg.yml28 - nimble/host
29 - nimble/host/services/ans
30 - nimble/host/services/bas
31 - nimble/host/services/gap
32 - nimble/host/services/gatt
33 - nimble/host/services/ias
34 - nimble/host/services/lls
35 - nimble/host/services/tps
/nrf52832-nimble/packages/NimBLE-latest/
H A DSConscript10 cwd + '/nimble/host/include',
11 cwd + '/nimble/host/src',
12 cwd + '/nimble/host/services/ans/include',
13 cwd + '/nimble/host/services/bas/include',
14 cwd + '/nimble/host/services/bleuart/include',
15 cwd + '/nimble/host/services/gap/include',
16 cwd + '/nimble/host/services/gatt/include',
17 cwd + '/nimble/host/services/ias/include',
18 cwd + '/nimble/host/services/lls/include',
19 cwd + '/nimble/host/services/tps/include',
[all …]
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/include/host/
H A Dble_hs.h24 * @brief Bluetooth Host
25 * @defgroup bt_host Bluetooth Host
31 #include "host/ble_att.h"
32 #include "host/ble_eddystone.h"
33 #include "host/ble_gap.h"
34 #include "host/ble_gatt.h"
35 #include "host/ble_hs_adv.h"
36 #include "host/ble_hs_id.h"
37 #include "host/ble_hs_hci.h"
38 #include "host/ble_hs_log.h"
[all …]
H A Dble_hs_hci.h24 * @brief Bluetooth Host HCI utils
25 * @defgroup bt_host_hci Bluetooth Host HCI utils
58 * A BLE host HCI return code if the controller
60 * A BLE host core return code on unexpected
83 * A BLE host HCI return code if the controller
85 * A BLE host core return code on unexpected
/nrf52832-nimble/packages/NimBLE-latest/docs/ble_setup/
H A Dble_sync_cb.rst7 The NimBLE stack is inoperable while the host and controller are out of
8 sync. In a combined host-controller app, the sync happens immediately at
9 startup. When the host and controller are separate, sync typically
11 learns when sync is achieved by configuring the host's *sync callback*:
12 ``ble_hs_cfg.sync_cb``. The host calls the sync callback whenever sync
25 Another event indicated by the host is a *controller reset*. The NimBLE
27 communication between the host and controller. Upon resetting, the host
29 reset, the application should refrain from using the host until sync is
32 An application learns of a host reset by configuring the host's *reset
40 The ``reason`` parameter is a :doc:`NimBLE host return
[all …]
/nrf52832-nimble/rt-thread/components/drivers/include/drivers/
H A Dmmcsd_core.h212 void mmcsd_host_lock(struct rt_mmcsd_host *host);
213 void mmcsd_host_unlock(struct rt_mmcsd_host *host);
214 void mmcsd_req_complete(struct rt_mmcsd_host *host);
215 void mmcsd_send_request(struct rt_mmcsd_host *host, struct rt_mmcsd_req *req);
216 rt_int32_t mmcsd_send_cmd(struct rt_mmcsd_host *host, struct rt_mmcsd_cmd *cmd, int retries);
217 rt_int32_t mmcsd_go_idle(struct rt_mmcsd_host *host);
218 rt_int32_t mmcsd_spi_read_ocr(struct rt_mmcsd_host *host, rt_int32_t high_capacity, rt_uint32_t *oc…
219 rt_int32_t mmcsd_all_get_cid(struct rt_mmcsd_host *host, rt_uint32_t *cid);
220 rt_int32_t mmcsd_get_cid(struct rt_mmcsd_host *host, rt_uint32_t *cid);
223 rt_int32_t mmcsd_deselect_cards(struct rt_mmcsd_card *host);
[all …]
/nrf52832-nimble/packages/NimBLE-latest/apps/bleuart/src/
H A Dbleuart.c27 #include "host/ble_hs.h"
28 #include "host/ble_hs_adv.h"
29 #include "host/ble_uuid.h"
30 #include "host/ble_att.h"
31 #include "host/ble_gap.h"
32 #include "host/ble_gatt.h"
33 #include "host/ble_l2cap.h"
34 #include "host/ble_sm.h"
117 * The nimble host executes this callback when a GAP event occurs. The
174 /* Return BLE_GAP_REPEAT_PAIRING_RETRY to indicate that the host should in bleuart_gap_event()
[all …]
/nrf52832-nimble/
H A Dproject.uvprojx338host\include;packages\NimBLE-latest\nimble\host\src;packages\NimBLE-latest\nimble\host\services\an…
693 <FilePath>packages\NimBLE-latest\nimble\host\src\ble_att.c</FilePath>
698 <FilePath>packages\NimBLE-latest\nimble\host\src\ble_att_clt.c</FilePath>
703 <FilePath>packages\NimBLE-latest\nimble\host\src\ble_att_cmd.c</FilePath>
708 <FilePath>packages\NimBLE-latest\nimble\host\src\ble_att_svr.c</FilePath>
713 <FilePath>packages\NimBLE-latest\nimble\host\src\ble_eddystone.c</FilePath>
718 <FilePath>packages\NimBLE-latest\nimble\host\src\ble_gap.c</FilePath>
723 <FilePath>packages\NimBLE-latest\nimble\host\src\ble_gattc.c</FilePath>
728 <FilePath>packages\NimBLE-latest\nimble\host\src\ble_gatts.c</FilePath>
733 <FilePath>packages\NimBLE-latest\nimble\host\src\ble_gatts_lcl.c</FilePath>
[all …]
/nrf52832-nimble/packages/NimBLE-latest/porting/npl/dummy/src/
H A Dhci_dummy.c60 /* Host interface */
66 /* Called by NimBLE host to reset HCI transport state (i.e. on host reset) */
73 /* Called by NimBLE host to setup callbacks from HCI transport */
85 * Called by NimBLE host to allocate buffer for HCI Command packet.
117 * Called by NimBLE host to free buffer allocated for HCI Event packet.
138 /* Called by NimBLE host to send HCI Command packet over HCI transport */
155 /* Called by NimBLE host to send HCI ACL Data packet over HCI transport */
173 /* Called by application to send HCI ACL Data packet to host */
188 /* Called by application to send HCI Event packet to host */
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/core/
H A Ddef.c58 * Convert an u16_t from host- to network byte order.
60 * @param n u16_t in host byte order
70 * Convert an u16_t from network- to host byte order.
73 * @return n in host byte order
82 * Convert an u32_t from host- to network byte order.
84 * @param n u32_t in host byte order
97 * Convert an u32_t from network- to host byte order.
100 * @return n in host byte order
/nrf52832-nimble/rt-thread/examples/network/
H A Dudpclient.c28 struct hostent *host; in udpclient() local
32 host = (struct hostent *) gethostbyname(url); in udpclient()
33 if (host == RT_NULL) in udpclient()
35 LOG_E("Get host by name failed!"); in udpclient()
49 server_addr.sin_addr = *((struct in_addr *)host->h_addr); in udpclient()
86 rt_kprintf("Usage: udpclient -h <host> -p <port> [--cnt] [count]\n"); in usage()
91 rt_kprintf(" -h Specify host address\n"); in usage()
92 rt_kprintf(" -p Specify the host port number\n"); in usage()
H A Dtcpclient.c39 struct hostent *host = RT_NULL; in tcpclient() local
46 host = gethostbyname(url); in tcpclient()
47 if (host == RT_NULL) in tcpclient()
49 LOG_E("Get host by name failed!"); in tcpclient()
72 server_addr.sin_addr = *((struct in_addr *)host->h_addr); in tcpclient()
163 rt_kprintf("Usage: tcpclient -h <host> -p <port>\n"); in usage()
168 rt_kprintf(" -h Specify host address\n"); in usage()
169 rt_kprintf(" -p Specify the host port number\n"); in usage()
/nrf52832-nimble/packages/NimBLE-latest/apps/bleprph/
H A Dpkg.yml38 - nimble/host
39 - nimble/host/services/ans
40 - nimble/host/services/gap
41 - nimble/host/services/gatt
42 - nimble/host/store/config
43 - nimble/host/util
/nrf52832-nimble/packages/NimBLE-latest/docs/ble_hs/
H A Dble_hs.rst1 NimBLE Host
9 - Host
12 This document is an API reference for the host component. If you are
13 interested in the general structure of the NimBLE stack and its non-host
16 The host sits directly below the application, and it serves as the
/nrf52832-nimble/packages/NimBLE-latest/apps/btshell/
H A Dpkg.yml32 - nimble/host
33 - nimble/host/services/gap
34 - nimble/host/services/gatt
35 - nimble/host/store/ram
39 - nimble/host/services/ans
/nrf52832-nimble/packages/NimBLE-latest/apps/blecent/
H A Dpkg.yml32 - nimble/host
33 - nimble/host/util
34 - nimble/host/services/gap
35 - nimble/host/services/gatt
36 - nimble/host/store/ram
/nrf52832-nimble/packages/NimBLE-latest/docs/
H A Dble_sec.rst49 *Host* on each LE device independent of any other LE device.
62 the *Host*.
64 by the *Controller* without involving the Host after the Host
65 provides the Controller device identity information. The Host may
72 **Note**: When address resolution is performed exclusively in the Host,
/nrf52832-nimble/packages/NimBLE-latest/nimble/include/nimble/
H A Dble_hci_trans.h36 * Controller-to-host event buffers. Events have one of two priorities:
62 /* Host-to-controller command. */
70 * Sends an HCI event from the controller to the host.
81 * Sends ACL data from controller to host.
91 * Sends an HCI command from the host to the controller.
102 * Sends ACL data from host to controller.
145 * will execute specified callbacks upon receiving HCI packets from the host.
162 * Configures the HCI transport to operate with a host. The transport will

12345678910>>...20