Lines Matching refs:nfc_dev

40 struct nfc_dev;
61 int (*dev_up)(struct nfc_dev *dev);
62 int (*dev_down)(struct nfc_dev *dev);
63 int (*start_poll)(struct nfc_dev *dev,
65 void (*stop_poll)(struct nfc_dev *dev);
66 int (*dep_link_up)(struct nfc_dev *dev, struct nfc_target *target,
68 int (*dep_link_down)(struct nfc_dev *dev);
69 int (*activate_target)(struct nfc_dev *dev, struct nfc_target *target,
71 void (*deactivate_target)(struct nfc_dev *dev,
73 int (*im_transceive)(struct nfc_dev *dev, struct nfc_target *target,
76 int (*tm_send)(struct nfc_dev *dev, struct sk_buff *skb);
77 int (*check_presence)(struct nfc_dev *dev, struct nfc_target *target);
78 int (*fw_download)(struct nfc_dev *dev, const char *firmware_name);
81 int (*discover_se)(struct nfc_dev *dev);
82 int (*enable_se)(struct nfc_dev *dev, u32 se_idx);
83 int (*disable_se)(struct nfc_dev *dev, u32 se_idx);
84 int (*se_io) (struct nfc_dev *dev, u32 se_idx,
172 int (*doit)(struct nfc_dev *dev, void *data, size_t data_len);
175 struct nfc_dev { struct
209 #define to_nfc_dev(_dev) container_of(_dev, struct nfc_dev, dev) argument
213 struct nfc_dev *nfc_allocate_device(struct nfc_ops *ops,
223 static inline void nfc_free_device(struct nfc_dev *dev) in nfc_free_device()
228 int nfc_register_device(struct nfc_dev *dev);
230 void nfc_unregister_device(struct nfc_dev *dev);
238 static inline void nfc_set_parent_dev(struct nfc_dev *nfc_dev, in nfc_set_parent_dev() argument
241 nfc_dev->dev.parent = dev; in nfc_set_parent_dev()
250 static inline void nfc_set_drvdata(struct nfc_dev *dev, void *data) in nfc_set_drvdata()
260 static inline void *nfc_get_drvdata(struct nfc_dev *dev) in nfc_get_drvdata()
270 static inline const char *nfc_device_name(struct nfc_dev *dev) in nfc_device_name()
275 struct sk_buff *nfc_alloc_send_skb(struct nfc_dev *dev, struct sock *sk,
280 int nfc_set_remote_general_bytes(struct nfc_dev *dev,
282 u8 *nfc_get_local_general_bytes(struct nfc_dev *dev, size_t *gb_len);
284 int nfc_fw_download_done(struct nfc_dev *dev, const char *firmware_name,
287 int nfc_targets_found(struct nfc_dev *dev,
289 int nfc_target_lost(struct nfc_dev *dev, u32 target_idx);
291 int nfc_dep_link_is_up(struct nfc_dev *dev, u32 target_idx,
294 int nfc_tm_activated(struct nfc_dev *dev, u32 protocol, u8 comm_mode,
296 int nfc_tm_deactivated(struct nfc_dev *dev);
297 int nfc_tm_data_received(struct nfc_dev *dev, struct sk_buff *skb);
299 void nfc_driver_failure(struct nfc_dev *dev, int err);
301 int nfc_se_transaction(struct nfc_dev *dev, u8 se_idx,
303 int nfc_se_connectivity(struct nfc_dev *dev, u8 se_idx);
304 int nfc_add_se(struct nfc_dev *dev, u32 se_idx, u16 type);
305 int nfc_remove_se(struct nfc_dev *dev, u32 se_idx);
306 struct nfc_se *nfc_find_se(struct nfc_dev *dev, u32 se_idx);
308 void nfc_send_to_raw_sock(struct nfc_dev *dev, struct sk_buff *skb,
311 static inline int nfc_set_vendor_cmds(struct nfc_dev *dev, in nfc_set_vendor_cmds()
324 struct sk_buff *__nfc_alloc_vendor_cmd_reply_skb(struct nfc_dev *dev,
355 nfc_vendor_cmd_alloc_reply_skb(struct nfc_dev *dev, in nfc_vendor_cmd_alloc_reply_skb()