Lines Matching defs:framer

3  * Generic framer profider header file
14 #include <linux/framer/framer.h>
20 * struct framer_ops - set of function pointers for performing framer operations
21 * @init: operation to be performed for initializing the framer
23 * @power_on: powering on the framer
24 * @power_off: powering off the framer
27 * Ask the core to perform a polling to get the framer status and
29 * The framer should call @framer_notify_status_change() when it
31 * If the framer cannot detect this change, it can ask the core for
38 int (*init)(struct framer *framer);
39 void (*exit)(struct framer *framer);
40 int (*power_on)(struct framer *framer);
41 int (*power_off)(struct framer *framer);
48 * Used to get the framer status. framer_init() must have
49 * been called on the framer.
53 int (*get_status)(struct framer *framer, struct framer_status *status);
60 * Used to set the framer configuration. framer_init() must have
61 * been called on the framer.
65 int (*set_config)(struct framer *framer, const struct framer_config *config);
72 * Used to get the framer configuration. framer_init() must have
73 * been called on the framer.
77 int (*get_config)(struct framer *framer, struct framer_config *config);
84 * struct framer_provider - represents the framer provider
85 * @dev: framer provider device
87 * @list: to maintain a linked list of framer providers
88 * @of_xlate: function pointer to obtain framer instance from framer pointer
94 struct framer * (*of_xlate)(struct device *dev,
98 static inline void framer_set_drvdata(struct framer *framer, void *data)
100 dev_set_drvdata(&framer->dev, data);
103 static inline void *framer_get_drvdata(struct framer *framer)
105 return dev_get_drvdata(&framer->dev);
110 /* Create and destroy a framer */
111 struct framer *framer_create(struct device *dev, struct device_node *node,
113 void framer_destroy(struct framer *framer);
116 struct framer *devm_framer_create(struct device *dev, struct device_node *node,
119 struct framer *framer_provider_simple_of_xlate(struct device *dev,
124 struct framer *(*of_xlate)(struct device *dev,
131 struct framer *(*of_xlate)(struct device *dev,
134 void framer_notify_status_change(struct framer *framer);
138 static inline struct framer *framer_create(struct device *dev, struct device_node *node,
144 static inline void framer_destroy(struct framer *framer)
149 static inline struct framer *devm_framer_create(struct device *dev, struct device_node *node,
155 static inline struct framer *framer_provider_simple_of_xlate(struct device *dev,
163 struct framer *(*of_xlate)(struct device *dev,
175 struct framer *(*of_xlate)(struct device *dev,
181 void framer_notify_status_change(struct framer *framer)