Lines Matching defs:hdev
29 cpu_to_le16(hdev->_param_name_) \
35 hdev->_param_name_ \
41 cpu_to_le16(jiffies_to_msecs(hdev->_param_name_)) \
44 int read_def_system_config(struct sock *sk, struct hci_dev *hdev, void *data,
116 bt_dev_dbg(hdev, "sock %p", sk);
118 ret = mgmt_cmd_complete(sk, hdev->id,
128 int set_def_system_config(struct sock *sk, struct hci_dev *hdev, void *data,
135 return mgmt_cmd_status(sk, hdev->id,
149 bt_dev_warn(hdev, "invalid len left %u, exp >= %u",
152 return mgmt_cmd_status(sk, hdev->id,
196 bt_dev_warn(hdev, "unsupported parameter %u", type);
201 bt_dev_warn(hdev, "invalid length %d, exp %zu for type %u",
204 return mgmt_cmd_status(sk, hdev->id,
223 hdev->def_page_scan_type = TLV_GET_LE16(buffer);
226 hdev->def_page_scan_int = TLV_GET_LE16(buffer);
229 hdev->def_page_scan_window = TLV_GET_LE16(buffer);
232 hdev->def_inq_scan_type = TLV_GET_LE16(buffer);
235 hdev->def_inq_scan_int = TLV_GET_LE16(buffer);
238 hdev->def_inq_scan_window = TLV_GET_LE16(buffer);
241 hdev->def_br_lsto = TLV_GET_LE16(buffer);
244 hdev->def_page_timeout = TLV_GET_LE16(buffer);
247 hdev->sniff_min_interval = TLV_GET_LE16(buffer);
250 hdev->sniff_max_interval = TLV_GET_LE16(buffer);
253 hdev->le_adv_min_interval = TLV_GET_LE16(buffer);
256 hdev->le_adv_max_interval = TLV_GET_LE16(buffer);
259 hdev->def_multi_adv_rotation_duration =
263 hdev->le_scan_interval = TLV_GET_LE16(buffer);
266 hdev->le_scan_window = TLV_GET_LE16(buffer);
269 hdev->le_scan_int_suspend = TLV_GET_LE16(buffer);
272 hdev->le_scan_window_suspend = TLV_GET_LE16(buffer);
275 hdev->le_scan_int_discovery = TLV_GET_LE16(buffer);
278 hdev->le_scan_window_discovery = TLV_GET_LE16(buffer);
281 hdev->le_scan_int_adv_monitor = TLV_GET_LE16(buffer);
284 hdev->le_scan_window_adv_monitor = TLV_GET_LE16(buffer);
287 hdev->le_scan_int_connect = TLV_GET_LE16(buffer);
290 hdev->le_scan_window_connect = TLV_GET_LE16(buffer);
293 hdev->le_conn_min_interval = TLV_GET_LE16(buffer);
296 hdev->le_conn_max_interval = TLV_GET_LE16(buffer);
299 hdev->le_conn_latency = TLV_GET_LE16(buffer);
302 hdev->le_supv_timeout = TLV_GET_LE16(buffer);
305 hdev->def_le_autoconnect_timeout =
309 hdev->advmon_allowlist_duration = TLV_GET_LE16(buffer);
312 hdev->advmon_no_filter_duration = TLV_GET_LE16(buffer);
315 hdev->enable_advmon_interleave_scan = TLV_GET_U8(buffer);
318 bt_dev_warn(hdev, "unsupported parameter %u", type);
326 return mgmt_cmd_complete(sk, hdev->id,
330 int read_def_runtime_config(struct sock *sk, struct hci_dev *hdev, void *data,
333 bt_dev_dbg(hdev, "sock %p", sk);
335 return mgmt_cmd_complete(sk, hdev->id,
339 int set_def_runtime_config(struct sock *sk, struct hci_dev *hdev, void *data,
342 bt_dev_dbg(hdev, "sock %p", sk);
344 return mgmt_cmd_status(sk, hdev->id, MGMT_OP_SET_DEF_SYSTEM_CONFIG,