Lines Matching full:ndev
66 int (*init)(struct nci_dev *ndev);
67 int (*open)(struct nci_dev *ndev);
68 int (*close)(struct nci_dev *ndev);
69 int (*send)(struct nci_dev *ndev, struct sk_buff *skb);
70 int (*setup)(struct nci_dev *ndev);
71 int (*post_setup)(struct nci_dev *ndev);
72 int (*fw_download)(struct nci_dev *ndev, const char *firmware_name);
73 __u32 (*get_rfprotocol)(struct nci_dev *ndev, __u8 rf_protocol);
74 int (*discover_se)(struct nci_dev *ndev);
75 int (*disable_se)(struct nci_dev *ndev, u32 se_idx);
76 int (*enable_se)(struct nci_dev *ndev, u32 se_idx);
77 int (*se_io)(struct nci_dev *ndev, u32 se_idx,
80 int (*hci_load_session)(struct nci_dev *ndev);
81 void (*hci_event_received)(struct nci_dev *ndev, u8 pipe, u8 event,
83 void (*hci_cmd_received)(struct nci_dev *ndev, u8 pipe, u8 cmd,
181 struct nci_dev *ndev; member
275 void nci_free_device(struct nci_dev *ndev);
276 int nci_register_device(struct nci_dev *ndev);
277 void nci_unregister_device(struct nci_dev *ndev);
278 int nci_request(struct nci_dev *ndev,
279 void (*req)(struct nci_dev *ndev,
282 int nci_prop_cmd(struct nci_dev *ndev, __u8 oid, size_t len,
284 int nci_core_cmd(struct nci_dev *ndev, __u16 opcode, size_t len,
286 int nci_core_reset(struct nci_dev *ndev);
287 int nci_core_init(struct nci_dev *ndev);
289 int nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb);
290 int nci_send_frame(struct nci_dev *ndev, struct sk_buff *skb);
291 int nci_set_config(struct nci_dev *ndev, __u8 id, size_t len, const __u8 *val);
293 int nci_nfcee_discover(struct nci_dev *ndev, u8 action);
294 int nci_nfcee_mode_set(struct nci_dev *ndev, u8 nfcee_id, u8 nfcee_mode);
295 int nci_core_conn_create(struct nci_dev *ndev, u8 destination_type,
299 int nci_core_conn_close(struct nci_dev *ndev, u8 conn_id);
300 int nci_nfcc_loopback(struct nci_dev *ndev, const void *data, size_t data_len,
303 struct nci_hci_dev *nci_hci_allocate(struct nci_dev *ndev);
304 void nci_hci_deallocate(struct nci_dev *ndev);
305 int nci_hci_send_event(struct nci_dev *ndev, u8 gate, u8 event,
307 int nci_hci_send_cmd(struct nci_dev *ndev, u8 gate,
310 int nci_hci_open_pipe(struct nci_dev *ndev, u8 pipe);
311 int nci_hci_connect_gate(struct nci_dev *ndev, u8 dest_host,
313 int nci_hci_set_param(struct nci_dev *ndev, u8 gate, u8 idx,
315 int nci_hci_get_param(struct nci_dev *ndev, u8 gate, u8 idx,
317 int nci_hci_clear_all_pipes(struct nci_dev *ndev);
318 int nci_hci_dev_session_init(struct nci_dev *ndev);
320 static inline struct sk_buff *nci_skb_alloc(struct nci_dev *ndev, in nci_skb_alloc() argument
326 skb = alloc_skb(len + ndev->tx_headroom + ndev->tx_tailroom, how); in nci_skb_alloc()
328 skb_reserve(skb, ndev->tx_headroom); in nci_skb_alloc()
333 static inline void nci_set_parent_dev(struct nci_dev *ndev, struct device *dev) in nci_set_parent_dev() argument
335 nfc_set_parent_dev(ndev->nfc_dev, dev); in nci_set_parent_dev()
338 static inline void nci_set_drvdata(struct nci_dev *ndev, void *data) in nci_set_drvdata() argument
340 ndev->driver_data = data; in nci_set_drvdata()
343 static inline void *nci_get_drvdata(struct nci_dev *ndev) in nci_get_drvdata() argument
345 return ndev->driver_data; in nci_get_drvdata()
348 static inline int nci_set_vendor_cmds(struct nci_dev *ndev, in nci_set_vendor_cmds() argument
352 return nfc_set_vendor_cmds(ndev->nfc_dev, cmds, n_cmds); in nci_set_vendor_cmds()
355 void nci_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb);
356 void nci_ntf_packet(struct nci_dev *ndev, struct sk_buff *skb);
357 int nci_prop_rsp_packet(struct nci_dev *ndev, __u16 opcode,
359 int nci_prop_ntf_packet(struct nci_dev *ndev, __u16 opcode,
361 int nci_core_rsp_packet(struct nci_dev *ndev, __u16 opcode,
363 int nci_core_ntf_packet(struct nci_dev *ndev, __u16 opcode,
365 void nci_rx_data_packet(struct nci_dev *ndev, struct sk_buff *skb);
366 int nci_send_cmd(struct nci_dev *ndev, __u16 opcode, __u8 plen, const void *payload);
367 int nci_send_data(struct nci_dev *ndev, __u8 conn_id, struct sk_buff *skb);
368 int nci_conn_max_data_pkt_payload_size(struct nci_dev *ndev, __u8 conn_id);
369 void nci_data_exchange_complete(struct nci_dev *ndev, struct sk_buff *skb,
373 void nci_clear_target_list(struct nci_dev *ndev);
380 void nci_req_complete(struct nci_dev *ndev, int result);
381 struct nci_conn_info *nci_get_conn_info_by_conn_id(struct nci_dev *ndev,
383 int nci_get_conn_info_by_dest_type_params(struct nci_dev *ndev, u8 dest_type,
395 struct nci_dev *ndev; member
415 struct nci_dev *ndev);
449 struct nci_dev *ndev; member