Home
last modified time | relevance | path

Searched refs:chan (Results 1 – 25 of 35) sorted by relevance

12

/AliOS-Things-master/components/ble_host/bt_host/host/
A Dl2cap.c273 chan->destroy(chan); in bt_l2cap_chan_del()
397 chan->ops->status(chan, chan->status); in bt_l2cap_connected()
870 chan->chan.ops->status(&chan->chan, chan->chan.status); in l2cap_chan_tx_give_credits()
1445 chan->chan.ops->connected(&chan->chan); in le_ecred_conn_rsp()
1514 chan->chan.ops->connected(&chan->chan); in le_conn_rsp()
1973 chan->ops->status(chan, chan->status); in l2cap_chan_shutdown()
2062 frag = chan->chan.ops->alloc_buf(&chan->chan); in l2cap_alloc_frag()
2080 err = chan->chan.ops->recv(&chan->chan, buf); in l2cap_chan_le_recv_sdu()
2175 chan->_sdu = chan->chan.ops->alloc_buf(&chan->chan); in l2cap_chan_le_recv()
2186 err = chan->chan.ops->recv(&chan->chan, buf); in l2cap_chan_le_recv()
[all …]
A Dl2cap_br.c187 switch (chan->chan.state) { in l2cap_br_rtx_timeout()
289 if (chan->chan.ops && chan->chan.ops->connected) { in connect_fixed_channel()
290 chan->chan.ops->connected(&chan->chan); in connect_fixed_channel()
300 chan = bt_l2cap_br_lookup_rx_cid(l2cap->chan.chan.conn, in connect_optional_fixed_channels()
820 chan->ops->connected(chan); in l2cap_br_conf_rsp()
1033 chan->ops->connected(chan); in l2cap_br_conf_req()
1103 bt_l2cap_chan_del(&chan->chan); in l2cap_br_disconn_req()
1509 chan->ops->recv(chan, buf); in bt_l2cap_br_recv()
1527 if (l2cap->chan.chan.conn) { in l2cap_br_accept()
1531 l2cap->chan.chan.ops = &ops; in l2cap_br_accept()
[all …]
A Datt.c187 !atomic_test_bit(chan->chan.chan.status, in chan_send()
207 att_sent, &chan->chan.chan); in chan_send()
219 chan->sent(chan); in bt_att_sent()
420 chan->chan.tx.mtu = chan->chan.rx.mtu; in att_mtu_req()
567 chan->chan.tx.mtu = chan->chan.rx.mtu; in att_mtu_rsp()
670 data.chan = chan; in att_find_info_rsp()
825 data.chan = chan; in att_find_type_rsp()
2683 chan->chan.chan.ops = &ops; in att_chan_new()
2718 *ch = &chan->chan.chan; in bt_att_accept()
2743 chan[i] = &att_chan->chan.chan; in bt_eatt_connect()
[all …]
A Davdtp.c67 result = bt_l2cap_chan_send(&session->br_chan.chan, buf); in avdtp_send()
121 if (!chan) { in bt_avdtp_l2cap_connected()
126 session = AVDTP_CHAN(chan); in bt_avdtp_l2cap_connected()
127 BT_DBG("chan %p session %p", chan, session); in bt_avdtp_l2cap_connected()
135 struct bt_avdtp *session = AVDTP_CHAN(chan); in bt_avdtp_l2cap_disconnected()
137 BT_DBG("chan %p session %p", chan, session); in bt_avdtp_l2cap_disconnected()
138 session->br_chan.chan.conn = NULL; in bt_avdtp_l2cap_disconnected()
150 struct bt_avdtp *session = AVDTP_CHAN(chan); in bt_avdtp_l2cap_recv()
206 session->br_chan.chan.ops = &ops; in bt_avdtp_connect()
240 session->br_chan.chan.ops = &ops; in bt_avdtp_l2cap_accept()
[all …]
A Dsmp.c1674 if (smp->chan.chan.conn) { in bt_smp_br_accept()
1678 smp->chan.chan.ops = &ops; in bt_smp_br_accept()
1680 *chan = &smp->chan.chan; in bt_smp_br_accept()
1844 if (smp->chan.chan.conn->le.keys && in smp_pairing_complete()
1848 smp->chan.chan.conn->le.keys = NULL; in smp_pairing_complete()
3305 &smp->chan.chan.conn->le.init_addr, in compute_and_send_master_dhcheck()
3312 &smp->chan.chan.conn->le.init_addr, in compute_and_send_master_dhcheck()
3349 &smp->chan.chan.conn->le.init_addr, in compute_and_check_and_send_slave_dhcheck()
5520 if (smp->chan.chan.conn) { in bt_smp_accept()
5524 smp->chan.chan.ops = &ops; in bt_smp_accept()
[all …]
A Dsmp_null.c47 static int bt_smp_recv(struct bt_l2cap_chan *chan, struct net_buf *buf) in bt_smp_recv() argument
49 struct bt_conn *conn = chan->conn; in bt_smp_recv()
73 static int bt_smp_accept(struct bt_conn *conn, struct bt_l2cap_chan **chan) in bt_smp_accept() argument
85 if (smp->chan.conn) { in bt_smp_accept()
89 smp->chan.ops = &ops; in bt_smp_accept()
91 *chan = &smp->chan; in bt_smp_accept()
A Dsdp.c30 #define SDP_CHAN(_ch) CONTAINER_OF(_ch, struct bt_sdp, chan.chan)
1404 if (sdp->chan.chan.conn) { in bt_sdp_accept()
1408 sdp->chan.chan.ops = &ops; in bt_sdp_accept()
1411 *chan = &sdp->chan.chan; in bt_sdp_accept()
1566 struct bt_l2cap_chan *chan = &session->chan.chan; in sdp_client_params_iterator() local
1668 struct bt_conn *conn = session->chan.chan.conn; in sdp_client_notify_result()
1847 &session->chan.chan, SDP_PSM); in sdp_client_chan_connect()
1871 session->rec_buf = chan->ops->alloc_buf(chan); in sdp_client_connected()
1907 if (session->chan.chan.conn) { in sdp_client_new_session()
1913 session->chan.chan.ops = &sdp_client_chan_ops; in sdp_client_new_session()
[all …]
A Dl2cap_internal.h239 int (*accept)(struct bt_conn *conn, struct bt_l2cap_chan **chan);
245 void bt_l2cap_le_fixed_chan_register(struct bt_l2cap_fixed_chan *chan);
257 int (*accept)(struct bt_conn *conn, struct bt_l2cap_chan **chan);
274 void bt_l2cap_chan_add(struct bt_conn *conn, struct bt_l2cap_chan *chan,
278 void bt_l2cap_chan_remove(struct bt_conn *conn, struct bt_l2cap_chan *chan);
281 void bt_l2cap_chan_del(struct bt_l2cap_chan *chan);
286 void bt_l2cap_chan_set_state_debug(struct bt_l2cap_chan *chan,
292 void bt_l2cap_chan_set_state(struct bt_l2cap_chan *chan,
352 void bt_l2cap_br_fixed_chan_register(struct bt_l2cap_fixed_chan *chan);
362 int bt_l2cap_br_chan_disconnect(struct bt_l2cap_chan *chan);
[all …]
A Drfcomm.c63 struct bt_rfcomm_session, br_chan.chan)
197 if (session->br_chan.chan.conn == conn) { in rfcomm_sessions_lookup_bt_conn()
337 return bt_l2cap_chan_send(&session->br_chan.chan, buf); in rfcomm_send_sabm()
358 return bt_l2cap_chan_send(&session->br_chan.chan, buf); in rfcomm_send_disc()
1516 struct bt_conn *conn = chan->conn; in rfcomm_encrypt_change()
1578 if (session->br_chan.chan.conn) { in rfcomm_session_new()
1584 session->br_chan.chan.ops = &ops; in rfcomm_session_new()
1603 struct bt_l2cap_chan *chan; in bt_rfcomm_dlc_connect() local
1647 chan = &session->br_chan.chan; in bt_rfcomm_dlc_connect()
1648 chan->required_sec_level = dlc->required_sec_level; in bt_rfcomm_dlc_connect()
[all …]
A Dhfp_hf.c227 struct bt_conn *conn = hf->rfcomm_dlc.session->br_chan.chan.conn; in ag_indicator_handle_values()
351 struct bt_conn *conn = hf->rfcomm_dlc.session->br_chan.chan.conn; in ring_handle()
405 struct bt_conn *conn = hf->rfcomm_dlc.session->br_chan.chan.conn; in cmd_complete()
448 struct bt_conn *conn = hf->rfcomm_dlc.session->br_chan.chan.conn; in slc_completed()
561 if (hf->rfcomm_dlc.session->br_chan.chan.conn == conn) { in bt_hfp_hf_lookup_bt_conn()
622 struct bt_conn *conn = dlc->session->br_chan.chan.conn; in hfp_hf_disconnected()
683 static struct bt_rfcomm_server chan = { in hfp_hf_init() local
690 bt_rfcomm_server_register(&chan); in hfp_hf_init()
A Da2dp.c61 if (connection[i].session.br_chan.chan.conn == conn) { in get_new_connection()
66 if (!connection[i].session.br_chan.chan.conn && in get_new_connection()
/AliOS-Things-master/components/ble_host/bt_host/include/bluetooth/
A Dl2cap.h131 struct bt_l2cap_chan chan; member
172 struct bt_l2cap_chan chan; member
190 void (*connected)(struct bt_l2cap_chan *chan);
200 void (*disconnected)(struct bt_l2cap_chan *chan);
228 struct net_buf *(*alloc_buf)(struct bt_l2cap_chan *chan);
243 int (*recv)(struct bt_l2cap_chan *chan, struct net_buf *buf);
252 void (*sent)(struct bt_l2cap_chan *chan);
262 void (*status)(struct bt_l2cap_chan *chan, atomic_t *status);
269 void (*released)(struct bt_l2cap_chan *chan);
395 int bt_l2cap_chan_disconnect(struct bt_l2cap_chan *chan);
[all …]
/AliOS-Things-master/hardware/chip/haas1000/drivers/platform/hal/
A Dhal_i2sip.h70 i2sip_write32(1, reg_base, I2SIP_RX_ENABLE_REG_OFFSET(chan)); in i2sip_w_enable_rx_channel()
72 i2sip_write32(0, reg_base, I2SIP_RX_ENABLE_REG_OFFSET(chan)); in i2sip_w_enable_rx_channel()
84 i2sip_write32(1, reg_base, I2SIP_TX_ENABLE_REG_OFFSET(chan)); in i2sip_w_enable_tx_channel()
86 i2sip_write32(0, reg_base, I2SIP_TX_ENABLE_REG_OFFSET(chan)); in i2sip_w_enable_tx_channel()
100 static inline void i2sip_w_tx_left_fifo(uint32_t reg_base, uint32_t chan, uint32_t v) in i2sip_w_tx_left_fifo() argument
102 i2sip_write32(v, reg_base, I2SIP_LEFT_TX_BUFF_REG_OFFSET(chan)); in i2sip_w_tx_left_fifo()
106 i2sip_write32(v, reg_base, I2SIP_RIGHT_TX_BUFF_REG_OFFSET(chan)); in i2sip_w_tx_right_fifo()
116 static inline void i2sip_w_tx_fifo_reset(uint32_t reg_base, uint32_t chan) in i2sip_w_tx_fifo_reset() argument
120 static inline void i2sip_w_rx_fifo_reset(uint32_t reg_base, uint32_t chan) in i2sip_w_rx_fifo_reset() argument
124 static inline uint32_t i2sip_r_int_status(uint32_t reg_base, uint32_t chan) in i2sip_r_int_status() argument
[all …]
A Dhal_usbhost.h84 typedef void (*HAL_USBHOST_XFER_COMPL_HANDLER)(uint8_t chan, uint8_t *buf, uint32_t len, enum HAL_U…
132 void hal_usbhost_halt_chan(uint8_t chan);
136 int hal_usbhost_get_chan(uint8_t *chan);
138 int hal_usbhost_free_chan(uint8_t chan);
140 int hal_usbhost_init_chan(uint8_t chan, const struct HAL_USBHOST_CHAN_TYPE_T *type);
142 int hal_usbhost_update_chan_dev_addr(uint8_t chan, uint8_t dev_addr);
144 int hal_usbhost_update_chan_mps(uint8_t chan, uint16_t mps);
146 int hal_usbhost_start_xfer(uint8_t chan, const struct HAL_USBHOST_XFER_T *xfer);
A Dhal_xdma.h106 typedef void (*HAL_XDMA_IRQ_HANDLER_T)(uint8_t chan, uint32_t remain_tsize, uint32_t error, struct …
107 typedef void (*HAL_XDMA_START_CALLBACK_T)(uint8_t chan);
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/
A Dfilterbank_util.c112 int chan; in FilterbankPopulateState() local
113 for (chan = 0; chan < num_channels_plus_1; ++chan) { in FilterbankPopulateState()
122 actual_channel_widths[chan] = width; in FilterbankPopulateState()
131 state->channel_frequency_starts[chan] = 0; in FilterbankPopulateState()
132 state->channel_weight_starts[chan] = 0; in FilterbankPopulateState()
137 for (j = 0; j < chan; ++j) { in FilterbankPopulateState()
154 state->channel_widths[chan] = padded_width; in FilterbankPopulateState()
179 for (chan = 0; chan < num_channels_plus_1; ++chan) { in FilterbankPopulateState()
180 int frequency = actual_channel_starts[chan]; in FilterbankPopulateState()
185 const float denom_val = (chan == 0) ? mel_low : center_mel_freqs[chan - 1]; in FilterbankPopulateState()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/hal_ext/
A Dpcm_api.h290 void pcm_start_tx_chan(pcm_t *obj, pcm_ch chan);
298 void pcm_start_rx_chan(pcm_t *obj, pcm_ch chan);
327 void pcm_stop_tx_chan(pcm_t *obj, pcm_ch chan);
335 void pcm_stop_rx_chan(pcm_t *obj, pcm_ch chan);
399 void pcm_set_txpage(pcm_t *obj, pcm_ch chan);
407 void pcm_set_rxpage(pcm_t *obj, pcm_ch chan);
415 u32 pcm_get_buffer_size(pcm_t *obj, pcm_ch chan);
423 u32 pcm_get_tx_page0_adr(pcm_t *obj, pcm_ch chan);
431 u32 pcm_get_tx_page1_adr(pcm_t *obj, pcm_ch chan);
439 u32 pcm_get_rx_page0_adr(pcm_t *obj, pcm_ch chan);
[all …]
/AliOS-Things-master/components/py_engine/engine/extmod/nimble/
A Dmodbluetooth_nimble.c1460 if (!chan || !chan->mem_stalled) { in unstall_l2cap_channel()
1465 mp_bluetooth_on_l2cap_send_ready(chan->chan->conn_handle, chan->chan->scid, 0); in unstall_l2cap_channel()
1476 chan->chan = event->connect.chan; in l2cap_channel_event()
1496 chan->chan = event->accept.chan; in l2cap_channel_event()
1504 return ble_l2cap_recv_ready(chan->chan, sdu_rx); in l2cap_channel_event()
1539 chan->chan->coc_rx.sdu = sdu_rx; in l2cap_channel_event()
1556 ble_l2cap_recv_ready(chan->chan, sdu_rx); in l2cap_channel_event()
1599 ble_l2cap_get_chan_info(chan->chan, &info); in get_l2cap_channel_for_conn_cid()
1625 chan->chan = NULL; in create_l2cap_channel()
1693 ble_l2cap_get_chan_info(chan->chan, &info); in mp_bluetooth_l2cap_send()
[all …]
/AliOS-Things-master/components/ble_host/bt_shell/bt_host/
A Dll.c27 u8_t chan, len, type, phy; in cmd_test_tx() local
34 chan = strtoul(argv[1], NULL, 16); in cmd_test_tx()
39 err = ll_test_tx(chan, len, type, phy); in cmd_test_tx()
51 u8_t chan, phy, mod_idx; in cmd_test_rx() local
58 chan = strtoul(argv[1], NULL, 16); in cmd_test_rx()
62 err = ll_test_rx(chan, phy, mod_idx); in cmd_test_rx()
A Dbt.c1481 printf("Incoming data channel %p psm %d len %u\n", chan, chan->psm, buf->len); in l2cap_recv()
1490 printf("Channel %p psm %d connected\n", chan, chan->psm); in l2cap_connected()
1495 printf("Channel %p psm %d disconnected\n", chan, chan->psm); in l2cap_disconnected()
1501 if (chan->ops->recv != l2cap_recv_metrics) { in l2cap_alloc_buf()
1526 if (l2cap_chan[i].chan.conn == NULL) { in l2cap_accept()
1536 l2cap_chan[i].chan.ops = &l2cap_ops; in l2cap_accept()
1539 *chan = &l2cap_chan[i].chan; in l2cap_accept()
1602 if (l2cap_chan[i].chan.conn == NULL) { in cmd_l2cap_connect()
1612 l2cap_chan[i].chan.ops = &l2cap_ops; in cmd_l2cap_connect()
1637 if (l2cap_chan[i].chan.psm == psm) { in cmd_l2cap_disconnect()
[all …]
/AliOS-Things-master/hardware/chip/haas1000/hal/
A Dpwm.c22 uint8 chan; member
74 _cfg->chan = __hal_pwm_port2chan(pwm->port); in hal_pwm_init()
94 if (hal_pwm_enable(_cfg->chan, &_cfg->pwm_cfg) == 0) { in hal_pwm_start()
113 if (hal_pwm_disable(_cfg->chan) == 0) { in hal_pwm_stop()
136 hal_pwm_enable(_cfg->chan, &_cfg->pwm_cfg); in hal_pwm_para_chg()
/AliOS-Things-master/components/drivers/external_device/pca9544/src/
A Dpca9544.c71 int pca9544_set_chan(PCA9544_CH_E chan) in pca9544_set_chan() argument
78 if ((chan < PCA9544_CHO) || (chan > PCA9544_CH3)) { in pca9544_set_chan()
82 g_pca9544_dev_cfg.pca9544_ch = chan; in pca9544_set_chan()
102 PCA9544_CH_E chan = g_pca9544_dev_cfg.pca9544_ch; in pca9544_read_chan() local
104 return chan; in pca9544_read_chan()
/AliOS-Things-master/components/ble_host/bt_shell/bt_host/test/
A Dbt.c2507 printf("Incoming data channel %p psm %d len %u\n", chan, chan->psm, buf->len); in l2cap_recv()
2516 printf("Channel %p psm %d connected\n", chan, chan->psm); in l2cap_connected()
2521 printf("Channel %p psm %d disconnected\n", chan, chan->psm); in l2cap_disconnected()
2562 l2cap_chan[i].chan.ops = &l2cap_ops; in l2cap_accept()
2565 *chan = &l2cap_chan[i].chan; in l2cap_accept()
2638 l2cap_chan[i].chan.ops = &l2cap_ops; in cmd_l2cap_connect()
2663 if (l2cap_chan[i].chan.psm == psm) { in cmd_l2cap_disconnect()
2760 printf("Channel %p connected\n", chan); in l2cap_bredr_connected()
2783 .chan.ops = &l2cap_bredr_ops,
2792 if (l2cap_bredr_chan.chan.conn) { in l2cap_bredr_accept()
[all …]
/AliOS-Things-master/components/drivers/external_device/pca9544/
A DREADME.md70 * @param chan: the object channel
73 int pca9544_set_chan(PCA9544_CH_E chan);
87 * @rtn chan: the current selected channel of pca9544
214 =====I2C Muxer PCA9544 test: set chan 2[5] of PCA9544=====
215 =====I2C Muxer PCA9544 test: read chan val of PCA9544 is 5=====
/AliOS-Things-master/components/py_engine/modules/video/
A Dak_usbcam.c197 int chan = m_uvc_dev.vi_chan; in usbcam_video_stream_send() local
201 if (ak_vi_get_frame(chan, &frame) == AK_FAILED) { in usbcam_video_stream_send()
214 ak_vi_release_frame(chan, &frame); in usbcam_video_stream_send()
224 ak_vi_release_frame(chan, &frame); in usbcam_video_stream_send()

Completed in 78 milliseconds

12