Lines Matching refs:timeout
130 const void *param, u8 event, u32 timeout)
149 hdev->req_status != HCI_REQ_PEND, timeout);
187 const void *param, u32 timeout)
189 return __hci_cmd_sync_ev(hdev, opcode, plen, param, 0, timeout);
196 unsigned long opt, u32 timeout, u8 *hci_status)
236 hdev->req_status != HCI_REQ_PEND, timeout);
272 unsigned long opt, u32 timeout, u8 *hci_status)
283 ret = __hci_req_sync(hdev, req, opt, timeout, hci_status);
1985 unsigned long timeout;
1988 timeout = msecs_to_jiffies(hdev->advmon_allowlist_duration);
1990 timeout = msecs_to_jiffies(hdev->advmon_no_filter_duration);
2002 &hdev->interleave_scan, timeout);
2239 if (adv_instance && adv_instance->timeout) {
2240 u16 duration = adv_instance->timeout * MSEC_PER_SEC;
2322 u16 timeout;
2335 /* A zero timeout means unlimited advertising. As long as there is
2336 * only one instance, duration should be ignored. We still set a timeout
2340 * then the timeout corresponds to the duration, otherwise it will be
2343 if (adv_instance->timeout == 0 ||
2345 timeout = adv_instance->duration;
2347 timeout = adv_instance->remaining_time;
2352 if (adv_instance->timeout)
2354 adv_instance->remaining_time - timeout;
2358 hdev->adv_instance_timeout = timeout;
2361 msecs_to_jiffies(timeout * 1000));
2391 * - force == true: All instances will be removed regardless of their timeout
2393 * - force == false: Only instances that have a timeout will be removed.
2403 /* Cancel any timeout concerning the removed instance(s). */
2417 if (!(force || adv_instance->timeout))
2428 if (force || (adv_instance && adv_instance->timeout &&
3042 unsigned long timeout, duration, scan_start, now;
3063 * timeout, to make sure that scan does not run indefinitely.
3076 timeout = duration - elapsed;
3078 timeout = 0;
3082 &hdev->le_scan_disable, timeout);
3138 unsigned long timeout;
3160 timeout = msecs_to_jiffies(DISCOV_LE_TIMEOUT);
3171 timeout = msecs_to_jiffies(hdev->discov_interleaved_timeout);
3176 timeout = msecs_to_jiffies(DISCOV_LE_TIMEOUT);
3188 BT_DBG("%s timeout %u ms", hdev->name, jiffies_to_msecs(timeout));
3198 hdev->discovery.scan_duration = timeout;
3202 timeout);
3297 /* When discoverable timeout triggers, then just make sure
3299 * of a timeout triggered from general discoverable, it is