Lines Matching defs:hdev
17 { cpu_to_le16(hdev->_param_name_) } \
23 { cpu_to_le16(jiffies_to_msecs(hdev->_param_name_)) } \
26 int read_def_system_config(struct sock *sk, struct hci_dev *hdev, void *data,
75 bt_dev_dbg(hdev, "sock %p", sk);
77 return mgmt_cmd_complete(sk, hdev->id,
85 int set_def_system_config(struct sock *sk, struct hci_dev *hdev, void *data,
92 return mgmt_cmd_status(sk, hdev->id,
105 bt_dev_warn(hdev, "invalid len left %d, exp >= %d",
108 return mgmt_cmd_status(sk, hdev->id,
146 bt_dev_warn(hdev, "invalid length %d, exp %zu for type %d",
149 return mgmt_cmd_status(sk, hdev->id,
155 bt_dev_warn(hdev, "unsupported parameter %u", type);
173 hdev->def_page_scan_type = TLV_GET_LE16(buffer);
176 hdev->def_page_scan_int = TLV_GET_LE16(buffer);
179 hdev->def_page_scan_window = TLV_GET_LE16(buffer);
182 hdev->def_inq_scan_type = TLV_GET_LE16(buffer);
185 hdev->def_inq_scan_int = TLV_GET_LE16(buffer);
188 hdev->def_inq_scan_window = TLV_GET_LE16(buffer);
191 hdev->def_br_lsto = TLV_GET_LE16(buffer);
194 hdev->def_page_timeout = TLV_GET_LE16(buffer);
197 hdev->sniff_min_interval = TLV_GET_LE16(buffer);
200 hdev->sniff_max_interval = TLV_GET_LE16(buffer);
203 hdev->le_adv_min_interval = TLV_GET_LE16(buffer);
206 hdev->le_adv_max_interval = TLV_GET_LE16(buffer);
209 hdev->def_multi_adv_rotation_duration =
213 hdev->le_scan_interval = TLV_GET_LE16(buffer);
216 hdev->le_scan_window = TLV_GET_LE16(buffer);
219 hdev->le_scan_int_suspend = TLV_GET_LE16(buffer);
222 hdev->le_scan_window_suspend = TLV_GET_LE16(buffer);
225 hdev->le_scan_int_discovery = TLV_GET_LE16(buffer);
228 hdev->le_scan_window_discovery = TLV_GET_LE16(buffer);
231 hdev->le_scan_int_adv_monitor = TLV_GET_LE16(buffer);
234 hdev->le_scan_window_adv_monitor = TLV_GET_LE16(buffer);
237 hdev->le_scan_int_connect = TLV_GET_LE16(buffer);
240 hdev->le_scan_window_connect = TLV_GET_LE16(buffer);
243 hdev->le_conn_min_interval = TLV_GET_LE16(buffer);
246 hdev->le_conn_max_interval = TLV_GET_LE16(buffer);
249 hdev->le_conn_latency = TLV_GET_LE16(buffer);
252 hdev->le_supv_timeout = TLV_GET_LE16(buffer);
255 hdev->def_le_autoconnect_timeout =
259 hdev->advmon_allowlist_duration = TLV_GET_LE16(buffer);
262 hdev->advmon_no_filter_duration = TLV_GET_LE16(buffer);
265 bt_dev_warn(hdev, "unsupported parameter %u", type);
273 return mgmt_cmd_complete(sk, hdev->id,
277 int read_def_runtime_config(struct sock *sk, struct hci_dev *hdev, void *data,
280 bt_dev_dbg(hdev, "sock %p", sk);
282 return mgmt_cmd_complete(sk, hdev->id,
286 int set_def_runtime_config(struct sock *sk, struct hci_dev *hdev, void *data,
289 bt_dev_dbg(hdev, "sock %p", sk);
291 return mgmt_cmd_status(sk, hdev->id, MGMT_OP_SET_DEF_SYSTEM_CONFIG,