Home
last modified time | relevance | path

Searched refs:fcs (Results 1 – 25 of 29) sorted by relevance

12

/drivers/scsi/bfa/
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; in bfa_fcs_exit_comp() local
55 struct bfad_s *bfad = fcs->bfad; in bfa_fcs_exit_comp()
70 bfa_fcs_attach(struct bfa_fcs_s *fcs, struct bfa_s *bfa, struct bfad_s *bfad, in bfa_fcs_attach() argument
76 fcs->bfa = bfa; in bfa_fcs_attach()
77 fcs->bfad = bfad; in bfa_fcs_attach()
78 fcs->min_cfg = min_cfg; in bfa_fcs_attach()
79 fcs->num_rport_logins = 0; in bfa_fcs_attach()
[all …]
Dbfa_fcs_rport.c180 bfa_trc(rport->fcs, rport->pwwn); in bfa_fcs_rport_sm_uninit()
181 bfa_trc(rport->fcs, rport->pid); in bfa_fcs_rport_sm_uninit()
182 bfa_trc(rport->fcs, event); in bfa_fcs_rport_sm_uninit()
208 bfa_sm_fault(rport->fcs, event); in bfa_fcs_rport_sm_uninit()
219 bfa_trc(rport->fcs, rport->pwwn); in bfa_fcs_rport_sm_plogi_sending()
220 bfa_trc(rport->fcs, rport->pid); in bfa_fcs_rport_sm_plogi_sending()
221 bfa_trc(rport->fcs, event); in bfa_fcs_rport_sm_plogi_sending()
230 bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); in bfa_fcs_rport_sm_plogi_sending()
236 bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); in bfa_fcs_rport_sm_plogi_sending()
242 bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); in bfa_fcs_rport_sm_plogi_sending()
[all …]
Dbfa_fcs_lport.c133 bfa_trc(port->fcs, port->port_cfg.pwwn); in bfa_fcs_lport_sm_uninit()
134 bfa_trc(port->fcs, event); in bfa_fcs_lport_sm_uninit()
142 bfa_sm_fault(port->fcs, event); in bfa_fcs_lport_sm_uninit()
150 bfa_trc(port->fcs, port->port_cfg.pwwn); in bfa_fcs_lport_sm_init()
151 bfa_trc(port->fcs, event); in bfa_fcs_lport_sm_init()
176 bfa_sm_fault(port->fcs, event); in bfa_fcs_lport_sm_init()
188 bfa_trc(port->fcs, port->port_cfg.pwwn); in bfa_fcs_lport_sm_online()
189 bfa_trc(port->fcs, event); in bfa_fcs_lport_sm_online()
236 bfa_sm_fault(port->fcs, event); in bfa_fcs_lport_sm_online()
248 bfa_trc(port->fcs, port->port_cfg.pwwn); in bfa_fcs_lport_sm_offline()
[all …]
Dbfa_fcs_fcpim.c81 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_offline()
82 bfa_trc(itnim->fcs, event); in bfa_fcs_itnim_sm_offline()
104 bfa_sm_fault(itnim->fcs, event); in bfa_fcs_itnim_sm_offline()
113 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_prli_send()
114 bfa_trc(itnim->fcs, event); in bfa_fcs_itnim_sm_prli_send()
123 bfa_fcxp_walloc_cancel(itnim->fcs->bfa, &itnim->fcxp_wqe); in bfa_fcs_itnim_sm_prli_send()
129 bfa_fcxp_walloc_cancel(itnim->fcs->bfa, &itnim->fcxp_wqe); in bfa_fcs_itnim_sm_prli_send()
135 bfa_fcxp_walloc_cancel(itnim->fcs->bfa, &itnim->fcxp_wqe); in bfa_fcs_itnim_sm_prli_send()
140 bfa_sm_fault(itnim->fcs, event); in bfa_fcs_itnim_sm_prli_send()
148 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_prli()
[all …]
Dbfa_fcs.h152 struct bfa_fcs_s *fcs; /* FCS instance */ member
161 #define BFA_FCS_GET_HAL_FROM_PORT(port) (port->fcs->bfa)
185 struct bfa_fcs_s *fcs; /* FCS instance */ member
293 struct bfa_fcs_lport_s *bfa_fcs_get_base_port(struct bfa_fcs_s *fcs);
299 struct bfa_fcs_lport_s *bfa_fcs_lookup_port(struct bfa_fcs_s *fcs,
324 void bfa_fcs_lport_attach(struct bfa_fcs_lport_s *lport, struct bfa_fcs_s *fcs,
377 struct bfa_fcs_s *fcs, u16 vf_id,
381 struct bfa_fcs_s *fcs, u16 vf_id,
390 struct bfa_fcs_vport_s *bfa_fcs_vport_lookup(struct bfa_fcs_s *fcs,
432 struct bfa_fcs_s *fcs; /* fcs instance */ member
[all …]
Dbfa_modules.h122 bfa_boolean_t fcs; /* FCS is attached to BFA */ member
Dbfa_svc.c89 if ((__rp)->bfa->fcs) \
98 if ((__rp)->bfa->fcs) \
1815 if (!lps->bfa->fcs) { in bfa_lps_login_comp()
1850 if (!lps->bfa->fcs) { in bfa_lps_logout_comp()
1882 if (!lps->bfa->fcs) { in bfa_lps_cvl_event()
3004 if (fcport->bfa->fcs) { in bfa_fcport_queue_cb()
5523 if (bfa->fcs) in uf_recv()
/drivers/usb/serial/
Dsafe_serial.c187 #define CRC10_FCS(fcs, c) ((((fcs) << 8) & 0x3ff) ^ crc10_table[((fcs) >> 2) & 0xff] ^ (c)) argument
198 static __u16 __inline__ fcs_compute10(unsigned char *sp, int len, __u16 fcs) in fcs_compute10() argument
200 for (; len-- > 0; fcs = CRC10_FCS(fcs, *sp++)); in fcs_compute10()
201 return fcs; in fcs_compute10()
210 __u16 fcs; in safe_process_read_urb() local
218 fcs = fcs_compute10(data, length, CRC10_INITFCS); in safe_process_read_urb()
219 if (fcs) { in safe_process_read_urb()
220 dev_err(&port->dev, "%s - bad CRC %x\n", __func__, fcs); in safe_process_read_urb()
244 __u16 fcs; in safe_prepare_write_buffer() local
266 fcs = fcs_compute10(buf, pkt_len, CRC10_INITFCS); in safe_prepare_write_buffer()
[all …]
/drivers/net/ppp/
Dppp_async.c535 int fcs, i, count, c, proto; in ppp_async_encode() local
546 fcs = ap->tfcs; in ppp_async_encode()
568 fcs = PPP_INITFCS; in ppp_async_encode()
575 fcs = PPP_FCS(fcs, 0xff); in ppp_async_encode()
577 fcs = PPP_FCS(fcs, 0x03); in ppp_async_encode()
591 fcs = PPP_FCS(fcs, c); in ppp_async_encode()
601 ap->tfcs = fcs; in ppp_async_encode()
608 fcs = ~fcs; in ppp_async_encode()
609 c = fcs & 0xff; in ppp_async_encode()
611 c = (fcs >> 8) & 0xff; in ppp_async_encode()
[all …]
/drivers/net/irda/
Dmcs7780.c342 __u32 fcs = ~(crc32_le(~0, skb->data, skb->len)); in mcs_wrap_fir_skb() local
356 buf[len - 4] = fcs & 0xff; in mcs_wrap_fir_skb()
357 buf[len - 3] = (fcs >> 8) & 0xff; in mcs_wrap_fir_skb()
358 buf[len - 2] = (fcs >> 16) & 0xff; in mcs_wrap_fir_skb()
359 buf[len - 1] = (fcs >> 24) & 0xff; in mcs_wrap_fir_skb()
367 __u16 fcs = 0; in mcs_wrap_mir_skb() local
370 fcs = ~(irda_calc_crc16(~fcs, skb->data, skb->len)); in mcs_wrap_mir_skb()
380 buf[len - 2] = fcs & 0xff; in mcs_wrap_mir_skb()
381 buf[len - 1] = (fcs >> 8) & 0xff; in mcs_wrap_mir_skb()
393 __u16 fcs; in mcs_unwrap_mir() local
[all …]
Dstir4200.c258 __u32 fcs = ~(crc32_le(~0, skb->data, skb->len)); in wrap_fir_skb() local
279 ptr = stuff_fir(ptr, fcs & 0xff); in wrap_fir_skb()
280 ptr = stuff_fir(ptr, (fcs >> 8) & 0xff); in wrap_fir_skb()
281 ptr = stuff_fir(ptr, (fcs >> 16) & 0xff); in wrap_fir_skb()
282 ptr = stuff_fir(ptr, (fcs >> 24) & 0xff); in wrap_fir_skb()
320 __u32 fcs; in fir_eof() local
331 fcs = ~(crc32_le(~0, rx_buff->data, len)); in fir_eof()
332 if (fcs != get_unaligned_le32(rx_buff->data + len)) { in fir_eof()
333 pr_debug("crc error calc 0x%x len %d\n", fcs, len); in fir_eof()
Ddonauboe.c213 fcs; in toshoboe_checkfcs() local
215 fcs.value = INIT_FCS; in toshoboe_checkfcs()
218 fcs.value = irda_fcs (fcs.value, *(buf++)); in toshoboe_checkfcs()
220 return fcs.value == GOOD_FCS; in toshoboe_checkfcs()
757 fcs; in toshoboe_maketestpacket() local
765 fcs.value = INIT_FCS; in toshoboe_maketestpacket()
774 fcs.value = irda_fcs (fcs.value, i); in toshoboe_maketestpacket()
777 len += stuff_byte (fcs.bytes[0] ^ badcrc, buf + len); in toshoboe_maketestpacket()
778 len += stuff_byte (fcs.bytes[1] ^ badcrc, buf + len); in toshoboe_maketestpacket()
/drivers/isdn/gigaset/
Dasyncdata.c143 __u16 fcs = bcs->rx_fcs; in hdlc_loop() local
214 } else if (fcs != PPP_GOODFCS) { in hdlc_loop()
242 fcs = PPP_INITFCS; in hdlc_loop()
268 fcs = crc_ccitt_byte(fcs, c); in hdlc_loop()
274 bcs->rx_fcs = fcs; in hdlc_loop()
461 __u16 fcs; in HDLC_Encode() local
468 fcs = PPP_INITFCS; in HDLC_Encode()
474 fcs = crc_ccitt_byte(fcs, *cp++); in HDLC_Encode()
476 fcs ^= 0xffff; /* complement */ in HDLC_Encode()
507 c = (fcs & 0x00ff); /* least significant byte first */ in HDLC_Encode()
[all …]
Disocdata.c401 u16 fcs; in hdlc_buildframe() local
415 fcs = PPP_INITFCS; in hdlc_buildframe()
420 fcs = crc_ccitt_byte(fcs, c); in hdlc_buildframe()
425 fcs ^= 0xffff; in hdlc_buildframe()
426 ones = hdlc_bitstuff_byte(iwb, fcs & 0x00ff, ones); in hdlc_buildframe()
427 ones = hdlc_bitstuff_byte(iwb, (fcs >> 8) & 0x00ff, ones); in hdlc_buildframe()
/drivers/net/usb/
Dzaurus.c74 u32 fcs; in zaurus_tx_fixup() local
76 fcs = crc32_le(~0, skb->data, skb->len); in zaurus_tx_fixup()
77 fcs = ~fcs; in zaurus_tx_fixup()
79 *skb_put (skb, 1) = fcs & 0xff; in zaurus_tx_fixup()
80 *skb_put (skb, 1) = (fcs>> 8) & 0xff; in zaurus_tx_fixup()
81 *skb_put (skb, 1) = (fcs>>16) & 0xff; in zaurus_tx_fixup()
82 *skb_put (skb, 1) = (fcs>>24) & 0xff; in zaurus_tx_fixup()
/drivers/tty/
Dn_gsm.c225 u8 fcs; member
382 static inline u8 gsm_fcs_add(u8 fcs, u8 c) in gsm_fcs_add() argument
384 return gsm_fcs8[fcs ^ c]; in gsm_fcs_add()
397 static inline u8 gsm_fcs_add_block(u8 fcs, u8 *c, int len) in gsm_fcs_add_block() argument
400 fcs = gsm_fcs8[fcs ^ *c++]; in gsm_fcs_add_block()
401 return fcs; in gsm_fcs_add_block()
735 u8 *fcs = dp + msg->len; in __gsm_data_queue() local
752 *fcs = gsm_fcs_add_block(INIT_FCS, dp , msg->data - dp); in __gsm_data_queue()
755 *fcs = gsm_fcs_add_block(*fcs, msg->data, msg->len); in __gsm_data_queue()
756 *fcs = 0xFF - *fcs; in __gsm_data_queue()
[all …]
/drivers/scsi/megaraid/
Dmegaraid_mm.c256 adapno = GETADAP(mimd.ui.fcs.adapno); in mraid_mm_get_adapter()
307 opcode = kmimd.ui.fcs.opcode; in handle_drvrcmd()
308 subopcode = kmimd.ui.fcs.subopcode; in handle_drvrcmd()
378 opcode = mimd.ui.fcs.opcode; in mimd_to_kioc()
379 subopcode = mimd.ui.fcs.subopcode; in mimd_to_kioc()
380 adapno = GETADAP(mimd.ui.fcs.adapno); in mimd_to_kioc()
413 kioc->xferlen = mimd.ui.fcs.length; in mimd_to_kioc()
415 kioc->user_data = mimd.ui.fcs.buffer; in mimd_to_kioc()
818 opcode = kmimd.ui.fcs.opcode; in kioc_to_mimd()
819 subopcode = kmimd.ui.fcs.subopcode; in kioc_to_mimd()
Dmegaraid_mm.h83 } __attribute__ ((packed)) fcs; member
/drivers/isdn/hisax/
Dnetjet.c224 u_int fcs; in make_raw_data() local
231 fcs = PPP_INITFCS; in make_raw_data()
234 fcs = PPP_FCS(fcs, val); in make_raw_data()
237 fcs ^= 0xffff; in make_raw_data()
238 val = fcs & 0xff; in make_raw_data()
240 val = (fcs >> 8) & 0xff; in make_raw_data()
314 u_int fcs; in make_raw_data_56k() local
336 fcs = PPP_INITFCS; in make_raw_data_56k()
339 fcs = PPP_FCS(fcs, val); in make_raw_data_56k()
342 fcs ^= 0xffff; in make_raw_data_56k()
[all …]
/drivers/bluetooth/
Dbt3c_cs.c473 unsigned int iobase, size, addr, fcs, tmp; in bt3c_load_firmware() local
506 fcs = simple_strtoul(b, NULL, 16); in bt3c_load_firmware()
514 if (((tmp + fcs) & 0xff) != 0xff) { in bt3c_load_firmware()
/drivers/net/vmxnet3/
Dvmxnet3_defs.h256 u32 fcs:1; /* Frame CRC correct */ member
274 u32 fcs:1; /* Frame CRC correct */ member
/drivers/net/ethernet/adi/
Dbfin_mac.c1221 unsigned char fcs[ETH_FCS_LEN + 1]; in bfin_mac_rx() local
1277 fcs[0] = 0; in bfin_mac_rx()
1279 fcs[i + 1] = ~skb->data[skb->len + i]; in bfin_mac_rx()
1280 skb->csum = csum_partial(fcs, ETH_FCS_LEN + 1, skb->csum); in bfin_mac_rx()
1283 fcs[i] = ~skb->data[skb->len + i]; in bfin_mac_rx()
1284 skb->csum = csum_partial(fcs, ETH_FCS_LEN, skb->csum); in bfin_mac_rx()
/drivers/net/ethernet/amd/
Dnmclan_cs.c335 int fcs; member
1091 lp->mace_stats.fcs++; in mace_rx()
1187 pstats->fram, pstats->fcs); in pr_mace_stats()
1251 lp->linux_stats.rx_crc_errors = lp->mace_stats.fcs; in update_stats()
/drivers/scsi/
Dmegaraid.c3497 opcode = uioc_mimd.ui.fcs.opcode; in mega_m_to_n()
3498 subopcode = uioc_mimd.ui.fcs.subopcode; in mega_m_to_n()
3517 uioc->adapno = uioc_mimd.ui.fcs.adapno; in mega_m_to_n()
3531 uioc->adapno = uioc_mimd.ui.fcs.adapno; in mega_m_to_n()
3535 uioc->xferlen = uioc_mimd.ui.fcs.length; in mega_m_to_n()
3545 uioc->adapno = uioc_mimd.ui.fcs.adapno; in mega_m_to_n()
Dmegaraid.h485 } __attribute__ ((packed)) fcs; member

12