Lines Matching refs:param

824 static bool le_param_req(struct bt_conn *conn, struct bt_le_conn_param *param)  in le_param_req()  argument
827 param->interval_min, param->interval_max, in le_param_req()
828 param->latency, param->timeout); in le_param_req()
1597 struct bt_le_scan_param param = { in cmd_active_scan_on() local
1604 param.options |= options; in cmd_active_scan_on()
1606 err = bt_le_scan_start(&param, NULL); in cmd_active_scan_on()
1625 struct bt_le_scan_param param = { in cmd_passive_scan_on() local
1633 param.options |= options; in cmd_passive_scan_on()
1635 err = bt_le_scan_start(&param, NULL); in cmd_passive_scan_on()
1977 struct bt_le_adv_param param = {}; in cmd_advertise() local
2000 param.id = selected_id; in cmd_advertise()
2001 param.interval_min = BT_GAP_ADV_FAST_INT_MIN_2; in cmd_advertise()
2002 param.interval_max = BT_GAP_ADV_FAST_INT_MAX_2; in cmd_advertise()
2005 param.options = BT_LE_ADV_OPT_CONN; in cmd_advertise()
2007 param.options = 0U; in cmd_advertise()
2022 param.options |= BT_LE_ADV_OPT_FILTER_SCAN_REQ; in cmd_advertise()
2023 param.options |= BT_LE_ADV_OPT_FILTER_CONN; in cmd_advertise()
2025 param.options |= BT_LE_ADV_OPT_FILTER_SCAN_REQ; in cmd_advertise()
2027 param.options |= BT_LE_ADV_OPT_FILTER_CONN; in cmd_advertise()
2029 param.options |= BT_LE_ADV_OPT_USE_IDENTITY; in cmd_advertise()
2036 param.options |= BT_LE_ADV_OPT_DISABLE_CHAN_37; in cmd_advertise()
2038 param.options |= BT_LE_ADV_OPT_DISABLE_CHAN_38; in cmd_advertise()
2040 param.options |= BT_LE_ADV_OPT_DISABLE_CHAN_39; in cmd_advertise()
2058 (param.options & BT_LE_ADV_OPT_CONN) > 0); in cmd_advertise()
2068 err = bt_le_adv_start(&param, ad_len > 0 ? ad : NULL, ad_len, sd_len > 0 ? sd : NULL, in cmd_advertise()
2090 struct bt_le_adv_param param; in cmd_directed_adv() local
2093 param = *BT_LE_ADV_CONN_DIR(&addr); in cmd_directed_adv()
2103 param.options |= BT_LE_ADV_OPT_DIR_MODE_LOW_DUTY; in cmd_directed_adv()
2104 param.interval_max = BT_GAP_ADV_FAST_INT_MAX_2; in cmd_directed_adv()
2105 param.interval_min = BT_GAP_ADV_FAST_INT_MIN_2; in cmd_directed_adv()
2107 param.options |= BT_LE_ADV_OPT_USE_IDENTITY; in cmd_directed_adv()
2109 param.options |= BT_LE_ADV_OPT_DIR_ADDR_RPA; in cmd_directed_adv()
2111 param.options |= BT_LE_ADV_OPT_DISABLE_CHAN_37; in cmd_directed_adv()
2113 param.options |= BT_LE_ADV_OPT_DISABLE_CHAN_38; in cmd_directed_adv()
2115 param.options |= BT_LE_ADV_OPT_DISABLE_CHAN_39; in cmd_directed_adv()
2122 err = bt_le_adv_start(&param, NULL, 0, NULL, 0); in cmd_directed_adv()
2136 struct bt_le_adv_param *param) in adv_param_parse() argument
2138 memset(param, 0, sizeof(struct bt_le_adv_param)); in adv_param_parse()
2141 param->options |= BT_LE_ADV_OPT_CONN; in adv_param_parse()
2142 param->options |= BT_LE_ADV_OPT_SCANNABLE; in adv_param_parse()
2144 param->options |= BT_LE_ADV_OPT_CONN; in adv_param_parse()
2146 param->options |= BT_LE_ADV_OPT_SCANNABLE; in adv_param_parse()
2157 param->options |= BT_LE_ADV_OPT_EXT_ADV; in adv_param_parse()
2159 param->options |= BT_LE_ADV_OPT_CODED; in adv_param_parse()
2161 param->options |= BT_LE_ADV_OPT_NO_2M; in adv_param_parse()
2163 param->options |= BT_LE_ADV_OPT_ANONYMOUS; in adv_param_parse()
2165 param->options |= BT_LE_ADV_OPT_USE_TX_POWER; in adv_param_parse()
2167 param->options |= BT_LE_ADV_OPT_NOTIFY_SCAN_REQ; in adv_param_parse()
2169 param->options |= BT_LE_ADV_OPT_FILTER_SCAN_REQ; in adv_param_parse()
2170 param->options |= BT_LE_ADV_OPT_FILTER_CONN; in adv_param_parse()
2172 param->options |= BT_LE_ADV_OPT_FILTER_SCAN_REQ; in adv_param_parse()
2174 param->options |= BT_LE_ADV_OPT_FILTER_CONN; in adv_param_parse()
2176 param->options |= BT_LE_ADV_OPT_USE_IDENTITY; in adv_param_parse()
2178 param->options |= BT_LE_ADV_OPT_DIR_MODE_LOW_DUTY; in adv_param_parse()
2180 param->options |= BT_LE_ADV_OPT_DIR_ADDR_RPA; in adv_param_parse()
2182 param->options |= BT_LE_ADV_OPT_DISABLE_CHAN_37; in adv_param_parse()
2184 param->options |= BT_LE_ADV_OPT_DISABLE_CHAN_38; in adv_param_parse()
2186 param->options |= BT_LE_ADV_OPT_DISABLE_CHAN_39; in adv_param_parse()
2198 param->peer = &addr; in adv_param_parse()
2205 param->id = selected_id; in adv_param_parse()
2206 param->sid = 0; in adv_param_parse()
2207 if (param->peer && in adv_param_parse()
2208 !(param->options & BT_LE_ADV_OPT_DIR_MODE_LOW_DUTY)) { in adv_param_parse()
2209 param->interval_min = 0; in adv_param_parse()
2210 param->interval_max = 0; in adv_param_parse()
2212 param->interval_min = BT_GAP_ADV_FAST_INT_MIN_2; in adv_param_parse()
2213 param->interval_max = BT_GAP_ADV_FAST_INT_MAX_2; in adv_param_parse()
2221 struct bt_le_adv_param param; in cmd_adv_create() local
2226 if (!adv_param_parse(argc, argv, &param)) { in cmd_adv_create()
2231 err = bt_le_ext_adv_create(&param, &adv_callbacks, &adv); in cmd_adv_create()
2242 (param.options & BT_LE_ADV_OPT_CONN) > 0); in cmd_adv_create()
2244 (param.options & BT_LE_ADV_OPT_EXT_ADV) > 0); in cmd_adv_create()
2254 struct bt_le_adv_param param; in cmd_adv_param() local
2257 if (!adv_param_parse(argc, argv, &param)) { in cmd_adv_param()
2262 err = bt_le_ext_adv_update_param(adv, &param); in cmd_adv_param()
2416 struct bt_le_ext_adv_start_param param; in cmd_adv_start() local
2446 param.timeout = timeout; in cmd_adv_start()
2447 param.num_events = num_events; in cmd_adv_start()
2449 err = bt_le_ext_adv_start(adv, &param); in cmd_adv_start()
2622 struct bt_le_per_adv_param param; in cmd_per_adv_param() local
2631 param.interval_min = strtol(argv[1], NULL, 16); in cmd_per_adv_param()
2633 param.interval_min = BT_GAP_ADV_SLOW_INT_MIN; in cmd_per_adv_param()
2637 param.interval_max = strtol(argv[2], NULL, 16); in cmd_per_adv_param()
2639 param.interval_max = param.interval_min * 1.2; in cmd_per_adv_param()
2642 if (param.interval_min > param.interval_max) { in cmd_per_adv_param()
2648 param.options = BT_LE_ADV_OPT_USE_TX_POWER; in cmd_per_adv_param()
2650 param.options = 0; in cmd_per_adv_param()
2653 err = bt_le_per_adv_set_param(adv, &param); in cmd_per_adv_param()
2863 struct bt_le_per_adv_sync_transfer_param param; in cmd_past_subscribe() local
2874 param.options = 0; in cmd_past_subscribe()
2875 param.timeout = 1000; /* 10 seconds */ in cmd_past_subscribe()
2876 param.skip = 10; in cmd_past_subscribe()
2880 param.options |= in cmd_past_subscribe()
2883 param.options |= in cmd_past_subscribe()
2886 param.options |= in cmd_past_subscribe()
2889 param.options |= in cmd_past_subscribe()
2897 param.timeout = strtoul(argv[j], NULL, 16); in cmd_past_subscribe()
2904 param.skip = strtoul(argv[j], NULL, 16); in cmd_past_subscribe()
2920 global ? NULL : default_conn, &param); in cmd_past_subscribe()
3331 const struct bt_le_scan_param param = { in cmd_connect_le_name() local
3350 err = bt_le_scan_start(&param, NULL); in cmd_connect_le_name()
3553 struct bt_le_conn_param param; in cmd_conn_update() local
3562 param.interval_min = strtoul(argv[1], NULL, 16); in cmd_conn_update()
3563 param.interval_max = strtoul(argv[2], NULL, 16); in cmd_conn_update()
3564 param.latency = strtoul(argv[3], NULL, 16); in cmd_conn_update()
3565 param.timeout = strtoul(argv[4], NULL, 16); in cmd_conn_update()
3567 err = bt_conn_le_param_update(default_conn, &param); in cmd_conn_update()
3601 struct bt_conn_le_data_len_param param; in cmd_conn_data_len_update() local
3610 param.tx_max_len = strtoul(argv[1], NULL, 10); in cmd_conn_data_len_update()
3613 param.tx_max_time = strtoul(argv[2], NULL, 10); in cmd_conn_data_len_update()
3626 param.tx_max_time = tx_time_calc(phy, param.tx_max_len); in cmd_conn_data_len_update()
3627 shell_print(sh, "Calculated tx time: %d", param.tx_max_time); in cmd_conn_data_len_update()
3630 err = bt_conn_le_data_len_update(default_conn, &param); in cmd_conn_data_len_update()
3645 struct bt_conn_le_phy_param param; in cmd_conn_phy_update() local
3654 param.pref_tx_phy = strtoul(argv[1], NULL, 16); in cmd_conn_phy_update()
3655 param.pref_rx_phy = param.pref_tx_phy; in cmd_conn_phy_update()
3656 param.options = BT_CONN_LE_PHY_OPT_NONE; in cmd_conn_phy_update()
3662 param.options |= BT_CONN_LE_PHY_OPT_CODED_S2; in cmd_conn_phy_update()
3664 param.options |= BT_CONN_LE_PHY_OPT_CODED_S8; in cmd_conn_phy_update()
3666 param.pref_rx_phy = strtoul(arg, NULL, 16); in cmd_conn_phy_update()
3670 err = bt_conn_le_phy_update(default_conn, &param); in cmd_conn_phy_update()
4969 SHELL_CMD_ARG(adv-param, NULL, EXT_ADV_PARAM, cmd_adv_param, 2, 11),
4989 SHELL_CMD_ARG(per-adv-param, NULL,