Lines Matching refs:nfc_dev

39 struct nfc_dev;
60 int (*dev_up)(struct nfc_dev *dev);
61 int (*dev_down)(struct nfc_dev *dev);
62 int (*start_poll)(struct nfc_dev *dev,
64 void (*stop_poll)(struct nfc_dev *dev);
65 int (*dep_link_up)(struct nfc_dev *dev, struct nfc_target *target,
67 int (*dep_link_down)(struct nfc_dev *dev);
68 int (*activate_target)(struct nfc_dev *dev, struct nfc_target *target,
70 void (*deactivate_target)(struct nfc_dev *dev,
72 int (*im_transceive)(struct nfc_dev *dev, struct nfc_target *target,
75 int (*tm_send)(struct nfc_dev *dev, struct sk_buff *skb);
76 int (*check_presence)(struct nfc_dev *dev, struct nfc_target *target);
77 int (*fw_download)(struct nfc_dev *dev, const char *firmware_name);
80 int (*discover_se)(struct nfc_dev *dev);
81 int (*enable_se)(struct nfc_dev *dev, u32 se_idx);
82 int (*disable_se)(struct nfc_dev *dev, u32 se_idx);
83 int (*se_io) (struct nfc_dev *dev, u32 se_idx,
168 struct nfc_dev { struct
198 #define to_nfc_dev(_dev) container_of(_dev, struct nfc_dev, dev) argument
202 struct nfc_dev *nfc_allocate_device(struct nfc_ops *ops,
212 static inline void nfc_free_device(struct nfc_dev *dev) in nfc_free_device()
217 int nfc_register_device(struct nfc_dev *dev);
219 void nfc_unregister_device(struct nfc_dev *dev);
227 static inline void nfc_set_parent_dev(struct nfc_dev *nfc_dev, in nfc_set_parent_dev() argument
230 nfc_dev->dev.parent = dev; in nfc_set_parent_dev()
239 static inline void nfc_set_drvdata(struct nfc_dev *dev, void *data) in nfc_set_drvdata()
249 static inline void *nfc_get_drvdata(struct nfc_dev *dev) in nfc_get_drvdata()
259 static inline const char *nfc_device_name(struct nfc_dev *dev) in nfc_device_name()
264 struct sk_buff *nfc_alloc_send_skb(struct nfc_dev *dev, struct sock *sk,
269 int nfc_set_remote_general_bytes(struct nfc_dev *dev,
271 u8 *nfc_get_local_general_bytes(struct nfc_dev *dev, size_t *gb_len);
273 int nfc_fw_download_done(struct nfc_dev *dev, const char *firmware_name,
276 int nfc_targets_found(struct nfc_dev *dev,
278 int nfc_target_lost(struct nfc_dev *dev, u32 target_idx);
280 int nfc_dep_link_is_up(struct nfc_dev *dev, u32 target_idx,
283 int nfc_tm_activated(struct nfc_dev *dev, u32 protocol, u8 comm_mode,
285 int nfc_tm_deactivated(struct nfc_dev *dev);
286 int nfc_tm_data_received(struct nfc_dev *dev, struct sk_buff *skb);
288 void nfc_driver_failure(struct nfc_dev *dev, int err);
290 int nfc_se_transaction(struct nfc_dev *dev, u8 se_idx,
292 int nfc_add_se(struct nfc_dev *dev, u32 se_idx, u16 type);
293 int nfc_remove_se(struct nfc_dev *dev, u32 se_idx);
294 struct nfc_se *nfc_find_se(struct nfc_dev *dev, u32 se_idx);
296 void nfc_send_to_raw_sock(struct nfc_dev *dev, struct sk_buff *skb,