Lines Matching refs:cp
144 struct msft_cp_read_supported_features cp; in read_supported_features() local
148 cp.sub_opcode = MSFT_OP_READ_SUPPORTED_FEATURES; in read_supported_features()
150 skb = __hci_cmd_sync(hdev, hdev->msft_opcode, sizeof(cp), &cp, in read_supported_features()
306 struct msft_cp_le_cancel_monitor_advertisement cp; in msft_remove_addr_filters_sync() local
347 cp.sub_opcode = MSFT_OP_LE_CANCEL_MONITOR_ADVERTISEMENT; in msft_remove_addr_filters_sync()
348 cp.handle = address_filter->msft_handle; in msft_remove_addr_filters_sync()
350 skb = __hci_cmd_sync(hdev, hdev->msft_opcode, sizeof(cp), &cp, in msft_remove_addr_filters_sync()
426 struct msft_cp_le_cancel_monitor_advertisement cp; in msft_remove_monitor_sync() local
436 cp.sub_opcode = MSFT_OP_LE_CANCEL_MONITOR_ADVERTISEMENT; in msft_remove_monitor_sync()
437 cp.handle = handle_data->msft_handle; in msft_remove_monitor_sync()
439 skb = __hci_cmd_sync(hdev, hdev->msft_opcode, sizeof(cp), &cp, in msft_remove_monitor_sync()
508 struct msft_cp_le_monitor_advertisement *cp; in msft_add_monitor_sync() local
513 size_t total_size = sizeof(*cp) + sizeof(*pattern_data); in msft_add_monitor_sync()
527 cp = kmalloc(total_size, GFP_KERNEL); in msft_add_monitor_sync()
528 if (!cp) in msft_add_monitor_sync()
531 cp->sub_opcode = MSFT_OP_LE_MONITOR_ADVERTISEMENT; in msft_add_monitor_sync()
532 cp->rssi_high = monitor->rssi.high_threshold; in msft_add_monitor_sync()
533 cp->rssi_low = monitor->rssi.low_threshold; in msft_add_monitor_sync()
534 cp->rssi_low_interval = (u8)monitor->rssi.low_threshold_timeout; in msft_add_monitor_sync()
535 cp->rssi_sampling_period = monitor->rssi.sampling_period; in msft_add_monitor_sync()
537 cp->cond_type = MSFT_MONITOR_ADVERTISEMENT_TYPE_PATTERN; in msft_add_monitor_sync()
539 pattern_data = (void *)cp->data; in msft_add_monitor_sync()
552 skb = __hci_cmd_sync(hdev, hdev->msft_opcode, total_size, cp, in msft_add_monitor_sync()
571 handle_data->rssi_high = cp->rssi_high; in msft_add_monitor_sync()
572 handle_data->rssi_low = cp->rssi_low; in msft_add_monitor_sync()
573 handle_data->rssi_low_interval = cp->rssi_low_interval; in msft_add_monitor_sync()
574 handle_data->rssi_sampling_period = cp->rssi_sampling_period; in msft_add_monitor_sync()
577 kfree(cp); in msft_add_monitor_sync()
713 struct msft_cp_le_cancel_monitor_advertisement cp; in msft_cancel_address_filter_sync() local
731 cp.sub_opcode = MSFT_OP_LE_CANCEL_MONITOR_ADVERTISEMENT; in msft_cancel_address_filter_sync()
732 cp.handle = address_filter->msft_handle; in msft_cancel_address_filter_sync()
734 skb = __hci_cmd_sync(hdev, hdev->msft_opcode, sizeof(cp), &cp, in msft_cancel_address_filter_sync()
837 struct msft_cp_le_monitor_advertisement *cp; in msft_add_address_filter_sync() local
868 size = sizeof(*cp) + in msft_add_address_filter_sync()
871 cp = kzalloc(size, GFP_KERNEL); in msft_add_address_filter_sync()
872 if (!cp) { in msft_add_address_filter_sync()
878 cp->sub_opcode = MSFT_OP_LE_MONITOR_ADVERTISEMENT; in msft_add_address_filter_sync()
879 cp->rssi_high = address_filter->rssi_high; in msft_add_address_filter_sync()
880 cp->rssi_low = address_filter->rssi_low; in msft_add_address_filter_sync()
881 cp->rssi_low_interval = address_filter->rssi_low_interval; in msft_add_address_filter_sync()
882 cp->rssi_sampling_period = address_filter->rssi_sampling_period; in msft_add_address_filter_sync()
883 cp->cond_type = MSFT_MONITOR_ADVERTISEMENT_TYPE_ADDR; in msft_add_address_filter_sync()
884 cp->data[0] = address_filter->addr_type; in msft_add_address_filter_sync()
885 memcpy(&cp->data[1], &address_filter->bdaddr, in msft_add_address_filter_sync()
888 skb = __hci_cmd_sync(hdev, hdev->msft_opcode, size, cp, in msft_add_address_filter_sync()
890 kfree(cp); in msft_add_address_filter_sync()
1127 struct msft_cp_le_set_advertisement_filter_enable *cp = user_data; in msft_le_set_advertisement_filter_enable_cb() local
1142 msft->filter_enabled = cp->enable; in msft_le_set_advertisement_filter_enable_cb()
1146 cp->enable ? "on" : "off"); in msft_le_set_advertisement_filter_enable_cb()
1181 struct msft_cp_le_set_advertisement_filter_enable cp; in msft_set_filter_enable() local
1188 cp.sub_opcode = MSFT_OP_LE_SET_ADVERTISEMENT_FILTER_ENABLE; in msft_set_filter_enable()
1189 cp.enable = enable; in msft_set_filter_enable()
1190 err = __hci_cmd_sync_status(hdev, hdev->msft_opcode, sizeof(cp), &cp, in msft_set_filter_enable()
1193 msft_le_set_advertisement_filter_enable_cb(hdev, &cp, err); in msft_set_filter_enable()