Home
last modified time | relevance | path

Searched refs:hdev (Results 1 – 25 of 395) sorted by relevance

12345678910>>...16

/openbmc/linux/drivers/accel/habanalabs/common/
H A Ddevice.c46 static u64 hl_set_dram_bar(struct hl_device *hdev, u64 addr, struct pci_mem_region *region, in hl_set_dram_bar() argument
49 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_set_dram_bar()
58 old_base = hdev->asic_funcs->set_dram_bar_base(hdev, bar_base_addr); in hl_set_dram_bar()
67 int hl_access_sram_dram_region(struct hl_device *hdev, u64 addr, u64 *val, in hl_access_sram_dram_region() argument
70 struct pci_mem_region *region = &hdev->pci_mem_region[region_type]; in hl_access_sram_dram_region()
75 old_base = hl_set_dram_bar(hdev, addr, region, &bar_region_base); in hl_access_sram_dram_region()
80 acc_addr = hdev->pcie_bar[region->bar_id] + region->offset_in_bar + in hl_access_sram_dram_region()
105 rc = hl_set_dram_bar(hdev, old_base, region, NULL); in hl_access_sram_dram_region()
113 static void *hl_dma_alloc_common(struct hl_device *hdev, size_t size, dma_addr_t *dma_handle, in hl_dma_alloc_common() argument
121 ptr = hdev->asic_funcs->asic_dma_alloc_coherent(hdev, size, dma_handle, flag); in hl_dma_alloc_common()
[all …]
H A Dhabanalabs_drv.c81 static enum hl_asic_type get_asic_type(struct hl_device *hdev) in get_asic_type() argument
83 struct pci_dev *pdev = hdev->pdev; in get_asic_type()
139 struct hl_device *hdev; in hl_device_open() local
144 hdev = idr_find(&hl_devs_idr, iminor(inode)); in hl_device_open()
147 if (!hdev) { in hl_device_open()
157 hpriv->hdev = hdev; in hl_device_open()
168 hl_mem_mgr_init(hpriv->hdev->dev, &hpriv->mem_mgr); in hl_device_open()
172 mutex_lock(&hdev->fpriv_list_lock); in hl_device_open()
174 if (!hl_device_operational(hdev, &status)) { in hl_device_open()
175 dev_dbg_ratelimited(hdev->dev, in hl_device_open()
[all …]
H A Dfirmware_if.c111 static int hl_get_sw_major_minor_subminor(struct hl_device *hdev, const char *fw_str) in hl_get_sw_major_minor_subminor() argument
138 start = extract_u32_until_given_char(start, &hdev->fw_sw_major_ver, '.'); in hl_get_sw_major_minor_subminor()
143 start = extract_u32_until_given_char(start, &hdev->fw_sw_minor_ver, '.'); in hl_get_sw_major_minor_subminor()
148 start = extract_u32_until_given_char(start, &hdev->fw_sw_sub_minor_ver, '-'); in hl_get_sw_major_minor_subminor()
155 hdev->fw_sw_major_ver = 0; in hl_get_sw_major_minor_subminor()
156 hdev->fw_sw_minor_ver = 0; in hl_get_sw_major_minor_subminor()
157 hdev->fw_sw_sub_minor_ver = 0; in hl_get_sw_major_minor_subminor()
171 static int hl_get_preboot_major_minor(struct hl_device *hdev, char *preboot_ver) in hl_get_preboot_major_minor() argument
173 preboot_ver = extract_u32_until_given_char(preboot_ver, &hdev->fw_inner_major_ver, '.'); in hl_get_preboot_major_minor()
175 dev_err(hdev->dev, "Error parsing preboot major version\n"); in hl_get_preboot_major_minor()
[all …]
H A Dhw_queue.c43 struct hl_device *hdev = cs->ctx->hdev; in hl_hw_queue_update_ci() local
47 if (hdev->disabled) in hl_hw_queue_update_ci()
50 q = &hdev->kernel_queues[0]; in hl_hw_queue_update_ci()
53 if (!hdev->asic_prop.max_queues || q->queue_type == QUEUE_TYPE_HW) in hl_hw_queue_update_ci()
61 for (i = 0 ; i < hdev->asic_prop.max_queues ; i++, q++) { in hl_hw_queue_update_ci()
83 void hl_hw_queue_submit_bd(struct hl_device *hdev, struct hl_hw_queue *q, in hl_hw_queue_submit_bd() argument
95 hdev->asic_funcs->ring_doorbell(hdev, q->hw_queue_id, q->pi); in hl_hw_queue_submit_bd()
116 static int ext_queue_sanity_checks(struct hl_device *hdev, in ext_queue_sanity_checks() argument
121 &hdev->completion_queue[q->cq_id].free_slots_cnt; in ext_queue_sanity_checks()
128 dev_dbg(hdev->dev, "Queue %d doesn't have room for %d CBs\n", in ext_queue_sanity_checks()
[all …]
H A Dsysfs.c14 struct hl_device *hdev = dev_get_drvdata(dev); in clk_max_freq_mhz_show() local
17 if (!hl_device_operational(hdev, NULL)) in clk_max_freq_mhz_show()
20 value = hl_fw_get_frequency(hdev, hdev->asic_prop.clk_pll_index, false); in clk_max_freq_mhz_show()
24 hdev->asic_prop.max_freq_value = value; in clk_max_freq_mhz_show()
32 struct hl_device *hdev = dev_get_drvdata(dev); in clk_max_freq_mhz_store() local
36 if (!hl_device_operational(hdev, NULL)) { in clk_max_freq_mhz_store()
47 hdev->asic_prop.max_freq_value = value * 1000 * 1000; in clk_max_freq_mhz_store()
49 hl_fw_set_frequency(hdev, hdev->asic_prop.clk_pll_index, hdev->asic_prop.max_freq_value); in clk_max_freq_mhz_store()
57 struct hl_device *hdev = dev_get_drvdata(dev); in clk_cur_freq_mhz_show() local
60 if (!hl_device_operational(hdev, NULL)) in clk_cur_freq_mhz_show()
[all …]
/openbmc/linux/net/bluetooth/
H A Dhci_sync.c24 static void hci_cmd_sync_complete(struct hci_dev *hdev, u8 result, u16 opcode, in hci_cmd_sync_complete() argument
27 bt_dev_dbg(hdev, "result 0x%2.2x", result); in hci_cmd_sync_complete()
29 if (hdev->req_status != HCI_REQ_PEND) in hci_cmd_sync_complete()
32 hdev->req_result = result; in hci_cmd_sync_complete()
33 hdev->req_status = HCI_REQ_DONE; in hci_cmd_sync_complete()
36 kfree_skb(hdev->req_skb); in hci_cmd_sync_complete()
37 hdev->req_skb = NULL; in hci_cmd_sync_complete()
46 hdev->req_rsp = skb_get(skb); in hci_cmd_sync_complete()
49 wake_up_interruptible(&hdev->req_wait_q); in hci_cmd_sync_complete()
52 static struct sk_buff *hci_cmd_sync_alloc(struct hci_dev *hdev, u16 opcode, in hci_cmd_sync_alloc() argument
[all …]
H A Dhci_debugfs.c39 struct hci_dev *hdev = file->private_data; \
42 buf[0] = test_bit(__quirk, &hdev->quirks) ? 'Y' : 'N'; \
52 struct hci_dev *hdev = file->private_data; \
56 if (test_bit(HCI_UP, &hdev->flags)) \
63 if (enable == test_bit(__quirk, &hdev->quirks)) \
66 change_bit(__quirk, &hdev->quirks); \
81 struct hci_dev *hdev = f->private; \
83 hci_dev_lock(hdev); \
84 seq_printf(f, "%s\n", hdev->__field ? : ""); \
85 hci_dev_unlock(hdev); \
[all …]
H A Dcoredump.c32 bt_dev_dbg(hdev, \
34 hci_dmp_cb(skb)->pkt_type, hdev->dump.state)
51 static int hci_devcd_update_state(struct hci_dev *hdev, int state) in hci_devcd_update_state() argument
53 bt_dev_dbg(hdev, "Updating devcoredump state from %d to %d.", in hci_devcd_update_state()
54 hdev->dump.state, state); in hci_devcd_update_state()
56 hdev->dump.state = state; in hci_devcd_update_state()
58 return hci_devcd_update_hdr_state(hdev->dump.head, in hci_devcd_update_state()
59 hdev->dump.alloc_size, state); in hci_devcd_update_state()
62 static int hci_devcd_mkheader(struct hci_dev *hdev, struct sk_buff *skb) in hci_devcd_mkheader() argument
72 if (hdev->dump.dmp_hdr) in hci_devcd_mkheader()
[all …]
H A Dhci_core.c70 struct hci_dev *hdev = NULL, *d; in hci_dev_get()
80 hdev = hci_dev_hold(d); in hci_dev_get()
85 return hdev; in hci_dev_get()
90 bool hci_discovery_active(struct hci_dev *hdev) in hci_discovery_active()
92 struct discovery_state *discov = &hdev->discovery; in hci_discovery_active()
104 void hci_discovery_set_state(struct hci_dev *hdev, int state) in hci_discovery_set_state()
106 int old_state = hdev->discovery.state; in hci_discovery_set_state()
108 BT_DBG("%s state %u -> %u", hdev->name, hdev->discovery.state, state); in hci_discovery_set_state()
113 hdev in hci_discovery_set_state()
69 struct hci_dev *hdev = NULL, *d; hci_dev_get() local
89 hci_discovery_active(struct hci_dev * hdev) hci_discovery_active() argument
103 hci_discovery_set_state(struct hci_dev * hdev,int state) hci_discovery_set_state() argument
133 hci_inquiry_cache_flush(struct hci_dev * hdev) hci_inquiry_cache_flush() argument
147 hci_inquiry_cache_lookup(struct hci_dev * hdev,bdaddr_t * bdaddr) hci_inquiry_cache_lookup() argument
163 hci_inquiry_cache_lookup_unknown(struct hci_dev * hdev,bdaddr_t * bdaddr) hci_inquiry_cache_lookup_unknown() argument
179 hci_inquiry_cache_lookup_resolve(struct hci_dev * hdev,bdaddr_t * bdaddr,int state) hci_inquiry_cache_lookup_resolve() argument
198 hci_inquiry_cache_update_resolve(struct hci_dev * hdev,struct inquiry_entry * ie) hci_inquiry_cache_update_resolve() argument
217 hci_inquiry_cache_update(struct hci_dev * hdev,struct inquiry_data * data,bool name_known) hci_inquiry_cache_update() argument
279 inquiry_cache_dump(struct hci_dev * hdev,int num,__u8 * buf) inquiry_cache_dump() argument
310 struct hci_dev *hdev = req->hdev; hci_inq_req() local
331 struct hci_dev *hdev; hci_inquiry() local
425 hci_dev_do_open(struct hci_dev * hdev) hci_dev_do_open() argument
443 struct hci_dev *hdev; hci_dev_open() local
496 hci_dev_do_close(struct hci_dev * hdev) hci_dev_do_close() argument
513 struct hci_dev *hdev; hci_dev_close() local
536 hci_dev_do_reset(struct hci_dev * hdev) hci_dev_do_reset() argument
591 struct hci_dev *hdev; hci_dev_reset() local
622 struct hci_dev *hdev; hci_dev_reset_stat() local
646 hci_update_passive_scan_state(struct hci_dev * hdev,u8 scan) hci_update_passive_scan_state() argument
684 struct hci_dev *hdev; hci_dev_cmd() local
790 struct hci_dev *hdev; hci_get_dev_list() local
840 struct hci_dev *hdev; hci_get_dev_info() local
895 struct hci_dev *hdev = data; hci_rfkill_set_block() local
920 struct hci_dev *hdev = container_of(work, struct hci_dev, power_on); hci_power_on() local
989 struct hci_dev *hdev = container_of(work, struct hci_dev, hci_power_off() local
999 struct hci_dev *hdev = container_of(work, struct hci_dev, error_reset); hci_error_reset() local
1015 hci_uuids_clear(struct hci_dev * hdev) hci_uuids_clear() argument
1025 hci_link_keys_clear(struct hci_dev * hdev) hci_link_keys_clear() argument
1035 hci_smp_ltks_clear(struct hci_dev * hdev) hci_smp_ltks_clear() argument
1045 hci_smp_irks_clear(struct hci_dev * hdev) hci_smp_irks_clear() argument
1055 hci_blocked_keys_clear(struct hci_dev * hdev) hci_blocked_keys_clear() argument
1065 hci_is_blocked_key(struct hci_dev * hdev,u8 type,u8 val[16]) hci_is_blocked_key() argument
1082 hci_find_link_key(struct hci_dev * hdev,bdaddr_t * bdaddr) hci_find_link_key() argument
1108 hci_persistent_key(struct hci_dev * hdev,struct hci_conn * conn,u8 key_type,u8 old_key_type) hci_persistent_key() argument
1156 hci_find_ltk(struct hci_dev * hdev,bdaddr_t * bdaddr,u8 addr_type,u8 role) hci_find_ltk() argument
1185 hci_find_irk_by_rpa(struct hci_dev * hdev,bdaddr_t * rpa) hci_find_irk_by_rpa() argument
1219 hci_find_irk_by_addr(struct hci_dev * hdev,bdaddr_t * bdaddr,u8 addr_type) hci_find_irk_by_addr() argument
1252 hci_add_link_key(struct hci_dev * hdev,struct hci_conn * conn,bdaddr_t * bdaddr,u8 * val,u8 type,u8 pin_len,bool * persistent) hci_add_link_key() argument
1299 hci_add_ltk(struct hci_dev * hdev,bdaddr_t * bdaddr,u8 addr_type,u8 type,u8 authenticated,u8 tk[16],u8 enc_size,__le16 ediv,__le64 rand) hci_add_ltk() argument
1328 hci_add_irk(struct hci_dev * hdev,bdaddr_t * bdaddr,u8 addr_type,u8 val[16],bdaddr_t * rpa) hci_add_irk() argument
1351 hci_remove_link_key(struct hci_dev * hdev,bdaddr_t * bdaddr) hci_remove_link_key() argument
1367 hci_remove_ltk(struct hci_dev * hdev,bdaddr_t * bdaddr,u8 bdaddr_type) hci_remove_ltk() argument
1386 hci_remove_irk(struct hci_dev * hdev,bdaddr_t * bdaddr,u8 addr_type) hci_remove_irk() argument
1401 hci_bdaddr_is_paired(struct hci_dev * hdev,bdaddr_t * bdaddr,u8 type) hci_bdaddr_is_paired() argument
1440 struct hci_dev *hdev = container_of(work, struct hci_dev, hci_cmd_timeout() local
1463 struct hci_dev *hdev = container_of(work, struct hci_dev, hci_ncmd_timeout() local
1478 hci_find_remote_oob_data(struct hci_dev * hdev,bdaddr_t * bdaddr,u8 bdaddr_type) hci_find_remote_oob_data() argument
1494 hci_remove_remote_oob_data(struct hci_dev * hdev,bdaddr_t * bdaddr,u8 bdaddr_type) hci_remove_remote_oob_data() argument
1511 hci_remote_oob_data_clear(struct hci_dev * hdev) hci_remote_oob_data_clear() argument
1521 hci_add_remote_oob_data(struct hci_dev * hdev,bdaddr_t * bdaddr,u8 bdaddr_type,u8 * hash192,u8 * rand192,u8 * hash256,u8 * rand256) hci_add_remote_oob_data() argument
1568 hci_find_adv_instance(struct hci_dev * hdev,u8 instance) hci_find_adv_instance() argument
1581 hci_get_next_instance(struct hci_dev * hdev,u8 instance) hci_get_next_instance() argument
1598 hci_remove_adv_instance(struct hci_dev * hdev,u8 instance) hci_remove_adv_instance() argument
1626 hci_adv_instances_set_rpa_expired(struct hci_dev * hdev,bool rpa_expired) hci_adv_instances_set_rpa_expired() argument
1635 hci_adv_instances_clear(struct hci_dev * hdev) hci_adv_instances_clear() argument
1665 hci_add_adv_instance(struct hci_dev * hdev,u8 instance,u32 flags,u16 adv_data_len,u8 * adv_data,u16 scan_rsp_len,u8 * scan_rsp_data,u16 timeout,u16 duration,s8 tx_power,u32 min_interval,u32 max_interval,u8 mesh_handle) hci_add_adv_instance() argument
1723 hci_add_per_instance(struct hci_dev * hdev,u8 instance,u32 flags,u8 data_len,u8 * data,u32 min_interval,u32 max_interval) hci_add_per_instance() argument
1745 hci_set_adv_instance_data(struct hci_dev * hdev,u8 instance,u16 adv_data_len,u8 * adv_data,u16 scan_rsp_len,u8 * scan_rsp_data) hci_set_adv_instance_data() argument
1780 hci_adv_instance_flags(struct hci_dev * hdev,u8 instance) hci_adv_instance_flags() argument
1814 hci_adv_instance_is_scannable(struct hci_dev * hdev,u8 instance) hci_adv_instance_is_scannable() argument
1834 hci_adv_monitors_clear(struct hci_dev * hdev) hci_adv_monitors_clear() argument
1848 hci_free_adv_monitor(struct hci_dev * hdev,struct adv_monitor * monitor) hci_free_adv_monitor() argument
1876 hci_add_adv_monitor(struct hci_dev * hdev,struct adv_monitor * monitor) hci_add_adv_monitor() argument
1922 hci_remove_adv_monitor(struct hci_dev * hdev,struct adv_monitor * monitor) hci_remove_adv_monitor() argument
1958 hci_remove_single_adv_monitor(struct hci_dev * hdev,u16 handle) hci_remove_single_adv_monitor() argument
1969 hci_remove_all_adv_monitor(struct hci_dev * hdev) hci_remove_all_adv_monitor() argument
1991 hci_is_adv_monitoring(struct hci_dev * hdev) hci_is_adv_monitoring() argument
1996 hci_get_adv_monitor_offload_ext(struct hci_dev * hdev) hci_get_adv_monitor_offload_ext() argument
2190 hci_conn_params_lookup(struct hci_dev * hdev,bdaddr_t * addr,u8 addr_type) hci_conn_params_lookup() argument
2245 hci_conn_params_add(struct hci_dev * hdev,bdaddr_t * addr,u8 addr_type) hci_conn_params_add() argument
2291 hci_conn_params_del(struct hci_dev * hdev,bdaddr_t * addr,u8 addr_type) hci_conn_params_del() argument
2307 hci_conn_params_clear_disabled(struct hci_dev * hdev) hci_conn_params_clear_disabled() argument
2330 hci_conn_params_clear_all(struct hci_dev * hdev) hci_conn_params_clear_all() argument
2353 hci_copy_identity_address(struct hci_dev * hdev,bdaddr_t * bdaddr,u8 * bdaddr_type) hci_copy_identity_address() argument
2368 hci_clear_wake_reason(struct hci_dev * hdev) hci_clear_wake_reason() argument
2382 struct hci_dev *hdev = hci_suspend_notifier() local
2415 struct hci_dev *hdev; hci_alloc_dev_priv() local
2547 hci_free_dev(struct hci_dev * hdev) hci_free_dev() argument
2555 hci_register_dev(struct hci_dev * hdev) hci_register_dev() argument
2661 hci_unregister_dev(struct hci_dev * hdev) hci_unregister_dev() argument
2711 hci_release_dev(struct hci_dev * hdev) hci_release_dev() argument
2748 hci_register_suspend_notifier(struct hci_dev * hdev) hci_register_suspend_notifier() argument
2761 hci_unregister_suspend_notifier(struct hci_dev * hdev) hci_unregister_suspend_notifier() argument
2780 hci_cancel_cmd_sync(struct hci_dev * hdev,int err) hci_cancel_cmd_sync() argument
2792 hci_suspend_dev(struct hci_dev * hdev) hci_suspend_dev() argument
2823 hci_resume_dev(struct hci_dev * hdev) hci_resume_dev() argument
2851 hci_reset_dev(struct hci_dev * hdev) hci_reset_dev() argument
2871 hci_recv_frame(struct hci_dev * hdev,struct sk_buff * skb) hci_recv_frame() argument
2916 hci_recv_diag(struct hci_dev * hdev,struct sk_buff * skb) hci_recv_diag() argument
2931 hci_set_hw_info(struct hci_dev * hdev,const char * fmt,...) hci_set_hw_info() argument
2942 hci_set_fw_info(struct hci_dev * hdev,const char * fmt,...) hci_set_fw_info() argument
2976 hci_send_frame(struct hci_dev * hdev,struct sk_buff * skb) hci_send_frame() argument
3013 hci_send_cmd(struct hci_dev * hdev,__u16 opcode,__u32 plen,const void * param) hci_send_cmd() argument
3037 __hci_cmd_send(struct hci_dev * hdev,u16 opcode,u32 plen,const void * param) __hci_cmd_send() argument
3085 hci_sent_cmd_data(struct hci_dev * hdev,__u16 opcode) hci_sent_cmd_data() argument
3099 hci_recv_event_data(struct hci_dev * hdev,__u8 event) hci_recv_event_data() argument
3146 struct hci_dev *hdev = conn->hdev; hci_queue_acl() local
3196 struct hci_dev *hdev = chan->conn->hdev; hci_send_acl() local
3208 struct hci_dev *hdev = conn->hdev; hci_send_sco() local
3242 struct hci_dev *hdev = conn->hdev; hci_queue_iso() local
3286 struct hci_dev *hdev = conn->hdev; hci_send_iso() local
3300 struct hci_dev *hdev; hci_quote_sent() local
3334 hci_low_sent(struct hci_dev * hdev,__u8 type,int * quote) hci_low_sent() argument
3372 hci_link_tx_to(struct hci_dev * hdev,__u8 type) hci_link_tx_to() argument
3398 hci_chan_sent(struct hci_dev * hdev,__u8 type,int * quote) hci_chan_sent() argument
3461 hci_prio_recalculate(struct hci_dev * hdev,__u8 type) hci_prio_recalculate() argument
3511 __check_timeout(struct hci_dev * hdev,unsigned int cnt,u8 type) __check_timeout() argument
3535 hci_sched_sco(struct hci_dev * hdev) hci_sched_sco() argument
3558 hci_sched_esco(struct hci_dev * hdev) hci_sched_esco() argument
3582 hci_sched_acl_pkt(struct hci_dev * hdev) hci_sched_acl_pkt() argument
3624 hci_sched_acl(struct hci_dev * hdev) hci_sched_acl() argument
3635 hci_sched_le(struct hci_dev * hdev) hci_sched_le() argument
3681 hci_sched_iso(struct hci_dev * hdev) hci_sched_iso() argument
3709 struct hci_dev *hdev = container_of(work, struct hci_dev, tx_work); hci_tx_work() local
3732 hci_acldata_packet(struct hci_dev * hdev,struct sk_buff * skb) hci_acldata_packet() argument
3773 hci_scodata_packet(struct hci_dev * hdev,struct sk_buff * skb) hci_scodata_packet() argument
3807 hci_isodata_packet(struct hci_dev * hdev,struct sk_buff * skb) hci_isodata_packet() argument
3844 hci_req_is_complete(struct hci_dev * hdev) hci_req_is_complete() argument
3855 hci_resend_last(struct hci_dev * hdev) hci_resend_last() argument
3877 hci_req_cmd_complete(struct hci_dev * hdev,u16 opcode,u8 status,hci_req_complete_t * req_complete,hci_req_complete_skb_t * req_complete_skb) hci_req_cmd_complete() argument
3946 struct hci_dev *hdev = container_of(work, struct hci_dev, rx_work); hci_rx_work() local
4019 hci_send_cmd_sync(struct hci_dev * hdev,struct sk_buff * skb) hci_send_cmd_sync() argument
4051 struct hci_dev *hdev = container_of(work, struct hci_dev, cmd_work); hci_cmd_work() local
[all...]
H A Dhci_request.c35 void hci_req_init(struct hci_request *req, struct hci_dev *hdev) in hci_req_init() argument
38 req->hdev = hdev; in hci_req_init()
47 bool hci_req_status_pend(struct hci_dev *hdev) in hci_req_status_pend() argument
49 return hdev->req_status == HCI_REQ_PEND; in hci_req_status_pend()
55 struct hci_dev *hdev = req->hdev; in req_run() local
59 bt_dev_dbg(hdev, "length %u", skb_queue_len(&req->cmd_q)); in req_run()
81 spin_lock_irqsave(&hdev->cmd_q.lock, flags); in req_run()
82 skb_queue_splice_tail(&req->cmd_q, &hdev->cmd_q); in req_run()
83 spin_unlock_irqrestore(&hdev->cmd_q.lock, flags); in req_run()
85 queue_work(hdev->workqueue, &hdev->cmd_work); in req_run()
[all …]
H A Dhci_event.c50 static void *hci_ev_skb_pull(struct hci_dev *hdev, struct sk_buff *skb, in hci_ev_skb_pull() argument
57 bt_dev_err(hdev, "Malformed Event: 0x%2.2x", ev); in hci_ev_skb_pull()
62 static void *hci_cc_skb_pull(struct hci_dev *hdev, struct sk_buff *skb, in hci_cc_skb_pull() argument
69 bt_dev_err(hdev, "Malformed Command Complete: 0x%4.4x", op); in hci_cc_skb_pull()
74 static void *hci_le_ev_skb_pull(struct hci_dev *hdev, struct sk_buff *skb, in hci_le_ev_skb_pull() argument
81 bt_dev_err(hdev, "Malformed LE Event: 0x%2.2x", ev); in hci_le_ev_skb_pull()
86 static u8 hci_cc_inquiry_cancel(struct hci_dev *hdev, void *data, in hci_cc_inquiry_cancel() argument
91 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status); in hci_cc_inquiry_cancel()
100 if (rp->status == HCI_ERROR_COMMAND_DISALLOWED && !test_bit(HCI_INQUIRY, &hdev->flags)) { in hci_cc_inquiry_cancel()
101 bt_dev_warn(hdev, "Ignorin in hci_cc_inquiry_cancel()
124 hci_cc_periodic_inq(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_periodic_inq() argument
139 hci_cc_exit_periodic_inq(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_exit_periodic_inq() argument
154 hci_cc_remote_name_req_cancel(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_remote_name_req_cancel() argument
164 hci_cc_role_discovery(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_role_discovery() argument
186 hci_cc_read_link_policy(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_link_policy() argument
208 hci_cc_write_link_policy(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_link_policy() argument
235 hci_cc_read_def_link_policy(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_def_link_policy() argument
250 hci_cc_write_def_link_policy(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_def_link_policy() argument
270 hci_cc_reset(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_reset() argument
305 hci_cc_read_stored_link_key(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_stored_link_key() argument
325 hci_cc_delete_stored_link_key(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_delete_stored_link_key() argument
346 hci_cc_write_local_name(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_local_name() argument
370 hci_cc_read_local_name(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_local_name() argument
387 hci_cc_write_auth_enable(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_auth_enable() argument
418 hci_cc_write_encrypt_mode(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_encrypt_mode() argument
444 hci_cc_write_scan_enable(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_scan_enable() argument
482 hci_cc_set_event_filter(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_set_event_filter() argument
508 hci_cc_read_class_of_dev(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_class_of_dev() argument
529 hci_cc_write_class_of_dev(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_class_of_dev() argument
554 hci_cc_read_voice_setting(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_voice_setting() argument
580 hci_cc_write_voice_setting(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_voice_setting() argument
611 hci_cc_read_num_supported_iac(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_num_supported_iac() argument
628 hci_cc_write_ssp_mode(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_ssp_mode() argument
661 hci_cc_write_sc_support(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_sc_support() argument
694 hci_cc_read_local_version(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_local_version() argument
716 hci_cc_read_enc_key_size(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_enc_key_size() argument
771 hci_cc_read_local_commands(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_local_commands() argument
788 hci_cc_read_auth_payload_timeout(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_auth_payload_timeout() argument
810 hci_cc_write_auth_payload_timeout(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_auth_payload_timeout() argument
840 hci_cc_read_local_features(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_local_features() argument
892 hci_cc_read_local_ext_features(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_local_ext_features() argument
916 hci_cc_read_buffer_size(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_buffer_size() argument
948 hci_cc_read_bd_addr(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_bd_addr() argument
967 hci_cc_read_local_pairing_opts(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_local_pairing_opts() argument
986 hci_cc_read_page_scan_activity(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_page_scan_activity() argument
1004 hci_cc_write_page_scan_activity(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_page_scan_activity() argument
1025 hci_cc_read_page_scan_type(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_page_scan_type() argument
1041 hci_cc_write_page_scan_type(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_page_scan_type() argument
1059 hci_cc_read_clock(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_clock() argument
1093 hci_cc_read_inq_rsp_tx_power(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_inq_rsp_tx_power() argument
1108 hci_cc_read_def_err_data_reporting(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_def_err_data_reporting() argument
1123 hci_cc_write_def_err_data_reporting(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_def_err_data_reporting() argument
1143 hci_cc_pin_code_reply(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_pin_code_reply() argument
1173 hci_cc_pin_code_neg_reply(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_pin_code_neg_reply() argument
1191 hci_cc_le_read_buffer_size(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_read_buffer_size() argument
1214 hci_cc_le_read_local_features(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_read_local_features() argument
1229 hci_cc_le_read_adv_tx_power(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_read_adv_tx_power() argument
1244 hci_cc_user_confirm_reply(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_user_confirm_reply() argument
1262 hci_cc_user_confirm_neg_reply(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_user_confirm_neg_reply() argument
1280 hci_cc_user_passkey_reply(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_user_passkey_reply() argument
1298 hci_cc_user_passkey_neg_reply(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_user_passkey_neg_reply() argument
1316 hci_cc_read_local_oob_data(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_local_oob_data() argument
1326 hci_cc_read_local_oob_ext_data(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_local_oob_ext_data() argument
1336 hci_cc_le_set_random_addr(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_set_random_addr() argument
1366 hci_cc_le_set_default_phy(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_set_default_phy() argument
1391 hci_cc_le_set_adv_set_random_addr(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_set_adv_set_random_addr() argument
1429 hci_cc_le_remove_adv_set(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_remove_adv_set() argument
1457 hci_cc_le_clear_adv_sets(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_clear_adv_sets() argument
1488 hci_cc_le_read_transmit_power(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_read_transmit_power() argument
1504 hci_cc_le_set_privacy_mode(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_set_privacy_mode() argument
1531 hci_cc_le_set_adv_enable(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_set_adv_enable() argument
1570 hci_cc_le_set_ext_adv_enable(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_set_ext_adv_enable() argument
1635 hci_cc_le_set_scan_param(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_set_scan_param() argument
1659 hci_cc_le_set_ext_scan_param(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_set_ext_scan_param() argument
1686 has_pending_adv_report(struct hci_dev * hdev) has_pending_adv_report() argument
1693 clear_pending_adv_report(struct hci_dev * hdev) clear_pending_adv_report() argument
1701 store_pending_adv_report(struct hci_dev * hdev,bdaddr_t * bdaddr,u8 bdaddr_type,s8 rssi,u32 flags,u8 * data,u8 len) store_pending_adv_report() argument
1718 le_set_scan_enable_complete(struct hci_dev * hdev,u8 enable) le_set_scan_enable_complete() argument
1774 hci_cc_le_set_scan_enable(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_set_scan_enable() argument
1794 hci_cc_le_set_ext_scan_enable(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_set_ext_scan_enable() argument
1814 hci_cc_le_read_num_adv_sets(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_read_num_adv_sets() argument
1830 hci_cc_le_read_accept_list_size(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_read_accept_list_size() argument
1845 hci_cc_le_clear_accept_list(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_clear_accept_list() argument
1862 hci_cc_le_add_to_accept_list(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_add_to_accept_list() argument
1885 hci_cc_le_del_from_accept_list(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_del_from_accept_list() argument
1908 hci_cc_le_read_supported_states(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_read_supported_states() argument
1923 hci_cc_le_read_def_data_len(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_read_def_data_len() argument
1939 hci_cc_le_write_def_data_len(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_write_def_data_len() argument
1960 hci_cc_le_add_to_resolv_list(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_add_to_resolv_list() argument
1984 hci_cc_le_del_from_resolv_list(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_del_from_resolv_list() argument
2007 hci_cc_le_clear_resolv_list(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_clear_resolv_list() argument
2024 hci_cc_le_read_resolv_list_size(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_read_resolv_list_size() argument
2039 hci_cc_le_set_addr_resolution_enable(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_set_addr_resolution_enable() argument
2066 hci_cc_le_read_max_data_len(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_read_max_data_len() argument
2084 hci_cc_write_le_host_supported(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_le_host_supported() argument
2120 hci_cc_set_adv_param(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_set_adv_param() argument
2142 hci_cc_set_ext_adv_param(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_set_ext_adv_param() argument
2176 hci_cc_read_rssi(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_rssi() argument
2198 hci_cc_read_tx_power(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_tx_power() argument
2234 hci_cc_write_ssp_debug_mode(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_ssp_debug_mode() argument
2252 hci_cs_inquiry(struct hci_dev * hdev,__u8 status) hci_cs_inquiry() argument
2263 hci_cs_create_conn(struct hci_dev * hdev,__u8 status) hci_cs_create_conn() argument
2298 hci_cs_add_sco(struct hci_dev * hdev,__u8 status) hci_cs_add_sco() argument
2335 hci_cs_auth_requested(struct hci_dev * hdev,__u8 status) hci_cs_auth_requested() argument
2362 hci_cs_set_conn_encrypt(struct hci_dev * hdev,__u8 status) hci_cs_set_conn_encrypt() argument
2389 hci_outgoing_auth_needed(struct hci_dev * hdev,struct hci_conn * conn) hci_outgoing_auth_needed() argument
2411 hci_resolve_name(struct hci_dev * hdev,struct inquiry_entry * e) hci_resolve_name() argument
2426 hci_resolve_next_name(struct hci_dev * hdev) hci_resolve_next_name() argument
2452 hci_check_pending_name(struct hci_dev * hdev,struct hci_conn * conn,bdaddr_t * bdaddr,u8 * name,u8 name_len) hci_check_pending_name() argument
2496 hci_cs_remote_name_req(struct hci_dev * hdev,__u8 status) hci_cs_remote_name_req() argument
2539 hci_cs_read_remote_features(struct hci_dev * hdev,__u8 status) hci_cs_read_remote_features() argument
2566 hci_cs_read_remote_ext_features(struct hci_dev * hdev,__u8 status) hci_cs_read_remote_ext_features() argument
2593 hci_setup_sync_conn_status(struct hci_dev * hdev,__u16 handle,__u8 status) hci_setup_sync_conn_status() argument
2618 hci_cs_setup_sync_conn(struct hci_dev * hdev,__u8 status) hci_cs_setup_sync_conn() argument
2634 hci_cs_enhanced_setup_sync_conn(struct hci_dev * hdev,__u8 status) hci_cs_enhanced_setup_sync_conn() argument
2650 hci_cs_sniff_mode(struct hci_dev * hdev,__u8 status) hci_cs_sniff_mode() argument
2677 hci_cs_exit_sniff_mode(struct hci_dev * hdev,__u8 status) hci_cs_exit_sniff_mode() argument
2704 hci_cs_disconnect(struct hci_dev * hdev,u8 status) hci_cs_disconnect() argument
2786 ev_bdaddr_type(struct hci_dev * hdev,u8 type,bool * resolved) ev_bdaddr_type() argument
2808 cs_le_create_conn(struct hci_dev * hdev,bdaddr_t * peer_addr,u8 peer_addr_type,u8 own_address_type,u8 filter_policy) cs_le_create_conn() argument
2835 hci_cs_le_create_conn(struct hci_dev * hdev,u8 status) hci_cs_le_create_conn() argument
2860 hci_cs_le_ext_create_conn(struct hci_dev * hdev,u8 status) hci_cs_le_ext_create_conn() argument
2885 hci_cs_le_read_remote_features(struct hci_dev * hdev,u8 status) hci_cs_le_read_remote_features() argument
2912 hci_cs_le_start_enc(struct hci_dev * hdev,u8 status) hci_cs_le_start_enc() argument
2942 hci_cs_switch_role(struct hci_dev * hdev,u8 status) hci_cs_switch_role() argument
2965 hci_inquiry_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_inquiry_complete_evt() argument
3024 hci_inquiry_result_evt(struct hci_dev * hdev,void * edata,struct sk_buff * skb) hci_inquiry_result_evt() argument
3068 hci_conn_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_conn_complete_evt() argument
3222 hci_reject_conn(struct hci_dev * hdev,bdaddr_t * bdaddr) hci_reject_conn() argument
3231 hci_conn_request_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_conn_request_evt() argument
3355 hci_disconn_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_disconn_complete_evt() argument
3440 hci_auth_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_auth_complete_evt() argument
3504 hci_remote_name_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_remote_name_evt() argument
3545 hci_encrypt_change_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_encrypt_change_evt() argument
3664 hci_change_link_key_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_change_link_key_complete_evt() argument
3687 hci_remote_features_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_remote_features_evt() argument
3737 handle_cmd_cnt_and_timer(struct hci_dev * hdev,u8 ncmd) handle_cmd_cnt_and_timer() argument
3755 hci_cc_le_read_buffer_size_v2(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_read_buffer_size_v2() argument
3782 hci_unbound_cis_failed(struct hci_dev * hdev,u8 cig,u8 status) hci_unbound_cis_failed() argument
3798 hci_cc_le_set_cig_params(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_set_cig_params() argument
3863 hci_cc_le_setup_iso_path(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_setup_iso_path() argument
3914 hci_cs_le_create_big(struct hci_dev * hdev,u8 status) hci_cs_le_create_big() argument
3919 hci_cc_set_per_adv_param(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_set_per_adv_param() argument
3938 hci_cc_le_set_per_adv_enable(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_set_per_adv_enable() argument
4171 hci_cc_func(struct hci_dev * hdev,const struct hci_cc * cc,struct sk_buff * skb) hci_cc_func() argument
4197 hci_cmd_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb,u16 * opcode,u8 * status,hci_req_complete_t * req_complete,hci_req_complete_skb_t * req_complete_skb) hci_cmd_complete_evt() argument
4242 hci_cs_le_create_cis(struct hci_dev * hdev,u8 status) hci_cs_le_create_cis() argument
4317 hci_cmd_status_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb,u16 * opcode,u8 * status,hci_req_complete_t * req_complete,hci_req_complete_skb_t * req_complete_skb) hci_cmd_status_evt() argument
4359 hci_hardware_error_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_hardware_error_evt() argument
4371 hci_role_change_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_role_change_evt() argument
4394 hci_num_comp_pkts_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_num_comp_pkts_evt() argument
4471 hci_mode_change_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_mode_change_evt() argument
4500 hci_pin_code_request_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_pin_code_request_evt() argument
4571 hci_link_key_request_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_link_key_request_evt() argument
4629 hci_link_key_notify_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_link_key_notify_evt() argument
4699 hci_clock_offset_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_clock_offset_evt() argument
4723 hci_pkt_type_change_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_pkt_type_change_evt() argument
4740 hci_pscan_rep_mode_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_pscan_rep_mode_evt() argument
4759 hci_inquiry_result_with_rssi_evt(struct hci_dev * hdev,void * edata,struct sk_buff * skb) hci_inquiry_result_with_rssi_evt() argument
4846 hci_remote_ext_features_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_remote_ext_features_evt() argument
4911 hci_sync_conn_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_sync_conn_complete_evt() argument
5041 hci_extended_inquiry_result_evt(struct hci_dev * hdev,void * edata,struct sk_buff * skb) hci_extended_inquiry_result_evt() argument
5096 hci_key_refresh_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_key_refresh_complete_evt() argument
5166 struct hci_dev *hdev = conn->hdev; bredr_oob_data_present() local
5206 hci_io_capa_request_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_io_capa_request_evt() argument
5279 hci_io_capa_reply_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_io_capa_reply_evt() argument
5300 hci_user_confirm_request_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_user_confirm_request_evt() argument
5382 hci_user_passkey_request_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_user_passkey_request_evt() argument
5393 hci_user_passkey_notify_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_user_passkey_notify_evt() argument
5414 hci_keypress_notify_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_keypress_notify_evt() argument
5453 hci_simple_pair_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_simple_pair_complete_evt() argument
5484 hci_remote_host_features_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_remote_host_features_evt() argument
5506 hci_remote_oob_data_request_evt(struct hci_dev * hdev,void * edata,struct sk_buff * skb) hci_remote_oob_data_request_evt() argument
5613 le_conn_complete_evt(struct hci_dev * hdev,u8 status,bdaddr_t * bdaddr,u8 bdaddr_type,bdaddr_t * local_rpa,u8 role,u16 handle,u16 interval,u16 latency,u16 supervision_timeout) le_conn_complete_evt() argument
5784 hci_le_conn_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_conn_complete_evt() argument
5798 hci_le_enh_conn_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_enh_conn_complete_evt() argument
5812 hci_le_ext_adv_term_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_ext_adv_term_evt() argument
5882 hci_le_conn_update_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_conn_update_complete_evt() argument
5906 check_pending_le_conn(struct hci_dev * hdev,bdaddr_t * addr,u8 addr_type,bool addr_resolved,u8 adv_type) check_pending_le_conn() argument
5997 process_adv_report(struct hci_dev * hdev,u8 type,bdaddr_t * bdaddr,u8 bdaddr_type,bdaddr_t * direct_addr,u8 direct_addr_type,s8 rssi,u8 * data,u8 len,bool ext_adv,bool ctl_time,u64 instant) process_adv_report() argument
6206 hci_le_adv_report_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_adv_report_evt() argument
6245 ext_evt_type_to_legacy(struct hci_dev * hdev,u16 evt_type) ext_evt_type_to_legacy() argument
6289 hci_le_ext_adv_report_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_ext_adv_report_evt() argument
6328 hci_le_pa_term_sync(struct hci_dev * hdev,__le16 handle) hci_le_pa_term_sync() argument
6338 hci_le_pa_sync_estabilished_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_pa_sync_estabilished_evt() argument
6379 hci_le_per_adv_report_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_per_adv_report_evt() argument
6397 hci_le_remote_feat_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_remote_feat_complete_evt() argument
6439 hci_le_ltk_request_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_ltk_request_evt() argument
6504 send_conn_param_neg_reply(struct hci_dev * hdev,u16 handle,u8 reason) send_conn_param_neg_reply() argument
6516 hci_le_remote_conn_param_req_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_remote_conn_param_req_evt() argument
6580 hci_le_direct_adv_report_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_direct_adv_report_evt() argument
6608 hci_le_phy_update_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_phy_update_evt() argument
6632 hci_le_cis_estabilished_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_cis_estabilished_evt() argument
6732 hci_le_reject_cis(struct hci_dev * hdev,__le16 handle) hci_le_reject_cis() argument
6742 hci_le_accept_cis(struct hci_dev * hdev,__le16 handle) hci_le_accept_cis() argument
6751 hci_le_cis_req_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_cis_req_evt() argument
6802 hci_iso_term_big_sync(struct hci_dev * hdev,void * data) hci_iso_term_big_sync() argument
6810 hci_le_create_big_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_create_big_complete_evt() argument
6857 hci_le_big_sync_established_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_big_sync_established_evt() argument
6934 hci_le_big_info_adv_report_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_big_info_adv_report_evt() argument
7077 hci_le_meta_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb,u16 * opcode,u8 * status,hci_req_complete_t * req_complete,hci_req_complete_skb_t * req_complete_skb) hci_le_meta_evt() argument
7120 hci_get_cmd_complete(struct hci_dev * hdev,u16 opcode,u8 event,struct sk_buff * skb) hci_get_cmd_complete() argument
7164 hci_store_wake_reason(struct hci_dev * hdev,u8 event,struct sk_buff * skb) hci_store_wake_reason() argument
7394 hci_event_func(struct hci_dev * hdev,u8 event,struct sk_buff * skb,u16 * opcode,u8 * status,hci_req_complete_t * req_complete,hci_req_complete_skb_t * req_complete_skb) hci_event_func() argument
7431 hci_event_packet(struct hci_dev * hdev,struct sk_buff * skb) hci_event_packet() argument
[all...]
H A Dmgmt.c323 static int mgmt_index_event(u16 event, struct hci_dev *hdev, void *data, in mgmt_index_event() argument
326 return mgmt_send_event(event, hdev, HCI_CHANNEL_CONTROL, data, len, in mgmt_index_event()
330 static int mgmt_limited_event(u16 event, struct hci_dev *hdev, void *data, in mgmt_limited_event() argument
333 return mgmt_send_event(event, hdev, HCI_CHANNEL_CONTROL, data, len, in mgmt_limited_event()
337 static int mgmt_event(u16 event, struct hci_dev *hdev, void *data, u16 len, in mgmt_event() argument
340 return mgmt_send_event(event, hdev, HCI_CHANNEL_CONTROL, data, len, in mgmt_event()
366 static int read_version(struct sock *sk, struct hci_dev *hdev, void *data, in read_version() argument
371 bt_dev_dbg(hdev, "sock %p", sk); in read_version()
379 static int read_commands(struct sock *sk, struct hci_dev *hdev, void *data, in read_commands() argument
387 bt_dev_dbg(hdev, "sock %p", sk); in read_commands()
[all …]
/openbmc/linux/net/nfc/hci/
H A Dcore.c37 void nfc_hci_reset_pipes(struct nfc_hci_dev *hdev) in nfc_hci_reset_pipes() argument
42 hdev->pipes[i].gate = NFC_HCI_INVALID_GATE; in nfc_hci_reset_pipes()
43 hdev->pipes[i].dest_host = NFC_HCI_INVALID_HOST; in nfc_hci_reset_pipes()
45 memset(hdev->gate2pipe, NFC_HCI_INVALID_PIPE, sizeof(hdev->gate2pipe)); in nfc_hci_reset_pipes()
49 void nfc_hci_reset_pipes_per_host(struct nfc_hci_dev *hdev, u8 host) in nfc_hci_reset_pipes_per_host() argument
54 if (hdev->pipes[i].dest_host != host) in nfc_hci_reset_pipes_per_host()
57 hdev->pipes[i].gate = NFC_HCI_INVALID_GATE; in nfc_hci_reset_pipes_per_host()
58 hdev->pipes[i].dest_host = NFC_HCI_INVALID_HOST; in nfc_hci_reset_pipes_per_host()
65 struct nfc_hci_dev *hdev = container_of(work, struct nfc_hci_dev, in nfc_hci_msg_tx_work() local
71 mutex_lock(&hdev->msg_tx_mutex); in nfc_hci_msg_tx_work()
[all …]
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_main.c19 static int hclgevf_reset_hdev(struct hclgevf_dev *hdev);
20 static void hclgevf_task_schedule(struct hclgevf_dev *hdev,
50 void hclgevf_arq_init(struct hclgevf_dev *hdev) in hclgevf_arq_init() argument
52 struct hclge_comm_cmq *cmdq = &hdev->hw.hw.cmq; in hclgevf_arq_init()
56 hdev->arq.hdev = hdev; in hclgevf_arq_init()
57 hdev->arq.head = 0; in hclgevf_arq_init()
58 hdev->arq.tail = 0; in hclgevf_arq_init()
59 atomic_set(&hdev->arq.count, 0); in hclgevf_arq_init()
75 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_update_stats() local
78 status = hclge_comm_tqps_update_stats(handle, &hdev->hw.hw); in hclgevf_update_stats()
[all …]
H A Dhclgevf_mbx.c17 static void hclgevf_reset_mbx_resp_status(struct hclgevf_dev *hdev) in hclgevf_reset_mbx_resp_status() argument
22 hdev->mbx_resp.received_resp = false; in hclgevf_reset_mbx_resp_status()
23 hdev->mbx_resp.origin_mbx_msg = 0; in hclgevf_reset_mbx_resp_status()
24 hdev->mbx_resp.resp_status = 0; in hclgevf_reset_mbx_resp_status()
25 hdev->mbx_resp.match_id++; in hclgevf_reset_mbx_resp_status()
27 if (hdev->mbx_resp.match_id == 0) in hclgevf_reset_mbx_resp_status()
28 hdev->mbx_resp.match_id = HCLGEVF_MBX_MATCH_ID_START; in hclgevf_reset_mbx_resp_status()
29 memset(hdev->mbx_resp.additional_info, 0, HCLGE_MBX_MAX_RESP_DATA_SIZE); in hclgevf_reset_mbx_resp_status()
40 static int hclgevf_get_mbx_resp(struct hclgevf_dev *hdev, u16 code0, u16 code1, in hclgevf_get_mbx_resp() argument
50 dev_err(&hdev->pdev->dev, in hclgevf_get_mbx_resp()
[all …]
/openbmc/linux/drivers/bluetooth/
H A Dbtintel.c52 int btintel_check_bdaddr(struct hci_dev *hdev) in btintel_check_bdaddr() argument
57 skb = __hci_cmd_sync(hdev, HCI_OP_READ_BD_ADDR, 0, NULL, in btintel_check_bdaddr()
61 bt_dev_err(hdev, "Reading Intel device address failed (%d)", in btintel_check_bdaddr()
67 bt_dev_err(hdev, "Intel device address length mismatch"); in btintel_check_bdaddr()
80 bt_dev_err(hdev, "Found Intel default device address (%pMR)", in btintel_check_bdaddr()
82 set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks); in btintel_check_bdaddr()
91 int btintel_enter_mfg(struct hci_dev *hdev) in btintel_enter_mfg() argument
96 skb = __hci_cmd_sync(hdev, 0xfc11, 2, param, HCI_CMD_TIMEOUT); in btintel_enter_mfg()
98 bt_dev_err(hdev, "Entering manufacturer mode failed (%ld)", in btintel_enter_mfg()
108 int btintel_exit_mfg(struct hci_dev *hdev, bool reset, bool patched) in btintel_exit_mfg() argument
[all …]
/openbmc/linux/include/net/bluetooth/
H A Dhci_sync.h11 typedef int (*hci_cmd_sync_work_func_t)(struct hci_dev *hdev, void *data);
12 typedef void (*hci_cmd_sync_work_destroy_t)(struct hci_dev *hdev, void *data,
27 struct sk_buff *__hci_cmd_sync(struct hci_dev *hdev, u16 opcode, u32 plen,
29 struct sk_buff *hci_cmd_sync(struct hci_dev *hdev, u16 opcode, u32 plen,
31 struct sk_buff *__hci_cmd_sync_ev(struct hci_dev *hdev, u16 opcode, u32 plen,
33 struct sk_buff *__hci_cmd_sync_sk(struct hci_dev *hdev, u16 opcode, u32 plen,
36 int __hci_cmd_sync_status(struct hci_dev *hdev, u16 opcode, u32 plen,
38 int __hci_cmd_sync_status_sk(struct hci_dev *hdev, u16 opcode, u32 plen,
41 int hci_cmd_sync_status(struct hci_dev *hdev, u16 opcode, u32 plen,
44 void hci_cmd_sync_init(struct hci_dev *hdev);
[all …]
/openbmc/linux/drivers/media/platform/qcom/venus/
H A Dhfi_venus.c138 static void venus_set_state(struct venus_hfi_device *hdev, in venus_set_state() argument
141 mutex_lock(&hdev->lock); in venus_set_state()
142 hdev->state = state; in venus_set_state()
143 mutex_unlock(&hdev->lock); in venus_set_state()
146 static bool venus_is_valid_state(struct venus_hfi_device *hdev) in venus_is_valid_state() argument
148 return hdev->state != VENUS_STATE_DEINIT; in venus_is_valid_state()
151 static void venus_dump_packet(struct venus_hfi_device *hdev, const void *packet) in venus_dump_packet() argument
162 static int venus_write_queue(struct venus_hfi_device *hdev, in venus_write_queue() argument
178 venus_dump_packet(hdev, packet); in venus_write_queue()
236 static int venus_read_queue(struct venus_hfi_device *hdev, in venus_read_queue() argument
[all …]
/openbmc/linux/drivers/crypto/
H A Dimg-hash.c85 struct img_hash_dev *hdev; member
112 struct img_hash_dev *hdev; member
149 static inline u32 img_hash_read(struct img_hash_dev *hdev, u32 offset) in img_hash_read() argument
151 return readl_relaxed(hdev->io_base + offset); in img_hash_read()
154 static inline void img_hash_write(struct img_hash_dev *hdev, in img_hash_write() argument
157 writel_relaxed(value, hdev->io_base + offset); in img_hash_write()
160 static inline __be32 img_hash_read_result_queue(struct img_hash_dev *hdev) in img_hash_read_result_queue() argument
162 return cpu_to_be32(img_hash_read(hdev, CR_RESULT_QUEUE)); in img_hash_read_result_queue()
165 static void img_hash_start(struct img_hash_dev *hdev, bool dma) in img_hash_start() argument
167 struct img_hash_request_ctx *ctx = ahash_request_ctx(hdev->req); in img_hash_start()
[all …]
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_dcb.c11 static int hclge_ieee_ets_to_tm_info(struct hclge_dev *hdev, in hclge_ieee_ets_to_tm_info() argument
19 hdev->tm_info.tc_info[i].tc_sch_mode = in hclge_ieee_ets_to_tm_info()
21 hdev->tm_info.pg_info[0].tc_dwrr[i] = 0; in hclge_ieee_ets_to_tm_info()
24 hdev->tm_info.tc_info[i].tc_sch_mode = in hclge_ieee_ets_to_tm_info()
26 hdev->tm_info.pg_info[0].tc_dwrr[i] = in hclge_ieee_ets_to_tm_info()
39 hclge_tm_prio_tc_info_update(hdev, ets->prio_tc); in hclge_ieee_ets_to_tm_info()
44 static void hclge_tm_info_to_ieee_ets(struct hclge_dev *hdev, in hclge_tm_info_to_ieee_ets() argument
51 ets->ets_cap = hdev->tc_max; in hclge_tm_info_to_ieee_ets()
54 ets->prio_tc[i] = hdev->tm_info.prio_tc[i]; in hclge_tm_info_to_ieee_ets()
55 if (i < hdev->tm_info.num_tc) in hclge_tm_info_to_ieee_ets()
[all …]
H A Dhclge_tm.c138 static void hclge_pfc_stats_get(struct hclge_dev *hdev, bool tx, u64 *stats) in hclge_pfc_stats_get() argument
149 stats[i] = HCLGE_STATS_READ(&hdev->mac_stats, offset[i]); in hclge_pfc_stats_get()
152 void hclge_pfc_rx_stats_get(struct hclge_dev *hdev, u64 *stats) in hclge_pfc_rx_stats_get() argument
154 hclge_pfc_stats_get(hdev, false, stats); in hclge_pfc_rx_stats_get()
157 void hclge_pfc_tx_stats_get(struct hclge_dev *hdev, u64 *stats) in hclge_pfc_tx_stats_get() argument
159 hclge_pfc_stats_get(hdev, true, stats); in hclge_pfc_tx_stats_get()
162 int hclge_mac_pause_en_cfg(struct hclge_dev *hdev, bool tx, bool rx) in hclge_mac_pause_en_cfg() argument
171 return hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_mac_pause_en_cfg()
174 int hclge_pfc_pause_en_cfg(struct hclge_dev *hdev, u8 tx_rx_bitmap, in hclge_pfc_pause_en_cfg() argument
185 return hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_pfc_pause_en_cfg()
[all …]
H A Dhclge_main.c46 static int hclge_set_mac_mtu(struct hclge_dev *hdev, int new_mps);
47 static int hclge_init_vlan_config(struct hclge_dev *hdev);
48 static void hclge_sync_vlan_filter(struct hclge_dev *hdev);
51 static void hclge_rfs_filter_expire(struct hclge_dev *hdev);
52 static int hclge_clear_arfs_rules(struct hclge_dev *hdev);
55 static int hclge_set_default_loopback(struct hclge_dev *hdev);
57 static void hclge_sync_mac_table(struct hclge_dev *hdev);
58 static void hclge_restore_hw_table(struct hclge_dev *hdev);
59 static void hclge_sync_promisc_mode(struct hclge_dev *hdev);
60 static void hclge_sync_fd_table(struct hclge_dev *hdev);
[all …]
H A Dhclge_ptp.c8 static int hclge_ptp_get_cycle(struct hclge_dev *hdev) in hclge_ptp_get_cycle() argument
10 struct hclge_ptp *ptp = hdev->ptp; in hclge_ptp_get_cycle()
12 ptp->cycle.quo = readl(hdev->ptp->io_base + HCLGE_PTP_CYCLE_QUO_REG) & in hclge_ptp_get_cycle()
14 ptp->cycle.numer = readl(hdev->ptp->io_base + HCLGE_PTP_CYCLE_NUM_REG); in hclge_ptp_get_cycle()
15 ptp->cycle.den = readl(hdev->ptp->io_base + HCLGE_PTP_CYCLE_DEN_REG); in hclge_ptp_get_cycle()
18 dev_err(&hdev->pdev->dev, "invalid ptp cycle denominator!\n"); in hclge_ptp_get_cycle()
27 struct hclge_dev *hdev = hclge_ptp_get_hdev(ptp); in hclge_ptp_adjfine() local
28 struct hclge_ptp_cycle *cycle = &hdev->ptp->cycle; in hclge_ptp_adjfine()
43 spin_lock_irqsave(&hdev->ptp->lock, flags); in hclge_ptp_adjfine()
45 hdev->ptp->io_base + HCLGE_PTP_CYCLE_QUO_REG); in hclge_ptp_adjfine()
[all …]
/openbmc/linux/drivers/accel/habanalabs/common/pci/
H A Dpci.c32 int hl_pci_bars_map(struct hl_device *hdev, const char * const name[3], in hl_pci_bars_map() argument
35 struct pci_dev *pdev = hdev->pdev; in hl_pci_bars_map()
40 dev_err(hdev->dev, "Cannot obtain PCI resources\n"); in hl_pci_bars_map()
46 hdev->pcie_bar[bar] = is_wc[i] ? in hl_pci_bars_map()
49 if (!hdev->pcie_bar[bar]) { in hl_pci_bars_map()
50 dev_err(hdev->dev, "pci_ioremap%s_bar failed for %s\n", in hl_pci_bars_map()
62 if (hdev->pcie_bar[bar]) in hl_pci_bars_map()
63 iounmap(hdev->pcie_bar[bar]); in hl_pci_bars_map()
77 static void hl_pci_bars_unmap(struct hl_device *hdev) in hl_pci_bars_unmap() argument
79 struct pci_dev *pdev = hdev->pdev; in hl_pci_bars_unmap()
[all …]
/openbmc/linux/drivers/accel/habanalabs/goya/
H A Dgoya_hwmgr.c10 void goya_set_pll_profile(struct hl_device *hdev, enum hl_pll_frequency freq) in goya_set_pll_profile() argument
12 struct goya_device *goya = hdev->asic_specific; in goya_set_pll_profile()
14 if (!hdev->pdev) in goya_set_pll_profile()
19 hl_fw_set_frequency(hdev, HL_GOYA_MME_PLL, hdev->high_pll); in goya_set_pll_profile()
20 hl_fw_set_frequency(hdev, HL_GOYA_TPC_PLL, hdev->high_pll); in goya_set_pll_profile()
21 hl_fw_set_frequency(hdev, HL_GOYA_IC_PLL, hdev->high_pll); in goya_set_pll_profile()
24 hl_fw_set_frequency(hdev, HL_GOYA_MME_PLL, GOYA_PLL_FREQ_LOW); in goya_set_pll_profile()
25 hl_fw_set_frequency(hdev, HL_GOYA_TPC_PLL, GOYA_PLL_FREQ_LOW); in goya_set_pll_profile()
26 hl_fw_set_frequency(hdev, HL_GOYA_IC_PLL, GOYA_PLL_FREQ_LOW); in goya_set_pll_profile()
29 hl_fw_set_frequency(hdev, HL_GOYA_MME_PLL, goya->mme_clk); in goya_set_pll_profile()
[all …]

12345678910>>...16