Home
last modified time | relevance | path

Searched refs:cf (Results 1 – 6 of 6) sorted by relevance

/net/can/
Dgw.c98 void (*modfunc[MAX_MODFUNCTIONS])(struct canfd_frame *cf,
107 void (*xor)(struct canfd_frame *cf,
109 void (*crc8)(struct canfd_frame *cf,
153 #define MODFUNC(func, op) static void func(struct canfd_frame *cf, \
156 MODFUNC(mod_and_id, cf->can_id &= mod->modframe.and.can_id)
157 MODFUNC(mod_and_len, cf->len &= mod->modframe.and.len)
158 MODFUNC(mod_and_flags, cf->flags &= mod->modframe.and.flags)
159 MODFUNC(mod_and_data, *(u64 *)cf->data &= *(u64 *)mod->modframe.and.data)
160 MODFUNC(mod_or_id, cf->can_id |= mod->modframe.or.can_id)
161 MODFUNC(mod_or_len, cf->len |= mod->modframe.or.len)
[all …]
Disotp.c298 static int check_optimized(struct canfd_frame *cf, int start_index) in check_optimized() argument
305 if (cf->len <= CAN_MAX_DLEN) in check_optimized()
306 return (cf->len != start_index); in check_optimized()
314 return (cf->len != padlen(start_index)); in check_optimized()
318 static int check_pad(struct isotp_sock *so, struct canfd_frame *cf, in check_pad() argument
326 return check_optimized(cf, start_index); in check_pad()
334 cf->len != padlen(cf->len)) in check_pad()
339 for (i = start_index; i < cf->len; i++) in check_pad()
340 if (cf->data[i] != content) in check_pad()
348 static int isotp_rcv_fc(struct isotp_sock *so, struct canfd_frame *cf, int ae) in isotp_rcv_fc() argument
[all …]
Dbcm.c276 struct canfd_frame *cf = op->frames + op->cfsiz * op->currframe; in bcm_can_tx() local
297 skb_put_data(skb, cf, op->cfsiz); in bcm_can_tx()
513 struct canfd_frame *cf = op->frames + op->cfsiz * index; in bcm_rx_cmp_to_index() local
530 if ((get_u64(cf, i) & get_u64(rxdata, i)) != in bcm_rx_cmp_to_index()
531 (get_u64(cf, i) & get_u64(lcf, i))) { in bcm_rx_cmp_to_index()
859 struct canfd_frame *cf; in bcm_tx_setup() local
891 cf = op->frames + op->cfsiz * i; in bcm_tx_setup()
892 err = memcpy_from_msg((u8 *)cf, msg, op->cfsiz); in bcm_tx_setup()
895 if (cf->len > 64) in bcm_tx_setup()
898 if (cf->len > 8) in bcm_tx_setup()
[all …]
Daf_can.c582 struct can_frame *cf = (struct can_frame *)skb->data; in can_rcv_filter() local
583 canid_t can_id = cf->can_id; in can_rcv_filter()
/net/can/j1939/
Dmain.c43 struct can_frame *cf; in j1939_can_recv() local
61 cf = (void *)skb->data; in j1939_can_recv()
65 skb_trim(skb, min_t(uint8_t, cf->len, 8)); in j1939_can_recv()
73 skcb->priority = (cf->can_id >> 26) & 0x7; in j1939_can_recv()
74 skcb->addr.sa = cf->can_id; in j1939_can_recv()
75 skcb->addr.pgn = (cf->can_id >> 8) & J1939_PGN_MAX; in j1939_can_recv()
318 struct can_frame *cf; in j1939_send_one() local
335 cf = skb_push(skb, J1939_CAN_HDR); in j1939_send_one()
338 memset(cf, 0, J1939_CAN_HDR); in j1939_send_one()
350 cf->can_id = canid; in j1939_send_one()
[all …]
/net/sched/
Dem_canid.c48 struct can_frame *cf = (struct can_frame *)skb->data; in em_canid_get_id() local
50 return cf->can_id; in em_canid_get_id()