Home
last modified time | relevance | path

Searched refs:msgb (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/drivers/platform/surface/aggregator/
Dssh_msgb.h39 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()
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, u8 value) in __msgb_push_u8() argument
57 *msgb->ptr = value; in __msgb_push_u8()
58 msgb->ptr += sizeof(u8); in __msgb_push_u8()
61 static inline void __msgb_push_u16(struct msgbuf *msgb, u16 value) in __msgb_push_u16() argument
[all …]
Dssh_packet_layer.c1653 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()
Dcontroller.c1472 struct msgbuf msgb; in ssam_request_write_data() local
1482 msgb_init(&msgb, buf->ptr, buf->len); in ssam_request_write_data()
1485 msgb_push_cmd(&msgb, seq, rqid, spec); in ssam_request_write_data()
1487 return msgb_bytes_used(&msgb); in ssam_request_write_data()