Searched defs:fcs (Results 1 - 24 of 24) sorted by relevance

/drivers/isdn/gigaset/
H A Dasyncdata.c143 __u16 fcs = bcs->rx_fcs; local
214 } else if (fcs != PPP_GOODFCS) {
242 fcs = PPP_INITFCS;
268 fcs = crc_ccitt_byte(fcs, c);
274 bcs->rx_fcs = fcs;
461 __u16 fcs; local
468 fcs = PPP_INITFCS;
474 fcs = crc_ccitt_byte(fcs, *c
[all...]
H A Disocdata.c401 u16 fcs; local
415 fcs = PPP_INITFCS;
420 fcs = crc_ccitt_byte(fcs, c);
425 fcs ^= 0xffff;
426 ones = hdlc_bitstuff_byte(iwb, fcs & 0x00ff, ones);
427 ones = hdlc_bitstuff_byte(iwb, (fcs >> 8) & 0x00ff, ones);
499 * append byte c to current skb of B channel structure *bcs, updating fcs
/drivers/net/usb/
H A Dzaurus.c72 u32 fcs; local
74 fcs = crc32_le(~0, skb->data, skb->len);
75 fcs = ~fcs;
77 *skb_put (skb, 1) = fcs & 0xff;
78 *skb_put (skb, 1) = (fcs>> 8) & 0xff;
79 *skb_put (skb, 1) = (fcs>>16) & 0xff;
80 *skb_put (skb, 1) = (fcs>>24) & 0xff;
/drivers/scsi/megaraid/
H A Dmegaraid_mm.h83 } __attribute__ ((packed)) fcs; member in union:mimd::__anon5809
/drivers/isdn/hisax/
H A Dnetjet.c224 u_int fcs; local
231 fcs = PPP_INITFCS;
234 fcs = PPP_FCS(fcs, val);
237 fcs ^= 0xffff;
238 val = fcs & 0xff;
240 val = (fcs >> 8) & 0xff;
314 u_int fcs; local
336 fcs = PPP_INITFCS;
339 fcs
[all...]
/drivers/scsi/bfa/
H A Dbfa_modules.h122 bfa_boolean_t fcs; /* FCS is attached to BFA */ member in struct:bfa_s
H A Dbfa_fcs.c33 void (*attach) (struct bfa_fcs_s *fcs);
34 void (*modinit) (struct bfa_fcs_s *fcs);
35 void (*modexit) (struct bfa_fcs_s *fcs);
54 struct bfa_fcs_s *fcs = fcs_cbarg; local
55 struct bfad_s *bfad = fcs->bfad;
67 * fcs attach -- called once to initialize data structures at driver attach time
70 bfa_fcs_attach(struct bfa_fcs_s *fcs, struct bfa_s *bfa, struct bfad_s *bfad, argument
76 fcs->bfa = bfa;
77 fcs->bfad = bfad;
78 fcs
95 bfa_fcs_init(struct bfa_fcs_s *fcs) argument
112 bfa_fcs_update_cfg(struct bfa_fcs_s *fcs) argument
126 bfa_fcs_stop(struct bfa_fcs_s *fcs) argument
138 bfa_fcs_pbc_vport_init(struct bfa_fcs_s *fcs) argument
162 bfa_fcs_driver_info_init(struct bfa_fcs_s *fcs, struct bfa_fcs_driver_info_s *driver_info) argument
180 bfa_fcs_exit(struct bfa_fcs_s *fcs) argument
1133 bfa_fcs_fabric_attach(struct bfa_fcs_s *fcs) argument
1161 bfa_fcs_fabric_modinit(struct bfa_fcs_s *fcs) argument
1171 bfa_fcs_fabric_modexit(struct bfa_fcs_s *fcs) argument
1189 bfa_fcs_fabric_modstop(struct bfa_fcs_s *fcs) argument
1202 bfa_fcs_fabric_modstart(struct bfa_fcs_s *fcs) argument
1563 bfa_fcs_vf_lookup(struct bfa_fcs_s *fcs, u16 vf_id) argument
1587 struct bfa_fcs_s *fcs; local
1617 struct bfa_fcs_s *fcs = cbarg; local
1636 bfa_fcs_port_attach(struct bfa_fcs_s *fcs) argument
1656 struct bfa_fcs_s *fcs = (struct bfa_fcs_s *) cbarg; local
1709 bfa_fcs_uf_attach(struct bfa_fcs_s *fcs) argument
[all...]
H A Dbfa_fcs_rport.c180 bfa_trc(rport->fcs, rport->pwwn);
181 bfa_trc(rport->fcs, rport->pid);
182 bfa_trc(rport->fcs, event);
208 bfa_sm_fault(rport->fcs, event);
219 bfa_trc(rport->fcs, rport->pwwn);
220 bfa_trc(rport->fcs, rport->pid);
221 bfa_trc(rport->fcs, event);
230 bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe);
236 bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe);
242 bfa_fcxp_walloc_cancel(rport->fcs
2319 struct bfa_fcs_s *fcs = port->fcs; local
2380 struct bfa_fcs_s *fcs = port->fcs; local
2803 struct bfa_fcs_s *fcs = &((struct bfad_s *)bfa->bfad)->bfa_fcs; local
2830 struct bfa_fcs_s *fcs = &((struct bfad_s *)bfa->bfad)->bfa_fcs; local
[all...]
H A Dbfa_fcs.h152 struct bfa_fcs_s *fcs; /* FCS instance */ member in struct:bfa_fcs_lport_s
161 #define BFA_FCS_GET_HAL_FROM_PORT(port) (port->fcs->bfa)
185 struct bfa_fcs_s *fcs; /* FCS instance */ member in struct:bfa_fcs_fabric_s
286 * bfa fcs port public functions
290 struct bfa_fcs_lport_s *bfa_fcs_get_base_port(struct bfa_fcs_s *fcs);
296 struct bfa_fcs_lport_s *bfa_fcs_lookup_port(struct bfa_fcs_s *fcs,
322 void bfa_fcs_lport_attach(struct bfa_fcs_lport_s *lport, struct bfa_fcs_s *fcs,
372 * bfa fcs vport public functions
375 struct bfa_fcs_s *fcs, u16 vf_id,
379 struct bfa_fcs_s *fcs, u1
430 struct bfa_fcs_s *fcs; /* fcs instance */ member in struct:bfa_fcs_rport_s
509 struct bfa_fcs_s *fcs; /* fcs instance */ member in struct:bfa_fcs_itnim_s
[all...]
H A Dbfa_fcs_lport.c133 bfa_trc(port->fcs, port->port_cfg.pwwn);
134 bfa_trc(port->fcs, event);
142 bfa_sm_fault(port->fcs, event);
150 bfa_trc(port->fcs, port->port_cfg.pwwn);
151 bfa_trc(port->fcs, event);
176 bfa_sm_fault(port->fcs, event);
188 bfa_trc(port->fcs, port->port_cfg.pwwn);
189 bfa_trc(port->fcs, event);
236 bfa_sm_fault(port->fcs, event);
248 bfa_trc(port->fcs, por
1070 bfa_fcs_lport_attach(struct bfa_fcs_lport_s *lport, struct bfa_fcs_s *fcs, u16 vf_id, struct bfa_fcs_vport_s *vport) argument
5716 bfa_fcs_get_base_port(struct bfa_fcs_s *fcs) argument
5728 struct bfa_fcs_s *fcs; local
5776 struct bfa_fcs_s *fcs; local
5825 struct bfa_fcs_s *fcs; local
5876 bfa_fcs_lookup_port(struct bfa_fcs_s *fcs, u16 vf_id, wwn_t lpwwn) argument
6721 bfa_fcs_vport_create(struct bfa_fcs_vport_s *vport, struct bfa_fcs_s *fcs, u16 vf_id, struct bfa_lport_cfg_s *vport_cfg, struct bfad_vport_s *vport_drv) argument
6771 bfa_fcs_pbc_vport_create(struct bfa_fcs_vport_s *vport, struct bfa_fcs_s *fcs, u16 vf_id, struct bfa_lport_cfg_s *vport_cfg, struct bfad_vport_s *vport_drv) argument
6881 bfa_fcs_vport_lookup(struct bfa_fcs_s *fcs, u16 vf_id, wwn_t vpwwn) argument
[all...]
/drivers/usb/serial/
H A Dsafe_serial.c177 #define CRC10_FCS(fcs, c) ((((fcs) << 8) & 0x3ff) ^ crc10_table[((fcs) >> 2) & 0xff] ^ (c))
183 * @fcs: starting FCS
185 * Perform a memcpy and calculate fcs using ppp 10bit CRC algorithm. Return
188 static __u16 __inline__ fcs_compute10(unsigned char *sp, int len, __u16 fcs) argument
190 for (; len-- > 0; fcs = CRC10_FCS(fcs, *sp++));
191 return fcs;
200 __u16 fcs; local
234 __u16 fcs; local
[all...]
/drivers/bluetooth/
H A Dbt3c_cs.c460 unsigned int iobase, size, addr, fcs, tmp; local
493 fcs = simple_strtoul(b, NULL, 16);
501 if (((tmp + fcs) & 0xff) != 0xff) {
/drivers/net/irda/
H A Dmcs7780.c341 __u32 fcs = ~(crc32_le(~0, skb->data, skb->len)); local
343 /* add 2 bytes for length value and 4 bytes for fcs. */
354 /* put the fcs in the last four bytes in little endian order. */
355 buf[len - 4] = fcs & 0xff;
356 buf[len - 3] = (fcs >> 8) & 0xff;
357 buf[len - 2] = (fcs >> 16) & 0xff;
358 buf[len - 1] = (fcs >> 24) & 0xff;
366 __u16 fcs = 0; local
369 fcs = ~(irda_calc_crc16(~fcs, sk
392 __u16 fcs; local
444 __u32 fcs; local
[all...]
H A Ddonauboe.c213 fcs; local
215 fcs.value = INIT_FCS;
218 fcs.value = irda_fcs (fcs.value, *(buf++));
220 return fcs.value == GOOD_FCS;
757 fcs; local
765 fcs.value = INIT_FCS;
774 fcs.value = irda_fcs (fcs.value, i);
777 len += stuff_byte (fcs
[all...]
H A Dstir4200.c257 __u32 fcs = ~(crc32_le(~0, skb->data, skb->len)); local
278 ptr = stuff_fir(ptr, fcs & 0xff);
279 ptr = stuff_fir(ptr, (fcs >> 8) & 0xff);
280 ptr = stuff_fir(ptr, (fcs >> 16) & 0xff);
281 ptr = stuff_fir(ptr, (fcs >> 24) & 0xff);
319 __u32 fcs; local
330 fcs = ~(crc32_le(~0, rx_buff->data, len));
331 if (fcs != get_unaligned_le32(rx_buff->data + len)) {
332 pr_debug("crc error calc 0x%x len %d\n", fcs, len);
/drivers/net/ppp/
H A Dppp_async.c535 int fcs, i, count, c, proto; local
546 fcs = ap->tfcs;
568 fcs = PPP_INITFCS;
575 fcs = PPP_FCS(fcs, 0xff);
577 fcs = PPP_FCS(fcs, 0x03);
591 fcs = PPP_FCS(fcs, c);
601 ap->tfcs = fcs;
773 unsigned int len, fcs, proto; local
958 int dlen, fcs, i, code; local
[all...]
/drivers/net/ethernet/adi/
H A Dbfin_mac.c1228 unsigned char fcs[ETH_FCS_LEN + 1]; local
1284 fcs[0] = 0;
1286 fcs[i + 1] = ~skb->data[skb->len + i];
1287 skb->csum = csum_partial(fcs, ETH_FCS_LEN + 1, skb->csum);
1290 fcs[i] = ~skb->data[skb->len + i];
1291 skb->csum = csum_partial(fcs, ETH_FCS_LEN, skb->csum);
/drivers/net/ethernet/amd/
H A Dnmclan_cs.c334 int fcs; member in struct:_mace_statistics
1090 lp->mace_stats.fcs++;
1185 pr_debug(" fram=%-7d fcs=%d\n",
1186 pstats->fram, pstats->fcs);
1250 lp->linux_stats.rx_crc_errors = lp->mace_stats.fcs;
/drivers/net/vmxnet3/
H A Dvmxnet3_defs.h256 u32 fcs:1; /* Frame CRC correct */ member in struct:Vmxnet3_RxCompDesc
274 u32 fcs:1; /* Frame CRC correct */ member in struct:Vmxnet3_RxCompDesc
/drivers/tty/
H A Dn_gsm.c226 u8 fcs; member in struct:gsm_mux
376 * @fcs: Current FCS
383 static inline u8 gsm_fcs_add(u8 fcs, u8 c) argument
385 return gsm_fcs8[fcs ^ c];
390 * @fcs: Current FCS
398 static inline u8 gsm_fcs_add_block(u8 fcs, u8 *c, int len) argument
401 fcs = gsm_fcs8[fcs ^ *c++];
402 return fcs;
736 u8 *fcs local
[all...]
/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet.h95 u32 fcs; /* RO # of Received FCS error */ member in struct:bcmgenet_rx_counters
120 u32 fcs; /* RO # of xmited FCS error count */ member in struct:bcmgenet_tx_counters
/drivers/scsi/
H A Dmegaraid.h485 } __attribute__ ((packed)) fcs; member in union:uioctl_t::__anon5901
/drivers/net/ethernet/broadcom/
H A Dbcmsysport.h508 u32 fcs; /* RO # of Received FCS error */ member in struct:bcm_sysport_rx_counters
533 u32 fcs; /* RO # of xmited FCS error count */ member in struct:bcm_sysport_tx_counters
/drivers/net/wireless/cw1200/
H A Dwsm.h1370 bool fcs; member in struct:wsm_rx_filter
1382 if (arg->fcs)

Completed in 443 milliseconds