Lines Matching defs:instance

1138 void mgmt_advertising_added(struct sock *sk, struct hci_dev *hdev, u8 instance)
1142 ev.instance = instance;
1148 u8 instance)
1152 ev.instance = instance;
3240 /* stop if current instance doesn't need to be changed */
3246 adv_instance = hci_get_next_instance(hdev, adv_instance->instance);
3251 err = __hci_req_schedule_adv_instance(&req, adv_instance->instance,
5089 u8 instance;
5127 /* If "Set Advertising" was just disabled and instance advertising was
5128 * set up earlier, then re-enable multi-instance advertising.
5134 instance = hdev->cur_adv_instance;
5135 if (!instance) {
5141 instance = adv_instance->instance;
5146 err = __hci_req_schedule_adv_instance(&req, instance, true);
5251 /* Switch to instance "0" for the Set Advertising setting.
7257 u8 *instance;
7289 instance = rp->instance;
7291 *instance = adv_instance->instance;
7292 instance++;
7410 u8 instance;
7427 instance = adv_instance->instance;
7429 if (hdev->cur_adv_instance == instance)
7432 hci_remove_adv_instance(hdev, instance);
7433 mgmt_advertising_removed(cmd ? cmd->sk : NULL, hdev, instance);
7440 rp.instance = cp->instance;
7485 if (cp->instance < 1 || cp->instance > hdev->le_num_of_adv_sets)
7531 err = hci_add_adv_instance(hdev, cp->instance, flags,
7542 /* Only trigger an advertising added event if a new instance was
7546 mgmt_advertising_added(sk, hdev, cp->instance);
7548 if (hdev->cur_adv_instance == cp->instance) {
7549 /* If the currently advertised instance is being changed then
7551 * instance. If there is only one instance then the overridden
7556 next_instance = hci_get_next_instance(hdev, cp->instance);
7558 schedule_instance = next_instance->instance;
7560 /* Immediately advertise the new instance if no other
7561 * instance is currently being advertised.
7563 schedule_instance = cp->instance;
7567 * there is no instance to be advertised then we have no HCI
7573 rp.instance = cp->instance;
7620 * advertising. Otherwise, the advertising instance has been removed,
7628 rp.instance = cp->instance;
7658 if (cp->instance && !hci_find_adv_instance(hdev, cp->instance)) {
7681 /* If we use extended advertising, instance is disabled and removed */
7683 __hci_req_disable_ext_adv_instance(&req, cp->instance);
7684 __hci_req_remove_ext_adv_instance(&req, cp->instance);
7687 hci_req_clear_adv_instance(hdev, sk, &req, cp->instance, true);
7700 rp.instance = cp->instance;
7738 if (cp->instance < 1 || cp->instance > hdev->le_num_of_adv_sets)
7752 rp.instance = cp->instance;