Home
last modified time | relevance | path

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

12345678910>>...14

/linux/drivers/accel/habanalabs/common/
H A Ddevice.c51 static u64 hl_set_dram_bar(struct hl_device *hdev, u64 addr, struct pci_mem_region *region, in hl_set_dram_bar() argument
54 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_set_dram_bar()
64 old_base = hdev->asic_funcs->set_dram_bar_base(hdev, bar_base_addr); in hl_set_dram_bar()
73 int hl_access_sram_dram_region(struct hl_device *hdev, u64 addr, u64 *val, in hl_access_sram_dram_region() argument
76 struct pci_mem_region *region = &hdev->pci_mem_region[region_type]; in hl_access_sram_dram_region()
81 old_base = hl_set_dram_bar(hdev, addr, region, &bar_region_base); in hl_access_sram_dram_region()
86 acc_addr = hdev->pcie_bar[region->bar_id] + region->offset_in_bar + in hl_access_sram_dram_region()
111 rc = hl_set_dram_bar(hdev, old_base, region, NULL); in hl_access_sram_dram_region()
119 static void *hl_dma_alloc_common(struct hl_device *hdev, size_t size, dma_addr_t *dma_handle, in hl_dma_alloc_common() argument
127 ptr = hdev->asic_funcs->asic_dma_alloc_coherent(hdev, size, dma_handle, flag); in hl_dma_alloc_common()
[all …]
H A Dhabanalabs_drv.c120 static enum hl_asic_type get_asic_type(struct hl_device *hdev) in get_asic_type() argument
122 struct pci_dev *pdev = hdev->pdev; in get_asic_type()
179 struct hl_device *hdev = to_hl_device(ddev); in hl_device_open() local
188 hpriv->hdev = hdev; in hl_device_open()
195 hl_mem_mgr_init(hpriv->hdev->dev, &hpriv->mem_mgr); in hl_device_open()
199 mutex_lock(&hdev->fpriv_list_lock); in hl_device_open()
201 if (!hl_device_operational(hdev, &status)) { in hl_device_open()
202 dev_dbg_ratelimited(hdev->dev, in hl_device_open()
204 dev_name(hdev->dev), hdev->status[status]); in hl_device_open()
215 if (hdev->is_in_dram_scrub) { in hl_device_open()
[all …]
H A Dfirmware_if.c55 int hl_fw_version_cmp(struct hl_device *hdev, u32 major, u32 minor, u32 subminor) in hl_fw_version_cmp() argument
57 if (hdev->fw_sw_major_ver != major) in hl_fw_version_cmp()
58 return (hdev->fw_sw_major_ver > major) ? 1 : -1; in hl_fw_version_cmp()
60 if (hdev->fw_sw_minor_ver != minor) in hl_fw_version_cmp()
61 return (hdev->fw_sw_minor_ver > minor) ? 1 : -1; in hl_fw_version_cmp()
63 if (hdev->fw_sw_sub_minor_ver != subminor) in hl_fw_version_cmp()
64 return (hdev->fw_sw_sub_minor_ver > subminor) ? 1 : -1; in hl_fw_version_cmp()
137 static int hl_get_sw_major_minor_subminor(struct hl_device *hdev, const char *fw_str) in hl_get_sw_major_minor_subminor() argument
164 start = extract_u32_until_given_char(start, &hdev->fw_sw_major_ver, '.'); in hl_get_sw_major_minor_subminor()
169 start = extract_u32_until_given_char(start, &hdev->fw_sw_minor_ver, '.'); in hl_get_sw_major_minor_subminor()
[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
100 hdev->asic_funcs->access_dev_mem(hdev, PCI_REGION_DRAM, addr, in hl_hw_queue_submit_bd()
106 hdev->asic_funcs->ring_doorbell(hdev, q->hw_queue_id, q->pi); in hl_hw_queue_submit_bd()
127 static int ext_queue_sanity_checks(struct hl_device *hdev, in ext_queue_sanity_checks() argument
132 &hdev->completion_queue[q->cq_id].free_slots_cnt; in ext_queue_sanity_checks()
[all …]
/linux/net/bluetooth/
H A Dhci_sync.c23 static void hci_cmd_sync_complete(struct hci_dev *hdev, u8 result, u16 opcode, in hci_cmd_sync_complete() argument
26 bt_dev_dbg(hdev, "result 0x%2.2x", result); in hci_cmd_sync_complete()
28 if (READ_ONCE(hdev->req_status) != HCI_REQ_PEND) in hci_cmd_sync_complete()
31 hdev->req_result = result; in hci_cmd_sync_complete()
32 WRITE_ONCE(hdev->req_status, HCI_REQ_DONE); in hci_cmd_sync_complete()
35 kfree_skb(hdev->req_skb); in hci_cmd_sync_complete()
36 hdev->req_skb = NULL; in hci_cmd_sync_complete()
45 hdev->req_rsp = skb_get(skb); in hci_cmd_sync_complete()
48 wake_up_interruptible(&hdev->req_wait_q); in hci_cmd_sync_complete()
51 struct sk_buff *hci_cmd_sync_alloc(struct hci_dev *hdev, u16 opcode, u32 plen, in hci_cmd_sync_alloc() argument
[all …]
H A Dhci_debugfs.c38 struct hci_dev *hdev = file->private_data; \
41 buf[0] = test_bit(__quirk, hdev->quirk_flags) ? 'Y' : 'N'; \
51 struct hci_dev *hdev = file->private_data; \
55 if (test_bit(HCI_UP, &hdev->flags)) \
62 if (enable == test_bit(__quirk, hdev->quirk_flags)) \
65 change_bit(__quirk, hdev->quirk_flags); \
80 struct hci_dev *hdev = f->private; \
82 hci_dev_lock(hdev); \
83 seq_printf(f, "%s\n", hdev->__field ? : ""); \
84 hci_dev_unlock(hdev); \
[all …]
H A Dhci_core.c69 struct hci_dev *hdev = NULL, *d; in __hci_dev_get() local
79 hdev = hci_dev_hold(d); in __hci_dev_get()
86 return hdev; in __hci_dev_get()
99 static void hci_dev_put_srcu(struct hci_dev *hdev, int srcu_index) in hci_dev_put_srcu() argument
101 srcu_read_unlock(&hdev->srcu, srcu_index); in hci_dev_put_srcu()
102 hci_dev_put(hdev); in hci_dev_put_srcu()
107 bool hci_discovery_active(struct hci_dev *hdev) in hci_discovery_active() argument
109 struct discovery_state *discov = &hdev->discovery; in hci_discovery_active()
122 void hci_discovery_set_state(struct hci_dev *hdev, int state) in hci_discovery_set_state() argument
124 int old_state = hdev->discovery.state; in hci_discovery_set_state()
[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 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 …]
H A Dhci_event.c47 static void *hci_ev_skb_pull(struct hci_dev *hdev, struct sk_buff *skb, in hci_ev_skb_pull() argument
54 bt_dev_err(hdev, "Malformed Event: 0x%2.2x", ev); in hci_ev_skb_pull()
59 static void *hci_cc_skb_pull(struct hci_dev *hdev, struct sk_buff *skb, in hci_cc_skb_pull() argument
66 bt_dev_err(hdev, "Malformed Command Complete: 0x%4.4x", op); in hci_cc_skb_pull()
71 static void *hci_le_ev_skb_pull(struct hci_dev *hdev, struct sk_buff *skb, in hci_le_ev_skb_pull() argument
78 bt_dev_err(hdev, "Malformed LE Event: 0x%2.2x", ev); in hci_le_ev_skb_pull()
83 static u8 hci_cc_inquiry_cancel(struct hci_dev *hdev, void *data, in hci_cc_inquiry_cancel() argument
88 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status); in hci_cc_inquiry_cancel()
97 if (rp->status == HCI_ERROR_COMMAND_DISALLOWED && !test_bit(HCI_INQUIRY, &hdev->flags)) { in hci_cc_inquiry_cancel()
98 bt_dev_warn(hdev, "Ignorin in hci_cc_inquiry_cancel()
121 hci_cc_periodic_inq(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_periodic_inq() argument
136 hci_cc_exit_periodic_inq(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_exit_periodic_inq() argument
151 hci_cc_remote_name_req_cancel(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_remote_name_req_cancel() argument
161 hci_cc_role_discovery(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_role_discovery() argument
183 hci_cc_read_link_policy(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_link_policy() argument
205 hci_cc_write_link_policy(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_link_policy() argument
232 hci_cc_read_def_link_policy(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_def_link_policy() argument
247 hci_cc_write_def_link_policy(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_def_link_policy() argument
267 hci_cc_reset(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_reset() argument
302 hci_cc_read_stored_link_key(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_stored_link_key() argument
322 hci_cc_delete_stored_link_key(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_delete_stored_link_key() argument
343 hci_cc_write_local_name(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_local_name() argument
367 hci_cc_read_local_name(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_local_name() argument
384 hci_cc_write_auth_enable(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_auth_enable() argument
415 hci_cc_write_encrypt_mode(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_encrypt_mode() argument
441 hci_cc_write_scan_enable(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_scan_enable() argument
479 hci_cc_set_event_filter(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_set_event_filter() argument
505 hci_cc_read_class_of_dev(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_class_of_dev() argument
526 hci_cc_write_class_of_dev(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_class_of_dev() argument
551 hci_cc_read_voice_setting(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_voice_setting() argument
577 hci_cc_write_voice_setting(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_voice_setting() argument
608 hci_cc_read_num_supported_iac(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_num_supported_iac() argument
625 hci_cc_write_ssp_mode(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_ssp_mode() argument
658 hci_cc_write_sc_support(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_sc_support() argument
691 hci_cc_read_local_version(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_local_version() argument
713 hci_cc_read_enc_key_size(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_enc_key_size() argument
779 hci_cc_read_local_commands(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_local_commands() argument
796 hci_cc_read_auth_payload_timeout(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_auth_payload_timeout() argument
818 hci_cc_write_auth_payload_timeout(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_auth_payload_timeout() argument
848 hci_cc_read_local_features(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_local_features() argument
900 hci_cc_read_local_ext_features(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_local_ext_features() argument
924 hci_cc_read_buffer_size(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_buffer_size() argument
959 hci_cc_read_bd_addr(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_bd_addr() argument
978 hci_cc_read_local_pairing_opts(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_local_pairing_opts() argument
997 hci_cc_read_page_scan_activity(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_page_scan_activity() argument
1015 hci_cc_write_page_scan_activity(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_page_scan_activity() argument
1036 hci_cc_read_page_scan_type(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_page_scan_type() argument
1052 hci_cc_write_page_scan_type(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_page_scan_type() argument
1070 hci_cc_read_clock(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_clock() argument
1104 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
1119 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
1134 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
1154 hci_cc_pin_code_reply(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_pin_code_reply() argument
1184 hci_cc_pin_code_neg_reply(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_pin_code_neg_reply() argument
1202 hci_cc_le_read_buffer_size(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_read_buffer_size() argument
1225 hci_cc_le_read_local_features(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_read_local_features() argument
1240 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
1255 hci_cc_user_confirm_reply(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_user_confirm_reply() argument
1273 hci_cc_user_confirm_neg_reply(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_user_confirm_neg_reply() argument
1291 hci_cc_user_passkey_reply(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_user_passkey_reply() argument
1309 hci_cc_user_passkey_neg_reply(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_user_passkey_neg_reply() argument
1327 hci_cc_read_local_oob_data(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_local_oob_data() argument
1337 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
1347 hci_cc_le_set_random_addr(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_set_random_addr() argument
1377 hci_cc_le_set_default_phy(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_set_default_phy() argument
1402 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
1440 hci_cc_le_remove_adv_set(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_remove_adv_set() argument
1468 hci_cc_le_clear_adv_sets(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_clear_adv_sets() argument
1499 hci_cc_le_read_transmit_power(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_read_transmit_power() argument
1515 hci_cc_le_set_privacy_mode(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_set_privacy_mode() argument
1542 hci_cc_le_set_adv_enable(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_set_adv_enable() argument
1581 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
1650 hci_cc_le_set_scan_param(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_set_scan_param() argument
1674 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
1701 has_pending_adv_report(struct hci_dev * hdev) has_pending_adv_report() argument
1708 clear_pending_adv_report(struct hci_dev * hdev) clear_pending_adv_report() argument
1716 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
1733 le_set_scan_enable_complete(struct hci_dev * hdev,u8 enable) le_set_scan_enable_complete() argument
1789 hci_cc_le_set_scan_enable(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_set_scan_enable() argument
1809 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
1829 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
1845 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
1860 hci_cc_le_clear_accept_list(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_clear_accept_list() argument
1877 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
1900 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
1923 hci_cc_le_read_supported_states(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_read_supported_states() argument
1938 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
1954 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
1975 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
1999 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
2022 hci_cc_le_clear_resolv_list(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_clear_resolv_list() argument
2039 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
2054 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
2081 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
2099 hci_cc_write_le_host_supported(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_le_host_supported() argument
2135 hci_cc_set_adv_param(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_set_adv_param() argument
2157 hci_cc_read_rssi(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_rssi() argument
2179 hci_cc_read_tx_power(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_read_tx_power() argument
2215 hci_cc_write_ssp_debug_mode(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_write_ssp_debug_mode() argument
2233 hci_cs_inquiry(struct hci_dev * hdev,__u8 status) hci_cs_inquiry() argument
2244 hci_cs_create_conn(struct hci_dev * hdev,__u8 status) hci_cs_create_conn() argument
2279 hci_cs_add_sco(struct hci_dev * hdev,__u8 status) hci_cs_add_sco() argument
2316 hci_cs_auth_requested(struct hci_dev * hdev,__u8 status) hci_cs_auth_requested() argument
2343 hci_cs_set_conn_encrypt(struct hci_dev * hdev,__u8 status) hci_cs_set_conn_encrypt() argument
2370 hci_outgoing_auth_needed(struct hci_dev * hdev,struct hci_conn * conn) hci_outgoing_auth_needed() argument
2392 hci_resolve_name(struct hci_dev * hdev,struct inquiry_entry * e) hci_resolve_name() argument
2407 hci_resolve_next_name(struct hci_dev * hdev) hci_resolve_next_name() argument
2433 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
2477 hci_cs_remote_name_req(struct hci_dev * hdev,__u8 status) hci_cs_remote_name_req() argument
2520 hci_cs_read_remote_features(struct hci_dev * hdev,__u8 status) hci_cs_read_remote_features() argument
2547 hci_cs_read_remote_ext_features(struct hci_dev * hdev,__u8 status) hci_cs_read_remote_ext_features() argument
2574 hci_setup_sync_conn_status(struct hci_dev * hdev,__u16 handle,__u8 status) hci_setup_sync_conn_status() argument
2599 hci_cs_setup_sync_conn(struct hci_dev * hdev,__u8 status) hci_cs_setup_sync_conn() argument
2615 hci_cs_enhanced_setup_sync_conn(struct hci_dev * hdev,__u8 status) hci_cs_enhanced_setup_sync_conn() argument
2631 hci_cs_sniff_mode(struct hci_dev * hdev,__u8 status) hci_cs_sniff_mode() argument
2658 hci_cs_exit_sniff_mode(struct hci_dev * hdev,__u8 status) hci_cs_exit_sniff_mode() argument
2685 hci_cs_disconnect(struct hci_dev * hdev,u8 status) hci_cs_disconnect() argument
2773 ev_bdaddr_type(struct hci_dev * hdev,u8 type,bool * resolved) ev_bdaddr_type() argument
2795 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
2822 hci_cs_le_create_conn(struct hci_dev * hdev,u8 status) hci_cs_le_create_conn() argument
2847 hci_cs_le_ext_create_conn(struct hci_dev * hdev,u8 status) hci_cs_le_ext_create_conn() argument
2872 hci_cs_le_read_remote_features(struct hci_dev * hdev,u8 status) hci_cs_le_read_remote_features() argument
2895 hci_cs_le_start_enc(struct hci_dev * hdev,u8 status) hci_cs_le_start_enc() argument
2925 hci_cs_switch_role(struct hci_dev * hdev,u8 status) hci_cs_switch_role() argument
2948 hci_inquiry_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_inquiry_complete_evt() argument
3007 hci_inquiry_result_evt(struct hci_dev * hdev,void * edata,struct sk_buff * skb) hci_inquiry_result_evt() argument
3051 hci_read_enc_key_size(struct hci_dev * hdev,struct hci_conn * conn) hci_read_enc_key_size() argument
3079 hci_conn_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_conn_complete_evt() argument
3232 hci_reject_conn(struct hci_dev * hdev,bdaddr_t * bdaddr) hci_reject_conn() argument
3241 hci_conn_request_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_conn_request_evt() argument
3365 hci_disconn_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_disconn_complete_evt() argument
3457 hci_auth_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_auth_complete_evt() argument
3521 hci_remote_name_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_remote_name_evt() argument
3562 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_cc_le_read_all_local_features(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_le_read_all_local_features() argument
3929 hci_cs_le_create_big(struct hci_dev * hdev,u8 status) hci_cs_le_create_big() argument
3934 hci_cs_le_read_all_remote_features(struct hci_dev * hdev,u8 status) hci_cs_le_read_all_remote_features() argument
3957 hci_cc_set_per_adv_param(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_cc_set_per_adv_param() argument
3976 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
4213 hci_cc_func(struct hci_dev * hdev,const struct hci_cc * cc,struct sk_buff * skb) hci_cc_func() argument
4239 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
4291 hci_cs_le_create_cis(struct hci_dev * hdev,u8 status) hci_cs_le_create_cis() argument
4369 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
4411 hci_hardware_error_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_hardware_error_evt() argument
4423 hci_role_change_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_role_change_evt() argument
4446 hci_num_comp_pkts_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_num_comp_pkts_evt() argument
4535 hci_mode_change_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_mode_change_evt() argument
4564 hci_pin_code_request_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_pin_code_request_evt() argument
4635 hci_link_key_request_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_link_key_request_evt() argument
4693 hci_link_key_notify_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_link_key_notify_evt() argument
4763 hci_clock_offset_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_clock_offset_evt() argument
4787 hci_pkt_type_change_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_pkt_type_change_evt() argument
4804 hci_pscan_rep_mode_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_pscan_rep_mode_evt() argument
4823 hci_inquiry_result_with_rssi_evt(struct hci_dev * hdev,void * edata,struct sk_buff * skb) hci_inquiry_result_with_rssi_evt() argument
4910 hci_remote_ext_features_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_remote_ext_features_evt() argument
4975 hci_sync_conn_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_sync_conn_complete_evt() argument
5105 hci_extended_inquiry_result_evt(struct hci_dev * hdev,void * edata,struct sk_buff * skb) hci_extended_inquiry_result_evt() argument
5160 hci_key_refresh_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_key_refresh_complete_evt() argument
5230 struct hci_dev *hdev = conn->hdev; bredr_oob_data_present() local
5270 hci_io_capa_request_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_io_capa_request_evt() argument
5343 hci_io_capa_reply_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_io_capa_reply_evt() argument
5364 hci_user_confirm_request_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_user_confirm_request_evt() argument
5446 hci_user_passkey_request_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_user_passkey_request_evt() argument
5457 hci_user_passkey_notify_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_user_passkey_notify_evt() argument
5478 hci_keypress_notify_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_keypress_notify_evt() argument
5517 hci_simple_pair_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_simple_pair_complete_evt() argument
5548 hci_remote_host_features_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_remote_host_features_evt() argument
5570 hci_remote_oob_data_request_evt(struct hci_dev * hdev,void * edata,struct sk_buff * skb) hci_remote_oob_data_request_evt() argument
5677 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
5840 hci_le_conn_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_conn_complete_evt() argument
5854 hci_le_enh_conn_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_enh_conn_complete_evt() argument
5868 hci_le_pa_sync_lost_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_pa_sync_lost_evt() argument
5891 hci_le_ext_adv_term_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_ext_adv_term_evt() argument
5961 hci_le_pa_term_sync(struct hci_dev * hdev,__le16 handle) hci_le_pa_term_sync() argument
5971 hci_le_past_received_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_past_received_evt() argument
6026 hci_le_conn_update_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_conn_update_complete_evt() argument
6050 check_pending_le_conn(struct hci_dev * hdev,bdaddr_t * addr,u8 addr_type,bool addr_resolved,u8 adv_type,u8 phy,u8 sec_phy) check_pending_le_conn() argument
6141 process_adv_report(struct hci_dev * hdev,u8 type,bdaddr_t * bdaddr,u8 bdaddr_type,bdaddr_t * direct_addr,u8 direct_addr_type,u8 phy,u8 sec_phy,s8 rssi,u8 * data,u8 len,bool ext_adv,bool ctl_time,u64 instant) process_adv_report() argument
6355 hci_le_adv_report_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_adv_report_evt() argument
6395 ext_evt_type_to_legacy(struct hci_dev * hdev,u16 evt_type) ext_evt_type_to_legacy() argument
6443 hci_le_ext_adv_report_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_ext_adv_report_evt() argument
6502 hci_le_pa_sync_established_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_pa_sync_established_evt() argument
6559 hci_le_per_adv_report_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_per_adv_report_evt() argument
6598 hci_le_remote_feat_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_remote_feat_complete_evt() argument
6639 hci_le_ltk_request_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_ltk_request_evt() argument
6704 send_conn_param_neg_reply(struct hci_dev * hdev,u16 handle,u8 reason) send_conn_param_neg_reply() argument
6716 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
6780 hci_le_direct_adv_report_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_direct_adv_report_evt() argument
6808 hci_le_phy_update_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_phy_update_evt() argument
6832 hci_le_cis_established_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_cis_established_evt() argument
6932 hci_le_reject_cis(struct hci_dev * hdev,__le16 handle) hci_le_reject_cis() argument
6942 hci_le_accept_cis(struct hci_dev * hdev,__le16 handle) hci_le_accept_cis() argument
6951 hci_le_cis_req_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_cis_req_evt() argument
7002 hci_iso_term_big_sync(struct hci_dev * hdev,void * data) hci_iso_term_big_sync() argument
7010 hci_le_create_big_complete_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_create_big_complete_evt() argument
7058 hci_le_big_sync_established_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_big_sync_established_evt() argument
7144 hci_le_big_sync_lost_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_big_sync_lost_evt() argument
7175 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
7210 hci_le_read_all_remote_features_evt(struct hci_dev * hdev,void * data,struct sk_buff * skb) hci_le_read_all_remote_features_evt() argument
7367 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
7411 hci_get_cmd_complete(struct hci_dev * hdev,u16 opcode,u8 event,struct sk_buff * skb) hci_get_cmd_complete() argument
7455 hci_store_wake_reason(struct hci_dev * hdev,u8 event,struct sk_buff * skb) hci_store_wake_reason() argument
7685 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
7722 hci_event_packet(struct hci_dev * hdev,struct sk_buff * skb) hci_event_packet() argument
[all...]
H A Dmsft.c136 bool msft_monitor_supported(struct hci_dev *hdev) in msft_monitor_supported() argument
138 return !!(msft_get_features(hdev) & MSFT_FEATURE_MASK_LE_ADV_MONITOR); in msft_monitor_supported()
141 static bool read_supported_features(struct hci_dev *hdev, in read_supported_features() argument
150 skb = __hci_cmd_sync(hdev, hdev->msft_opcode, sizeof(cp), &cp, in read_supported_features()
153 bt_dev_err(hdev, "Failed to read MSFT supported features (%ld)", in read_supported_features()
159 bt_dev_err(hdev, "MSFT supported features length mismatch"); in read_supported_features()
179 hdev->msft_curve_validity = true; in read_supported_features()
194 (struct hci_dev *hdev, u16 handle, bool is_mgmt) in msft_find_handle_data() argument
197 struct msft_data *msft = hdev->msft_data; in msft_find_handle_data()
211 (struct hci_dev *hdev, u8 addr_type, bdaddr_t *addr, in msft_find_address_data() argument
[all …]
/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_main.c20 static int hclgevf_reset_hdev(struct hclgevf_dev *hdev);
21 static void hclgevf_task_schedule(struct hclgevf_dev *hdev,
87 void hclgevf_arq_init(struct hclgevf_dev *hdev) in hclgevf_arq_init() argument
89 struct hclge_comm_cmq *cmdq = &hdev->hw.hw.cmq; in hclgevf_arq_init()
93 hdev->arq.hdev = hdev; in hclgevf_arq_init()
94 hdev->arq.head = 0; in hclgevf_arq_init()
95 hdev->arq.tail = 0; in hclgevf_arq_init()
96 atomic_set(&hdev->arq.count, 0); in hclgevf_arq_init()
112 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_update_stats() local
115 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 …]
/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 …]
/linux/include/net/bluetooth/
H A Dhci_sync.h15 #define hci_req_sync_lock(hdev) mutex_lock(&hdev->req_lock) argument
16 #define hci_req_sync_unlock(hdev) mutex_unlock(&hdev->req_lock) argument
19 struct hci_dev *hdev; member
28 typedef int (*hci_cmd_sync_work_func_t)(struct hci_dev *hdev, void *data);
29 typedef void (*hci_cmd_sync_work_destroy_t)(struct hci_dev *hdev, void *data,
41 struct sk_buff *hci_cmd_sync_alloc(struct hci_dev *hdev, u16 opcode, u32 plen,
44 /* Function with sync suffix shall not be called with hdev->lock held as they
46 * which could attempt to acquire hdev
[all...]
/linux/drivers/bluetooth/
H A Dbtintel.c61 int btintel_check_bdaddr(struct hci_dev *hdev) in btintel_check_bdaddr() argument
66 skb = __hci_cmd_sync(hdev, HCI_OP_READ_BD_ADDR, 0, NULL, in btintel_check_bdaddr()
70 bt_dev_err(hdev, "Reading Intel device address failed (%d)", in btintel_check_bdaddr()
76 bt_dev_err(hdev, "Intel device address length mismatch"); in btintel_check_bdaddr()
89 bt_dev_err(hdev, "Found Intel default device address (%pMR)", in btintel_check_bdaddr()
91 hci_set_quirk(hdev, HCI_QUIRK_INVALID_BDADDR); in btintel_check_bdaddr()
100 int btintel_enter_mfg(struct hci_dev *hdev) in btintel_enter_mfg() argument
105 skb = __hci_cmd_sync(hdev, 0xfc11, 2, param, HCI_CMD_TIMEOUT); in btintel_enter_mfg()
107 bt_dev_err(hdev, "Entering manufacturer mode failed (%ld)", in btintel_enter_mfg()
117 int btintel_exit_mfg(struct hci_dev *hdev, bool reset, bool patched) in btintel_exit_mfg() argument
[all …]
H A Dbpa10x.c37 struct hci_dev *hdev; member
50 struct hci_dev *hdev = (struct hci_dev *) skb->dev; in bpa10x_tx_complete() local
52 BT_DBG("%s urb %p status %d count %d", hdev->name, in bpa10x_tx_complete()
55 if (!test_bit(HCI_RUNNING, &hdev->flags)) in bpa10x_tx_complete()
59 hdev->stat.byte_tx += urb->transfer_buffer_length; in bpa10x_tx_complete()
61 hdev->stat.err_tx++; in bpa10x_tx_complete()
87 struct hci_dev *hdev = urb->context; in bpa10x_rx_complete() local
88 struct bpa10x_data *data = hci_get_drvdata(hdev); in bpa10x_rx_complete()
91 BT_DBG("%s urb %p status %d count %d", hdev->name, in bpa10x_rx_complete()
94 if (!test_bit(HCI_RUNNING, &hdev->flags)) in bpa10x_rx_complete()
[all …]
/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()
239 static int venus_read_queue(struct venus_hfi_device *hdev, in venus_read_queue() argument
[all …]
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
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.c50 static int hclge_set_mac_mtu(struct hclge_dev *hdev, int new_mps);
51 static int hclge_init_vlan_config(struct hclge_dev *hdev);
52 static void hclge_sync_vlan_filter(struct hclge_dev *hdev);
55 static void hclge_rfs_filter_expire(struct hclge_dev *hdev);
56 static int hclge_clear_arfs_rules(struct hclge_dev *hdev);
59 static int hclge_set_default_loopback(struct hclge_dev *hdev);
61 static void hclge_sync_mac_table(struct hclge_dev *hdev);
62 static void hclge_restore_hw_table(struct hclge_dev *hdev);
63 static void hclge_sync_promisc_mode(struct hclge_dev *hdev);
64 static void hclge_sync_fd_table(struct hclge_dev *hdev);
[all …]
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 …]
/linux/drivers/soc/hisilicon/
H A Dkunpeng_hccs.c76 static char *hccs_port_type_to_name(struct hccs_dev *hdev, u8 type) in hccs_port_type_to_name() argument
80 for (i = 0; i < hdev->used_type_num; i++) { in hccs_port_type_to_name()
81 if (hdev->type_name_maps[i].type == type) in hccs_port_type_to_name()
82 return hdev->type_name_maps[i].name; in hccs_port_type_to_name()
88 static int hccs_name_to_port_type(struct hccs_dev *hdev, in hccs_name_to_port_type() argument
93 for (i = 0; i < hdev->used_type_num; i++) { in hccs_name_to_port_type()
94 if (strcmp(hdev->type_name_maps[i].name, name) == 0) { in hccs_name_to_port_type()
95 *type = hdev->type_name_maps[i].type; in hccs_name_to_port_type()
129 static int hccs_get_pcc_chan_id(struct hccs_dev *hdev) in hccs_get_pcc_chan_id() argument
131 acpi_handle handle = ACPI_HANDLE(hdev->dev); in hccs_get_pcc_chan_id()
[all …]
/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 …]
/linux/drivers/accel/habanalabs/goya/
H A Dgoya.c355 static int goya_mmu_clear_pgt_range(struct hl_device *hdev);
356 static int goya_mmu_set_dram_default_page(struct hl_device *hdev);
357 static int goya_mmu_add_mappings_for_device_cpu(struct hl_device *hdev);
358 static void goya_mmu_prepare(struct hl_device *hdev, u32 asid);
360 int goya_set_fixed_properties(struct hl_device *hdev) in goya_set_fixed_properties() argument
362 struct asic_fixed_properties *prop = &hdev->asic_prop; in goya_set_fixed_properties()
410 if (hdev->pldm) in goya_set_fixed_properties()
507 static int goya_pci_bars_map(struct hl_device *hdev) in goya_pci_bars_map() argument
513 rc = hl_pci_bars_map(hdev, name, is_wc); in goya_pci_bars_map()
517 hdev->rmmio = hdev->pcie_bar[SRAM_CFG_BAR_ID] + in goya_pci_bars_map()
[all …]
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>>...14