Home
last modified time | relevance | path

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

1234567891011

/Linux-v4.19/net/bluetooth/
Dhci_debugfs.c36 struct hci_dev *hdev = file->private_data; \
39 buf[0] = test_bit(__quirk, &hdev->quirks) ? 'Y' : 'N'; \
49 struct hci_dev *hdev = file->private_data; \
53 if (test_bit(HCI_UP, &hdev->flags)) \
60 if (enable == test_bit(__quirk, &hdev->quirks)) \
63 change_bit(__quirk, &hdev->quirks); \
78 struct hci_dev *hdev = f->private; \
80 hci_dev_lock(hdev); \
81 seq_printf(f, "%s\n", hdev->__field ? : ""); \
82 hci_dev_unlock(hdev); \
[all …]
Dhci_core.c65 struct hci_dev *hdev = file->private_data; in dut_mode_read() local
68 buf[0] = hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y' : 'N'; in dut_mode_read()
77 struct hci_dev *hdev = file->private_data; in dut_mode_write() local
82 if (!test_bit(HCI_UP, &hdev->flags)) in dut_mode_write()
89 if (enable == hci_dev_test_flag(hdev, HCI_DUT_MODE)) in dut_mode_write()
92 hci_req_sync_lock(hdev); in dut_mode_write()
94 skb = __hci_cmd_sync(hdev, HCI_OP_ENABLE_DUT_MODE, 0, NULL, in dut_mode_write()
97 skb = __hci_cmd_sync(hdev, HCI_OP_RESET, 0, NULL, in dut_mode_write()
99 hci_req_sync_unlock(hdev); in dut_mode_write()
106 hci_dev_change_flag(hdev, HCI_DUT_MODE); in dut_mode_write()
[all …]
Dhci_request.c37 void hci_req_init(struct hci_request *req, struct hci_dev *hdev) in hci_req_init() argument
40 req->hdev = hdev; in hci_req_init()
52 struct hci_dev *hdev = req->hdev; in req_run() local
78 spin_lock_irqsave(&hdev->cmd_q.lock, flags); in req_run()
79 skb_queue_splice_tail(&req->cmd_q, &hdev->cmd_q); in req_run()
80 spin_unlock_irqrestore(&hdev->cmd_q.lock, flags); in req_run()
82 queue_work(hdev->workqueue, &hdev->cmd_work); in req_run()
97 static void hci_req_sync_complete(struct hci_dev *hdev, u8 result, u16 opcode, in hci_req_sync_complete() argument
100 BT_DBG("%s result 0x%2.2x", hdev->name, result); in hci_req_sync_complete()
102 if (hdev->req_status == HCI_REQ_PEND) { in hci_req_sync_complete()
[all …]
Dhci_event.c44 static void hci_cc_inquiry_cancel(struct hci_dev *hdev, struct sk_buff *skb) in hci_cc_inquiry_cancel() argument
48 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_inquiry_cancel()
53 clear_bit(HCI_INQUIRY, &hdev->flags); in hci_cc_inquiry_cancel()
55 wake_up_bit(&hdev->flags, HCI_INQUIRY); in hci_cc_inquiry_cancel()
57 hci_dev_lock(hdev); in hci_cc_inquiry_cancel()
61 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN) || in hci_cc_inquiry_cancel()
62 hdev->le_scan_type != LE_SCAN_ACTIVE) in hci_cc_inquiry_cancel()
63 hci_discovery_set_state(hdev, DISCOVERY_STOPPED); in hci_cc_inquiry_cancel()
64 hci_dev_unlock(hdev); in hci_cc_inquiry_cancel()
66 hci_conn_check_pending(hdev); in hci_cc_inquiry_cancel()
[all …]
Dmgmt.c250 static int mgmt_index_event(u16 event, struct hci_dev *hdev, void *data, in mgmt_index_event() argument
253 return mgmt_send_event(event, hdev, HCI_CHANNEL_CONTROL, data, len, in mgmt_index_event()
257 static int mgmt_limited_event(u16 event, struct hci_dev *hdev, void *data, in mgmt_limited_event() argument
260 return mgmt_send_event(event, hdev, HCI_CHANNEL_CONTROL, data, len, in mgmt_limited_event()
264 static int mgmt_event(u16 event, struct hci_dev *hdev, void *data, u16 len, in mgmt_event() argument
267 return mgmt_send_event(event, hdev, HCI_CHANNEL_CONTROL, data, len, in mgmt_event()
287 static int read_version(struct sock *sk, struct hci_dev *hdev, void *data, in read_version() argument
300 static int read_commands(struct sock *sk, struct hci_dev *hdev, void *data, in read_commands() argument
352 static int read_index_list(struct sock *sk, struct hci_dev *hdev, void *data, in read_index_list() argument
412 static int read_unconf_index_list(struct sock *sk, struct hci_dev *hdev, in read_unconf_index_list() argument
[all …]
Dhci_conn.c66 struct hci_dev *hdev = conn->hdev; in hci_connect_le_scan_cleanup() local
75 irk = hci_get_irk(hdev, bdaddr, bdaddr_type); in hci_connect_le_scan_cleanup()
81 params = hci_pend_le_action_lookup(&hdev->pend_le_conns, bdaddr, in hci_connect_le_scan_cleanup()
97 hci_conn_params_del(hdev, bdaddr, bdaddr_type); in hci_connect_le_scan_cleanup()
102 list_add(&params->action, &hdev->pend_le_conns); in hci_connect_le_scan_cleanup()
105 list_add(&params->action, &hdev->pend_le_reports); in hci_connect_le_scan_cleanup()
111 hci_update_background_scan(hdev); in hci_connect_le_scan_cleanup()
116 struct hci_dev *hdev = conn->hdev; in hci_conn_cleanup() local
119 hci_conn_params_del(conn->hdev, &conn->dst, conn->dst_type); in hci_conn_cleanup()
123 hci_conn_hash_del(hdev, conn); in hci_conn_cleanup()
[all …]
/Linux-v4.19/net/nfc/hci/
Dcore.c49 void nfc_hci_reset_pipes(struct nfc_hci_dev *hdev) in nfc_hci_reset_pipes() argument
54 hdev->pipes[i].gate = NFC_HCI_INVALID_GATE; in nfc_hci_reset_pipes()
55 hdev->pipes[i].dest_host = NFC_HCI_INVALID_HOST; in nfc_hci_reset_pipes()
57 memset(hdev->gate2pipe, NFC_HCI_INVALID_PIPE, sizeof(hdev->gate2pipe)); in nfc_hci_reset_pipes()
61 void nfc_hci_reset_pipes_per_host(struct nfc_hci_dev *hdev, u8 host) in nfc_hci_reset_pipes_per_host() argument
66 if (hdev->pipes[i].dest_host != host) in nfc_hci_reset_pipes_per_host()
69 hdev->pipes[i].gate = NFC_HCI_INVALID_GATE; in nfc_hci_reset_pipes_per_host()
70 hdev->pipes[i].dest_host = NFC_HCI_INVALID_HOST; in nfc_hci_reset_pipes_per_host()
77 struct nfc_hci_dev *hdev = container_of(work, struct nfc_hci_dev, in nfc_hci_msg_tx_work() local
83 mutex_lock(&hdev->msg_tx_mutex); in nfc_hci_msg_tx_work()
[all …]
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c13 static int hclgevf_init_hdev(struct hclgevf_dev *hdev);
14 static void hclgevf_uninit_hdev(struct hclgevf_dev *hdev);
34 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_tqps_update_stats() local
41 for (i = 0; i < hdev->num_tqps; i++) { in hclgevf_tqps_update_stats()
49 status = hclgevf_cmd_send(&hdev->hw, &desc, 1); in hclgevf_tqps_update_stats()
51 dev_err(&hdev->pdev->dev, in hclgevf_tqps_update_stats()
63 status = hclgevf_cmd_send(&hdev->hw, &desc, 1); in hclgevf_tqps_update_stats()
65 dev_err(&hdev->pdev->dev, in hclgevf_tqps_update_stats()
80 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_tqps_get_stats() local
85 for (i = 0; i < hdev->num_tqps; i++) { in hclgevf_tqps_get_stats()
[all …]
Dhclgevf_mbx.c8 static void hclgevf_reset_mbx_resp_status(struct hclgevf_dev *hdev) in hclgevf_reset_mbx_resp_status() argument
13 hdev->mbx_resp.received_resp = false; in hclgevf_reset_mbx_resp_status()
14 hdev->mbx_resp.origin_mbx_msg = 0; in hclgevf_reset_mbx_resp_status()
15 hdev->mbx_resp.resp_status = 0; in hclgevf_reset_mbx_resp_status()
16 memset(hdev->mbx_resp.additional_info, 0, HCLGE_MBX_MAX_RESP_DATA_SIZE); in hclgevf_reset_mbx_resp_status()
25 static int hclgevf_get_mbx_resp(struct hclgevf_dev *hdev, u16 code0, u16 code1, in hclgevf_get_mbx_resp() argument
35 dev_err(&hdev->pdev->dev, in hclgevf_get_mbx_resp()
42 while ((!hdev->mbx_resp.received_resp) && (i < HCLGEVF_MAX_TRY_TIMES)) { in hclgevf_get_mbx_resp()
48 dev_err(&hdev->pdev->dev, in hclgevf_get_mbx_resp()
50 hdev->mbx_resp.received_resp, i); in hclgevf_get_mbx_resp()
[all …]
/Linux-v4.19/drivers/media/platform/qcom/venus/
Dhfi_venus.c153 static void venus_set_state(struct venus_hfi_device *hdev, in venus_set_state() argument
156 mutex_lock(&hdev->lock); in venus_set_state()
157 hdev->state = state; in venus_set_state()
158 mutex_unlock(&hdev->lock); in venus_set_state()
161 static bool venus_is_valid_state(struct venus_hfi_device *hdev) in venus_is_valid_state() argument
163 return hdev->state != VENUS_STATE_DEINIT; in venus_is_valid_state()
166 static void venus_dump_packet(struct venus_hfi_device *hdev, const void *packet) in venus_dump_packet() argument
177 static int venus_write_queue(struct venus_hfi_device *hdev, in venus_write_queue() argument
193 venus_dump_packet(hdev, packet); in venus_write_queue()
246 static int venus_read_queue(struct venus_hfi_device *hdev, in venus_read_queue() argument
[all …]
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_tm.c112 static int hclge_pfc_stats_get(struct hclge_dev *hdev, in hclge_pfc_stats_get() argument
130 ret = hclge_cmd_send(&hdev->hw, desc, HCLGE_TM_PFC_PKT_GET_CMD_NUM); in hclge_pfc_stats_get()
149 int hclge_pfc_rx_stats_get(struct hclge_dev *hdev, u64 *stats) in hclge_pfc_rx_stats_get() argument
151 return hclge_pfc_stats_get(hdev, HCLGE_OPC_QUERY_PFC_RX_PKT_CNT, stats); in hclge_pfc_rx_stats_get()
154 int hclge_pfc_tx_stats_get(struct hclge_dev *hdev, u64 *stats) in hclge_pfc_tx_stats_get() argument
156 return hclge_pfc_stats_get(hdev, HCLGE_OPC_QUERY_PFC_TX_PKT_CNT, stats); in hclge_pfc_tx_stats_get()
159 int hclge_mac_pause_en_cfg(struct hclge_dev *hdev, bool tx, bool rx) in hclge_mac_pause_en_cfg() argument
168 return hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_mac_pause_en_cfg()
171 static int hclge_pfc_pause_en_cfg(struct hclge_dev *hdev, u8 tx_rx_bitmap, in hclge_pfc_pause_en_cfg() argument
182 return hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_pfc_pause_en_cfg()
[all …]
Dhclge_dcb.c10 static int hclge_ieee_ets_to_tm_info(struct hclge_dev *hdev, in hclge_ieee_ets_to_tm_info() argument
18 hdev->tm_info.tc_info[i].tc_sch_mode = in hclge_ieee_ets_to_tm_info()
20 hdev->tm_info.pg_info[0].tc_dwrr[i] = 0; in hclge_ieee_ets_to_tm_info()
23 hdev->tm_info.tc_info[i].tc_sch_mode = in hclge_ieee_ets_to_tm_info()
25 hdev->tm_info.pg_info[0].tc_dwrr[i] = in hclge_ieee_ets_to_tm_info()
38 return hclge_tm_prio_tc_info_update(hdev, ets->prio_tc); in hclge_ieee_ets_to_tm_info()
41 static void hclge_tm_info_to_ieee_ets(struct hclge_dev *hdev, in hclge_tm_info_to_ieee_ets() argument
48 ets->ets_cap = hdev->tc_max; in hclge_tm_info_to_ieee_ets()
51 ets->prio_tc[i] = hdev->tm_info.prio_tc[i]; in hclge_tm_info_to_ieee_ets()
52 ets->tc_tx_bw[i] = hdev->tm_info.pg_info[0].tc_dwrr[i]; in hclge_tm_info_to_ieee_ets()
[all …]
Dhclge_main.c30 static int hclge_set_mta_filter_mode(struct hclge_dev *hdev,
34 static int hclge_init_vlan_config(struct hclge_dev *hdev);
397 static int hclge_64_bit_update_stats(struct hclge_dev *hdev) in hclge_64_bit_update_stats() argument
401 u64 *data = (u64 *)(&hdev->hw_stats.all_64_bit_stats); in hclge_64_bit_update_stats()
408 ret = hclge_cmd_send(&hdev->hw, desc, HCLGE_64_BIT_CMD_NUM); in hclge_64_bit_update_stats()
410 dev_err(&hdev->pdev->dev, in hclge_64_bit_update_stats()
445 static int hclge_32_bit_update_stats(struct hclge_dev *hdev) in hclge_32_bit_update_stats() argument
457 all_32_bit_stats = &hdev->hw_stats.all_32_bit_stats; in hclge_32_bit_update_stats()
461 ret = hclge_cmd_send(&hdev->hw, desc, HCLGE_32_BIT_CMD_NUM); in hclge_32_bit_update_stats()
463 dev_err(&hdev->pdev->dev, in hclge_32_bit_update_stats()
[all …]
/Linux-v4.19/drivers/crypto/stm32/
Dstm32-hash.c129 struct stm32_hash_dev *hdev; member
137 struct stm32_hash_dev *hdev; member
210 static inline u32 stm32_hash_read(struct stm32_hash_dev *hdev, u32 offset) in stm32_hash_read() argument
212 return readl_relaxed(hdev->io_base + offset); in stm32_hash_read()
215 static inline void stm32_hash_write(struct stm32_hash_dev *hdev, in stm32_hash_write() argument
218 writel_relaxed(value, hdev->io_base + offset); in stm32_hash_write()
221 static inline int stm32_hash_wait_busy(struct stm32_hash_dev *hdev) in stm32_hash_wait_busy() argument
225 return readl_relaxed_poll_timeout(hdev->io_base + HASH_SR, status, in stm32_hash_wait_busy()
229 static void stm32_hash_set_nblw(struct stm32_hash_dev *hdev, int length) in stm32_hash_set_nblw() argument
233 reg = stm32_hash_read(hdev, HASH_STR); in stm32_hash_set_nblw()
[all …]
/Linux-v4.19/drivers/crypto/
Dimg-hash.c86 struct img_hash_dev *hdev; member
113 struct img_hash_dev *hdev; member
150 static inline u32 img_hash_read(struct img_hash_dev *hdev, u32 offset) in img_hash_read() argument
152 return readl_relaxed(hdev->io_base + offset); in img_hash_read()
155 static inline void img_hash_write(struct img_hash_dev *hdev, in img_hash_write() argument
158 writel_relaxed(value, hdev->io_base + offset); in img_hash_write()
161 static inline u32 img_hash_read_result_queue(struct img_hash_dev *hdev) in img_hash_read_result_queue() argument
163 return be32_to_cpu(img_hash_read(hdev, CR_RESULT_QUEUE)); in img_hash_read_result_queue()
166 static void img_hash_start(struct img_hash_dev *hdev, bool dma) in img_hash_start() argument
168 struct img_hash_request_ctx *ctx = ahash_request_ctx(hdev->req); in img_hash_start()
[all …]
/Linux-v4.19/drivers/bluetooth/
Dbtbcm.c39 int btbcm_check_bdaddr(struct hci_dev *hdev) in btbcm_check_bdaddr() argument
44 skb = __hci_cmd_sync(hdev, HCI_OP_READ_BD_ADDR, 0, NULL, in btbcm_check_bdaddr()
48 bt_dev_err(hdev, "BCM: Reading device address failed (%d)", err); in btbcm_check_bdaddr()
53 bt_dev_err(hdev, "BCM: Device address length mismatch"); in btbcm_check_bdaddr()
76 bt_dev_info(hdev, "BCM: Using default device address (%pMR)", in btbcm_check_bdaddr()
78 set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks); in btbcm_check_bdaddr()
87 int btbcm_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr) in btbcm_set_bdaddr() argument
92 skb = __hci_cmd_sync(hdev, 0xfc01, 6, bdaddr, HCI_INIT_TIMEOUT); in btbcm_set_bdaddr()
95 bt_dev_err(hdev, "BCM: Change address command failed (%d)", err); in btbcm_set_bdaddr()
104 int btbcm_patchram(struct hci_dev *hdev, const struct firmware *fw) in btbcm_patchram() argument
[all …]
Dbpa10x.c52 struct hci_dev *hdev; member
64 struct hci_dev *hdev = (struct hci_dev *) skb->dev; in bpa10x_tx_complete() local
66 BT_DBG("%s urb %p status %d count %d", hdev->name, in bpa10x_tx_complete()
69 if (!test_bit(HCI_RUNNING, &hdev->flags)) in bpa10x_tx_complete()
73 hdev->stat.byte_tx += urb->transfer_buffer_length; in bpa10x_tx_complete()
75 hdev->stat.err_tx++; in bpa10x_tx_complete()
101 struct hci_dev *hdev = urb->context; in bpa10x_rx_complete() local
102 struct bpa10x_data *data = hci_get_drvdata(hdev); in bpa10x_rx_complete()
105 BT_DBG("%s urb %p status %d count %d", hdev->name, in bpa10x_rx_complete()
108 if (!test_bit(HCI_RUNNING, &hdev->flags)) in bpa10x_rx_complete()
[all …]
Dbtrsi.c30 struct hci_dev *hdev; member
33 static int rsi_hci_open(struct hci_dev *hdev) in rsi_hci_open() argument
38 static int rsi_hci_close(struct hci_dev *hdev) in rsi_hci_close() argument
43 static int rsi_hci_flush(struct hci_dev *hdev) in rsi_hci_flush() argument
48 static int rsi_hci_send_pkt(struct hci_dev *hdev, struct sk_buff *skb) in rsi_hci_send_pkt() argument
50 struct rsi_hci_adapter *h_adapter = hci_get_drvdata(hdev); in rsi_hci_send_pkt()
55 hdev->stat.cmd_tx++; in rsi_hci_send_pkt()
58 hdev->stat.acl_tx++; in rsi_hci_send_pkt()
61 hdev->stat.sco_tx++; in rsi_hci_send_pkt()
82 struct hci_dev *hdev = h_adapter->hdev; in rsi_hci_recv_pkt() local
[all …]
Dhci_serdev.c38 struct hci_dev *hdev = hu->hdev; in hci_uart_tx_complete() local
43 hdev->stat.cmd_tx++; in hci_uart_tx_complete()
47 hdev->stat.acl_tx++; in hci_uart_tx_complete()
51 hdev->stat.sco_tx++; in hci_uart_tx_complete()
72 struct hci_dev *hdev = hu->hdev; in hci_uart_write_work() local
86 hdev->stat.byte_tx += len; in hci_uart_write_work()
105 static int hci_uart_flush(struct hci_dev *hdev) in hci_uart_flush() argument
107 struct hci_uart *hu = hci_get_drvdata(hdev); in hci_uart_flush()
109 BT_DBG("hdev %p serdev %p", hdev, hu->serdev); in hci_uart_flush()
125 static int hci_uart_open(struct hci_dev *hdev) in hci_uart_open() argument
[all …]
Dbtintel.c38 int btintel_check_bdaddr(struct hci_dev *hdev) in btintel_check_bdaddr() argument
43 skb = __hci_cmd_sync(hdev, HCI_OP_READ_BD_ADDR, 0, NULL, in btintel_check_bdaddr()
47 bt_dev_err(hdev, "Reading Intel device address failed (%d)", in btintel_check_bdaddr()
53 bt_dev_err(hdev, "Intel device address length mismatch"); in btintel_check_bdaddr()
66 bt_dev_err(hdev, "Found Intel default device address (%pMR)", in btintel_check_bdaddr()
68 set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks); in btintel_check_bdaddr()
77 int btintel_enter_mfg(struct hci_dev *hdev) in btintel_enter_mfg() argument
82 skb = __hci_cmd_sync(hdev, 0xfc11, 2, param, HCI_CMD_TIMEOUT); in btintel_enter_mfg()
84 bt_dev_err(hdev, "Entering manufacturer mode failed (%ld)", in btintel_enter_mfg()
94 int btintel_exit_mfg(struct hci_dev *hdev, bool reset, bool patched) in btintel_exit_mfg() argument
[all …]
Dbtqcomsmd.c29 struct hci_dev *hdev; member
36 static int btqcomsmd_recv(struct hci_dev *hdev, unsigned int type, in btqcomsmd_recv() argument
44 hdev->stat.err_rx++; in btqcomsmd_recv()
51 return hci_recv_frame(hdev, skb); in btqcomsmd_recv()
59 btq->hdev->stat.byte_rx += count; in btqcomsmd_acl_callback()
60 return btqcomsmd_recv(btq->hdev, HCI_ACLDATA_PKT, data, count); in btqcomsmd_acl_callback()
68 btq->hdev->stat.byte_rx += count; in btqcomsmd_cmd_callback()
69 return btqcomsmd_recv(btq->hdev, HCI_EVENT_PKT, data, count); in btqcomsmd_cmd_callback()
72 static int btqcomsmd_send(struct hci_dev *hdev, struct sk_buff *skb) in btqcomsmd_send() argument
74 struct btqcomsmd *btq = hci_get_drvdata(hdev); in btqcomsmd_send()
[all …]
/Linux-v4.19/drivers/hid/
Dhid-lenovo.c67 static __u8 *lenovo_report_fixup(struct hid_device *hdev, __u8 *rdesc, in lenovo_report_fixup() argument
70 switch (hdev->product) { in lenovo_report_fixup()
87 static int lenovo_input_mapping_tpkbd(struct hid_device *hdev, in lenovo_input_mapping_tpkbd() argument
93 hid_set_drvdata(hdev, (void *)1); in lenovo_input_mapping_tpkbd()
100 static int lenovo_input_mapping_cptkbd(struct hid_device *hdev, in lenovo_input_mapping_cptkbd() argument
174 static int lenovo_input_mapping_scrollpoint(struct hid_device *hdev, in lenovo_input_mapping_scrollpoint() argument
185 static int lenovo_input_mapping(struct hid_device *hdev, in lenovo_input_mapping() argument
189 switch (hdev->product) { in lenovo_input_mapping()
191 return lenovo_input_mapping_tpkbd(hdev, hi, field, in lenovo_input_mapping()
195 return lenovo_input_mapping_cptkbd(hdev, hi, field, in lenovo_input_mapping()
[all …]
Dhid-rmi.c98 struct hid_device *hdev; member
108 static int rmi_write_report(struct hid_device *hdev, u8 *report, int len);
124 static int rmi_set_page(struct hid_device *hdev, u8 page) in rmi_set_page() argument
126 struct rmi_data *data = hid_get_drvdata(hdev); in rmi_set_page()
134 retval = rmi_write_report(hdev, data->writeReport, in rmi_set_page()
137 dev_err(&hdev->dev, in rmi_set_page()
146 static int rmi_set_mode(struct hid_device *hdev, u8 mode) in rmi_set_mode() argument
156 ret = hid_hw_raw_request(hdev, RMI_SET_RMI_MODE_REPORT_ID, buf, in rmi_set_mode()
160 dev_err(&hdev->dev, "unable to set rmi mode to %d (%d)\n", mode, in rmi_set_mode()
168 static int rmi_write_report(struct hid_device *hdev, u8 *report, int len) in rmi_write_report() argument
[all …]
Dhid-picolcd_core.c62 struct hid_report *picolcd_report(int id, struct hid_device *hdev, int dir) in picolcd_report() argument
64 struct list_head *feature_report_list = &hdev->report_enum[dir].report_list; in picolcd_report()
71 hid_warn(hdev, "No report with id 0x%x found\n", id); in picolcd_report()
77 struct picolcd_pending *picolcd_send_and_wait(struct hid_device *hdev, in picolcd_send_and_wait() argument
80 struct picolcd_data *data = hid_get_drvdata(hdev); in picolcd_send_and_wait()
82 struct hid_report *report = picolcd_out_report(report_id, hdev); in picolcd_send_and_wait()
111 hid_hw_request(data->hdev, report, HID_REQ_SET_REPORT); in picolcd_send_and_wait()
189 static int picolcd_check_version(struct hid_device *hdev) in picolcd_check_version() argument
191 struct picolcd_data *data = hid_get_drvdata(hdev); in picolcd_check_version()
198 verinfo = picolcd_send_and_wait(hdev, REPORT_VERSION, NULL, 0); in picolcd_check_version()
[all …]
/Linux-v4.19/drivers/nfc/st21nfca/
Dcore.c116 static int st21nfca_hci_load_session(struct nfc_hci_dev *hdev) in st21nfca_hci_load_session() argument
146 r = nfc_hci_connect_gate(hdev, NFC_HCI_HOST_CONTROLLER_ID, in st21nfca_hci_load_session()
153 r = nfc_hci_send_cmd(hdev, ST21NFCA_DEVICE_MGNT_GATE, in st21nfca_hci_load_session()
162 r = nfc_hci_send_cmd(hdev, ST21NFCA_DEVICE_MGNT_GATE, in st21nfca_hci_load_session()
193 hdev->init_data.gates[j].pipe = pipe_info[2]; in st21nfca_hci_load_session()
195 hdev->gate2pipe[st21nfca_gates[j].gate] = in st21nfca_hci_load_session()
197 hdev->pipes[pipe_info[2]].gate = in st21nfca_hci_load_session()
199 hdev->pipes[pipe_info[2]].dest_host = in st21nfca_hci_load_session()
209 r = nfc_hci_connect_gate(hdev, NFC_HCI_HOST_CONTROLLER_ID, in st21nfca_hci_load_session()
217 static int st21nfca_hci_open(struct nfc_hci_dev *hdev) in st21nfca_hci_open() argument
[all …]

1234567891011