Searched refs:msgb (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/platform/surface/aggregator/ |
H A D | ssh_msgb.h | 32 * @msgb: The buffer struct to initialize 39 static inline void msgb_init(struct msgbuf *msgb, u8 *ptr, size_t cap) in msgb_init() argument 41 msgb->begin = ptr; in msgb_init() 42 msgb->end = ptr + cap; in msgb_init() 43 msgb->ptr = ptr; in msgb_init() 48 * @msgb: The message buffer. 50 static inline size_t msgb_bytes_used(const struct msgbuf *msgb) in msgb_bytes_used() argument 52 return msgb->ptr - msgb->begin; in msgb_bytes_used() 55 static inline void __msgb_push_u8(struct msgbuf *msgb, u argument 61 __msgb_push_u16(struct msgbuf * msgb,u16 value) __msgb_push_u16() argument 72 msgb_push_u16(struct msgbuf * msgb,u16 value) msgb_push_u16() argument 84 msgb_push_syn(struct msgbuf * msgb) msgb_push_syn() argument 95 msgb_push_buf(struct msgbuf * msgb,const u8 * buf,size_t len) msgb_push_buf() argument 106 msgb_push_crc(struct msgbuf * msgb,const u8 * buf,size_t len) msgb_push_crc() argument 118 msgb_push_frame(struct msgbuf * msgb,u8 ty,u16 len,u8 seq) msgb_push_frame() argument 137 msgb_push_ack(struct msgbuf * msgb,u8 seq) msgb_push_ack() argument 153 msgb_push_nak(struct msgbuf * msgb) msgb_push_nak() argument 172 msgb_push_cmd(struct msgbuf * msgb,u8 seq,u16 rqid,const struct ssam_request * rqst) msgb_push_cmd() argument [all...] |
H A D | ssh_packet_layer.c | 1653 struct msgbuf msgb; in ssh_ptl_send_ack() local 1665 msgb_init(&msgb, buf.ptr, buf.len); in ssh_ptl_send_ack() 1666 msgb_push_ack(&msgb, seq); in ssh_ptl_send_ack() 1667 ssh_packet_set_data(packet, msgb.begin, msgb_bytes_used(&msgb)); in ssh_ptl_send_ack() 1677 struct msgbuf msgb; in ssh_ptl_send_nak() local 1689 msgb_init(&msgb, buf.ptr, buf.len); in ssh_ptl_send_nak() 1690 msgb_push_nak(&msgb); in ssh_ptl_send_nak() 1691 ssh_packet_set_data(packet, msgb.begin, msgb_bytes_used(&msgb)); in ssh_ptl_send_nak() [all...] |
H A D | controller.c | 1511 struct msgbuf msgb; in ssam_request_write_data() local 1521 msgb_init(&msgb, buf->ptr, buf->len); in ssam_request_write_data() 1524 msgb_push_cmd(&msgb, seq, rqid, spec); in ssam_request_write_data() 1526 return msgb_bytes_used(&msgb); in ssam_request_write_data()
|