Lines Matching refs:le
200 if (conn->type == BT_CONN_TYPE_BR || !bt_dev.le.acl_mtu) { in bt_conn_get_pkts()
210 if (bt_dev.le.iso_mtu && bt_dev.le.iso_limit != 0) { in bt_conn_get_pkts()
211 return &bt_dev.le.iso_pkts; in bt_conn_get_pkts()
219 if (bt_dev.le.acl_mtu) { in bt_conn_get_pkts()
220 return &bt_dev.le.acl_pkts; in bt_conn_get_pkts()
610 (conn->type != BT_CONN_TYPE_ISO && !bt_dev.le.acl_mtu)) { in conn_mtu()
616 return bt_dev.le.iso_mtu; in conn_mtu()
620 return bt_dev.le.acl_mtu; in conn_mtu()
859 sys_slist_append(&bt_dev.le.conn_ready, in bt_conn_data_ready()
906 sys_snode_t *node = sys_slist_peek_head(&bt_dev.le.conn_ready); in get_conn_ready()
949 __maybe_unused sys_snode_t *s = sys_slist_get(&bt_dev.le.conn_ready); in get_conn_ready()
1230 conn->le.conn_param_retry_countdown = in bt_conn_set_state()
1703 if (conn->le.phy.tx_phy == BT_HCI_LE_PHY_2M && in uses_symmetric_2mbit_phy()
1704 conn->le.phy.rx_phy == BT_HCI_LE_PHY_2M) { in uses_symmetric_2mbit_phy()
1733 return BT_FEAT_LE_PER_INIT_FEAT_XCHG(bt_dev.le.features); in can_initiate_feature_exchange()
1779 if (IS_ENABLED(CONFIG_BT_AUTO_PHY_UPDATE) && BT_FEAT_LE_PHY_2M(bt_dev.le.features) && in perform_auto_initiated_procedures()
1794 if (IS_ENABLED(CONFIG_BT_AUTO_DATA_LEN_UPDATE) && BT_FEAT_LE_DLE(bt_dev.le.features) && in perform_auto_initiated_procedures()
1965 conn->le.interval >= conn->le.interval_min && in notify_le_param_updated()
1966 conn->le.interval <= conn->le.interval_max && in notify_le_param_updated()
1967 conn->le.latency == conn->le.pending_latency && in notify_le_param_updated()
1968 conn->le.timeout == conn->le.pending_timeout) { in notify_le_param_updated()
1976 callback->le_param_updated(conn, conn->le.interval, in notify_le_param_updated()
1977 conn->le.latency, in notify_le_param_updated()
1978 conn->le.timeout); in notify_le_param_updated()
1984 cb->le_param_updated(conn, conn->le.interval, in notify_le_param_updated()
1985 conn->le.latency, in notify_le_param_updated()
1986 conn->le.timeout); in notify_le_param_updated()
1998 callback->le_data_len_updated(conn, &conn->le.data_len); in notify_le_data_len_updated()
2004 cb->le_data_len_updated(conn, &conn->le.data_len); in notify_le_data_len_updated()
2017 callback->le_phy_updated(conn, &conn->le.phy); in notify_le_phy_updated()
2023 cb->le_phy_updated(conn, &conn->le.phy); in notify_le_phy_updated()
2078 LOG_DBG("conn %p features 0x%02x params (%d-%d %d %d)", conn, conn->le.features[0], in send_conn_le_param_update()
2089 if ((BT_FEAT_LE_CONN_PARAM_REQ_PROC(bt_dev.le.features) && in send_conn_le_param_update()
2090 BT_FEAT_LE_CONN_PARAM_REQ_PROC(conn->le.features) && in send_conn_le_param_update()
2099 conn->le.interval_min = param->interval_min; in send_conn_le_param_update()
2100 conn->le.interval_max = param->interval_max; in send_conn_le_param_update()
2101 conn->le.pending_latency = param->latency; in send_conn_le_param_update()
2102 conn->le.pending_timeout = param->timeout; in send_conn_le_param_update()
2251 param = BT_LE_CONN_PARAM(conn->le.interval_min, in deferred_work()
2252 conn->le.interval_max, in deferred_work()
2253 conn->le.pending_latency, in deferred_work()
2254 conn->le.pending_timeout); in deferred_work()
2492 const struct bt_keys *keys = conn->le.keys; in bt_conn_ltk_present()
2495 keys = bt_keys_find_addr(conn->id, &conn->le.dst); in bt_conn_ltk_present()
2514 rpa = &conn->le.resp_addr; in bt_conn_identity_resolved()
2516 rpa = &conn->le.init_addr; in bt_conn_identity_resolved()
2524 callback->identity_resolved(conn, rpa, &conn->le.dst); in bt_conn_identity_resolved()
2530 cb->identity_resolved(conn, rpa, &conn->le.dst); in bt_conn_identity_resolved()
2603 return conn->le.keys ? conn->le.keys->enc_size : 0; in bt_conn_enc_key_size()
2780 bt_addr_le_copy(&conn->le.dst, peer); in bt_conn_add_le()
2789 conn->le.interval_min = BT_GAP_INIT_CONN_INT_MIN; in bt_conn_add_le()
2790 conn->le.interval_max = BT_GAP_INIT_CONN_INT_MAX; in bt_conn_add_le()
2803 if (bt_addr_le_eq(peer, &conn->le.dst)) { in bt_conn_is_peer_addr_le()
2809 return bt_addr_le_eq(peer, &conn->le.resp_addr); in bt_conn_is_peer_addr_le()
2812 return bt_addr_le_eq(peer, &conn->le.init_addr); in bt_conn_is_peer_addr_le()
2877 return &conn->le.dst; in bt_conn_get_dst()
2918 info->le.dst = &conn->le.dst; in bt_conn_get_info()
2919 info->le.src = &bt_dev.id_addr[conn->id]; in bt_conn_get_info()
2921 info->le.local = &conn->le.init_addr; in bt_conn_get_info()
2922 info->le.remote = &conn->le.resp_addr; in bt_conn_get_info()
2924 info->le.local = &conn->le.resp_addr; in bt_conn_get_info()
2925 info->le.remote = &conn->le.init_addr; in bt_conn_get_info()
2927 info->le.interval = conn->le.interval; in bt_conn_get_info()
2928 info->le.latency = conn->le.latency; in bt_conn_get_info()
2929 info->le.timeout = conn->le.timeout; in bt_conn_get_info()
2931 info->le.phy = &conn->le.phy; in bt_conn_get_info()
2934 info->le.data_len = &conn->le.data_len; in bt_conn_get_info()
2937 info->le.subrate = &conn->le.subrate; in bt_conn_get_info()
2939 if (conn->le.keys && (conn->le.keys->flags & BT_KEYS_SC)) { in bt_conn_get_info()
2942 if (conn->le.keys && (conn->le.keys->flags & BT_KEYS_OOB)) { in bt_conn_get_info()
2955 info->le.dst = &conn->iso.acl->le.dst; in bt_conn_get_info()
2956 info->le.src = &bt_dev.id_addr[conn->iso.acl->id]; in bt_conn_get_info()
2958 info->le.src = BT_ADDR_LE_NONE; in bt_conn_get_info()
2959 info->le.dst = BT_ADDR_LE_NONE; in bt_conn_get_info()
2993 remote_info->le.features = conn->le.features; in bt_conn_get_remote_info()
3451 LOG_DBG("conn %p features 0x%02x params (%d-%d %d %d)", conn, conn->le.features[0], in bt_conn_le_param_update()
3466 conn->le.interval_min = param->interval_min; in bt_conn_le_param_update()
3467 conn->le.interval_max = param->interval_max; in bt_conn_le_param_update()
3468 conn->le.pending_latency = param->latency; in bt_conn_le_param_update()
3469 conn->le.pending_timeout = param->timeout; in bt_conn_le_param_update()
3480 if (conn->le.data_len.tx_max_len == param->tx_max_len && in bt_conn_le_data_len_update()
3481 conn->le.data_len.tx_max_time == param->tx_max_time) { in bt_conn_le_data_len_update()
3524 conn->le.interval_min = param->interval_min; in bt_conn_set_param_le()
3525 conn->le.interval_max = param->interval_max; in bt_conn_set_param_le()
3526 conn->le.latency = param->latency; in bt_conn_set_param_le()
3527 conn->le.timeout = param->timeout; in bt_conn_set_param_le()
3575 if (!BT_LE_STATES_SCAN_INIT(bt_dev.le.states) && in bt_conn_le_create_auto()
3661 if (!BT_LE_STATES_SCAN_INIT(bt_dev.le.states) && bt_le_explicit_scanner_running()) { in conn_le_create_common_checks()
3740 if (BT_LE_STATES_SCAN_INIT(bt_dev.le.states) && in bt_conn_le_create()
3749 if (bt_dev.le.rl_entries > bt_dev.le.rl_size) { in bt_conn_le_create()
3821 if (!BT_FEAT_LE_PAWR_ADVERTISER(bt_dev.le.features)) { in bt_conn_le_create_synced()