Home
last modified time | relevance | path

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

12

/drivers/scsi/bfa/
Dbfa_fcs.c29 struct bfa_fcs_s *fcs = fcs_cbarg; in bfa_fcs_exit_comp() local
30 struct bfad_s *bfad = fcs->bfad; in bfa_fcs_exit_comp()
39 bfa_fcs_init(struct bfa_fcs_s *fcs) in bfa_fcs_init() argument
41 bfa_sm_send_event(&fcs->fabric, BFA_FCS_FABRIC_SM_CREATE); in bfa_fcs_init()
42 bfa_trc(fcs, 0); in bfa_fcs_init()
54 bfa_fcs_update_cfg(struct bfa_fcs_s *fcs) in bfa_fcs_update_cfg() argument
56 struct bfa_fcs_fabric_s *fabric = &fcs->fabric; in bfa_fcs_update_cfg()
58 struct bfa_ioc_s *ioc = &fabric->fcs->bfa->ioc; in bfa_fcs_update_cfg()
68 bfa_fcs_stop(struct bfa_fcs_s *fcs) in bfa_fcs_stop() argument
70 bfa_wc_init(&fcs->wc, bfa_fcs_exit_comp, fcs); in bfa_fcs_stop()
[all …]
Dbfa_fcs_rport.c173 bfa_trc(rport->fcs, rport->pwwn); in bfa_fcs_rport_sm_uninit()
174 bfa_trc(rport->fcs, rport->pid); in bfa_fcs_rport_sm_uninit()
175 bfa_trc(rport->fcs, event); in bfa_fcs_rport_sm_uninit()
201 bfa_sm_fault(rport->fcs, event); in bfa_fcs_rport_sm_uninit()
212 bfa_trc(rport->fcs, rport->pwwn); in bfa_fcs_rport_sm_plogi_sending()
213 bfa_trc(rport->fcs, rport->pid); in bfa_fcs_rport_sm_plogi_sending()
214 bfa_trc(rport->fcs, event); in bfa_fcs_rport_sm_plogi_sending()
223 bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); in bfa_fcs_rport_sm_plogi_sending()
229 bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); in bfa_fcs_rport_sm_plogi_sending()
235 bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); in bfa_fcs_rport_sm_plogi_sending()
[all …]
Dbfa_fcs_lport.c137 bfa_trc(port->fcs, port->port_cfg.pwwn); in bfa_fcs_lport_sm_uninit()
138 bfa_trc(port->fcs, event); in bfa_fcs_lport_sm_uninit()
146 bfa_sm_fault(port->fcs, event); in bfa_fcs_lport_sm_uninit()
154 bfa_trc(port->fcs, port->port_cfg.pwwn); in bfa_fcs_lport_sm_init()
155 bfa_trc(port->fcs, event); in bfa_fcs_lport_sm_init()
180 bfa_sm_fault(port->fcs, event); in bfa_fcs_lport_sm_init()
192 bfa_trc(port->fcs, port->port_cfg.pwwn); in bfa_fcs_lport_sm_online()
193 bfa_trc(port->fcs, event); in bfa_fcs_lport_sm_online()
240 bfa_sm_fault(port->fcs, event); in bfa_fcs_lport_sm_online()
252 bfa_trc(port->fcs, port->port_cfg.pwwn); in bfa_fcs_lport_sm_offline()
[all …]
Dbfa_fcs_fcpim.c74 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_offline()
75 bfa_trc(itnim->fcs, event); in bfa_fcs_itnim_sm_offline()
97 bfa_sm_fault(itnim->fcs, event); in bfa_fcs_itnim_sm_offline()
106 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_prli_send()
107 bfa_trc(itnim->fcs, event); in bfa_fcs_itnim_sm_prli_send()
116 bfa_fcxp_walloc_cancel(itnim->fcs->bfa, &itnim->fcxp_wqe); in bfa_fcs_itnim_sm_prli_send()
122 bfa_fcxp_walloc_cancel(itnim->fcs->bfa, &itnim->fcxp_wqe); in bfa_fcs_itnim_sm_prli_send()
128 bfa_fcxp_walloc_cancel(itnim->fcs->bfa, &itnim->fcxp_wqe); in bfa_fcs_itnim_sm_prli_send()
133 bfa_sm_fault(itnim->fcs, event); in bfa_fcs_itnim_sm_prli_send()
141 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_prli()
[all …]
Dbfa_fcs.h145 struct bfa_fcs_s *fcs; /* FCS instance */ member
154 #define BFA_FCS_GET_HAL_FROM_PORT(port) (port->fcs->bfa)
178 struct bfa_fcs_s *fcs; /* FCS instance */ member
280 struct bfa_fcs_lport_s *bfa_fcs_get_base_port(struct bfa_fcs_s *fcs);
286 struct bfa_fcs_lport_s *bfa_fcs_lookup_port(struct bfa_fcs_s *fcs,
312 void bfa_fcs_lport_attach(struct bfa_fcs_lport_s *lport, struct bfa_fcs_s *fcs,
365 struct bfa_fcs_s *fcs, u16 vf_id,
369 struct bfa_fcs_s *fcs, u16 vf_id,
378 struct bfa_fcs_vport_s *bfa_fcs_vport_lookup(struct bfa_fcs_s *fcs,
420 struct bfa_fcs_s *fcs; /* fcs instance */ member
[all …]
Dbfa_modules.h69 bfa_boolean_t fcs; /* FCS is attached to BFA */ member
Dbfa_svc.c77 if ((__rp)->bfa->fcs) \
86 if ((__rp)->bfa->fcs) \
1747 if (!lps->bfa->fcs) { in bfa_lps_login_comp()
1782 if (!lps->bfa->fcs) { in bfa_lps_logout_comp()
1814 if (!lps->bfa->fcs) { in bfa_lps_cvl_event()
2973 if (fcport->bfa->fcs) { in bfa_fcport_queue_cb()
5539 if (bfa->fcs) in uf_recv()
Dbfa_fcpim.c36 if ((__itnim)->bfa->fcs) \
45 if ((__itnim)->bfa->fcs) \
54 if ((__itnim)->bfa->fcs) \
/drivers/usb/serial/
Dsafe_serial.c168 #define CRC10_FCS(fcs, c) ((((fcs) << 8) & 0x3ff) ^ crc10_table[((fcs) >> 2) & 0xff] ^ (c)) argument
179 static inline __u16 fcs_compute10(unsigned char *sp, int len, __u16 fcs) in fcs_compute10() argument
181 for (; len-- > 0; fcs = CRC10_FCS(fcs, *sp++)); in fcs_compute10()
182 return fcs; in fcs_compute10()
191 __u16 fcs; in safe_process_read_urb() local
204 fcs = fcs_compute10(data, length, CRC10_INITFCS); in safe_process_read_urb()
205 if (fcs) { in safe_process_read_urb()
206 dev_err(&port->dev, "%s - bad CRC %x\n", __func__, fcs); in safe_process_read_urb()
230 __u16 fcs; in safe_prepare_write_buffer() local
252 fcs = fcs_compute10(buf, pkt_len, CRC10_INITFCS); in safe_prepare_write_buffer()
[all …]
/drivers/net/ppp/
Dppp_async.c534 int fcs, i, count, c, proto; in ppp_async_encode() local
545 fcs = ap->tfcs; in ppp_async_encode()
567 fcs = PPP_INITFCS; in ppp_async_encode()
574 fcs = PPP_FCS(fcs, 0xff); in ppp_async_encode()
576 fcs = PPP_FCS(fcs, 0x03); in ppp_async_encode()
590 fcs = PPP_FCS(fcs, c); in ppp_async_encode()
600 ap->tfcs = fcs; in ppp_async_encode()
607 fcs = ~fcs; in ppp_async_encode()
608 c = fcs & 0xff; in ppp_async_encode()
610 c = (fcs >> 8) & 0xff; in ppp_async_encode()
[all …]
/drivers/net/usb/
Dzaurus.c60 u32 fcs; in zaurus_tx_fixup() local
62 fcs = crc32_le(~0, skb->data, skb->len); in zaurus_tx_fixup()
63 fcs = ~fcs; in zaurus_tx_fixup()
65 skb_put_u8(skb, fcs & 0xff); in zaurus_tx_fixup()
66 skb_put_u8(skb, (fcs >> 8) & 0xff); in zaurus_tx_fixup()
67 skb_put_u8(skb, (fcs >> 16) & 0xff); in zaurus_tx_fixup()
68 skb_put_u8(skb, (fcs >> 24) & 0xff); in zaurus_tx_fixup()
/drivers/tty/
Dn_gsm.c251 u8 fcs; member
417 static inline u8 gsm_fcs_add(u8 fcs, u8 c) in gsm_fcs_add() argument
419 return gsm_fcs8[fcs ^ c]; in gsm_fcs_add()
432 static inline u8 gsm_fcs_add_block(u8 fcs, u8 *c, int len) in gsm_fcs_add_block() argument
435 fcs = gsm_fcs8[fcs ^ *c++]; in gsm_fcs_add_block()
436 return fcs; in gsm_fcs_add_block()
985 u8 *fcs = dp + msg->len; in __gsm_data_queue() local
1002 *fcs = gsm_fcs_add_block(INIT_FCS, dp , msg->data - dp); in __gsm_data_queue()
1005 *fcs = gsm_fcs_add_block(*fcs, msg->data, msg->len); in __gsm_data_queue()
1006 *fcs = 0xFF - *fcs; in __gsm_data_queue()
[all …]
/drivers/scsi/megaraid/
Dmegaraid_mm.c248 adapno = GETADAP(mimd.ui.fcs.adapno); in mraid_mm_get_adapter()
303 opcode = kmimd.ui.fcs.opcode; in handle_drvrcmd()
304 subopcode = kmimd.ui.fcs.subopcode; in handle_drvrcmd()
374 opcode = mimd.ui.fcs.opcode; in mimd_to_kioc()
375 subopcode = mimd.ui.fcs.subopcode; in mimd_to_kioc()
376 adapno = GETADAP(mimd.ui.fcs.adapno); in mimd_to_kioc()
409 kioc->xferlen = mimd.ui.fcs.length; in mimd_to_kioc()
411 kioc->user_data = mimd.ui.fcs.buffer; in mimd_to_kioc()
820 opcode = kmimd.ui.fcs.opcode; in kioc_to_mimd()
821 subopcode = kmimd.ui.fcs.subopcode; in kioc_to_mimd()
Dmegaraid_mm.h79 } __attribute__ ((packed)) fcs; member
/drivers/net/vmxnet3/
Dvmxnet3_defs.h298 u32 fcs:1; /* Frame CRC correct */ member
316 u32 fcs:1; /* Frame CRC correct */ member
331 u32 fcs:1; /* Frame CRC correct */ member
349 u32 fcs:1; /* Frame CRC correct */ member
/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_counters.c532 struct mlx5_fc fcs[]; member
559 bulk = kvzalloc(struct_size(bulk, fcs, bulk_len), GFP_KERNEL); in mlx5_fc_bulk_create()
575 mlx5_fc_init(&bulk->fcs[i], bulk, base_id + i); in mlx5_fc_bulk_create()
612 return &bulk->fcs[free_fc_index]; in mlx5_fc_bulk_acquire_fc()
/drivers/bluetooth/
Dbt3c_cs.c452 unsigned long size, addr, fcs; in bt3c_load_firmware() local
487 if (kstrtoul(b, 16, &fcs) < 0) in bt3c_load_firmware()
498 if (((tmp + fcs) & 0xff) != 0xff) { in bt3c_load_firmware()
/drivers/net/ethernet/amd/
Dnmclan_cs.c332 int fcs; member
1088 lp->mace_stats.fcs++; in mace_rx()
1184 pstats->fram, pstats->fcs); in pr_mace_stats()
1248 dev->stats.rx_crc_errors = lp->mace_stats.fcs; in update_stats()
/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.h97 u32 fcs; /* RO # of Received FCS error */ member
122 u32 fcs; /* RO # of xmited FCS error count */ member
/drivers/net/ethernet/broadcom/
Dbcmsysport.h516 u32 fcs; /* RO # of Received FCS error */ member
541 u32 fcs; /* RO # of xmited FCS error count */ member
/drivers/scsi/
Dmegaraid.c3422 opcode = uioc_mimd.ui.fcs.opcode; in mega_m_to_n()
3423 subopcode = uioc_mimd.ui.fcs.subopcode; in mega_m_to_n()
3442 uioc->adapno = uioc_mimd.ui.fcs.adapno; in mega_m_to_n()
3456 uioc->adapno = uioc_mimd.ui.fcs.adapno; in mega_m_to_n()
3460 uioc->xferlen = uioc_mimd.ui.fcs.length; in mega_m_to_n()
3470 uioc->adapno = uioc_mimd.ui.fcs.adapno; in mega_m_to_n()
Dmegaraid.h487 } __attribute__ ((packed)) fcs; member
/drivers/net/wireless/st/cw1200/
Dwsm.h1355 bool fcs; member
1367 if (arg->fcs) in wsm_set_rx_filter()
Ddebug.c131 else if (priv->rx_filter.fcs) in cw1200_status_show()
/drivers/net/ethernet/cadence/
Dmacb_main.c2207 u32 fcs; in macb_pad_and_fcs() local
2240 fcs = crc32_le(~0, (*skb)->data, (*skb)->len); in macb_pad_and_fcs()
2241 fcs = ~fcs; in macb_pad_and_fcs()
2243 skb_put_u8(*skb, fcs & 0xff); in macb_pad_and_fcs()
2244 skb_put_u8(*skb, (fcs >> 8) & 0xff); in macb_pad_and_fcs()
2245 skb_put_u8(*skb, (fcs >> 16) & 0xff); in macb_pad_and_fcs()
2246 skb_put_u8(*skb, (fcs >> 24) & 0xff); in macb_pad_and_fcs()

12