Lines Matching refs:d

197 	void (*data_ready)(struct rfcomm_dlc *d, struct sk_buff *skb);
198 void (*state_change)(struct rfcomm_dlc *d, int err);
199 void (*modem_status)(struct rfcomm_dlc *d, u8 v24_sig);
235 void rfcomm_dlc_free(struct rfcomm_dlc *d);
236 int rfcomm_dlc_open(struct rfcomm_dlc *d, bdaddr_t *src, bdaddr_t *dst,
238 int rfcomm_dlc_close(struct rfcomm_dlc *d, int reason);
239 int rfcomm_dlc_send(struct rfcomm_dlc *d, struct sk_buff *skb);
240 void rfcomm_dlc_send_noerror(struct rfcomm_dlc *d, struct sk_buff *skb);
241 int rfcomm_dlc_set_modem_status(struct rfcomm_dlc *d, u8 v24_sig);
242 int rfcomm_dlc_get_modem_status(struct rfcomm_dlc *d, u8 *v24_sig);
243 void rfcomm_dlc_accept(struct rfcomm_dlc *d);
246 #define rfcomm_dlc_lock(d) mutex_lock(&d->lock) argument
247 #define rfcomm_dlc_unlock(d) mutex_unlock(&d->lock) argument
249 static inline void rfcomm_dlc_hold(struct rfcomm_dlc *d) in rfcomm_dlc_hold() argument
251 refcount_inc(&d->refcnt); in rfcomm_dlc_hold()
254 static inline void rfcomm_dlc_put(struct rfcomm_dlc *d) in rfcomm_dlc_put() argument
256 if (refcount_dec_and_test(&d->refcnt)) in rfcomm_dlc_put()
257 rfcomm_dlc_free(d); in rfcomm_dlc_put()
260 void __rfcomm_dlc_throttle(struct rfcomm_dlc *d);
261 void __rfcomm_dlc_unthrottle(struct rfcomm_dlc *d);
263 static inline void rfcomm_dlc_throttle(struct rfcomm_dlc *d) in rfcomm_dlc_throttle() argument
265 if (!test_and_set_bit(RFCOMM_RX_THROTTLED, &d->flags)) in rfcomm_dlc_throttle()
266 __rfcomm_dlc_throttle(d); in rfcomm_dlc_throttle()
269 static inline void rfcomm_dlc_unthrottle(struct rfcomm_dlc *d) in rfcomm_dlc_unthrottle() argument
271 if (test_and_clear_bit(RFCOMM_RX_THROTTLED, &d->flags)) in rfcomm_dlc_unthrottle()
272 __rfcomm_dlc_unthrottle(d); in rfcomm_dlc_unthrottle()
317 struct rfcomm_dlc **d);