/linux-4.1.27/net/bluetooth/ |
D | hci_core.c | 70 static void hci_notify(struct hci_dev *hdev, int event) in hci_notify() argument 72 hci_sock_dev_event(hdev, event); in hci_notify() 80 struct hci_dev *hdev = file->private_data; in dut_mode_read() local 83 buf[0] = hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y': 'N'; in dut_mode_read() 92 struct hci_dev *hdev = file->private_data; in dut_mode_write() local 99 if (!test_bit(HCI_UP, &hdev->flags)) in dut_mode_write() 109 if (enable == hci_dev_test_flag(hdev, HCI_DUT_MODE)) in dut_mode_write() 112 hci_req_lock(hdev); in dut_mode_write() 114 skb = __hci_cmd_sync(hdev, HCI_OP_ENABLE_DUT_MODE, 0, NULL, in dut_mode_write() 117 skb = __hci_cmd_sync(hdev, HCI_OP_RESET, 0, NULL, in dut_mode_write() [all …]
|
D | hci_debugfs.c | 36 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; \ 54 if (test_bit(HCI_UP, &hdev->flags)) \ 64 if (enable == test_bit(__quirk, &hdev->quirks)) \ 67 change_bit(__quirk, &hdev->quirks); \ 81 struct hci_dev *hdev = f->private; in features_show() local 84 hci_dev_lock(hdev); in features_show() 85 for (p = 0; p < HCI_MAX_PAGES && p <= hdev->max_page; p++) { in features_show() 88 hdev->features[p][0], hdev->features[p][1], in features_show() [all …]
|
D | hci_event.c | 44 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() 58 hci_discovery_set_state(hdev, DISCOVERY_STOPPED); in hci_cc_inquiry_cancel() 59 hci_dev_unlock(hdev); in hci_cc_inquiry_cancel() 61 hci_conn_check_pending(hdev); in hci_cc_inquiry_cancel() 64 static void hci_cc_periodic_inq(struct hci_dev *hdev, struct sk_buff *skb) in hci_cc_periodic_inq() argument 68 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_periodic_inq() [all …]
|
D | mgmt.c | 243 static int mgmt_index_event(u16 event, struct hci_dev *hdev, void *data, in mgmt_index_event() argument 246 return mgmt_send_event(event, hdev, HCI_CHANNEL_CONTROL, data, len, in mgmt_index_event() 250 static int mgmt_limited_event(u16 event, struct hci_dev *hdev, void *data, in mgmt_limited_event() argument 253 return mgmt_send_event(event, hdev, HCI_CHANNEL_CONTROL, data, len, in mgmt_limited_event() 257 static int mgmt_generic_event(u16 event, struct hci_dev *hdev, void *data, in mgmt_generic_event() argument 260 return mgmt_send_event(event, hdev, HCI_CHANNEL_CONTROL, data, len, in mgmt_generic_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() 271 static int read_version(struct sock *sk, struct hci_dev *hdev, void *data, in read_version() argument 285 static int read_commands(struct sock *sk, struct hci_dev *hdev, void *data, in read_commands() argument [all …]
|
D | hci_request.c | 30 void hci_req_init(struct hci_request *req, struct hci_dev *hdev) in hci_req_init() argument 33 req->hdev = hdev; in hci_req_init() 40 struct hci_dev *hdev = req->hdev; in req_run() local 62 spin_lock_irqsave(&hdev->cmd_q.lock, flags); in req_run() 63 skb_queue_splice_tail(&req->cmd_q, &hdev->cmd_q); in req_run() 64 spin_unlock_irqrestore(&hdev->cmd_q.lock, flags); in req_run() 66 queue_work(hdev->workqueue, &hdev->cmd_work); in req_run() 81 struct sk_buff *hci_prepare_cmd(struct hci_dev *hdev, u16 opcode, u32 plen, in hci_prepare_cmd() argument 111 struct hci_dev *hdev = req->hdev; in hci_req_add_ev() local 114 BT_DBG("%s opcode 0x%4.4x plen %d", hdev->name, opcode, plen); in hci_req_add_ev() [all …]
|
D | hci_conn.c | 64 hci_send_cmd(conn->hdev, HCI_OP_LE_CREATE_CONN_CANCEL, 0, NULL); in hci_le_create_connection_cancel() 69 struct hci_dev *hdev = conn->hdev; in hci_acl_create_connection() local 81 conn->link_policy = hdev->link_policy; in hci_acl_create_connection() 87 ie = hci_inquiry_cache_lookup(hdev, &conn->dst); in hci_acl_create_connection() 102 if (lmp_rswitch_capable(hdev) && !(hdev->link_mode & HCI_LM_MASTER)) in hci_acl_create_connection() 107 hci_send_cmd(hdev, HCI_OP_CREATE_CONN, sizeof(cp), &cp); in hci_acl_create_connection() 116 if (conn->hdev->hci_ver < BLUETOOTH_VER_1_2) in hci_acl_create_connection_cancel() 120 hci_send_cmd(conn->hdev, HCI_OP_CREATE_CONN_CANCEL, sizeof(cp), &cp); in hci_acl_create_connection_cancel() 130 hci_send_cmd(conn->hdev, HCI_OP_REJECT_SYNC_CONN_REQ, sizeof(cp), &cp); in hci_reject_sco() 145 struct hci_dev *hdev = conn->hdev; in hci_disconnect() local [all …]
|
D | hci_sock.c | 49 struct hci_dev *hdev; member 156 void hci_send_to_sock(struct hci_dev *hdev, struct sk_buff *skb) in hci_send_to_sock() argument 161 BT_DBG("hdev %p len %d", hdev, skb->len); in hci_send_to_sock() 168 if (sk->sk_state != BT_BOUND || hci_pi(sk)->hdev != hdev) in hci_send_to_sock() 252 void hci_send_to_monitor(struct hci_dev *hdev, struct sk_buff *skb) in hci_send_to_monitor() argument 261 BT_DBG("hdev %p len %d", hdev, skb->len); in hci_send_to_monitor() 294 hdr->index = cpu_to_le16(hdev->id); in hci_send_to_monitor() 302 static struct sk_buff *create_monitor_event(struct hci_dev *hdev, int event) in create_monitor_event() argument 316 ni->type = hdev->dev_type; in create_monitor_event() 317 ni->bus = hdev->bus; in create_monitor_event() [all …]
|
D | amp.c | 111 struct hci_conn *phylink_add(struct hci_dev *hdev, struct amp_mgr *mgr, in phylink_add() argument 118 hcon = hci_conn_add(hdev, AMP_LINK, dst, role); in phylink_add() 176 struct hci_dev *hdev = conn->hdev; in phylink_gen_key() local 196 key = hci_find_link_key(hdev, &conn->dst); in phylink_gen_key() 223 void amp_read_loc_assoc_frag(struct hci_dev *hdev, u8 phy_handle) in amp_read_loc_assoc_frag() argument 226 struct amp_assoc *loc_assoc = &hdev->loc_assoc; in amp_read_loc_assoc_frag() 228 BT_DBG("%s handle %d", hdev->name, phy_handle); in amp_read_loc_assoc_frag() 231 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc_frag() 234 hci_send_cmd(hdev, HCI_OP_READ_LOCAL_AMP_ASSOC, sizeof(cp), &cp); in amp_read_loc_assoc_frag() 237 void amp_read_loc_assoc(struct hci_dev *hdev, struct amp_mgr *mgr) in amp_read_loc_assoc() argument [all …]
|
D | hci_sysfs.c | 78 struct hci_dev *hdev = conn->hdev; in hci_conn_init_sysfs() local 84 conn->dev.parent = &hdev->dev; in hci_conn_init_sysfs() 91 struct hci_dev *hdev = conn->hdev; in hci_conn_add_sysfs() local 95 dev_set_name(&conn->dev, "%s:%d", hdev->name, conn->handle); in hci_conn_add_sysfs() 102 hci_dev_hold(hdev); in hci_conn_add_sysfs() 107 struct hci_dev *hdev = conn->hdev; in hci_conn_del_sysfs() local 124 hci_dev_put(hdev); in hci_conn_del_sysfs() 142 struct hci_dev *hdev = to_hci_dev(dev); in show_type() local 143 return sprintf(buf, "%s\n", host_typetostr(hdev->dev_type)); in show_type() 149 struct hci_dev *hdev = to_hci_dev(dev); in show_name() local [all …]
|
D | a2mp.c | 100 struct hci_dev *hdev; in __a2mp_add_cl() local 107 list_for_each_entry(hdev, &hci_dev_list, list) { in __a2mp_add_cl() 108 if (hdev->dev_type == HCI_AMP) { in __a2mp_add_cl() 109 cl[i].id = hdev->id; in __a2mp_add_cl() 110 cl[i].type = hdev->amp_type; in __a2mp_add_cl() 111 if (test_bit(HCI_UP, &hdev->flags)) in __a2mp_add_cl() 112 cl[i].status = hdev->amp_status; in __a2mp_add_cl() 144 struct hci_dev *hdev; in a2mp_discover_req() local 171 list_for_each_entry(hdev, &hci_dev_list, list) { in a2mp_discover_req() 172 if (hdev->dev_type == HCI_AMP) in a2mp_discover_req() [all …]
|
D | amp.h | 33 struct hci_conn *phylink_add(struct hci_dev *hdev, struct amp_mgr *mgr, 38 void amp_read_loc_info(struct hci_dev *hdev, struct amp_mgr *mgr); 39 void amp_read_loc_assoc_frag(struct hci_dev *hdev, u8 phy_handle); 40 void amp_read_loc_assoc(struct hci_dev *hdev, struct amp_mgr *mgr); 41 void amp_read_loc_assoc_final_data(struct hci_dev *hdev, 43 void amp_create_phylink(struct hci_dev *hdev, struct amp_mgr *mgr, 45 void amp_accept_phylink(struct hci_dev *hdev, struct amp_mgr *mgr, 47 void amp_write_remote_assoc(struct hci_dev *hdev, u8 handle); 48 void amp_write_rem_assoc_continue(struct hci_dev *hdev, u8 handle);
|
D | hci_debugfs.h | 25 void hci_debugfs_create_common(struct hci_dev *hdev); 26 void hci_debugfs_create_bredr(struct hci_dev *hdev); 27 void hci_debugfs_create_le(struct hci_dev *hdev); 32 static inline void hci_debugfs_create_common(struct hci_dev *hdev) in hci_debugfs_create_common() argument 36 static inline void hci_debugfs_create_bredr(struct hci_dev *hdev) in hci_debugfs_create_bredr() argument 40 static inline void hci_debugfs_create_le(struct hci_dev *hdev) in hci_debugfs_create_le() argument
|
D | mgmt_util.c | 30 int mgmt_send_event(u16 event, struct hci_dev *hdev, unsigned short channel, in mgmt_send_event() argument 42 if (hdev) in mgmt_send_event() 43 hdr->index = cpu_to_le16(hdev->id); in mgmt_send_event() 125 struct hci_dev *hdev) in mgmt_pending_find() argument 129 list_for_each_entry(cmd, &hdev->mgmt_pending, list) { in mgmt_pending_find() 141 struct hci_dev *hdev, in mgmt_pending_find_data() argument 146 list_for_each_entry(cmd, &hdev->mgmt_pending, list) { in mgmt_pending_find_data() 156 void mgmt_pending_foreach(u16 opcode, struct hci_dev *hdev, in mgmt_pending_foreach() argument 162 list_for_each_entry_safe(cmd, tmp, &hdev->mgmt_pending, list) { in mgmt_pending_foreach() 171 struct hci_dev *hdev, in mgmt_pending_add() argument [all …]
|
D | smp.c | 490 bool smp_irk_matches(struct hci_dev *hdev, const u8 irk[16], in smp_irk_matches() argument 493 struct l2cap_chan *chan = hdev->smp_data; in smp_irk_matches() 512 int smp_generate_rpa(struct hci_dev *hdev, const u8 irk[16], bdaddr_t *rpa) in smp_generate_rpa() argument 514 struct l2cap_chan *chan = hdev->smp_data; in smp_generate_rpa() 537 int smp_generate_oob(struct hci_dev *hdev, u8 hash[16], u8 rand[16]) in smp_generate_oob() argument 539 struct l2cap_chan *chan = hdev->smp_data; in smp_generate_oob() 548 if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) { in smp_generate_oob() 649 struct hci_dev *hdev = hcon->hdev; in build_pairing_cmd() local 652 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) { in build_pairing_cmd() 660 if (hci_dev_test_flag(hdev, HCI_RPA_RESOLVING)) in build_pairing_cmd() [all …]
|
D | hci_request.h | 24 struct hci_dev *hdev; member 33 void hci_req_init(struct hci_request *req, struct hci_dev *hdev); 40 void hci_req_cmd_complete(struct hci_dev *hdev, u16 opcode, u8 status, 44 struct sk_buff *hci_prepare_cmd(struct hci_dev *hdev, u16 opcode, u32 plen, 50 void hci_update_page_scan(struct hci_dev *hdev); 56 void hci_update_background_scan(struct hci_dev *hdev);
|
D | mgmt_util.h | 34 int mgmt_send_event(u16 event, struct hci_dev *hdev, unsigned short channel, 41 struct hci_dev *hdev); 44 struct hci_dev *hdev, 46 void mgmt_pending_foreach(u16 opcode, struct hci_dev *hdev, 50 struct hci_dev *hdev,
|
D | smp.h | 188 bool smp_irk_matches(struct hci_dev *hdev, const u8 irk[16], 190 int smp_generate_rpa(struct hci_dev *hdev, const u8 irk[16], bdaddr_t *rpa); 191 int smp_generate_oob(struct hci_dev *hdev, u8 hash[16], u8 rand[16]); 193 int smp_register(struct hci_dev *hdev); 194 void smp_unregister(struct hci_dev *hdev);
|
D | a2mp.h | 137 void a2mp_send_getinfo_rsp(struct hci_dev *hdev); 138 void a2mp_send_getampassoc_rsp(struct hci_dev *hdev, u8 status); 139 void a2mp_send_create_phy_link_req(struct hci_dev *hdev, u8 status); 140 void a2mp_send_create_phy_link_rsp(struct hci_dev *hdev, u8 status);
|
D | sco.c | 105 struct hci_dev *hdev = hcon->hdev; in sco_conn_add() local 120 if (hdev->sco_mtu > 0) in sco_conn_add() 121 conn->mtu = hdev->sco_mtu; in sco_conn_add() 215 struct hci_dev *hdev; in sco_connect() local 220 hdev = hci_get_route(&sco_pi(sk)->dst, &sco_pi(sk)->src); in sco_connect() 221 if (!hdev) in sco_connect() 224 hci_dev_lock(hdev); in sco_connect() 226 if (lmp_esco_capable(hdev) && !disable_esco) in sco_connect() 232 (!lmp_transp_capable(hdev) || !lmp_esco_capable(hdev))) { in sco_connect() 237 hcon = hci_connect_sco(hdev, type, &sco_pi(sk)->dst, in sco_connect() [all …]
|
D | l2cap_core.c | 854 if (lmp_no_flush_capable(conn->hcon->hdev) || in l2cap_send_cmd() 895 lmp_no_flush_capable(hcon->hdev))) in l2cap_do_send() 1129 struct hci_dev *hdev; in __amp_capable() local 1139 list_for_each_entry(hdev, &hci_dev_list, list) { in __amp_capable() 1140 if (hdev->amp_type != AMP_TYPE_BREDR && in __amp_capable() 1141 test_bit(HCI_UP, &hdev->flags)) { in __amp_capable() 1478 struct hci_dev *hdev = hcon->hdev; in l2cap_le_conn_ready() local 1480 BT_DBG("%s conn %p", hdev->name, conn); in l2cap_le_conn_ready() 1546 queue_work(hcon->hdev->workqueue, &conn->pending_rx_work); in l2cap_conn_ready() 1592 struct hci_dev *hdev = conn->hcon->hdev; in l2cap_register_user() local [all …]
|
D | 6lowpan.c | 77 struct hci_dev *hdev; member 250 if (conn->hcon->hdev == entry->hdev) { in lookup_dev() 876 (*dev)->hdev = chan->conn->hcon->hdev; in setup_netdev() 1145 struct hci_dev *hdev; in get_l2cap_conn() local 1157 hdev = hci_get_route(addr, src); in get_l2cap_conn() 1158 if (!hdev) in get_l2cap_conn() 1161 hci_dev_lock(hdev); in get_l2cap_conn() 1162 hcon = hci_conn_hash_lookup_ba(hdev, LE_LINK, addr); in get_l2cap_conn() 1163 hci_dev_unlock(hdev); in get_l2cap_conn()
|
/linux-4.1.27/net/nfc/hci/ |
D | core.c | 49 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 …]
|
D | command.c | 31 static int nfc_hci_execute_cmd_async(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd, in nfc_hci_execute_cmd_async() argument 41 return nfc_hci_hcp_message_tx(hdev, pipe, NFC_HCI_HCP_COMMAND, cmd, in nfc_hci_execute_cmd_async() 67 static int nfc_hci_execute_cmd(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd, in nfc_hci_execute_cmd() argument 83 hcp_ew.exec_result = nfc_hci_hcp_message_tx(hdev, pipe, in nfc_hci_execute_cmd() 103 int nfc_hci_send_event(struct nfc_hci_dev *hdev, u8 gate, u8 event, in nfc_hci_send_event() argument 110 pipe = hdev->gate2pipe[gate]; in nfc_hci_send_event() 114 return nfc_hci_hcp_message_tx(hdev, pipe, NFC_HCI_HCP_EVENT, event, in nfc_hci_send_event() 124 int nfc_hci_send_cmd(struct nfc_hci_dev *hdev, u8 gate, u8 cmd, in nfc_hci_send_cmd() argument 131 pipe = hdev->gate2pipe[gate]; in nfc_hci_send_cmd() 135 return nfc_hci_execute_cmd(hdev, pipe, cmd, param, param_len, skb); in nfc_hci_send_cmd() [all …]
|
D | hcp.c | 33 int nfc_hci_hcp_message_tx(struct nfc_hci_dev *hdev, u8 pipe, in nfc_hci_hcp_message_tx() argument 39 struct nfc_dev *ndev = hdev->ndev; in nfc_hci_hcp_message_tx() 63 hdev->max_data_link_payload) in nfc_hci_hcp_message_tx() 66 data_link_len = hdev->max_data_link_payload - in nfc_hci_hcp_message_tx() 105 mutex_lock(&hdev->msg_tx_mutex); in nfc_hci_hcp_message_tx() 107 if (hdev->shutting_down) { in nfc_hci_hcp_message_tx() 109 mutex_unlock(&hdev->msg_tx_mutex); in nfc_hci_hcp_message_tx() 113 list_add_tail(&cmd->msg_l, &hdev->msg_tx_queue); in nfc_hci_hcp_message_tx() 114 mutex_unlock(&hdev->msg_tx_mutex); in nfc_hci_hcp_message_tx() 116 schedule_work(&hdev->msg_tx_work); in nfc_hci_hcp_message_tx() [all …]
|
D | llc_nop.c | 24 struct nfc_hci_dev *hdev; member 32 static void *llc_nop_init(struct nfc_hci_dev *hdev, xmit_to_drv_t xmit_to_drv, in llc_nop_init() argument 46 llc_nop->hdev = hdev; in llc_nop_init() 75 llc_nop->rcv_to_hci(llc_nop->hdev, skb); in llc_nop_rcv_from_drv() 82 return llc_nop->xmit_to_drv(llc_nop->hdev, skb); in llc_nop_xmit_from_hci()
|
D | llc_shdlc.c | 38 struct nfc_hci_dev *hdev; member 165 r = shdlc->xmit_to_drv(shdlc->hdev, skb); in llc_shdlc_send_s_frame() 183 r = shdlc->xmit_to_drv(shdlc->hdev, skb); in llc_shdlc_send_u_frame() 258 shdlc->rcv_to_hci(shdlc->hdev, skb); in llc_shdlc_rcv_i_frame() 561 r = shdlc->xmit_to_drv(shdlc->hdev, skb); in llc_shdlc_handle_send_queue() 684 shdlc->llc_failure(shdlc->hdev, shdlc->hard_fault); in llc_shdlc_sm_work() 749 static void *llc_shdlc_init(struct nfc_hci_dev *hdev, xmit_to_drv_t xmit_to_drv, in llc_shdlc_init() argument 787 shdlc->hdev = hdev; in llc_shdlc_init()
|
D | hci.h | 82 int nfc_hci_hcp_message_tx(struct nfc_hci_dev *hdev, u8 pipe, 88 void nfc_hci_hcp_message_rx(struct nfc_hci_dev *hdev, u8 pipe, u8 type,
|
D | llc.c | 101 struct nfc_llc *nfc_llc_allocate(const char *name, struct nfc_hci_dev *hdev, in nfc_llc_allocate() argument 117 llc->data = llc_engine->ops->init(hdev, xmit_to_drv, rcv_to_hci, in nfc_llc_allocate()
|
D | llc.h | 27 void *(*init) (struct nfc_hci_dev *hdev, xmit_to_drv_t xmit_to_drv,
|
/linux-4.1.27/drivers/crypto/ |
D | img-hash.c | 85 struct img_hash_dev *hdev; member 110 struct img_hash_dev *hdev; member 147 static inline u32 img_hash_read(struct img_hash_dev *hdev, u32 offset) in img_hash_read() argument 149 return readl_relaxed(hdev->io_base + offset); in img_hash_read() 152 static inline void img_hash_write(struct img_hash_dev *hdev, in img_hash_write() argument 155 writel_relaxed(value, hdev->io_base + offset); in img_hash_write() 158 static inline u32 img_hash_read_result_queue(struct img_hash_dev *hdev) in img_hash_read_result_queue() argument 160 return be32_to_cpu(img_hash_read(hdev, CR_RESULT_QUEUE)); in img_hash_read_result_queue() 163 static void img_hash_start(struct img_hash_dev *hdev, bool dma) in img_hash_start() argument 165 struct img_hash_request_ctx *ctx = ahash_request_ctx(hdev->req); in img_hash_start() [all …]
|
/linux-4.1.27/drivers/hid/ |
D | hid-lenovo.c | 46 static int lenovo_input_mapping_tpkbd(struct hid_device *hdev, in lenovo_input_mapping_tpkbd() argument 52 hid_set_drvdata(hdev, (void *)1); in lenovo_input_mapping_tpkbd() 59 static int lenovo_input_mapping_cptkbd(struct hid_device *hdev, in lenovo_input_mapping_cptkbd() argument 133 static int lenovo_input_mapping(struct hid_device *hdev, in lenovo_input_mapping() argument 137 switch (hdev->product) { in lenovo_input_mapping() 139 return lenovo_input_mapping_tpkbd(hdev, hi, field, in lenovo_input_mapping() 143 return lenovo_input_mapping_cptkbd(hdev, hi, field, in lenovo_input_mapping() 153 static int lenovo_send_cmd_cptkbd(struct hid_device *hdev, in lenovo_send_cmd_cptkbd() argument 159 switch (hdev->product) { in lenovo_send_cmd_cptkbd() 161 ret = hid_hw_raw_request(hdev, 0x13, buf, sizeof(buf), in lenovo_send_cmd_cptkbd() [all …]
|
D | hid-rmi.c | 125 struct hid_device *hdev; member 133 static int rmi_write_report(struct hid_device *hdev, u8 *report, int len); 149 static int rmi_set_page(struct hid_device *hdev, u8 page) in rmi_set_page() argument 151 struct rmi_data *data = hid_get_drvdata(hdev); in rmi_set_page() 159 retval = rmi_write_report(hdev, data->writeReport, in rmi_set_page() 162 dev_err(&hdev->dev, in rmi_set_page() 171 static int rmi_set_mode(struct hid_device *hdev, u8 mode) in rmi_set_mode() argument 176 ret = hid_hw_raw_request(hdev, RMI_SET_RMI_MODE_REPORT_ID, txbuf, in rmi_set_mode() 179 dev_err(&hdev->dev, "unable to set rmi mode to %d (%d)\n", mode, in rmi_set_mode() 187 static int rmi_write_report(struct hid_device *hdev, u8 *report, int len) in rmi_write_report() argument [all …]
|
D | hid-picolcd_core.c | 62 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 …]
|
D | hid-cp2112.c | 155 struct hid_device *hdev; member 173 struct hid_device *hdev = dev->hdev; in cp2112_gpio_direction_input() local 177 ret = hid_hw_raw_request(hdev, CP2112_GPIO_CONFIG, buf, in cp2112_gpio_direction_input() 181 hid_err(hdev, "error requesting GPIO config: %d\n", ret); in cp2112_gpio_direction_input() 188 ret = hid_hw_raw_request(hdev, CP2112_GPIO_CONFIG, buf, sizeof(buf), in cp2112_gpio_direction_input() 191 hid_err(hdev, "error setting GPIO config: %d\n", ret); in cp2112_gpio_direction_input() 202 struct hid_device *hdev = dev->hdev; in cp2112_gpio_set() local 210 ret = hid_hw_raw_request(hdev, CP2112_GPIO_SET, buf, sizeof(buf), in cp2112_gpio_set() 213 hid_err(hdev, "error setting GPIO values: %d\n", ret); in cp2112_gpio_set() 220 struct hid_device *hdev = dev->hdev; in cp2112_gpio_get() local [all …]
|
D | hid-picolcd_debugfs.c | 60 picolcd_reset(data->hdev); in picolcd_debug_reset_write() 101 resp = picolcd_send_and_wait(data->hdev, REPORT_EE_READ, raw_data, in picolcd_debug_eeprom_read() 143 resp = picolcd_send_and_wait(data->hdev, REPORT_EE_WRITE, raw_data, in picolcd_debug_eeprom_write() 201 resp = picolcd_send_and_wait(data->hdev, report_id, raw_data, len_off+1); in _picolcd_flash_read() 256 resp = picolcd_send_and_wait(data->hdev, report_id, raw_data, len_off); in _picolcd_flash_erase64() 287 resp = picolcd_send_and_wait(data->hdev, report_id, raw_data, in _picolcd_flash_write() 395 struct hid_device *hdev, struct hid_report *report) in picolcd_debug_out_report() argument 403 if (list_empty(&hdev->debug_list)) in picolcd_debug_out_report() 418 hid_debug_event(hdev, buff); in picolcd_debug_out_report() 422 hid_debug_event(hdev, buff); in picolcd_debug_out_report() [all …]
|
D | hid-roccat-konepure.c | 78 static int konepure_init_specials(struct hid_device *hdev) in konepure_init_specials() argument 80 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in konepure_init_specials() 87 hid_set_drvdata(hdev, NULL); in konepure_init_specials() 93 hid_err(hdev, "can't alloc device descriptor\n"); in konepure_init_specials() 96 hid_set_drvdata(hdev, konepure); in konepure_init_specials() 100 hid_err(hdev, "couldn't init KonePure device\n"); in konepure_init_specials() 104 retval = roccat_connect(konepure_class, hdev, in konepure_init_specials() 107 hid_err(hdev, "couldn't init char dev\n"); in konepure_init_specials() 119 static void konepure_remove_specials(struct hid_device *hdev) in konepure_remove_specials() argument 121 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in konepure_remove_specials() [all …]
|
D | hid-roccat-savu.c | 58 static int savu_init_specials(struct hid_device *hdev) in savu_init_specials() argument 60 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in savu_init_specials() 67 hid_set_drvdata(hdev, NULL); in savu_init_specials() 73 hid_err(hdev, "can't alloc device descriptor\n"); in savu_init_specials() 76 hid_set_drvdata(hdev, savu); in savu_init_specials() 80 hid_err(hdev, "couldn't init Savu device\n"); in savu_init_specials() 84 retval = roccat_connect(savu_class, hdev, in savu_init_specials() 87 hid_err(hdev, "couldn't init char dev\n"); in savu_init_specials() 99 static void savu_remove_specials(struct hid_device *hdev) in savu_remove_specials() argument 101 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in savu_remove_specials() [all …]
|
D | hid-samsung.c | 56 static inline void samsung_irda_dev_trace(struct hid_device *hdev, in samsung_irda_dev_trace() argument 59 hid_info(hdev, "fixing up Samsung IrDA %d byte report descriptor\n", in samsung_irda_dev_trace() 63 static __u8 *samsung_irda_report_fixup(struct hid_device *hdev, __u8 *rdesc, in samsung_irda_report_fixup() argument 70 samsung_irda_dev_trace(hdev, 184); in samsung_irda_report_fixup() 78 samsung_irda_dev_trace(hdev, 203); in samsung_irda_report_fixup() 84 samsung_irda_dev_trace(hdev, 135); in samsung_irda_report_fixup() 90 samsung_irda_dev_trace(hdev, 171); in samsung_irda_report_fixup() 100 static int samsung_kbd_mouse_input_mapping(struct hid_device *hdev, in samsung_kbd_mouse_input_mapping() argument 104 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in samsung_kbd_mouse_input_mapping() 133 static __u8 *samsung_report_fixup(struct hid_device *hdev, __u8 *rdesc, in samsung_report_fixup() argument [all …]
|
D | hid-roccat-ryos.c | 86 static int ryos_init_specials(struct hid_device *hdev) in ryos_init_specials() argument 88 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in ryos_init_specials() 95 hid_set_drvdata(hdev, NULL); in ryos_init_specials() 101 hid_err(hdev, "can't alloc device descriptor\n"); in ryos_init_specials() 104 hid_set_drvdata(hdev, ryos); in ryos_init_specials() 108 hid_err(hdev, "couldn't init Ryos device\n"); in ryos_init_specials() 112 retval = roccat_connect(ryos_class, hdev, in ryos_init_specials() 115 hid_err(hdev, "couldn't init char dev\n"); in ryos_init_specials() 127 static void ryos_remove_specials(struct hid_device *hdev) in ryos_remove_specials() argument 129 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in ryos_remove_specials() [all …]
|
D | wacom_sys.c | 30 static int wacom_get_report(struct hid_device *hdev, u8 type, u8 *buf, in wacom_get_report() argument 36 retval = hid_hw_raw_request(hdev, buf[0], buf, size, type, in wacom_get_report() 43 static int wacom_set_report(struct hid_device *hdev, u8 type, u8 *buf, in wacom_set_report() argument 49 retval = hid_hw_raw_request(hdev, buf[0], buf, size, type, in wacom_set_report() 56 static int wacom_raw_event(struct hid_device *hdev, struct hid_report *report, in wacom_raw_event() argument 59 struct wacom *wacom = hid_get_drvdata(hdev); in wacom_raw_event() 75 return hid_hw_open(wacom->hdev); in wacom_open() 82 hid_hw_close(wacom->hdev); in wacom_close() 101 static void wacom_feature_mapping(struct hid_device *hdev, in wacom_feature_mapping() argument 104 struct wacom *wacom = hid_get_drvdata(hdev); in wacom_feature_mapping() [all …]
|
D | hid-kye.c | 402 static __u8 *kye_consumer_control_fixup(struct hid_device *hdev, __u8 *rdesc, in kye_consumer_control_fixup() argument 416 hid_info(hdev, "fixing up %s report descriptor\n", device_name); in kye_consumer_control_fixup() 422 static __u8 *kye_report_fixup(struct hid_device *hdev, __u8 *rdesc, in kye_report_fixup() argument 425 switch (hdev->product) { in kye_report_fixup() 440 hid_info(hdev, in kye_report_fixup() 476 rdesc = kye_consumer_control_fixup(hdev, rdesc, rsize, 104, in kye_report_fixup() 480 rdesc = kye_consumer_control_fixup(hdev, rdesc, rsize, 83, in kye_report_fixup() 484 rdesc = kye_consumer_control_fixup(hdev, rdesc, rsize, 104, in kye_report_fixup() 499 static int kye_tablet_enable(struct hid_device *hdev) in kye_tablet_enable() argument 506 list = &hdev->report_enum[HID_FEATURE_REPORT].report_list; in kye_tablet_enable() [all …]
|
D | hid-sensor-hub.c | 68 static struct hid_report *sensor_hub_report(int id, struct hid_device *hdev, in sensor_hub_report() argument 73 list_for_each_entry(report, &hdev->report_enum[dir].report_list, list) { in sensor_hub_report() 77 hid_warn(hdev, "No report with id 0x%x found\n", id); in sensor_hub_report() 82 static int sensor_hub_get_physical_device_count(struct hid_device *hdev) in sensor_hub_get_physical_device_count() argument 87 for (i = 0; i < hdev->maxcollection; ++i) { in sensor_hub_get_physical_device_count() 88 struct hid_collection *collection = &hdev->collection[i]; in sensor_hub_get_physical_device_count() 111 struct hid_device *hdev, in sensor_hub_get_callback() argument 118 struct sensor_hub_data *pdata = hid_get_drvdata(hdev); in sensor_hub_get_callback() 145 struct sensor_hub_data *pdata = hid_get_drvdata(hsdev->hdev); in sensor_hub_register_callback() 186 struct sensor_hub_data *pdata = hid_get_drvdata(hsdev->hdev); in sensor_hub_remove_callback() [all …]
|
D | hid-logitech-dj.c | 112 struct hid_device *hdev; member 122 struct hid_device *hdev; member 358 hid_destroy_device(dj_dev->hdev); in logi_dj_recv_destroy_djhid_device() 361 dev_err(&djrcv_dev->hdev->dev, "%s: can't destroy a NULL device\n", in logi_dj_recv_destroy_djhid_device() 370 struct hid_device *djrcv_hdev = djrcv_dev->hdev; in logi_dj_recv_add_djhid_device() 430 dj_dev->hdev = dj_hiddev; in logi_dj_recv_add_djhid_device() 470 dev_err(&djrcv_dev->hdev->dev, "%s: workitem triggered without " in delayedwork_callback() 508 dev_err(&djrcv_dev->hdev->dev, in delayedwork_callback() 544 if (hid_input_report(djdev->hdev, in logi_dj_recv_forward_null_report() 569 if (hid_input_report(dj_device->hdev, in logi_dj_recv_forward_report() [all …]
|
D | hid-sony.c | 815 struct hid_device *hdev; member 840 static __u8 *sixaxis_fixup(struct hid_device *hdev, __u8 *rdesc, in sixaxis_fixup() argument 847 static __u8 *ps3remote_fixup(struct hid_device *hdev, __u8 *rdesc, in ps3remote_fixup() argument 854 static int ps3remote_mapping(struct hid_device *hdev, struct hid_input *hi, in ps3remote_mapping() argument 888 static __u8 *sony_report_fixup(struct hid_device *hdev, __u8 *rdesc, in sony_report_fixup() argument 891 struct sony_sc *sc = hid_get_drvdata(hdev); in sony_report_fixup() 904 hid_info(hdev, "Fixing up Sony RF Receiver report descriptor\n"); in sony_report_fixup() 915 hid_info(hdev, "Using modified Dualshock 4 report descriptor with gyroscope axes\n"); in sony_report_fixup() 919 hid_info(hdev, "Using modified Dualshock 4 Bluetooth report descriptor\n"); in sony_report_fixup() 925 return sixaxis_fixup(hdev, rdesc, rsize); in sony_report_fixup() [all …]
|
D | hid-uclogic.c | 633 static __u8 *uclogic_report_fixup(struct hid_device *hdev, __u8 *rdesc, in uclogic_report_fixup() argument 636 struct usb_interface *iface = to_usb_interface(hdev->dev.parent); in uclogic_report_fixup() 638 struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); in uclogic_report_fixup() 640 switch (hdev->product) { in uclogic_report_fixup() 719 static int uclogic_input_mapping(struct hid_device *hdev, struct hid_input *hi, in uclogic_input_mapping() argument 723 struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); in uclogic_input_mapping() 734 static void uclogic_input_configured(struct hid_device *hdev, in uclogic_input_configured() argument 770 len = strlen(hdev->name) + 2 + strlen(suffix); in uclogic_input_configured() 773 snprintf(name, len, "%s %s", hdev->name, suffix); in uclogic_input_configured() 784 static int uclogic_tablet_enable(struct hid_device *hdev) in uclogic_tablet_enable() argument [all …]
|
D | hid-ntrig.c | 113 static inline int ntrig_get_mode(struct hid_device *hdev) in ntrig_get_mode() argument 115 struct hid_report *report = hdev->report_enum[HID_FEATURE_REPORT]. in ntrig_get_mode() 122 hid_hw_request(hdev, report, HID_REQ_GET_REPORT); in ntrig_get_mode() 123 hid_hw_wait(hdev); in ntrig_get_mode() 127 static inline void ntrig_set_mode(struct hid_device *hdev, const int mode) in ntrig_set_mode() argument 135 report = hdev->report_enum[HID_FEATURE_REPORT]. in ntrig_set_mode() 141 hid_hw_request(hdev, report, HID_REQ_GET_REPORT); in ntrig_set_mode() 144 static void ntrig_report_version(struct hid_device *hdev) in ntrig_report_version() argument 148 struct usb_device *usb_dev = hid_to_usb_dev(hdev); in ntrig_report_version() 164 hid_info(hdev, "Firmware version: %s (%02x%02x %02x%02x)\n", in ntrig_report_version() [all …]
|
D | hid-lg.c | 342 static __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc, in lg_report_fixup() argument 345 struct lg_drv_data *drv_data = hid_get_drvdata(hdev); in lg_report_fixup() 351 hid_info(hdev, in lg_report_fixup() 359 hid_info(hdev, in lg_report_fixup() 364 switch (hdev->product) { in lg_report_fixup() 368 udesc = &(hid_to_usb_dev(hdev)->descriptor); in lg_report_fixup() 370 hid_err(hdev, "NULL USB device descriptor\n"); in lg_report_fixup() 380 hid_info(hdev, in lg_report_fixup() 389 hid_info(hdev, in lg_report_fixup() 398 hid_info(hdev, in lg_report_fixup() [all …]
|
D | hid-gt683r.c | 55 struct hid_device *hdev; member 73 struct hid_device *hdev = container_of(dev, struct hid_device, dev); in gt683r_brightness_set() local 74 struct gt683r_led *led = hid_get_drvdata(hdev); in gt683r_brightness_set() 92 struct hid_device *hdev = container_of(dev->parent, in mode_show() local 94 struct gt683r_led *led = hid_get_drvdata(hdev); in mode_show() 111 struct hid_device *hdev = container_of(dev->parent, in mode_store() local 113 struct gt683r_led *led = hid_get_drvdata(hdev); in mode_store() 138 ret = hid_hw_raw_request(led->hdev, msg[0], msg, GT683R_BUFFER_SIZE, in gt683r_led_snd_msg() 141 hid_err(led->hdev, in gt683r_led_snd_msg() 234 static int gt683r_led_probe(struct hid_device *hdev, in gt683r_led_probe() argument [all …]
|
D | hid-saitek.c | 40 static int saitek_probe(struct hid_device *hdev, in saitek_probe() argument 47 ssc = devm_kzalloc(&hdev->dev, sizeof(*ssc), GFP_KERNEL); in saitek_probe() 49 hid_err(hdev, "can't alloc saitek descriptor\n"); in saitek_probe() 56 hid_set_drvdata(hdev, ssc); in saitek_probe() 58 ret = hid_parse(hdev); in saitek_probe() 60 hid_err(hdev, "parse failed\n"); in saitek_probe() 64 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in saitek_probe() 66 hid_err(hdev, "hw start failed\n"); in saitek_probe() 73 static __u8 *saitek_report_fixup(struct hid_device *hdev, __u8 *rdesc, in saitek_report_fixup() argument 76 struct saitek_sc *ssc = hid_get_drvdata(hdev); in saitek_report_fixup() [all …]
|
D | hid-roccat-lua.c | 118 static int lua_init_specials(struct hid_device *hdev) in lua_init_specials() argument 120 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in lua_init_specials() 127 hid_err(hdev, "can't alloc device descriptor\n"); in lua_init_specials() 130 hid_set_drvdata(hdev, lua); in lua_init_specials() 134 hid_err(hdev, "couldn't init struct lua_device\n"); in lua_init_specials() 140 hid_err(hdev, "cannot create sysfs files\n"); in lua_init_specials() 150 static void lua_remove_specials(struct hid_device *hdev) in lua_remove_specials() argument 152 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in lua_remove_specials() 157 lua = hid_get_drvdata(hdev); in lua_remove_specials() 161 static int lua_probe(struct hid_device *hdev, in lua_probe() argument [all …]
|
D | hid-prodikeys.c | 42 struct hid_device *hdev; member 106 struct hid_device *hdev = container_of(dev, struct hid_device, dev); in show_channel() local 107 struct pk_device *pk = hid_get_drvdata(hdev); in show_channel() 119 struct hid_device *hdev = container_of(dev, struct hid_device, dev); in store_channel() local 120 struct pk_device *pk = hid_get_drvdata(hdev); in store_channel() 143 struct hid_device *hdev = container_of(dev, struct hid_device, dev); in show_sustain() local 144 struct pk_device *pk = hid_get_drvdata(hdev); in show_sustain() 156 struct hid_device *hdev = container_of(dev, struct hid_device, dev); in store_sustain() local 157 struct pk_device *pk = hid_get_drvdata(hdev); in store_sustain() 182 struct hid_device *hdev = container_of(dev, struct hid_device, dev); in show_octave() local [all …]
|
D | hid-core.c | 1515 static bool hid_match_one_id(struct hid_device *hdev, in hid_match_one_id() argument 1518 return (id->bus == HID_BUS_ANY || id->bus == hdev->bus) && in hid_match_one_id() 1519 (id->group == HID_GROUP_ANY || id->group == hdev->group) && in hid_match_one_id() 1520 (id->vendor == HID_ANY_ID || id->vendor == hdev->vendor) && in hid_match_one_id() 1521 (id->product == HID_ANY_ID || id->product == hdev->product); in hid_match_one_id() 1524 const struct hid_device_id *hid_match_id(struct hid_device *hdev, in hid_match_id() argument 1528 if (hid_match_one_id(hdev, id)) in hid_match_id() 1540 static bool hid_hiddev(struct hid_device *hdev) in hid_hiddev() argument 1542 return !!hid_match_id(hdev, hid_hiddev_list); in hid_hiddev() 1552 struct hid_device *hdev = container_of(dev, struct hid_device, dev); in read_report_descriptor() local [all …]
|
D | hid-steelseries.c | 112 static void steelseries_srws1_set_leds(struct hid_device *hdev, __u16 leds) in steelseries_srws1_set_leds() argument 114 struct list_head *report_list = &hdev->report_enum[HID_OUTPUT_REPORT].report_list; in steelseries_srws1_set_leds() 135 hid_hw_request(hdev, report, HID_REQ_SET_REPORT); in steelseries_srws1_set_leds() 228 static int steelseries_srws1_probe(struct hid_device *hdev, in steelseries_srws1_probe() argument 239 hid_err(hdev, "can't alloc SRW-S1 memory\n"); in steelseries_srws1_probe() 243 hid_set_drvdata(hdev, drv_data); in steelseries_srws1_probe() 245 ret = hid_parse(hdev); in steelseries_srws1_probe() 247 hid_err(hdev, "parse failed\n"); in steelseries_srws1_probe() 251 if (!hid_validate_values(hdev, HID_OUTPUT_REPORT, 0, 0, 16)) { in steelseries_srws1_probe() 256 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in steelseries_srws1_probe() [all …]
|
D | hid-cypress.c | 33 static __u8 *cp_report_fixup(struct hid_device *hdev, __u8 *rdesc, in cp_report_fixup() argument 36 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in cp_report_fixup() 55 static int cp_input_mapped(struct hid_device *hdev, struct hid_input *hi, in cp_input_mapped() argument 59 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in cp_input_mapped() 72 static int cp_event(struct hid_device *hdev, struct hid_field *field, in cp_event() argument 75 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in cp_event() 77 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput || in cp_event() 86 hid_set_drvdata(hdev, (void *)quirks); in cp_event() 100 static int cp_probe(struct hid_device *hdev, const struct hid_device_id *id) in cp_probe() argument 105 hid_set_drvdata(hdev, (void *)quirks); in cp_probe() [all …]
|
D | hid-a4tech.c | 35 static int a4_input_mapped(struct hid_device *hdev, struct hid_input *hi, in a4_input_mapped() argument 39 struct a4tech_sc *a4 = hid_get_drvdata(hdev); in a4_input_mapped() 50 static int a4_event(struct hid_device *hdev, struct hid_field *field, in a4_event() argument 53 struct a4tech_sc *a4 = hid_get_drvdata(hdev); in a4_event() 56 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput || in a4_event() 88 static int a4_probe(struct hid_device *hdev, const struct hid_device_id *id) in a4_probe() argument 93 a4 = devm_kzalloc(&hdev->dev, sizeof(*a4), GFP_KERNEL); in a4_probe() 95 hid_err(hdev, "can't alloc device descriptor\n"); in a4_probe() 101 hid_set_drvdata(hdev, a4); in a4_probe() 103 ret = hid_parse(hdev); in a4_probe() [all …]
|
D | hid-zydacron.c | 30 static __u8 *zc_report_fixup(struct hid_device *hdev, __u8 *rdesc, in zc_report_fixup() argument 37 hid_info(hdev, in zc_report_fixup() 48 static int zc_input_mapping(struct hid_device *hdev, struct hid_input *hi, in zc_input_mapping() argument 53 struct zc_device *zc = hid_get_drvdata(hdev); in zc_input_mapping() 112 static int zc_raw_event(struct hid_device *hdev, struct hid_report *report, in zc_raw_event() argument 115 struct zc_device *zc = hid_get_drvdata(hdev); in zc_raw_event() 167 static int zc_probe(struct hid_device *hdev, const struct hid_device_id *id) in zc_probe() argument 172 zc = devm_kzalloc(&hdev->dev, sizeof(*zc), GFP_KERNEL); in zc_probe() 174 hid_err(hdev, "can't alloc descriptor\n"); in zc_probe() 178 hid_set_drvdata(hdev, zc); in zc_probe() [all …]
|
D | hid-logitech-hidpp.c | 133 static int __hidpp_send_report(struct hid_device *hdev, in __hidpp_send_report() argument 155 ret = hid_hw_raw_request(hdev, hidpp_report->report_id, in __hidpp_send_report() 704 static int wtp_input_mapping(struct hid_device *hdev, struct hid_input *hi, in wtp_input_mapping() argument 825 static int wtp_raw_event(struct hid_device *hdev, u8 *data, int size) in wtp_raw_event() argument 827 struct hidpp_device *hidpp = hid_get_drvdata(hdev); in wtp_raw_event() 838 hid_err(hdev, "Received HID report of bad size (%d)", in wtp_raw_event() 897 static int wtp_allocate(struct hid_device *hdev, const struct hid_device_id *id) in wtp_allocate() argument 899 struct hidpp_device *hidpp = hid_get_drvdata(hdev); in wtp_allocate() 902 wd = devm_kzalloc(&hdev->dev, sizeof(struct wtp_data), in wtp_allocate() 912 static int wtp_connect(struct hid_device *hdev, bool connected) in wtp_connect() argument [all …]
|
D | hid-thingm.c | 64 struct hid_device *hdev; member 78 hid_dbg(tdev->hdev, "-> %d %c %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx\n", in thingm_send() 82 ret = hid_hw_raw_request(tdev->hdev, buf[0], buf, REPORT_SIZE, in thingm_send() 92 ret = hid_hw_raw_request(tdev->hdev, buf[0], buf, REPORT_SIZE, in thingm_recv() 97 hid_dbg(tdev->hdev, "<- %d %c %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx\n", in thingm_recv() 141 hid_err(rgb->tdev->hdev, "failed to write color\n"); in thingm_work() 157 const int minor = ((struct hidraw *) rgb->tdev->hdev->hidraw)->minor; in thingm_init_rgb() 168 err = led_classdev_register(&rgb->tdev->hdev->dev, &rgb->red.ldev); in thingm_init_rgb() 180 err = led_classdev_register(&rgb->tdev->hdev->dev, &rgb->green.ldev); in thingm_init_rgb() 192 err = led_classdev_register(&rgb->tdev->hdev->dev, &rgb->blue.ldev); in thingm_init_rgb() [all …]
|
D | hid-axff.c | 132 static int ax_probe(struct hid_device *hdev, const struct hid_device_id *id) in ax_probe() argument 136 dev_dbg(&hdev->dev, "ACRUX HID hardware probe...\n"); in ax_probe() 138 error = hid_parse(hdev); in ax_probe() 140 hid_err(hdev, "parse failed\n"); in ax_probe() 144 error = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); in ax_probe() 146 hid_err(hdev, "hw start failed\n"); in ax_probe() 150 error = axff_init(hdev); in ax_probe() 156 hid_warn(hdev, in ax_probe() 165 error = hid_hw_open(hdev); in ax_probe() 167 dev_err(&hdev->dev, "hw open failed\n"); in ax_probe() [all …]
|
D | hid-elo.c | 40 static void elo_input_configured(struct hid_device *hdev, in elo_input_configured() argument 73 static int elo_raw_event(struct hid_device *hdev, struct hid_report *report, in elo_raw_event() argument 78 if (!(hdev->claimed & HID_CLAIMED_INPUT) || list_empty(&hdev->inputs)) in elo_raw_event() 81 hidinput = list_first_entry(&hdev->inputs, struct hid_input, list); in elo_raw_event() 92 hid_info(hdev, "unknown report type %d\n", report->id); in elo_raw_event() 220 static int elo_probe(struct hid_device *hdev, const struct hid_device_id *id) in elo_probe() argument 230 priv->usbdev = interface_to_usbdev(to_usb_interface(hdev->dev.parent)); in elo_probe() 232 hid_set_drvdata(hdev, priv); in elo_probe() 234 ret = hid_parse(hdev); in elo_probe() 236 hid_err(hdev, "parse failed\n"); in elo_probe() [all …]
|
D | hid-petalynx.c | 25 static __u8 *pl_report_fixup(struct hid_device *hdev, __u8 *rdesc, in pl_report_fixup() argument 31 hid_info(hdev, "fixing up Petalynx Maxter Remote report descriptor\n"); in pl_report_fixup() 40 static int pl_input_mapping(struct hid_device *hdev, struct hid_input *hi, in pl_input_mapping() argument 70 static int pl_probe(struct hid_device *hdev, const struct hid_device_id *id) in pl_probe() argument 74 hdev->quirks |= HID_QUIRK_NOGET; in pl_probe() 76 ret = hid_parse(hdev); in pl_probe() 78 hid_err(hdev, "parse failed\n"); in pl_probe() 82 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in pl_probe() 84 hid_err(hdev, "hw start failed\n"); in pl_probe()
|
D | hid-microsoft.c | 33 static __u8 *ms_report_fixup(struct hid_device *hdev, __u8 *rdesc, in ms_report_fixup() argument 36 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in ms_report_fixup() 44 hid_info(hdev, "fixing up Microsoft Wireless Receiver Model 1028 report descriptor\n"); in ms_report_fixup() 141 static int ms_input_mapping(struct hid_device *hdev, struct hid_input *hi, in ms_input_mapping() argument 145 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in ms_input_mapping() 160 static int ms_input_mapped(struct hid_device *hdev, struct hid_input *hi, in ms_input_mapped() argument 164 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in ms_input_mapped() 172 static int ms_event(struct hid_device *hdev, struct hid_field *field, in ms_event() argument 175 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in ms_event() 178 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput || in ms_event() [all …]
|
D | hid-magicmouse.c | 280 static int magicmouse_raw_event(struct hid_device *hdev, in magicmouse_raw_event() argument 283 struct magicmouse_sc *msc = hid_get_drvdata(hdev); in magicmouse_raw_event() 294 hid_warn(hdev, "invalid size value (%d) for TRACKPAD_REPORT_ID\n", in magicmouse_raw_event() 316 hid_warn(hdev, "invalid size value (%d) for MOUSE_REPORT_ID\n", in magicmouse_raw_event() 342 magicmouse_raw_event(hdev, report, data + 2, data[1]); in magicmouse_raw_event() 343 magicmouse_raw_event(hdev, report, data + 2 + data[1], in magicmouse_raw_event() 363 static int magicmouse_setup_input(struct input_dev *input, struct hid_device *hdev) in magicmouse_setup_input() argument 457 static int magicmouse_input_mapping(struct hid_device *hdev, in magicmouse_input_mapping() argument 461 struct magicmouse_sc *msc = hid_get_drvdata(hdev); in magicmouse_input_mapping() 474 static void magicmouse_input_configured(struct hid_device *hdev, in magicmouse_input_configured() argument [all …]
|
D | hid-belkin.c | 29 static int belkin_input_mapping(struct hid_device *hdev, struct hid_input *hi, in belkin_input_mapping() argument 33 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in belkin_input_mapping() 49 static int belkin_probe(struct hid_device *hdev, const struct hid_device_id *id) in belkin_probe() argument 54 hid_set_drvdata(hdev, (void *)quirks); in belkin_probe() 56 ret = hid_parse(hdev); in belkin_probe() 58 hid_err(hdev, "parse failed\n"); in belkin_probe() 62 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT | in belkin_probe() 65 hid_err(hdev, "hw start failed\n"); in belkin_probe()
|
D | hid-roccat-isku.c | 271 static int isku_init_specials(struct hid_device *hdev) in isku_init_specials() argument 273 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in isku_init_specials() 280 hid_set_drvdata(hdev, NULL); in isku_init_specials() 286 hid_err(hdev, "can't alloc device descriptor\n"); in isku_init_specials() 289 hid_set_drvdata(hdev, isku); in isku_init_specials() 293 hid_err(hdev, "couldn't init struct isku_device\n"); in isku_init_specials() 297 retval = roccat_connect(isku_class, hdev, in isku_init_specials() 300 hid_err(hdev, "couldn't init char dev\n"); in isku_init_specials() 312 static void isku_remove_specials(struct hid_device *hdev) in isku_remove_specials() argument 314 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in isku_remove_specials() [all …]
|
D | hid-lg.h | 10 int lgff_init(struct hid_device *hdev); 12 static inline int lgff_init(struct hid_device *hdev) { return -1; } in lgff_init() argument 16 int lg2ff_init(struct hid_device *hdev); 18 static inline int lg2ff_init(struct hid_device *hdev) { return -1; } in lg2ff_init() argument 22 int lg3ff_init(struct hid_device *hdev); 24 static inline int lg3ff_init(struct hid_device *hdev) { return -1; } in lg3ff_init() argument
|
D | hid-roccat-arvo.c | 291 static int arvo_init_specials(struct hid_device *hdev) in arvo_init_specials() argument 293 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in arvo_init_specials() 300 hid_set_drvdata(hdev, NULL); in arvo_init_specials() 306 hid_err(hdev, "can't alloc device descriptor\n"); in arvo_init_specials() 309 hid_set_drvdata(hdev, arvo); in arvo_init_specials() 313 hid_err(hdev, "couldn't init struct arvo_device\n"); in arvo_init_specials() 317 retval = roccat_connect(arvo_class, hdev, in arvo_init_specials() 320 hid_err(hdev, "couldn't init char dev\n"); in arvo_init_specials() 332 static void arvo_remove_specials(struct hid_device *hdev) in arvo_remove_specials() argument 334 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in arvo_remove_specials() [all …]
|
D | hid-debug.c | 660 void hid_debug_event(struct hid_device *hdev, char *buf) in hid_debug_event() argument 666 spin_lock_irqsave(&hdev->debug_list_lock, flags); in hid_debug_event() 667 list_for_each_entry(list, &hdev->debug_list, node) { in hid_debug_event() 673 spin_unlock_irqrestore(&hdev->debug_list_lock, flags); in hid_debug_event() 675 wake_up_interruptible(&hdev->debug_wait); in hid_debug_event() 709 void hid_dump_input(struct hid_device *hdev, struct hid_usage *usage, __s32 value) in hid_dump_input() argument 720 hid_debug_event(hdev, buf); in hid_dump_input() 723 wake_up_interruptible(&hdev->debug_wait); in hid_dump_input() 1050 struct hid_device *hdev = f->private; in hid_debug_rdesc_show() local 1051 const __u8 *rdesc = hdev->rdesc; in hid_debug_rdesc_show() [all …]
|
D | hid-multitouch.c | 275 struct hid_device *hdev = container_of(dev, struct hid_device, dev); in mt_show_quirks() local 276 struct mt_device *td = hid_get_drvdata(hdev); in mt_show_quirks() 285 struct hid_device *hdev = container_of(dev, struct hid_device, dev); in mt_set_quirks() local 286 struct mt_device *td = hid_get_drvdata(hdev); in mt_set_quirks() 312 static void mt_feature_mapping(struct hid_device *hdev, in mt_feature_mapping() argument 315 struct mt_device *td = hid_get_drvdata(hdev); in mt_feature_mapping() 321 dev_err(&hdev->dev, "HID_DG_INPUTMODE out of range\n"); in mt_feature_mapping() 335 dev_info(&hdev->dev, in mt_feature_mapping() 353 dev_err(&hdev->dev, "HID_DG_BUTTONTYPE out of range\n"); in mt_feature_mapping() 385 static int mt_touch_input_mapping(struct hid_device *hdev, struct hid_input *hi, in mt_touch_input_mapping() argument [all …]
|
D | hid-dr.c | 237 static __u8 *dr_report_fixup(struct hid_device *hdev, __u8 *rdesc, in dr_report_fixup() argument 240 switch (hdev->product) { in dr_report_fixup() 251 static int dr_probe(struct hid_device *hdev, const struct hid_device_id *id) in dr_probe() argument 255 dev_dbg(&hdev->dev, "DragonRise Inc. HID hardware probe..."); in dr_probe() 257 ret = hid_parse(hdev); in dr_probe() 259 hid_err(hdev, "parse failed\n"); in dr_probe() 263 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); in dr_probe() 265 hid_err(hdev, "hw start failed\n"); in dr_probe() 269 switch (hdev->product) { in dr_probe() 271 ret = drff_init(hdev); in dr_probe() [all …]
|
D | hid-wiimote-core.c | 25 static int wiimote_hid_send(struct hid_device *hdev, __u8 *buffer, in wiimote_hid_send() argument 31 if (!hdev->ll_driver->output_report) in wiimote_hid_send() 38 ret = hid_hw_output_report(hdev, buf, count); in wiimote_hid_send() 57 ret = wiimote_hid_send(wdata->hdev, in wiimote_queue_worker() 80 hid_warn(wdata->hdev, "Sending too large output report\n"); in wiimote_queue() 108 hid_warn(wdata->hdev, "Output queue is full"); in wiimote_queue() 320 hid_warn(wdata->hdev, "Invalid length %d wmem request\n", size); in wiiproto_req_wmem() 345 hid_warn(wdata->hdev, "Invalid length %d rmem request\n", size); in wiiproto_req_rmem() 444 hid_dbg(wdata->hdev, "extension ID: %6phC\n", rmem); in wiimote_cmd_read_ext() 514 hid_dbg(wdata->hdev, "motion plus ID: %6phC\n", rmem); in wiimote_cmd_read_mp() [all …]
|
D | hid-holtek-kbd.c | 108 static __u8 *holtek_kbd_report_fixup(struct hid_device *hdev, __u8 *rdesc, in holtek_kbd_report_fixup() argument 111 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in holtek_kbd_report_fixup() 138 static int holtek_kbd_probe(struct hid_device *hdev, in holtek_kbd_probe() argument 141 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in holtek_kbd_probe() 142 int ret = hid_parse(hdev); in holtek_kbd_probe() 145 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in holtek_kbd_probe() 149 list_for_each_entry(hidinput, &hdev->inputs, list) { in holtek_kbd_probe()
|
D | hid-roccat-koneplus.c | 381 static int koneplus_init_specials(struct hid_device *hdev) in koneplus_init_specials() argument 383 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in koneplus_init_specials() 393 hid_err(hdev, "can't alloc device descriptor\n"); in koneplus_init_specials() 396 hid_set_drvdata(hdev, koneplus); in koneplus_init_specials() 400 hid_err(hdev, "couldn't init struct koneplus_device\n"); in koneplus_init_specials() 404 retval = roccat_connect(koneplus_class, hdev, in koneplus_init_specials() 407 hid_err(hdev, "couldn't init char dev\n"); in koneplus_init_specials() 413 hid_set_drvdata(hdev, NULL); in koneplus_init_specials() 422 static void koneplus_remove_specials(struct hid_device *hdev) in koneplus_remove_specials() argument 424 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in koneplus_remove_specials() [all …]
|
D | hid-roccat-pyra.c | 401 static int pyra_init_specials(struct hid_device *hdev) in pyra_init_specials() argument 403 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in pyra_init_specials() 413 hid_err(hdev, "can't alloc device descriptor\n"); in pyra_init_specials() 416 hid_set_drvdata(hdev, pyra); in pyra_init_specials() 420 hid_err(hdev, "couldn't init struct pyra_device\n"); in pyra_init_specials() 424 retval = roccat_connect(pyra_class, hdev, in pyra_init_specials() 427 hid_err(hdev, "couldn't init char dev\n"); in pyra_init_specials() 433 hid_set_drvdata(hdev, NULL); in pyra_init_specials() 442 static void pyra_remove_specials(struct hid_device *hdev) in pyra_remove_specials() argument 444 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in pyra_remove_specials() [all …]
|
D | hid-picolcd_leds.c | 49 report = picolcd_out_report(REPORT_LED_STATE, data->hdev); in picolcd_leds_set() 56 hid_hw_request(data->hdev, report, HID_REQ_SET_REPORT); in picolcd_leds_set() 64 struct hid_device *hdev; in picolcd_led_set_brightness() local 69 hdev = container_of(dev, struct hid_device, dev); in picolcd_led_set_brightness() 70 data = hid_get_drvdata(hdev); in picolcd_led_set_brightness() 91 struct hid_device *hdev; in picolcd_led_get_brightness() local 96 hdev = container_of(dev, struct hid_device, dev); in picolcd_led_get_brightness() 97 data = hid_get_drvdata(hdev); in picolcd_led_get_brightness() 108 struct device *dev = &data->hdev->dev; in picolcd_init_leds()
|
D | hid-emsff.c | 112 static int ems_probe(struct hid_device *hdev, const struct hid_device_id *id) in ems_probe() argument 116 ret = hid_parse(hdev); in ems_probe() 118 hid_err(hdev, "parse failed\n"); in ems_probe() 122 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); in ems_probe() 124 hid_err(hdev, "hw start failed\n"); in ems_probe() 128 ret = emsff_init(hdev); in ems_probe() 130 dev_err(&hdev->dev, "force feedback init failed\n"); in ems_probe() 131 hid_hw_stop(hdev); in ems_probe()
|
D | hid-roccat-kovaplus.c | 448 static int kovaplus_init_specials(struct hid_device *hdev) in kovaplus_init_specials() argument 450 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in kovaplus_init_specials() 460 hid_err(hdev, "can't alloc device descriptor\n"); in kovaplus_init_specials() 463 hid_set_drvdata(hdev, kovaplus); in kovaplus_init_specials() 467 hid_err(hdev, "couldn't init struct kovaplus_device\n"); in kovaplus_init_specials() 471 retval = roccat_connect(kovaplus_class, hdev, in kovaplus_init_specials() 474 hid_err(hdev, "couldn't init char dev\n"); in kovaplus_init_specials() 481 hid_set_drvdata(hdev, NULL); in kovaplus_init_specials() 490 static void kovaplus_remove_specials(struct hid_device *hdev) in kovaplus_remove_specials() argument 492 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in kovaplus_remove_specials() [all …]
|
D | hid-betopff.c | 118 static int betop_probe(struct hid_device *hdev, const struct hid_device_id *id) in betop_probe() argument 123 hdev->quirks |= HID_QUIRK_MULTI_INPUT; in betop_probe() 125 ret = hid_parse(hdev); in betop_probe() 127 hid_err(hdev, "parse failed\n"); in betop_probe() 131 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); in betop_probe() 133 hid_err(hdev, "hw start failed\n"); in betop_probe() 137 betopff_init(hdev); in betop_probe()
|
D | hid-holtek-mouse.c | 35 static __u8 *holtek_mouse_report_fixup(struct hid_device *hdev, __u8 *rdesc, in holtek_mouse_report_fixup() argument 38 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in holtek_mouse_report_fixup() 43 switch (hdev->product) { in holtek_mouse_report_fixup() 49 hid_info(hdev, "Fixing up report descriptor\n"); in holtek_mouse_report_fixup() 58 hid_info(hdev, "Fixing up report descriptor\n"); in holtek_mouse_report_fixup()
|
D | hid-gaff.c | 135 static inline int gaff_init(struct hid_device *hdev) in gaff_init() argument 141 static int ga_probe(struct hid_device *hdev, const struct hid_device_id *id) in ga_probe() argument 145 dev_dbg(&hdev->dev, "Greenasia HID hardware probe..."); in ga_probe() 147 ret = hid_parse(hdev); in ga_probe() 149 hid_err(hdev, "parse failed\n"); in ga_probe() 153 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); in ga_probe() 155 hid_err(hdev, "hw start failed\n"); in ga_probe() 159 gaff_init(hdev); in ga_probe()
|
D | hid-picolcd_cir.c | 120 rdev->input_name = data->hdev->name; in picolcd_init_cir() 121 rdev->input_phys = data->hdev->phys; in picolcd_init_cir() 122 rdev->input_id.bustype = data->hdev->bus; in picolcd_init_cir() 123 rdev->input_id.vendor = data->hdev->vendor; in picolcd_init_cir() 124 rdev->input_id.product = data->hdev->product; in picolcd_init_cir() 125 rdev->input_id.version = data->hdev->version; in picolcd_init_cir() 126 rdev->dev.parent = &data->hdev->dev; in picolcd_init_cir()
|
D | hid-roccat-kone.c | 692 static int kone_init_specials(struct hid_device *hdev) in kone_init_specials() argument 694 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in kone_init_specials() 705 hid_set_drvdata(hdev, kone); in kone_init_specials() 709 hid_err(hdev, "couldn't init struct kone_device\n"); in kone_init_specials() 713 retval = roccat_connect(kone_class, hdev, in kone_init_specials() 716 hid_err(hdev, "couldn't init char dev\n"); in kone_init_specials() 723 hid_set_drvdata(hdev, NULL); in kone_init_specials() 732 static void kone_remove_specials(struct hid_device *hdev) in kone_remove_specials() argument 734 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in kone_remove_specials() 739 kone = hid_get_drvdata(hdev); in kone_remove_specials() [all …]
|
D | hid-lg4ff.h | 9 int lg4ff_init(struct hid_device *hdev); 10 int lg4ff_deinit(struct hid_device *hdev); 14 static inline int lg4ff_init(struct hid_device *hdev) { return -1; } in lg4ff_init() argument 15 static inline int lg4ff_deinit(struct hid_device *hdev) { return -1; } in lg4ff_deinit() argument
|
D | hid-zpff.c | 110 static int zp_probe(struct hid_device *hdev, const struct hid_device_id *id) in zp_probe() argument 114 ret = hid_parse(hdev); in zp_probe() 116 hid_err(hdev, "parse failed\n"); in zp_probe() 120 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); in zp_probe() 122 hid_err(hdev, "hw start failed\n"); in zp_probe() 126 zpff_init(hdev); in zp_probe()
|
D | hid-sjoy.c | 130 static int sjoy_probe(struct hid_device *hdev, const struct hid_device_id *id) in sjoy_probe() argument 134 hdev->quirks |= id->driver_data; in sjoy_probe() 136 ret = hid_parse(hdev); in sjoy_probe() 138 hid_err(hdev, "parse failed\n"); in sjoy_probe() 142 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); in sjoy_probe() 144 hid_err(hdev, "hw start failed\n"); in sjoy_probe() 148 sjoyff_init(hdev); in sjoy_probe()
|
D | hid-picolcd.h | 75 struct hid_device *hdev; member 140 struct hid_report *picolcd_report(int id, struct hid_device *hdev, int dir); 144 struct hid_device *hdev, struct hid_report *report); 152 struct hid_device *hdev, struct hid_report *report, 163 struct hid_device *hdev, struct hid_report *report) in picolcd_debug_out_report() argument 167 struct hid_device *hdev, struct hid_report *report, in picolcd_debug_raw_event() argument 307 int picolcd_reset(struct hid_device *hdev); 308 struct picolcd_pending *picolcd_send_and_wait(struct hid_device *hdev,
|
D | hid-pl.c | 190 static int pl_probe(struct hid_device *hdev, const struct hid_device_id *id) in pl_probe() argument 195 hdev->quirks |= HID_QUIRK_MULTI_INPUT; in pl_probe() 197 ret = hid_parse(hdev); in pl_probe() 199 hid_err(hdev, "parse failed\n"); in pl_probe() 203 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); in pl_probe() 205 hid_err(hdev, "hw start failed\n"); in pl_probe() 209 plff_init(hdev); in pl_probe()
|
D | hid-holtekff.c | 191 static int holtek_probe(struct hid_device *hdev, const struct hid_device_id *id) in holtek_probe() argument 195 ret = hid_parse(hdev); in holtek_probe() 197 hid_err(hdev, "parse failed\n"); in holtek_probe() 201 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); in holtek_probe() 203 hid_err(hdev, "hw start failed\n"); in holtek_probe() 207 holtekff_init(hdev); in holtek_probe()
|
D | hid-apple.c | 270 static int apple_event(struct hid_device *hdev, struct hid_field *field, in apple_event() argument 273 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_event() 275 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput || in apple_event() 287 hidinput_apple_event(hdev, field->hidinput->input, in apple_event() 298 static __u8 *apple_report_fixup(struct hid_device *hdev, __u8 *rdesc, in apple_report_fixup() argument 301 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_report_fixup() 305 hid_info(hdev, in apple_report_fixup() 332 static int apple_input_mapping(struct hid_device *hdev, struct hid_input *hi, in apple_input_mapping() argument 348 static int apple_input_mapped(struct hid_device *hdev, struct hid_input *hi, in apple_input_mapped() argument 352 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_input_mapped() [all …]
|
D | wacom.h | 112 struct hid_device *hdev; member 142 void wacom_wac_usage_mapping(struct hid_device *hdev, 144 int wacom_wac_event(struct hid_device *hdev, struct hid_field *field, 146 void wacom_wac_report(struct hid_device *hdev, struct hid_report *report);
|
D | hid-wiimote-modules.c | 249 wdata->hdev->uniq); in wiimod_battery_probe() 253 wdata->battery = power_supply_register(&wdata->hdev->dev, in wiimod_battery_probe() 257 hid_err(wdata->hdev, "cannot register battery device\n"); in wiimod_battery_probe() 262 power_supply_powers(wdata->battery, &wdata->hdev->dev); in wiimod_battery_probe() 348 struct device *dev = &wdata->hdev->dev; in wiimod_led_probe() 500 wdata->accel->dev.parent = &wdata->hdev->dev; in wiimod_accel_probe() 501 wdata->accel->id.bustype = wdata->hdev->bus; in wiimod_accel_probe() 502 wdata->accel->id.vendor = wdata->hdev->vendor; in wiimod_accel_probe() 503 wdata->accel->id.product = wdata->hdev->product; in wiimod_accel_probe() 504 wdata->accel->id.version = wdata->hdev->version; in wiimod_accel_probe() [all …]
|
D | hid-ortek.c | 27 static __u8 *ortek_report_fixup(struct hid_device *hdev, __u8 *rdesc, in ortek_report_fixup() argument 31 hid_info(hdev, "Fixing up logical minimum in report descriptor (Ortek)\n"); in ortek_report_fixup() 34 hid_info(hdev, "Fixing up logical minimum in report descriptor (Skycable)\n"); in ortek_report_fixup()
|
D | hid-plantronics.c | 20 static int plantronics_input_mapping(struct hid_device *hdev, in plantronics_input_mapping() argument 28 hid_dbg(hdev, "usage: %08x (appl: %08x) - defaulted\n", in plantronics_input_mapping() 33 hid_dbg(hdev, "usage: %08x (appl: %08x) - ignored\n", in plantronics_input_mapping()
|
D | hid-tmff.c | 213 static int tm_probe(struct hid_device *hdev, const struct hid_device_id *id) in tm_probe() argument 217 ret = hid_parse(hdev); in tm_probe() 219 hid_err(hdev, "parse failed\n"); in tm_probe() 223 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); in tm_probe() 225 hid_err(hdev, "hw start failed\n"); in tm_probe() 229 tmff_init(hdev, (void *)id->driver_data); in tm_probe()
|
D | hid-icade.c | 167 static int icade_event(struct hid_device *hdev, struct hid_field *field, in icade_event() argument 172 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput || in icade_event() 191 static int icade_input_mapping(struct hid_device *hdev, struct hid_input *hi, in icade_input_mapping() argument 214 static int icade_input_mapped(struct hid_device *hdev, struct hid_input *hi, in icade_input_mapped() argument
|
D | hid-sunplus.c | 24 static __u8 *sp_report_fixup(struct hid_device *hdev, __u8 *rdesc, in sp_report_fixup() argument 29 hid_info(hdev, "fixing up Sunplus Wireless Desktop report descriptor\n"); in sp_report_fixup() 38 static int sp_input_mapping(struct hid_device *hdev, struct hid_input *hi, in sp_input_mapping() argument
|
D | hid-monterey.c | 24 static __u8 *mr_report_fixup(struct hid_device *hdev, __u8 *rdesc, in mr_report_fixup() argument 28 hid_info(hdev, "fixing up button/consumer in HID report descriptor\n"); in mr_report_fixup() 36 static int mr_input_mapping(struct hid_device *hdev, struct hid_input *hi, in mr_input_mapping() argument
|
D | hid-cherry.c | 28 static __u8 *ch_report_fixup(struct hid_device *hdev, __u8 *rdesc, in ch_report_fixup() argument 32 hid_info(hdev, "fixing up Cherry Cymotion report descriptor\n"); in ch_report_fixup() 41 static int ch_input_mapping(struct hid_device *hdev, struct hid_input *hi, in ch_input_mapping() argument
|
D | hid-ezkey.c | 28 static int ez_input_mapping(struct hid_device *hdev, struct hid_input *hi, in ez_input_mapping() argument 50 static int ez_event(struct hid_device *hdev, struct hid_field *field, in ez_event() argument 53 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput || in ez_event()
|
D | hid-waltop.c | 641 static __u8 *waltop_report_fixup(struct hid_device *hdev, __u8 *rdesc, in waltop_report_fixup() argument 644 switch (hdev->product) { in waltop_report_fixup() 691 static int waltop_raw_event(struct hid_device *hdev, struct hid_report *report, in waltop_raw_event() argument 710 if (hdev->product == USB_DEVICE_ID_WALTOP_SIRIUS_BATTERY_FREE_TABLET && in waltop_raw_event()
|
D | hid-gyration.c | 27 static int gyration_input_mapping(struct hid_device *hdev, struct hid_input *hi, in gyration_input_mapping() argument 57 static int gyration_event(struct hid_device *hdev, struct hid_field *field, in gyration_event() argument 61 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput) in gyration_event()
|
D | hid-picolcd_lcd.c | 39 struct hid_report *report = picolcd_out_report(REPORT_CONTRAST, data->hdev); in picolcd_set_contrast() 49 hid_hw_request(data->hdev, report, HID_REQ_SET_REPORT); in picolcd_set_contrast() 67 struct device *dev = &data->hdev->dev; in picolcd_init_lcd()
|
D | hid-elecom.c | 23 static __u8 *elecom_report_fixup(struct hid_device *hdev, __u8 *rdesc, in elecom_report_fixup() argument 27 hid_info(hdev, "Fixing up Elecom BM084 report descriptor\n"); in elecom_report_fixup()
|
D | hid-aureal.c | 20 static __u8 *aureal_report_fixup(struct hid_device *hdev, __u8 *rdesc, in aureal_report_fixup() argument 24 dev_info(&hdev->dev, "fixing Aureal Cy se W-01RN USB_V3.1 report descriptor.\n"); in aureal_report_fixup()
|
D | hid-keytouch.c | 30 static __u8 *keytouch_report_fixup(struct hid_device *hdev, __u8 *rdesc, in keytouch_report_fixup() argument 33 hid_info(hdev, "fixing up Keytouch IEC report descriptor\n"); in keytouch_report_fixup()
|
D | hid-picolcd_fb.c | 108 report1 = picolcd_out_report(REPORT_LCD_CMD_DATA, data->hdev); in picolcd_fb_send_tile() 111 report2 = picolcd_out_report(REPORT_LCD_DATA, data->hdev); in picolcd_fb_send_tile() 144 hid_hw_request(data->hdev, report1, HID_REQ_SET_REPORT); in picolcd_fb_send_tile() 145 hid_hw_request(data->hdev, report2, HID_REQ_SET_REPORT); in picolcd_fb_send_tile() 197 struct hid_report *report = picolcd_out_report(REPORT_LCD_CMD, data->hdev); in picolcd_fb_reset() 215 hid_hw_request(data->hdev, report, HID_REQ_SET_REPORT); in picolcd_fb_reset() 271 hid_hw_wait(data->hdev); in picolcd_fb_update() 289 hid_hw_wait(data->hdev); in picolcd_fb_update() 510 struct device *dev = &data->hdev->dev; in picolcd_init_framebuffer() 602 device_remove_file(&data->hdev->dev, &dev_attr_fb_update_rate); in picolcd_exit_framebuffer()
|
D | hid-speedlink.c | 27 static int speedlink_input_mapping(struct hid_device *hdev, in speedlink_input_mapping() argument 45 static int speedlink_event(struct hid_device *hdev, struct hid_field *field, in speedlink_event() argument
|
D | hid-picolcd_backlight.c | 36 struct hid_report *report = picolcd_out_report(REPORT_BRIGHTNESS, data->hdev); in picolcd_set_brightness() 47 hid_hw_request(data->hdev, report, HID_REQ_SET_REPORT); in picolcd_set_brightness() 65 struct device *dev = &data->hdev->dev; in picolcd_init_backlight()
|
D | hid-sensor-custom.c | 212 hid_err(sensor_inst->hsdev->hdev, in set_power_report_state() 227 hid_err(sensor_inst->hsdev->hdev, in set_power_report_state() 433 hid_err(sensor_inst->hsdev->hdev, "Skipped remaining data\n"); in hid_sensor_capture_sample() 437 hid_dbg(sensor_inst->hsdev->hdev, "%s received %d of %d\n", __func__, in hid_sensor_capture_sample() 573 struct hid_device *hdev = hsdev->hdev; in hid_sensor_custom_add_attributes() local 582 &hdev->report_enum[j], j); in hid_sensor_custom_add_attributes()
|
D | wacom_wac.c | 456 re = &(wacom->hdev->report_enum[HID_FEATURE_REPORT]); in wacom_intuos_schedule_prox_event() 459 hid_hw_request(wacom->hdev, r, HID_REQ_GET_REPORT); in wacom_intuos_schedule_prox_event() 1369 static void wacom_wac_pen_usage_mapping(struct hid_device *hdev, in wacom_wac_pen_usage_mapping() argument 1372 struct wacom *wacom = hid_get_drvdata(hdev); in wacom_wac_pen_usage_mapping() 1407 static int wacom_wac_pen_event(struct hid_device *hdev, struct hid_field *field, in wacom_wac_pen_event() argument 1410 struct wacom *wacom = hid_get_drvdata(hdev); in wacom_wac_pen_event() 1437 static void wacom_wac_pen_report(struct hid_device *hdev, in wacom_wac_pen_report() argument 1440 struct wacom *wacom = hid_get_drvdata(hdev); in wacom_wac_pen_report() 1465 static void wacom_wac_finger_usage_mapping(struct hid_device *hdev, in wacom_wac_finger_usage_mapping() argument 1468 struct wacom *wacom = hid_get_drvdata(hdev); in wacom_wac_finger_usage_mapping() [all …]
|
D | hid-penmount.c | 21 static int penmount_input_mapping(struct hid_device *hdev, in penmount_input_mapping() argument
|
D | hid-xinmo.c | 28 static int xinmo_event(struct hid_device *hdev, struct hid_field *field, in xinmo_event() argument
|
D | hid-kensington.c | 23 static int ks_input_mapping(struct hid_device *hdev, struct hid_input *hi, in ks_input_mapping() argument
|
D | hid-lcpower.c | 23 static int ts_input_mapping(struct hid_device *hdev, struct hid_input *hi, in ts_input_mapping() argument
|
D | hid-tivo.c | 25 static int tivo_input_mapping(struct hid_device *hdev, struct hid_input *hi, in tivo_input_mapping() argument
|
D | hid-wiimote-debug.c | 188 dbg->wdata->hdev->debug_dir, dbg, &wiidebug_eeprom_fops); in wiidebug_init() 193 dbg->wdata->hdev->debug_dir, dbg, &wiidebug_drm_fops); in wiidebug_init()
|
D | hid-chicony.c | 28 static int ch_input_mapping(struct hid_device *hdev, struct hid_input *hi, in ch_input_mapping() argument
|
D | hid-topseed.c | 29 static int ts_input_mapping(struct hid_device *hdev, struct hid_input *hi, in ts_input_mapping() argument
|
D | hid-twinhan.c | 63 static int twinhan_input_mapping(struct hid_device *hdev, struct hid_input *hi, in twinhan_input_mapping() argument
|
D | hid-wiimote.h | 144 struct hid_device *hdev; member
|
/linux-4.1.27/drivers/bluetooth/ |
D | btwilink.c | 53 struct hci_dev *hdev; member 62 struct hci_dev *hdev = hst->hdev; in ti_st_tx_complete() local 67 hdev->stat.cmd_tx++; in ti_st_tx_complete() 71 hdev->stat.acl_tx++; in ti_st_tx_complete() 75 hdev->stat.sco_tx++; in ti_st_tx_complete() 112 err = hci_recv_frame(lhst->hdev, skb); in st_receive() 118 lhst->hdev->stat.byte_rx += skb->len; in st_receive() 150 static int ti_st_open(struct hci_dev *hdev) in ti_st_open() argument 156 BT_DBG("%s %p", hdev->name, hdev); in ti_st_open() 158 if (test_and_set_bit(HCI_RUNNING, &hdev->flags)) in ti_st_open() [all …]
|
D | bpa10x.c | 50 struct hci_dev *hdev; member 67 static int bpa10x_recv(struct hci_dev *hdev, int queue, void *buf, int count) in bpa10x_recv() argument 69 struct bpa10x_data *data = hci_get_drvdata(hdev); in bpa10x_recv() 71 BT_DBG("%s queue %d buffer %p count %d", hdev->name, in bpa10x_recv() 77 hdev->stat.byte_rx += count; in bpa10x_recv() 128 BT_ERR("%s no memory for packet", hdev->name); in bpa10x_recv() 156 hci_recv_frame(hdev, skb); in bpa10x_recv() 168 struct hci_dev *hdev = (struct hci_dev *) skb->dev; in bpa10x_tx_complete() local 170 BT_DBG("%s urb %p status %d count %d", hdev->name, in bpa10x_tx_complete() 173 if (!test_bit(HCI_RUNNING, &hdev->flags)) in bpa10x_tx_complete() [all …]
|
D | btsdio.c | 58 struct hci_dev *hdev; member 82 BT_DBG("%s", data->hdev->name); in btsdio_tx_packet() 98 data->hdev->stat.byte_tx += skb->len; in btsdio_tx_packet() 111 BT_DBG("%s", data->hdev->name); in btsdio_work() 118 data->hdev->stat.err_tx++; in btsdio_work() 133 BT_DBG("%s", data->hdev->name); in btsdio_rx_packet() 159 data->hdev->stat.byte_rx += len; in btsdio_rx_packet() 163 err = hci_recv_frame(data->hdev, skb); in btsdio_rx_packet() 177 BT_DBG("%s", data->hdev->name); in btsdio_interrupt() 184 data->hdev->stat.err_rx++; in btsdio_interrupt() [all …]
|
D | btusb.c | 348 struct hci_dev *hdev; member 385 int (*recv_event)(struct hci_dev *hdev, struct sk_buff *skb); 388 int (*setup_on_usb)(struct hci_dev *hdev); 453 data->recv_event(data->hdev, skb); in btusb_recv_intr() 510 hci_recv_frame(data->hdev, skb); in btusb_recv_bulk() 565 hci_recv_frame(data->hdev, skb); in btusb_recv_isoc() 578 struct hci_dev *hdev = urb->context; in btusb_intr_complete() local 579 struct btusb_data *data = hci_get_drvdata(hdev); in btusb_intr_complete() 582 BT_DBG("%s urb %p status %d count %d", hdev->name, urb, urb->status, in btusb_intr_complete() 585 if (!test_bit(HCI_RUNNING, &hdev->flags)) in btusb_intr_complete() [all …]
|
D | btbcm.c | 37 int btbcm_check_bdaddr(struct hci_dev *hdev) in btbcm_check_bdaddr() argument 42 skb = __hci_cmd_sync(hdev, HCI_OP_READ_BD_ADDR, 0, NULL, in btbcm_check_bdaddr() 47 hdev->name, err); in btbcm_check_bdaddr() 52 BT_ERR("%s: BCM: Device address length mismatch", hdev->name); in btbcm_check_bdaddr() 60 hdev->name, bda->status); in btbcm_check_bdaddr() 70 hdev->name, &bda->bdaddr); in btbcm_check_bdaddr() 71 set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks); in btbcm_check_bdaddr() 80 int btbcm_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr) in btbcm_set_bdaddr() argument 85 skb = __hci_cmd_sync(hdev, 0xfc01, 6, bdaddr, HCI_INIT_TIMEOUT); in btbcm_set_bdaddr() 89 hdev->name, err); in btbcm_set_bdaddr() [all …]
|
D | hci_ldisc.c | 93 struct hci_dev *hdev = hu->hdev; in hci_uart_tx_complete() local 98 hdev->stat.cmd_tx++; in hci_uart_tx_complete() 102 hdev->stat.acl_tx++; in hci_uart_tx_complete() 106 hdev->stat.sco_tx++; in hci_uart_tx_complete() 141 struct hci_dev *hdev = hu->hdev; in hci_uart_write_work() local 156 hdev->stat.byte_tx += len; in hci_uart_write_work() 182 err = hci_register_dev(hu->hdev); in hci_uart_init_work() 185 hci_free_dev(hu->hdev); in hci_uart_init_work() 186 hu->hdev = NULL; in hci_uart_init_work() 205 static int hci_uart_open(struct hci_dev *hdev) in hci_uart_open() argument [all …]
|
D | hci_vhci.c | 48 struct hci_dev *hdev; member 57 static int vhci_open_dev(struct hci_dev *hdev) in vhci_open_dev() argument 59 set_bit(HCI_RUNNING, &hdev->flags); in vhci_open_dev() 64 static int vhci_close_dev(struct hci_dev *hdev) in vhci_close_dev() argument 66 struct vhci_data *data = hci_get_drvdata(hdev); in vhci_close_dev() 68 if (!test_and_clear_bit(HCI_RUNNING, &hdev->flags)) in vhci_close_dev() 76 static int vhci_flush(struct hci_dev *hdev) in vhci_flush() argument 78 struct vhci_data *data = hci_get_drvdata(hdev); in vhci_flush() 85 static int vhci_send_frame(struct hci_dev *hdev, struct sk_buff *skb) in vhci_send_frame() argument 87 struct vhci_data *data = hci_get_drvdata(hdev); in vhci_send_frame() [all …]
|
D | bfusb.c | 65 struct hci_dev *hdev; member 152 data->hdev->name, urb, err); in bfusb_send_bulk() 197 if (!test_bit(HCI_RUNNING, &data->hdev->flags)) in bfusb_tx_complete() 201 data->hdev->stat.byte_tx += skb->len; in bfusb_tx_complete() 203 data->hdev->stat.err_tx++; in bfusb_tx_complete() 251 data->hdev->name, urb, err); in bfusb_rx_submit() 265 BT_ERR("%s error in block", data->hdev->name); in bfusb_recv_block() 277 BT_ERR("%s unexpected start block", data->hdev->name); in bfusb_recv_block() 283 BT_ERR("%s no packet type found", data->hdev->name); in bfusb_recv_block() 295 BT_ERR("%s event block is too short", data->hdev->name); in bfusb_recv_block() [all …]
|
D | btuart_cs.c | 68 struct hci_dev *hdev; member 167 info->hdev->stat.byte_tx += len; in btuart_write_wakeup() 188 info->hdev->stat.byte_rx++; in btuart_receive() 225 info->hdev->stat.err_rx++; in btuart_receive() 226 clear_bit(HCI_RUNNING, &(info->hdev->flags)); in btuart_receive() 269 hci_recv_frame(info->hdev, info->rx_skb); in btuart_receive() 295 if (!info || !info->hdev) in btuart_interrupt() 399 static int btuart_hci_flush(struct hci_dev *hdev) in btuart_hci_flush() argument 401 struct btuart_info *info = hci_get_drvdata(hdev); in btuart_hci_flush() 410 static int btuart_hci_open(struct hci_dev *hdev) in btuart_hci_open() argument [all …]
|
D | btbcm.h | 26 int btbcm_check_bdaddr(struct hci_dev *hdev); 27 int btbcm_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr); 28 int btbcm_patchram(struct hci_dev *hdev, const char *firmware); 30 int btbcm_setup_patchram(struct hci_dev *hdev); 31 int btbcm_setup_apple(struct hci_dev *hdev); 35 static inline int btbcm_check_bdaddr(struct hci_dev *hdev) in btbcm_check_bdaddr() argument 40 static inline int btbcm_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr) in btbcm_set_bdaddr() argument 45 static inline int btbcm_patchram(struct hci_dev *hdev, const char *firmware) in btbcm_patchram() argument 50 static inline int btbcm_setup_patchram(struct hci_dev *hdev) in btbcm_setup_patchram() argument 55 static inline int btbcm_setup_apple(struct hci_dev *hdev) in btbcm_setup_apple() argument
|
D | dtl1_cs.c | 68 struct hci_dev *hdev; member 171 info->hdev->stat.byte_tx += len; in dtl1_write_wakeup() 216 info->hdev->stat.byte_rx++; in dtl1_receive() 263 hci_recv_frame(info->hdev, info->rx_skb); in dtl1_receive() 297 if (!info || !info->hdev) in dtl1_interrupt() 358 static int dtl1_hci_open(struct hci_dev *hdev) in dtl1_hci_open() argument 360 set_bit(HCI_RUNNING, &(hdev->flags)); in dtl1_hci_open() 366 static int dtl1_hci_flush(struct hci_dev *hdev) in dtl1_hci_flush() argument 368 struct dtl1_info *info = hci_get_drvdata(hdev); in dtl1_hci_flush() 377 static int dtl1_hci_close(struct hci_dev *hdev) in dtl1_hci_close() argument [all …]
|
D | bt3c_cs.c | 73 struct hci_dev *hdev; member 211 info->hdev->stat.byte_tx += len; in bt3c_write_wakeup() 234 info->hdev->stat.byte_rx++; in bt3c_receive() 273 info->hdev->stat.err_rx++; in bt3c_receive() 274 clear_bit(HCI_RUNNING, &(info->hdev->flags)); in bt3c_receive() 319 hci_recv_frame(info->hdev, info->rx_skb); in bt3c_receive() 342 if (!info || !info->hdev) in bt3c_interrupt() 359 BT_INFO("%s: Antenna %s", info->hdev->name, in bt3c_interrupt() 386 static int bt3c_hci_flush(struct hci_dev *hdev) in bt3c_hci_flush() argument 388 struct bt3c_info *info = hci_get_drvdata(hdev); in bt3c_hci_flush() [all …]
|
D | bluecard_cs.c | 67 struct hci_dev *hdev; member 332 info->hdev->stat.byte_tx += len; in bluecard_write_wakeup() 440 info->hdev->stat.err_rx++; in bluecard_receive() 482 hci_recv_frame(info->hdev, info->rx_skb); in bluecard_receive() 495 info->hdev->stat.byte_rx += len; in bluecard_receive() 505 if (!info || !info->hdev) in bluecard_interrupt() 564 static int bluecard_hci_set_baud_rate(struct hci_dev *hdev, int baud) in bluecard_hci_set_baud_rate() argument 566 struct bluecard_info *info = hci_get_drvdata(hdev); in bluecard_hci_set_baud_rate() 613 static int bluecard_hci_flush(struct hci_dev *hdev) in bluecard_hci_flush() argument 615 struct bluecard_info *info = hci_get_drvdata(hdev); in bluecard_hci_flush() [all …]
|
D | btintel.c | 35 int btintel_check_bdaddr(struct hci_dev *hdev) in btintel_check_bdaddr() argument 40 skb = __hci_cmd_sync(hdev, HCI_OP_READ_BD_ADDR, 0, NULL, in btintel_check_bdaddr() 45 hdev->name, err); in btintel_check_bdaddr() 50 BT_ERR("%s: Intel device address length mismatch", hdev->name); in btintel_check_bdaddr() 58 hdev->name, bda->status); in btintel_check_bdaddr() 70 hdev->name, &bda->bdaddr); in btintel_check_bdaddr() 71 set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks); in btintel_check_bdaddr() 80 int btintel_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr) in btintel_set_bdaddr() argument 85 skb = __hci_cmd_sync(hdev, 0xfc31, 6, bdaddr, HCI_INIT_TIMEOUT); in btintel_set_bdaddr() 89 hdev->name, err); in btintel_set_bdaddr()
|
D | btmrvl_main.c | 447 static int btmrvl_send_frame(struct hci_dev *hdev, struct sk_buff *skb) in btmrvl_send_frame() argument 449 struct btmrvl_private *priv = hci_get_drvdata(hdev); in btmrvl_send_frame() 453 if (!test_bit(HCI_RUNNING, &hdev->flags)) { in btmrvl_send_frame() 454 BT_ERR("Failed testing HCI_RUNING, flags=%lx", hdev->flags); in btmrvl_send_frame() 462 hdev->stat.cmd_tx++; in btmrvl_send_frame() 466 hdev->stat.acl_tx++; in btmrvl_send_frame() 470 hdev->stat.sco_tx++; in btmrvl_send_frame() 481 static int btmrvl_flush(struct hci_dev *hdev) in btmrvl_flush() argument 483 struct btmrvl_private *priv = hci_get_drvdata(hdev); in btmrvl_flush() 490 static int btmrvl_close(struct hci_dev *hdev) in btmrvl_close() argument [all …]
|
D | btintel.h | 74 int btintel_check_bdaddr(struct hci_dev *hdev); 75 int btintel_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr); 79 static inline int btintel_check_bdaddr(struct hci_dev *hdev) in btintel_check_bdaddr() argument 84 static inline int btintel_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr) in btintel_set_bdaddr() argument
|
D | hci_ath.c | 147 static int ath_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr) in ath_set_bdaddr() argument 159 skb = __hci_cmd_sync(hdev, 0xfc0b, sizeof(buf), buf, HCI_INIT_TIMEOUT); in ath_set_bdaddr() 163 hdev->name, err); in ath_set_bdaddr() 175 hu->hdev->set_bdaddr = ath_set_bdaddr; in ath_setup() 190 ath->rx_skb = h4_recv_buf(hu->hdev, ath->rx_skb, data, count, in ath_recv() 194 BT_ERR("%s: Frame reassembly failed (%d)", hu->hdev->name, err); in ath_recv()
|
D | btmrvl_debugfs.c | 199 void btmrvl_debugfs_init(struct hci_dev *hdev) in btmrvl_debugfs_init() argument 201 struct btmrvl_private *priv = hci_get_drvdata(hdev); in btmrvl_debugfs_init() 204 if (!hdev->debugfs) in btmrvl_debugfs_init() 215 dbg->config_dir = debugfs_create_dir("config", hdev->debugfs); in btmrvl_debugfs_init() 232 dbg->status_dir = debugfs_create_dir("status", hdev->debugfs); in btmrvl_debugfs_init() 243 void btmrvl_debugfs_remove(struct hci_dev *hdev) in btmrvl_debugfs_remove() argument 245 struct btmrvl_private *priv = hci_get_drvdata(hdev); in btmrvl_debugfs_remove()
|
D | hci_bcm.c | 84 hu->hdev->set_bdaddr = btbcm_set_bdaddr; in bcm_setup() 86 return btbcm_setup_patchram(hu->hdev); in bcm_setup() 102 bcm->rx_skb = h4_recv_buf(hu->hdev, bcm->rx_skb, data, count, in bcm_recv() 106 BT_ERR("%s: Frame reassembly failed (%d)", hu->hdev->name, err); in bcm_recv()
|
D | hci_h4.c | 131 h4->rx_skb = h4_recv_buf(hu->hdev, h4->rx_skb, data, count, in h4_recv() 135 BT_ERR("%s: Frame reassembly failed (%d)", hu->hdev->name, err); in h4_recv() 169 struct sk_buff *h4_recv_buf(struct hci_dev *hdev, struct sk_buff *skb, in h4_recv_buf() argument 225 (&pkts[i])->recv(hdev, skb); in h4_recv_buf() 256 (&pkts[i])->recv(hdev, skb); in h4_recv_buf()
|
D | hci_ll.c | 348 static inline int ll_check_data_len(struct hci_dev *hdev, struct ll_struct *ll, int len) in ll_check_data_len() argument 355 hci_recv_frame(hdev, ll->rx_skb); in ll_check_data_len() 397 hci_recv_frame(hu->hdev, ll->rx_skb); in ll_recv() 408 ll_check_data_len(hu->hdev, ll, eh->plen); in ll_recv() 417 ll_check_data_len(hu->hdev, ll, dlen); in ll_recv() 425 ll_check_data_len(hu->hdev, ll, sh->dlen); in ll_recv() 480 hu->hdev->stat.err_rx++; in ll_recv()
|
D | hci_uart.h | 72 struct hci_dev *hdev; member 110 int (*recv)(struct hci_dev *hdev, struct sk_buff *skb); 134 struct sk_buff *h4_recv_buf(struct hci_dev *hdev, struct sk_buff *skb,
|
D | hci_h5.c | 136 BT_DBG("%s", hu->hdev->name); in h5_timed_event() 189 hci_reset_dev(hu->hdev); in h5_peer_reset() 296 BT_DBG("%s", hu->hdev->name); in h5_handle_internal_rx() 368 hci_recv_frame(hu->hdev, h5->rx_skb); in h5_complete_rx_pkt() 409 hu->hdev->name, H5_HDR_SEQ(hdr), H5_HDR_ACK(hdr), in h5_rx_3wire_hdr() 456 h5->rx_skb->dev = (void *) hu->hdev; in h5_rx_pkt_start() 519 BT_DBG("%s pending %zu count %d", hu->hdev->name, h5->rx_pending, in h5_recv() 664 hu->hdev->name, H5_HDR_SEQ(hdr), H5_HDR_ACK(hdr), in h5_prepare_pkt()
|
D | btmrvl_drv.h | 178 void btmrvl_debugfs_init(struct hci_dev *hdev); 179 void btmrvl_debugfs_remove(struct hci_dev *hdev);
|
D | btmrvl_sdio.c | 593 struct hci_dev *hdev = priv->btmrvl_dev.hcidev; in btmrvl_sdio_card_to_host() local 672 hci_recv_frame(hdev, skb); in btmrvl_sdio_card_to_host() 674 hci_recv_frame(hdev, skb); in btmrvl_sdio_card_to_host() 677 hdev->stat.byte_rx += buf_len; in btmrvl_sdio_card_to_host() 686 hci_recv_frame(hdev, skb); in btmrvl_sdio_card_to_host() 688 hdev->stat.byte_rx += buf_len; in btmrvl_sdio_card_to_host() 702 hdev->stat.err_rx++; in btmrvl_sdio_card_to_host()
|
D | hci_bcsp.c | 528 hci_recv_frame(hu->hdev, bcsp->rx_skb); in bcsp_complete_rx_pkt() 542 hci_recv_frame(hu->hdev, bcsp->rx_skb); in bcsp_complete_rx_pkt()
|
/linux-4.1.27/drivers/nfc/pn544/ |
D | pn544.c | 125 struct nfc_hci_dev *hdev; member 138 static int pn544_hci_open(struct nfc_hci_dev *hdev) in pn544_hci_open() argument 140 struct pn544_hci_info *info = nfc_hci_get_clientdata(hdev); in pn544_hci_open() 160 static void pn544_hci_close(struct nfc_hci_dev *hdev) in pn544_hci_close() argument 162 struct pn544_hci_info *info = nfc_hci_get_clientdata(hdev); in pn544_hci_close() 177 static int pn544_hci_ready(struct nfc_hci_dev *hdev) in pn544_hci_ready() argument 263 r = nfc_hci_send_cmd(hdev, PN544_SYS_MGMT_GATE, PN544_WRITE, in pn544_hci_ready() 284 r = nfc_hci_set_param(hdev, NFC_HCI_ADMIN_GATE, in pn544_hci_ready() 290 r = nfc_hci_set_param(hdev, PN544_SYS_MGMT_GATE, in pn544_hci_ready() 296 r = nfc_hci_set_param(hdev, NFC_HCI_RF_READER_A_GATE, in pn544_hci_ready() [all …]
|
D | pn544.h | 33 fw_download_t fw_download, struct nfc_hci_dev **hdev); 34 void pn544_hci_remove(struct nfc_hci_dev *hdev);
|
D | mei.c | 46 NULL, &phy->hdev); in pn544_mei_probe() 62 pn544_hci_remove(phy->hdev); in pn544_mei_remove()
|
D | i2c.c | 166 struct nfc_hci_dev *hdev; member 524 nfc_hci_recv_frame(phy->hdev, NULL); in pn544_hci_i2c_irq_thread_fn() 531 nfc_hci_recv_frame(phy->hdev, skb); in pn544_hci_i2c_irq_thread_fn() 573 nfc_fw_download_done(phy->hdev->ndev, phy->firmware_name, (u32) -result); in pn544_hci_i2c_fw_work_complete() 1127 pn544_hci_i2c_fw_download, &phy->hdev); in pn544_hci_i2c_probe() 1158 pn544_hci_remove(phy->hdev); in pn544_hci_i2c_remove()
|
/linux-4.1.27/drivers/nfc/st21nfca/ |
D | st21nfca.c | 117 static int st21nfca_hci_load_session(struct nfc_hci_dev *hdev) in st21nfca_hci_load_session() argument 147 r = nfc_hci_connect_gate(hdev, NFC_HCI_HOST_CONTROLLER_ID, in st21nfca_hci_load_session() 154 r = nfc_hci_send_cmd(hdev, ST21NFCA_DEVICE_MGNT_GATE, in st21nfca_hci_load_session() 163 r = nfc_hci_send_cmd(hdev, ST21NFCA_DEVICE_MGNT_GATE, in st21nfca_hci_load_session() 197 hdev->gate2pipe[st21nfca_gates[j].gate] = in st21nfca_hci_load_session() 199 hdev->pipes[st21nfca_gates[j].pipe].gate = in st21nfca_hci_load_session() 201 hdev->pipes[st21nfca_gates[j].pipe].dest_host = in st21nfca_hci_load_session() 214 r = nfc_hci_connect_gate(hdev, in st21nfca_hci_load_session() 223 memcpy(hdev->init_data.gates, st21nfca_gates, sizeof(st21nfca_gates)); in st21nfca_hci_load_session() 229 static int st21nfca_hci_open(struct nfc_hci_dev *hdev) in st21nfca_hci_open() argument [all …]
|
D | st21nfca_se.c | 62 static u8 st21nfca_se_get_bwi(struct nfc_hci_dev *hdev) in st21nfca_se_get_bwi() argument 66 struct st21nfca_hci_info *info = nfc_hci_get_clientdata(hdev); in st21nfca_se_get_bwi() 81 static void st21nfca_se_get_atr(struct nfc_hci_dev *hdev) in st21nfca_se_get_atr() argument 85 struct st21nfca_hci_info *info = nfc_hci_get_clientdata(hdev); in st21nfca_se_get_atr() 87 r = nfc_hci_get_param(hdev, ST21NFCA_APDU_READER_GATE, in st21nfca_se_get_atr() 95 ST21NFCA_BWI_TO_TIMEOUT(st21nfca_se_get_bwi(hdev)); in st21nfca_se_get_atr() 100 static int st21nfca_hci_control_se(struct nfc_hci_dev *hdev, u32 se_idx, in st21nfca_hci_control_se() argument 103 struct st21nfca_hci_info *info = nfc_hci_get_clientdata(hdev); in st21nfca_hci_control_se() 134 r = nfc_hci_send_event(hdev, ST21NFCA_DEVICE_MGNT_GATE, se_event, in st21nfca_hci_control_se() 146 r = nfc_hci_get_param(hdev, NFC_HCI_ADMIN_GATE, in st21nfca_hci_control_se() [all …]
|
D | st21nfca_dep.c | 132 dev = info->hdev->ndev; in st21nfca_tx_work() 137 nfc_hci_send_cmd_async(info->hdev, ST21NFCA_RF_READER_F_GATE, in st21nfca_tx_work() 152 static int st21nfca_tm_send_atr_res(struct nfc_hci_dev *hdev, in st21nfca_tm_send_atr_res() argument 159 struct st21nfca_hci_info *info = nfc_hci_get_clientdata(hdev); in st21nfca_tm_send_atr_res() 186 r = nfc_set_remote_general_bytes(hdev->ndev, atr_res->gbi, in st21nfca_tm_send_atr_res() 194 r = nfc_hci_send_event(hdev, ST21NFCA_RF_CARD_F_GATE, in st21nfca_tm_send_atr_res() 200 static int st21nfca_tm_recv_atr_req(struct nfc_hci_dev *hdev, in st21nfca_tm_recv_atr_req() argument 226 r = st21nfca_tm_send_atr_res(hdev, atr_req); in st21nfca_tm_recv_atr_req() 232 r = nfc_tm_activated(hdev->ndev, NFC_PROTO_NFC_DEP_MASK, in st21nfca_tm_recv_atr_req() 243 static int st21nfca_tm_send_psl_res(struct nfc_hci_dev *hdev, in st21nfca_tm_send_psl_res() argument [all …]
|
D | st21nfca_se.h | 49 int st21nfca_connectivity_event_received(struct nfc_hci_dev *hdev, u8 host, 51 int st21nfca_apdu_reader_event_received(struct nfc_hci_dev *hdev, 54 int st21nfca_hci_discover_se(struct nfc_hci_dev *hdev); 55 int st21nfca_hci_enable_se(struct nfc_hci_dev *hdev, u32 se_idx); 56 int st21nfca_hci_disable_se(struct nfc_hci_dev *hdev, u32 se_idx); 57 int st21nfca_hci_se_io(struct nfc_hci_dev *hdev, u32 se_idx, 61 void st21nfca_se_init(struct nfc_hci_dev *hdev); 62 void st21nfca_se_deinit(struct nfc_hci_dev *hdev);
|
D | st21nfca_dep.h | 35 int st21nfca_dep_event_received(struct nfc_hci_dev *hdev, 37 int st21nfca_tm_send_dep_res(struct nfc_hci_dev *hdev, struct sk_buff *skb); 39 int st21nfca_im_send_atr_req(struct nfc_hci_dev *hdev, u8 *gb, size_t gb_len); 40 int st21nfca_im_send_dep_req(struct nfc_hci_dev *hdev, struct sk_buff *skb); 41 void st21nfca_dep_init(struct nfc_hci_dev *hdev); 42 void st21nfca_dep_deinit(struct nfc_hci_dev *hdev);
|
D | st21nfca.h | 62 int phy_payload, struct nfc_hci_dev **hdev, 64 void st21nfca_hci_remove(struct nfc_hci_dev *hdev); 75 struct nfc_hci_dev *hdev; member
|
D | i2c.c | 72 struct nfc_hci_dev *hdev; member 465 nfc_hci_recv_frame(phy->hdev, NULL); in st21nfca_hci_irq_thread_fn() 490 nfc_hci_recv_frame(phy->hdev, phy->pending_skb); in st21nfca_hci_irq_thread_fn() 499 nfc_hci_recv_frame(phy->hdev, NULL); in st21nfca_hci_irq_thread_fn() 654 &phy->hdev, in st21nfca_hci_i2c_probe() 664 st21nfca_hci_remove(phy->hdev); in st21nfca_hci_i2c_remove()
|
/linux-4.1.27/include/net/bluetooth/ |
D | hci_core.h | 383 int (*open)(struct hci_dev *hdev); 384 int (*close)(struct hci_dev *hdev); 385 int (*flush)(struct hci_dev *hdev); 386 int (*setup)(struct hci_dev *hdev); 387 int (*shutdown)(struct hci_dev *hdev); 388 int (*send)(struct hci_dev *hdev, struct sk_buff *skb); 389 void (*notify)(struct hci_dev *hdev, unsigned int evt); 390 void (*hw_error)(struct hci_dev *hdev, u8 code); 391 int (*set_bdaddr)(struct hci_dev *hdev, const bdaddr_t *bdaddr); 466 struct hci_dev *hdev; member [all …]
|
D | bluetooth.h | 279 typedef void (*hci_req_complete_t)(struct hci_dev *hdev, u8 status, u16 opcode); 280 typedef void (*hci_req_complete_skb_t)(struct hci_dev *hdev, u8 status,
|
/linux-4.1.27/include/net/nfc/ |
D | hci.h | 28 int (*open) (struct nfc_hci_dev *hdev); 29 void (*close) (struct nfc_hci_dev *hdev); 30 int (*load_session) (struct nfc_hci_dev *hdev); 31 int (*hci_ready) (struct nfc_hci_dev *hdev); 37 int (*xmit) (struct nfc_hci_dev *hdev, struct sk_buff *skb); 38 int (*start_poll) (struct nfc_hci_dev *hdev, 40 void (*stop_poll) (struct nfc_hci_dev *hdev); 41 int (*dep_link_up)(struct nfc_hci_dev *hdev, struct nfc_target *target, 43 int (*dep_link_down)(struct nfc_hci_dev *hdev); 44 int (*target_from_gate) (struct nfc_hci_dev *hdev, u8 gate, [all …]
|
D | llc.h | 28 typedef void (*rcv_to_hci_t) (struct nfc_hci_dev *hdev, struct sk_buff *skb); 29 typedef int (*xmit_to_drv_t) (struct nfc_hci_dev *hdev, struct sk_buff *skb); 30 typedef void (*llc_failure_t) (struct nfc_hci_dev *hdev, int err); 34 struct nfc_llc *nfc_llc_allocate(const char *name, struct nfc_hci_dev *hdev,
|
/linux-4.1.27/drivers/media/platform/s5p-tv/ |
D | hdmi_drv.c | 117 void hdmi_write(struct hdmi_device *hdev, u32 reg_id, u32 value) in hdmi_write() argument 119 writel(value, hdev->regs + reg_id); in hdmi_write() 123 void hdmi_write_mask(struct hdmi_device *hdev, u32 reg_id, u32 value, u32 mask) in hdmi_write_mask() argument 125 u32 old = readl(hdev->regs + reg_id); in hdmi_write_mask() 127 writel(value, hdev->regs + reg_id); in hdmi_write_mask() 131 void hdmi_writeb(struct hdmi_device *hdev, u32 reg_id, u8 value) in hdmi_writeb() argument 133 writeb(value, hdev->regs + reg_id); in hdmi_writeb() 137 void hdmi_writebn(struct hdmi_device *hdev, u32 reg_id, int n, u32 value) in hdmi_writebn() argument 141 writeb(value >> 24, hdev->regs + reg_id + 12); in hdmi_writebn() 143 writeb(value >> 16, hdev->regs + reg_id + 8); in hdmi_writebn() [all …]
|
/linux-4.1.27/drivers/nfc/microread/ |
D | microread.c | 169 struct nfc_hci_dev *hdev; member 176 static int microread_open(struct nfc_hci_dev *hdev) in microread_open() argument 178 struct microread_info *info = nfc_hci_get_clientdata(hdev); in microread_open() 183 static void microread_close(struct nfc_hci_dev *hdev) in microread_close() argument 185 struct microread_info *info = nfc_hci_get_clientdata(hdev); in microread_close() 190 static int microread_hci_ready(struct nfc_hci_dev *hdev) in microread_hci_ready() argument 196 r = nfc_hci_send_cmd(hdev, MICROREAD_GATE_ID_MREAD_ISO_A, in microread_hci_ready() 201 r = nfc_hci_send_cmd(hdev, MICROREAD_GATE_ID_MREAD_ISO_A_3, in microread_hci_ready() 209 r = nfc_hci_send_cmd(hdev, MICROREAD_GATE_ID_MREAD_ISO_B, in microread_hci_ready() 214 r = nfc_hci_send_cmd(hdev, MICROREAD_GATE_ID_MREAD_NFC_T1, in microread_hci_ready() [all …]
|
D | microread.h | 27 struct nfc_hci_dev **hdev); 29 void microread_remove(struct nfc_hci_dev *hdev);
|
D | i2c.c | 51 struct nfc_hci_dev *hdev; member 232 nfc_hci_recv_frame(phy->hdev, NULL); in microread_i2c_irq_thread_fn() 239 nfc_hci_recv_frame(phy->hdev, skb); in microread_i2c_irq_thread_fn() 285 MICROREAD_I2C_LLC_MAX_PAYLOAD, &phy->hdev); in microread_i2c_probe() 303 microread_remove(phy->hdev); in microread_i2c_remove()
|
D | mei.c | 48 &phy->hdev); in microread_mei_probe() 62 microread_remove(phy->hdev); in microread_mei_remove()
|
/linux-4.1.27/include/linux/ |
D | hid.h | 566 static inline void *hid_get_drvdata(struct hid_device *hdev) in hid_get_drvdata() argument 568 return dev_get_drvdata(&hdev->dev); in hid_get_drvdata() 571 static inline void hid_set_drvdata(struct hid_device *hdev, void *data) in hid_set_drvdata() argument 573 dev_set_drvdata(&hdev->dev, data); in hid_set_drvdata() 685 int (*raw_event)(struct hid_device *hdev, struct hid_report *report, 688 int (*event)(struct hid_device *hdev, struct hid_field *field, 690 void (*report)(struct hid_device *hdev, struct hid_report *report); 692 __u8 *(*report_fixup)(struct hid_device *hdev, __u8 *buf, 695 int (*input_mapping)(struct hid_device *hdev, 698 int (*input_mapped)(struct hid_device *hdev, [all …]
|
D | usb.h | 622 extern struct usb_device *usb_hub_find_child(struct usb_device *hdev, 631 #define usb_hub_for_each_child(hdev, port1, child) \ argument 632 for (port1 = 1, child = usb_hub_find_child(hdev, port1); \ 633 port1 <= hdev->maxchild; \ 634 child = usb_hub_find_child(hdev, ++port1)) \ 649 extern int usb_acpi_set_power_state(struct usb_device *hdev, int index, 651 extern bool usb_acpi_power_manageable(struct usb_device *hdev, int index); 653 static inline int usb_acpi_set_power_state(struct usb_device *hdev, int index, in usb_acpi_set_power_state() argument 655 static inline bool usb_acpi_power_manageable(struct usb_device *hdev, int index) in usb_acpi_power_manageable() argument 781 int usb_hub_claim_port(struct usb_device *hdev, unsigned port1, [all …]
|
D | hid-debug.h | 46 struct hid_device *hdev; member
|
D | hid-sensor-hub.h | 81 struct hid_device *hdev; member
|
/linux-4.1.27/drivers/usb/misc/ |
D | lvstest.c | 47 struct usb_device *udev, *hdev; in create_lvs_device() local 56 hdev = interface_to_usbdev(intf); in create_lvs_device() 57 hcd = bus_to_hcd(hdev->bus); in create_lvs_device() 59 udev = usb_alloc_dev(hdev, hdev->bus, lvs->portnum); in create_lvs_device() 81 struct usb_device *hdev = udev->parent; in destroy_lvs_device() local 82 struct usb_hcd *hcd = bus_to_hcd(hdev->bus); in destroy_lvs_device() 90 static int lvs_rh_clear_port_feature(struct usb_device *hdev, in lvs_rh_clear_port_feature() argument 93 return usb_control_msg(hdev, usb_sndctrlpipe(hdev, 0), in lvs_rh_clear_port_feature() 98 static int lvs_rh_set_port_feature(struct usb_device *hdev, in lvs_rh_set_port_feature() argument 101 return usb_control_msg(hdev, usb_sndctrlpipe(hdev, 0), in lvs_rh_set_port_feature() [all …]
|
/linux-4.1.27/arch/x86/kernel/ |
D | hpet.c | 359 struct hpet_dev *hdev = EVT_TO_HPET_DEV(evt); in hpet_set_mode() local 360 hpet_setup_msi_irq(hdev->irq); in hpet_set_mode() 361 disable_irq(hdev->irq); in hpet_set_mode() 362 irq_set_affinity(hdev->irq, cpumask_of(hdev->cpu)); in hpet_set_mode() 363 enable_irq(hdev->irq); in hpet_set_mode() 429 struct hpet_dev *hdev = data->handler_data; in hpet_msi_unmask() local 433 cfg = hpet_readl(HPET_Tn_CFG(hdev->num)); in hpet_msi_unmask() 435 hpet_writel(cfg, HPET_Tn_CFG(hdev->num)); in hpet_msi_unmask() 440 struct hpet_dev *hdev = data->handler_data; in hpet_msi_mask() local 444 cfg = hpet_readl(HPET_Tn_CFG(hdev->num)); in hpet_msi_mask() [all …]
|
/linux-4.1.27/drivers/usb/core/ |
D | hub.c | 107 if (hub_is_superspeed(hub->hdev)) in portspeed() 118 struct usb_hub *usb_hub_to_struct_hub(struct usb_device *hdev) in usb_hub_to_struct_hub() argument 120 if (!hdev || !hdev->actconfig || !hdev->maxchild) in usb_hub_to_struct_hub() 122 return usb_get_intfdata(hdev->actconfig->interface[0]); in usb_hub_to_struct_hub() 360 static int get_hub_descriptor(struct usb_device *hdev, void *data) in get_hub_descriptor() argument 365 if (hub_is_superspeed(hdev)) { in get_hub_descriptor() 374 ret = usb_control_msg(hdev, usb_rcvctrlpipe(hdev, 0), in get_hub_descriptor() 387 static int clear_hub_feature(struct usb_device *hdev, int feature) in clear_hub_feature() argument 389 return usb_control_msg(hdev, usb_sndctrlpipe(hdev, 0), in clear_hub_feature() 396 int usb_clear_port_feature(struct usb_device *hdev, int port1, int feature) in usb_clear_port_feature() argument [all …]
|
D | port.c | 79 struct usb_device *hdev = to_usb_device(dev->parent->parent); in usb_port_runtime_resume() local 81 struct usb_hub *hub = usb_hub_to_struct_hub(hdev); in usb_port_runtime_resume() 102 retval = usb_hub_set_port_power(hdev, hub, port1, true); in usb_port_runtime_resume() 116 if (hub_is_superspeed(hdev)) in usb_port_runtime_resume() 135 struct usb_device *hdev = to_usb_device(dev->parent->parent); in usb_port_runtime_suspend() local 137 struct usb_hub *hub = usb_hub_to_struct_hub(hdev); in usb_port_runtime_suspend() 155 retval = usb_hub_set_port_power(hdev, hub, port1, false); in usb_port_runtime_suspend() 156 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_CONNECTION); in usb_port_runtime_suspend() 158 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_ENABLE); in usb_port_runtime_suspend() 321 struct usb_device *hdev = to_usb_device(port_dev->dev.parent->parent); in match_location() local [all …]
|
D | hub.h | 29 struct usb_device *hdev; member 116 extern int usb_hub_set_port_power(struct usb_device *hdev, struct usb_hub *hub, 118 extern struct usb_hub *usb_hub_to_struct_hub(struct usb_device *hdev); 121 extern int usb_clear_port_feature(struct usb_device *hdev, 134 static inline int hub_is_superspeed(struct usb_device *hdev) in hub_is_superspeed() argument 136 return hdev->descriptor.bDeviceProtocol == USB_HUB_PR_SS; in hub_is_superspeed()
|
D | usb-acpi.c | 30 bool usb_acpi_power_manageable(struct usb_device *hdev, int index) in usb_acpi_power_manageable() argument 35 port_handle = usb_get_hub_port_acpi_handle(hdev, in usb_acpi_power_manageable() 56 int usb_acpi_set_power_state(struct usb_device *hdev, int index, bool enable) in usb_acpi_set_power_state() argument 58 struct usb_hub *hub = usb_hub_to_struct_hub(hdev); in usb_acpi_set_power_state() 69 port_handle = (acpi_handle) usb_get_hub_port_acpi_handle(hdev, port1); in usb_acpi_set_power_state()
|
D | usb.h | 60 extern void usb_hub_release_all_ports(struct usb_device *hdev, 176 extern void usb_hub_adjust_deviceremovable(struct usb_device *hdev, 182 extern acpi_handle usb_get_hub_port_acpi_handle(struct usb_device *hdev,
|
/linux-4.1.27/drivers/video/fbdev/ |
D | hyperv_fb.c | 240 static inline int synthvid_send(struct hv_device *hdev, in synthvid_send() argument 249 ret = vmbus_sendpacket(hdev->channel, msg, in synthvid_send() 262 static int synthvid_send_situ(struct hv_device *hdev) in synthvid_send_situ() argument 264 struct fb_info *info = hv_get_drvdata(hdev); in synthvid_send_situ() 284 synthvid_send(hdev, &msg); in synthvid_send_situ() 290 static int synthvid_send_ptr(struct hv_device *hdev) in synthvid_send_ptr() argument 302 synthvid_send(hdev, &msg); in synthvid_send_ptr() 318 synthvid_send(hdev, &msg); in synthvid_send_ptr() 326 struct hv_device *hdev = device_to_hv_device(info->device); in synthvid_update() local 341 synthvid_send(hdev, &msg); in synthvid_update() [all …]
|
/linux-4.1.27/drivers/staging/lustre/lnet/klnds/o2iblnd/ |
D | o2iblnd.c | 1195 kib_hca_dev_t *hdev = tpo->tpo_hdev; in kiblnd_unmap_tx_pool() local 1201 if (hdev == NULL) in kiblnd_unmap_tx_pool() 1206 kiblnd_dma_unmap_single(hdev->ibh_ibdev, in kiblnd_unmap_tx_pool() 1212 kiblnd_hdev_decref(hdev); in kiblnd_unmap_tx_pool() 1218 kib_hca_dev_t *hdev; in kiblnd_current_hdev() local 1234 hdev = dev->ibd_hdev; in kiblnd_current_hdev() 1238 return hdev; in kiblnd_current_hdev() 1292 struct ib_mr *kiblnd_find_dma_mr(kib_hca_dev_t *hdev, __u64 addr, __u64 size) in kiblnd_find_dma_mr() argument 1296 LASSERT(hdev->ibh_mrs[0] != NULL); in kiblnd_find_dma_mr() 1298 if (hdev->ibh_nmrs == 1) in kiblnd_find_dma_mr() [all …]
|
D | o2iblnd.h | 628 extern void kiblnd_hdev_destroy(kib_hca_dev_t *hdev); 631 kiblnd_hdev_addref_locked(kib_hca_dev_t *hdev) in kiblnd_hdev_addref_locked() argument 633 LASSERT (atomic_read(&hdev->ibh_ref) > 0); in kiblnd_hdev_addref_locked() 634 atomic_inc(&hdev->ibh_ref); in kiblnd_hdev_addref_locked() 638 kiblnd_hdev_decref(kib_hca_dev_t *hdev) in kiblnd_hdev_decref() argument 640 LASSERT (atomic_read(&hdev->ibh_ref) > 0); in kiblnd_hdev_decref() 641 if (atomic_dec_and_test(&hdev->ibh_ref)) in kiblnd_hdev_decref() 642 kiblnd_hdev_destroy(hdev); in kiblnd_hdev_decref() 948 struct ib_mr *kiblnd_find_rd_dma_mr(kib_hca_dev_t *hdev, 950 struct ib_mr *kiblnd_find_dma_mr(kib_hca_dev_t *hdev, [all …]
|
D | o2iblnd_cb.c | 553 kib_hca_dev_t *hdev; in kiblnd_fmr_map_tx() local 565 hdev = tx->tx_pool->tpo_hdev; in kiblnd_fmr_map_tx() 569 size += hdev->ibh_page_size) { in kiblnd_fmr_map_tx() 571 hdev->ibh_page_mask) + size; in kiblnd_fmr_map_tx() 588 rd->rd_frags[0].rf_addr &= ~hdev->ibh_page_mask; in kiblnd_fmr_map_tx() 598 kib_hca_dev_t *hdev; in kiblnd_pmr_map_tx() local 607 hdev = tx->tx_pool->tpo_hdev; in kiblnd_pmr_map_tx() 609 iova = rd->rd_frags[0].rf_addr & ~hdev->ibh_page_mask; in kiblnd_pmr_map_tx() 614 rc = kiblnd_pmr_pool_map(pps, hdev, rd, &iova, &tx->tx_u.pmr); in kiblnd_pmr_map_tx() 658 kib_hca_dev_t *hdev = tx->tx_pool->tpo_hdev; in kiblnd_map_tx() local [all …]
|
/linux-4.1.27/sound/hda/ |
D | hda_bus_type.c | 15 struct hdac_device *hdev = dev_to_hdac_dev(dev); in hda_bus_match() local 18 if (hdev->type != hdrv->type) in hda_bus_match() 21 return hdrv->match(hdev, hdrv); in hda_bus_match()
|
/linux-4.1.27/net/nfc/nci/ |
D | hci.c | 119 static void nci_hci_reset_pipes(struct nci_hci_dev *hdev) in nci_hci_reset_pipes() argument 124 hdev->pipes[i].gate = NCI_HCI_INVALID_GATE; in nci_hci_reset_pipes() 125 hdev->pipes[i].host = NCI_HCI_INVALID_HOST; in nci_hci_reset_pipes() 127 memset(hdev->gate2pipe, NCI_HCI_INVALID_PIPE, sizeof(hdev->gate2pipe)); in nci_hci_reset_pipes() 398 struct nci_hci_dev *hdev = in nci_hci_msg_rx_work() local 404 while ((skb = skb_dequeue(&hdev->msg_rx_queue)) != NULL) { in nci_hci_msg_rx_work() 412 nci_hci_hcp_message_rx(hdev->ndev, pipe, in nci_hci_msg_rx_work() 720 struct nci_hci_dev *hdev; in nci_hci_allocate() local 722 hdev = kzalloc(sizeof(*hdev), GFP_KERNEL); in nci_hci_allocate() 723 if (!hdev) in nci_hci_allocate() [all …]
|
/linux-4.1.27/drivers/isdn/hardware/eicon/ |
D | diva_dma.h | 42 void diva_init_dma_map(void *hdev, 45 void diva_free_dma_map(void *hdev,
|
D | os_bri.c | 81 void *hdev; in diva_bri_init_card() local 97 a->resources.pci.hdev); in diva_bri_init_card() 107 a->resources.pci.hdev); in diva_bri_init_card() 119 hdev = a->resources.pci.hdev; in diva_bri_init_card() 124 PCIread(Bus, Slot, 0x18, &bar2, sizeof(bar2), hdev); in diva_bri_init_card() 125 PCIread(Bus, Slot, 0x04, &cmd_org, sizeof(cmd_org), hdev); in diva_bri_init_card() 129 PCIwrite(Bus, Slot, 0x04, &cmd, sizeof(cmd), hdev); in diva_bri_init_card() 130 PCIwrite(Bus, Slot, 0x18, &bar2_length, sizeof(bar2_length), hdev); in diva_bri_init_card() 131 PCIread(Bus, Slot, 0x18, &bar2_length, sizeof(bar2_length), hdev); in diva_bri_init_card() 135 PCIwrite(Bus, Slot, 0x18, &bar2, sizeof(bar2), hdev); in diva_bri_init_card() [all …]
|
D | os_pri.c | 126 a->resources.pci.hdev); in diva_pri_init_card() 137 a->resources.pci.hdev); in diva_pri_init_card() 236 diva_init_dma_map(a->resources.pci.hdev, in diva_pri_init_card() 317 diva_free_dma_map(a->resources.pci.hdev, in diva_pri_cleanup_adapter() 805 void *hdev; in pri_get_serial_number() local 817 hdev = a->resources.pci.hdev; in pri_get_serial_number() 818 PCIread(Bus, Slot, 0x04, &cmd_org, sizeof(cmd_org), hdev); in pri_get_serial_number() 819 PCIwrite(Bus, Slot, 0x04, &cmd, sizeof(cmd), hdev); in pri_get_serial_number() 821 PCIwrite(Bus, Slot, 0x14, &addr4, sizeof(addr4), hdev); in pri_get_serial_number() 822 PCIwrite(Bus, Slot, 0x20, &addr1, sizeof(addr1), hdev); in pri_get_serial_number() [all …]
|
D | divasmain.c | 348 void diva_init_dma_map(void *hdev, in diva_init_dma_map() argument 351 struct pci_dev *pdev = (struct pci_dev *) hdev; in diva_init_dma_map() 353 diva_alloc_dma_map(hdev, nentries); in diva_init_dma_map() 385 void diva_free_dma_map(void *hdev, struct _diva_dma_map_entry *pmap) in diva_free_dma_map() argument 387 struct pci_dev *pdev = (struct pci_dev *) hdev; in diva_free_dma_map()
|
D | os_4bri.c | 200 a->resources.pci.hdev); in diva_4bri_init_card() 212 a->resources.pci.hdev); in diva_4bri_init_card() 535 void *hdev; in _4bri_get_serial_number() local 539 hdev = a->resources.pci.hdev; in _4bri_get_serial_number() 545 hdev); in _4bri_get_serial_number() 548 hdev); in _4bri_get_serial_number() 556 PCIread(Bus, Slot, 0x50, &data[i], sizeof(data[i]), hdev); in _4bri_get_serial_number()
|
D | xdi_adapter.h | 12 void *hdev; member
|
/linux-4.1.27/Documentation/nfc/ |
D | nfc-hci.txt | 64 int (*open)(struct nfc_hci_dev *hdev); 65 void (*close)(struct nfc_hci_dev *hdev); 66 int (*hci_ready) (struct nfc_hci_dev *hdev); 67 int (*xmit) (struct nfc_hci_dev *hdev, struct sk_buff *skb); 68 int (*start_poll) (struct nfc_hci_dev *hdev, 70 int (*dep_link_up)(struct nfc_hci_dev *hdev, struct nfc_target *target, 72 int (*dep_link_down)(struct nfc_hci_dev *hdev); 73 int (*target_from_gate) (struct nfc_hci_dev *hdev, u8 gate, 75 int (*complete_target_discovered) (struct nfc_hci_dev *hdev, u8 gate, 77 int (*im_transceive) (struct nfc_hci_dev *hdev, [all …]
|
/linux-4.1.27/arch/x86/include/asm/ |
D | hpet.h | 80 extern void hpet_msi_write(struct hpet_dev *hdev, struct msi_msg *msg); 81 extern void hpet_msi_read(struct hpet_dev *hdev, struct msi_msg *msg);
|
/linux-4.1.27/drivers/net/hyperv/ |
D | netvsc_drv.c | 218 struct hv_device *hdev = net_device_ctx->device_ctx; in netvsc_select_queue() local 219 struct netvsc_device *nvsc_dev = hv_get_drvdata(hdev); in netvsc_select_queue() 725 struct hv_device *hdev = ndevctx->device_ctx; in netvsc_change_mtu() local 726 struct netvsc_device *nvdev = hv_get_drvdata(hdev); in netvsc_change_mtu() 743 rndis_filter_device_remove(hdev); in netvsc_change_mtu() 747 ndevctx->device_ctx = hdev; in netvsc_change_mtu() 748 hv_set_drvdata(hdev, ndev); in netvsc_change_mtu() 750 rndis_filter_device_add(hdev, &device_info); in netvsc_change_mtu() 760 struct hv_device *hdev = ndevctx->device_ctx; in netvsc_set_mac_addr() local 773 err = rndis_filter_set_device_mac(hdev, addr->sa_data); in netvsc_set_mac_addr()
|
D | rndis_filter.c | 552 int rndis_filter_set_device_mac(struct hv_device *hdev, char *mac) in rndis_filter_set_device_mac() argument 554 struct netvsc_device *nvdev = hv_get_drvdata(hdev); in rndis_filter_set_device_mac() 630 rndis_filter_set_offload_params(struct hv_device *hdev, in rndis_filter_set_offload_params() argument 633 struct netvsc_device *nvdev = hv_get_drvdata(hdev); in rndis_filter_set_offload_params() 915 struct hv_device *hdev = nvdev->dev; in rndis_filter_halt_device() local 934 spin_lock_irqsave(&hdev->channel->inbound_lock, flags); in rndis_filter_halt_device() 936 spin_unlock_irqrestore(&hdev->channel->inbound_lock, flags); in rndis_filter_halt_device()
|
/linux-4.1.27/Documentation/hid/ |
D | hid-transport.txt | 229 - int (*start) (struct hid_device *hdev) 235 - void (*stop) (struct hid_device *hdev) 243 - int (*open) (struct hid_device *hdev) 250 - void (*close) (struct hid_device *hdev) 258 - int (*parse) (struct hid_device *hdev) 263 - int (*power) (struct hid_device *hdev, int level) 267 - void (*request) (struct hid_device *hdev, struct hid_report *report, 276 - int (*wait) (struct hid_device *hdev) 281 - int (*raw_request) (struct hid_device *hdev, unsigned char reportnum, 289 - int (*output_report) (struct hid_device *hdev, __u8 *buf, size_t len) [all …]
|
/linux-4.1.27/drivers/nfc/ |
D | mei_phy.h | 12 struct nfc_hci_dev *hdev; member
|
D | mei_phy.c | 139 nfc_hci_recv_frame(phy->hdev, skb); in nfc_mei_event_cb()
|
/linux-4.1.27/net/bluetooth/rfcomm/ |
D | tty.c | 178 struct hci_dev *hdev; in rfcomm_reparent_device() local 181 hdev = hci_get_route(&dev->dst, &dev->src); in rfcomm_reparent_device() 182 if (!hdev) in rfcomm_reparent_device() 188 hci_dev_lock(hdev); in rfcomm_reparent_device() 189 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &dev->dst); in rfcomm_reparent_device() 197 hci_dev_unlock(hdev); in rfcomm_reparent_device() 198 hci_dev_put(hdev); in rfcomm_reparent_device()
|
/linux-4.1.27/drivers/rtc/ |
D | rtc-hid-sensor-time.c | 288 hid_device_io_start(hsdev->hdev); in hid_time_probe() 295 hid_device_io_stop(hsdev->hdev); in hid_time_probe()
|
/linux-4.1.27/include/linux/usb/ |
D | hcd.h | 367 int (*update_hub_device)(struct usb_hcd *, struct usb_device *hdev, 473 extern void usb_wakeup_notification(struct usb_device *hdev,
|
/linux-4.1.27/drivers/usb/host/ |
D | xhci.c | 4754 int xhci_update_hub_device(struct usb_hcd *hcd, struct usb_device *hdev, in xhci_update_hub_device() argument 4767 if (!hdev->parent) in xhci_update_hub_device() 4770 vdev = xhci->devs[hdev->slot_id]; in xhci_update_hub_device() 4789 if (hdev->speed == USB_SPEED_HIGH && in xhci_update_hub_device() 4790 xhci_alloc_tt_info(xhci, vdev, hdev, tt, GFP_ATOMIC)) { in xhci_update_hub_device() 4808 else if (hdev->speed == USB_SPEED_FULL) in xhci_update_hub_device() 4815 slot_ctx->dev_info2 |= cpu_to_le32(XHCI_MAX_PORTS(hdev->maxchild)); in xhci_update_hub_device() 4826 if (xhci->hci_version < 0x100 || hdev->speed == USB_SPEED_HIGH) in xhci_update_hub_device() 4840 xhci_dbg(xhci, "Slot %u Input Context:\n", hdev->slot_id); in xhci_update_hub_device() 4847 ret = xhci_configure_endpoint(xhci, hdev, config_cmd, in xhci_update_hub_device() [all …]
|