Lines Matching refs:d
196 void (*data_ready)(struct rfcomm_dlc *d, struct sk_buff *skb);
197 void (*state_change)(struct rfcomm_dlc *d, int err);
198 void (*modem_status)(struct rfcomm_dlc *d, u8 v24_sig);
234 void rfcomm_dlc_free(struct rfcomm_dlc *d);
235 int rfcomm_dlc_open(struct rfcomm_dlc *d, bdaddr_t *src, bdaddr_t *dst,
237 int rfcomm_dlc_close(struct rfcomm_dlc *d, int reason);
238 int rfcomm_dlc_send(struct rfcomm_dlc *d, struct sk_buff *skb);
239 void rfcomm_dlc_send_noerror(struct rfcomm_dlc *d, struct sk_buff *skb);
240 int rfcomm_dlc_set_modem_status(struct rfcomm_dlc *d, u8 v24_sig);
241 int rfcomm_dlc_get_modem_status(struct rfcomm_dlc *d, u8 *v24_sig);
242 void rfcomm_dlc_accept(struct rfcomm_dlc *d);
245 #define rfcomm_dlc_lock(d) mutex_lock(&d->lock) argument
246 #define rfcomm_dlc_unlock(d) mutex_unlock(&d->lock) argument
248 static inline void rfcomm_dlc_hold(struct rfcomm_dlc *d) in rfcomm_dlc_hold() argument
250 atomic_inc(&d->refcnt); in rfcomm_dlc_hold()
253 static inline void rfcomm_dlc_put(struct rfcomm_dlc *d) in rfcomm_dlc_put() argument
255 if (atomic_dec_and_test(&d->refcnt)) in rfcomm_dlc_put()
256 rfcomm_dlc_free(d); in rfcomm_dlc_put()
259 void __rfcomm_dlc_throttle(struct rfcomm_dlc *d);
260 void __rfcomm_dlc_unthrottle(struct rfcomm_dlc *d);
262 static inline void rfcomm_dlc_throttle(struct rfcomm_dlc *d) in rfcomm_dlc_throttle() argument
264 if (!test_and_set_bit(RFCOMM_RX_THROTTLED, &d->flags)) in rfcomm_dlc_throttle()
265 __rfcomm_dlc_throttle(d); in rfcomm_dlc_throttle()
268 static inline void rfcomm_dlc_unthrottle(struct rfcomm_dlc *d) in rfcomm_dlc_unthrottle() argument
270 if (test_and_clear_bit(RFCOMM_RX_THROTTLED, &d->flags)) in rfcomm_dlc_unthrottle()
271 __rfcomm_dlc_unthrottle(d); in rfcomm_dlc_unthrottle()
316 struct rfcomm_dlc **d);