Lines Matching refs:uchar
45 static const uchar cdp_snap_hdr[8] = {
48 static ushort cdp_compute_csum(const uchar *buff, ushort len) in cdp_compute_csum()
66 buff = (uchar *)p; in cdp_compute_csum()
108 uchar *pkt; in cdp_send_trigger()
131 memcpy((uchar *)pkt, cdp_snap_hdr, sizeof(cdp_snap_hdr)); in cdp_send_trigger()
147 memcpy((uchar *)s, buf, 16); in cdp_send_trigger()
159 memcpy((uchar *)s, buf, len); in cdp_send_trigger()
178 memcpy((uchar *)s, buf, len); in cdp_send_trigger()
190 memcpy((uchar *)s, buf, len); in cdp_send_trigger()
208 len = (uchar *)s - ((uchar *)net_tx_packet + ETHER_HDR_SIZE); in cdp_send_trigger()
212 chksum = cdp_compute_csum((uchar *)net_tx_packet + len, in cdp_send_trigger()
213 (uchar *)s - (net_tx_packet + len)); in cdp_send_trigger()
218 net_send_packet(net_tx_packet, (uchar *)s - net_tx_packet); in cdp_send_trigger()
239 void cdp_receive(const uchar *pkt, unsigned len) in cdp_receive()
241 const uchar *t; in cdp_receive()
310 t = (const uchar *)ss; in cdp_receive()