Home
last modified time | relevance | path

Searched refs:smc (Results 1 – 25 of 33) sorted by relevance

12

/drivers/net/fddi/skfp/
Drmt.c60 #define GO_STATE(x) (smc->mib.m[MAC0].fddiMACRMTState = (x)|AFLAG)
61 #define ACTIONS_DONE() (smc->mib.m[MAC0].fddiMACRMTState &= ~AFLAG)
105 static void rmt_fsm(struct s_smc *smc, int cmd);
106 static void start_rmt_timer0(struct s_smc *smc, u_long value, int event);
107 static void start_rmt_timer1(struct s_smc *smc, u_long value, int event);
108 static void start_rmt_timer2(struct s_smc *smc, u_long value, int event);
109 static void stop_rmt_timer0(struct s_smc *smc);
110 static void stop_rmt_timer1(struct s_smc *smc);
111 static void stop_rmt_timer2(struct s_smc *smc);
112 static void rmt_dup_actions(struct s_smc *smc);
[all …]
Dcfm.c51 #define GO_STATE(x) (smc->mib.fddiSMTCF_State = (x)|AFLAG)
52 #define ACTIONS_DONE() (smc->mib.fddiSMTCF_State &= ~AFLAG)
99 static void cfm_fsm(struct s_smc *smc, int cmd);
105 void cfm_init(struct s_smc *smc) in cfm_init() argument
107 smc->mib.fddiSMTCF_State = ACTIONS(SC0_ISOLATED) ; in cfm_init()
108 smc->r.rm_join = 0 ; in cfm_init()
109 smc->r.rm_loop = 0 ; in cfm_init()
110 smc->y[PA].scrub = 0 ; in cfm_init()
111 smc->y[PB].scrub = 0 ; in cfm_init()
112 smc->y[PA].cem_pst = CEM_PST_DOWN ; in cfm_init()
[all …]
Decm.c56 #define GO_STATE(x) (smc->mib.fddiSMTECMState = (x)|AFLAG)
57 #define ACTIONS_DONE() (smc->mib.fddiSMTECMState &= ~AFLAG)
97 static void ecm_fsm(struct s_smc *smc, int cmd);
98 static void start_ecm_timer(struct s_smc *smc, u_long value, int event);
99 static void stop_ecm_timer(struct s_smc *smc);
100 static void prop_actions(struct s_smc *smc);
106 void ecm_init(struct s_smc *smc) in ecm_init() argument
108 smc->e.path_test = PT_PASSED ; in ecm_init()
109 smc->e.trace_prop = 0 ; in ecm_init()
110 smc->e.sb_flag = 0 ; in ecm_init()
[all …]
Dfplustm.c46 static void build_claim_beacon(struct s_smc *smc, u_long t_request);
47 static int init_mac(struct s_smc *smc, int all);
48 static void rtm_init(struct s_smc *smc);
49 static void smt_split_up_fifo(struct s_smc *smc);
56 #define DUMMY_READ() smc->hw.mc_dummy = (u_short) inp(ADDR(B0_RAP))
61 SMT_PANIC(smc,SMT_E0130, SMT_E0130_MSG) ; \
68 SMT_PANIC(smc,SMT_E0131, SMT_E0131_MSG) ; \
83 #define MA smc->hw.fddi_canon_addr
85 #define MA smc->hw.fddi_home_addr
110 static u_long mac_get_tneg(struct s_smc *smc) in mac_get_tneg() argument
[all …]
Dsmt.c63 static int mac_index(struct s_smc *smc, int mac);
64 static int phy_index(struct s_smc *smc, int phy);
65 static int mac_con_resource_index(struct s_smc *smc, int mac);
66 static int phy_con_resource_index(struct s_smc *smc, int phy);
67 static void smt_send_rdf(struct s_smc *smc, SMbuf *rej, int fc, int reason,
69 static void smt_send_nif(struct s_smc *smc, const struct fddi_addr *dest,
71 static void smt_send_ecf(struct s_smc *smc, struct fddi_addr *dest, int fc,
73 static void smt_echo_test(struct s_smc *smc, int dna);
74 static void smt_send_sif_config(struct s_smc *smc, struct fddi_addr *dest,
76 static void smt_send_sif_operation(struct s_smc *smc, struct fddi_addr *dest,
[all …]
Dhwmtm.c78 static void queue_llc_rx(struct s_smc *smc, SMbuf *mb);
79 static void smt_to_llc(struct s_smc *smc, SMbuf *mb);
80 static void init_txd_ring(struct s_smc *smc);
81 static void init_rxd_ring(struct s_smc *smc);
82 static void queue_txd_mb(struct s_smc *smc, SMbuf *mb);
83 static u_long init_descr_ring(struct s_smc *smc, union s_fp_descr volatile *start,
85 static u_long repair_txd_ring(struct s_smc *smc, struct s_smt_tx_queue *queue);
86 static u_long repair_rxd_ring(struct s_smc *smc, struct s_smt_rx_queue *queue);
87 static SMbuf* get_llc_rx(struct s_smc *smc);
88 static SMbuf* get_txd_mb(struct s_smc *smc);
[all …]
Dsrf.c41 static void clear_all_rep(struct s_smc *smc);
42 static void clear_reported(struct s_smc *smc);
43 static void smt_send_srf(struct s_smc *smc);
44 static struct s_srf_evc *smt_get_evc(struct s_smc *smc, int code, int index);
46 #define MAX_EVCS ARRAY_SIZE(smc->evcs)
72 void smt_init_evc(struct s_smc *smc) in smt_init_evc() argument
82 memset((char *)smc->evcs,0,sizeof(smc->evcs)) ; in smt_init_evc()
84 evc = smc->evcs ; in smt_init_evc()
101 if ((unsigned) (evc - smc->evcs) > MAX_EVCS) { in smt_init_evc()
102 SMT_PANIC(smc,SMT_E0127, SMT_E0127_MSG) ; in smt_init_evc()
[all …]
Ddrvfbi.c67 #define OEMID(smc,i) oem_id[ID_BYTE0 + i] argument
73 #define OEMID(smc,i) smc->hw.oem_id->oi_id[i] argument
83 static void smt_stop_watchdog(struct s_smc *smc);
88 static void card_start(struct s_smc *smc) in card_start() argument
96 smt_stop_watchdog(smc) ; in card_start()
104 hwt_wait_time(smc,hwt_quick_read(smc),MS2BCLK(10)) ; in card_start()
136 smc->hw.hw_is_64bit = TRUE ; in card_start()
138 smc->hw.hw_is_64bit = FALSE ; in card_start()
144 if (!smc->hw.hw_is_64bit) { in card_start()
157 smc->hw.is_imask = ISR_MASK ; in card_start()
[all …]
Dess.c83 static void ess_send_response(struct s_smc *smc, struct smt_header *sm,
85 static void ess_config_fifo(struct s_smc *smc);
86 static void ess_send_alc_req(struct s_smc *smc);
87 static void ess_send_frame(struct s_smc *smc, SMbuf *mb);
101 void ess_timer_poll(struct s_smc *smc);
102 void ess_para_change(struct s_smc *smc);
103 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm,
105 static int process_bw_alloc(struct s_smc *smc, long int payload, long int overhead);
117 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm, in ess_raf_received_pack() argument
136 if (!(p = (void *) sm_to_para(smc,sm,SMT_P0015))) { in ess_raf_received_pack()
[all …]
Dqueue.c34 void ev_init(struct s_smc *smc) in ev_init() argument
36 smc->q.ev_put = smc->q.ev_get = smc->q.ev_queue ; in ev_init()
42 void queue_event(struct s_smc *smc, int class, int event) in queue_event() argument
45 smc->q.ev_put->class = class ; in queue_event()
46 smc->q.ev_put->event = event ; in queue_event()
47 if (++smc->q.ev_put == &smc->q.ev_queue[MAX_EVENT]) in queue_event()
48 smc->q.ev_put = smc->q.ev_queue ; in queue_event()
50 if (smc->q.ev_put == smc->q.ev_get) { in queue_event()
51 SMT_ERR_LOG(smc,SMT_E0137, SMT_E0137_MSG) ; in queue_event()
58 void timer_event(struct s_smc *smc, u_long token) in timer_event() argument
[all …]
Dsmtinit.c30 void init_fddi_driver(struct s_smc *smc, u_char *mac_addr);
38 #define OEMID(smc,i) oem_id[i] argument
41 #define OEMID(smc,i) smc->hw.oem_id->oi_mark[i] argument
51 static void set_oem_spec_val(struct s_smc *smc) in set_oem_spec_val() argument
55 mib = &smc->mib ; in set_oem_spec_val()
60 if (OEMID(smc,0) == 'I') { in set_oem_spec_val()
68 int init_smt(struct s_smc *smc, u_char *mac_addr) in init_smt() argument
92 smc->y[p].mib = & smc->mib.p[p] ; in init_smt()
95 set_oem_spec_val(smc) ; in init_smt()
96 (void) smt_set_mac_opvalues(smc) ; in init_smt()
[all …]
Dsmttimer.c29 static void timer_done(struct s_smc *smc, int restart);
31 void smt_timer_init(struct s_smc *smc) in smt_timer_init() argument
33 smc->t.st_queue = NULL; in smt_timer_init()
34 smc->t.st_fast.tm_active = FALSE ; in smt_timer_init()
35 smc->t.st_fast.tm_next = NULL; in smt_timer_init()
36 hwt_init(smc) ; in smt_timer_init()
39 void smt_timer_stop(struct s_smc *smc, struct smt_timer *timer) in smt_timer_stop() argument
48 if (smc->t.st_queue == timer && !timer->tm_next) { in smt_timer_stop()
49 hwt_stop(smc) ; in smt_timer_stop()
51 for (prev = &smc->t.st_queue ; (tm = *prev) ; prev = &tm->tm_next ) { in smt_timer_stop()
[all …]
Dhwt.c63 void hwt_start(struct s_smc *smc, u_long time) in hwt_start() argument
70 smc->hw.t_start = time ; in hwt_start()
71 smc->hw.t_stop = 0L ; in hwt_start()
84 smc->hw.timer_activ = TRUE ; in hwt_start()
101 void hwt_stop(struct s_smc *smc) in hwt_stop() argument
106 smc->hw.timer_activ = FALSE ; in hwt_stop()
123 void hwt_init(struct s_smc *smc) in hwt_init() argument
125 smc->hw.t_start = 0 ; in hwt_init()
126 smc->hw.t_stop = 0 ; in hwt_init()
127 smc->hw.timer_activ = FALSE ; in hwt_init()
[all …]
Dpcmplc.c60 struct s_smc * smc, int type, int index
67 struct s_smc *smc ,
202 static void pcm_fsm(struct s_smc *smc, struct s_phy *phy, int cmd);
203 static void pc_rcode_actions(struct s_smc *smc, int bit, struct s_phy *phy);
204 static void pc_tcode_actions(struct s_smc *smc, const int bit, struct s_phy *phy);
206 static void plc_init(struct s_smc *smc, int p);
207 static void sm_ph_lem_start(struct s_smc *smc, int np, int threshold);
208 static void sm_ph_lem_stop(struct s_smc *smc, int np);
209 static void sm_ph_linestate(struct s_smc *smc, int phy, int ls);
210 static void real_init_plc(struct s_smc *smc);
[all …]
Dskfddi.c113 static void send_queued_packets(struct s_smc *smc);
115 static void ResetAdapter(struct s_smc *smc);
119 void *mac_drv_get_space(struct s_smc *smc, u_int size);
120 void *mac_drv_get_desc_mem(struct s_smc *smc, u_int size);
121 unsigned long mac_drv_virt2phys(struct s_smc *smc, void *virt);
122 unsigned long dma_master(struct s_smc *smc, void *virt, int len, int flag);
123 void dma_complete(struct s_smc *smc, volatile union s_fp_descr *descr,
125 void mac_drv_tx_complete(struct s_smc *smc, volatile struct s_smt_fp_txd *txd);
126 void llc_restart_tx(struct s_smc *smc);
127 void mac_drv_rx_complete(struct s_smc *smc, volatile struct s_smt_fp_rxd *rxd,
[all …]
Dsmtdef.c75 void smt_reset_defaults(struct s_smc *smc, int level);
76 static void smt_init_mib(struct s_smc *smc, int level);
82 void smt_reset_defaults(struct s_smc *smc, int level) in smt_reset_defaults() argument
89 smt_init_mib(smc,level) ; in smt_reset_defaults()
91 smc->os.smc_version = SMC_VERSION ; in smt_reset_defaults()
94 smc->sm.last_tok_time[i] = smt_boot_time ; in smt_reset_defaults()
95 smt = &smc->s ; in smt_reset_defaults()
133 smc->ess.sync_bw_available = FALSE ; in smt_reset_defaults()
134 smc->mib.fddiESSPayload = 0 ; in smt_reset_defaults()
135 smc->mib.fddiESSOverhead = 0 ; in smt_reset_defaults()
[all …]
Dpmf.c35 static int smt_authorize(struct s_smc *smc, struct smt_header *sm);
36 static int smt_check_set_count(struct s_smc *smc, struct smt_header *sm);
38 static int smt_mib_phys(struct s_smc *smc);
39 static int smt_set_para(struct s_smc *smc, struct smt_para *pa, int index,
41 void smt_add_para(struct s_smc *smc, struct s_pcon *pcon, u_short para,
43 static SMbuf *smt_build_pmf_response(struct s_smc *smc, struct smt_header *req,
45 static int port_to_mib(struct s_smc *smc, int p);
281 void smt_pmf_received_pack(struct s_smc *smc, SMbuf *mb, int local) in smt_pmf_received_pack() argument
289 dump_smt(smc,sm,"PMF Received") ; in smt_pmf_received_pack()
295 smt_start_watchdog(smc) ; in smt_pmf_received_pack()
[all …]
/drivers/net/fddi/skfp/h/
Dcmtdef.h63 #define DB_ECM(a,b,c) DB_PR((smc->debug.d_smt&1),a,b,c)
64 #define DB_ECMN(n,a,b,c) DB_PR((smc->debug.d_ecm >=(n)),a,b,c)
65 #define DB_RMT(a,b,c) DB_PR((smc->debug.d_smt&2),a,b,c)
66 #define DB_RMTN(n,a,b,c) DB_PR((smc->debug.d_rmt >=(n)),a,b,c)
67 #define DB_CFM(a,b,c) DB_PR((smc->debug.d_smt&4),a,b,c)
68 #define DB_CFMN(n,a,b,c) DB_PR((smc->debug.d_cfm >=(n)),a,b,c)
69 #define DB_PCM(a,b,c) DB_PR((smc->debug.d_smt&8),a,b,c)
70 #define DB_PCMN(n,a,b,c) DB_PR((smc->debug.d_pcm >=(n)),a,b,c)
71 #define DB_SMT(a,b,c) DB_PR((smc->debug.d_smtf),a,b,c)
72 #define DB_SMTN(n,a,b,c) DB_PR((smc->debug.d_smtf >=(n)),a,b,c)
[all …]
Dhwmtm.h175 #define DB_P smc->debug
243 #define HWM_GET_TX_USED(smc,queue) (int) (smc)->hw.fp.tx_q[queue].tx_used argument
261 #define HWM_GET_CURR_TXD(smc,queue) (struct s_smt_fp_txd volatile *)\ argument
262 (smc)->hw.fp.tx_q[queue].tx_curr_put
312 #define HWM_GET_RX_USED(smc) ((int)(smc)->hw.fp.rx_q[QUEUE_R1].rx_used) argument
326 #define HWM_GET_RX_FREE(smc) ((int)(smc)->hw.fp.rx_q[QUEUE_R1].rx_free-1) argument
341 #define HWM_GET_CURR_RXD(smc) (struct s_smt_fp_rxd volatile *)\ argument
342 (smc)->hw.fp.rx_q[QUEUE_R1].rx_curr_put
359 #define HWM_RX_CHECK(smc,low_water) {\ argument
360 if ((low_water) >= (smc)->hw.fp.rx_q[QUEUE_R1].rx_used) {\
[all …]
Dsmc.h304 #define RS_SET(smc,bit) \ argument
305 ring_status_indication(smc,smc->srf.ring_status |= bit)
306 #define RS_CLEAR(smc,bit) \ argument
307 ring_status_indication(smc,smc->srf.ring_status &= ~bit)
314 #define AIX_EVENT(smc,opt0,opt1,opt2,opt3) /* nothing */ argument
472 extern void all_selection_criteria(struct s_smc *smc);
473 extern void card_stop(struct s_smc *smc);
474 extern void init_board(struct s_smc *smc, u_char *mac_addr);
475 extern int init_fplus(struct s_smc *smc);
476 extern void init_plc(struct s_smc *smc);
[all …]
Dskfbi.h934 #define ADDR(a) (char far *) smc->hw.iop+(a)
935 #define ADDRS(smc,a) (char far *) (smc)->hw.iop+(a) argument
937 #define ADDR(a) (((a)>>7) ? (outp(smc->hw.iop+B0_RAP,(a)>>7), \
938 (smc->hw.iop+(((a)&0x7F)|((a)>>7 ? 0x80:0)))) : \
939 (smc->hw.iop+(((a)&0x7F)|((a)>>7 ? 0x80:0))))
940 #define ADDRS(smc,a) (((a)>>7) ? (outp((smc)->hw.iop+B0_RAP,(a)>>7), \ argument
941 ((smc)->hw.iop+(((a)&0x7F)|((a)>>7 ? 0x80:0)))) : \
942 ((smc)->hw.iop+(((a)&0x7F)|((a)>>7 ? 0x80:0))))
992 #define CLI_FBI(smc) outpd(ADDRS((smc),B0_IMSK),0) argument
996 #define STI_FBI() outpd(ADDR(B0_IMSK),smc->hw.is_imask)
[all …]
/drivers/md/persistent-data/
Ddm-space-map-checker.c180 struct sm_checker *smc = container_of(sm, struct sm_checker, sm); in sm_checker_destroy() local
182 dm_sm_destroy(smc->real_sm); in sm_checker_destroy()
183 ca_destroy(&smc->old_counts); in sm_checker_destroy()
184 ca_destroy(&smc->counts); in sm_checker_destroy()
185 kfree(smc); in sm_checker_destroy()
190 struct sm_checker *smc = container_of(sm, struct sm_checker, sm); in sm_checker_get_nr_blocks() local
191 int r = dm_sm_get_nr_blocks(smc->real_sm, count); in sm_checker_get_nr_blocks()
193 BUG_ON(smc->old_counts.nr != *count); in sm_checker_get_nr_blocks()
199 struct sm_checker *smc = container_of(sm, struct sm_checker, sm); in sm_checker_get_nr_free() local
200 int r = dm_sm_get_nr_free(smc->real_sm, count); in sm_checker_get_nr_free()
[all …]
/drivers/net/ethernet/smsc/
Dsmc91c92_cs.c305 struct smc_private *smc; in smc91c92_probe() local
314 smc = netdev_priv(dev); in smc91c92_probe()
315 smc->p_dev = link; in smc91c92_probe()
318 spin_lock_init(&smc->lock); in smc91c92_probe()
325 smc->mii_if.dev = dev; in smc91c92_probe()
326 smc->mii_if.mdio_read = mdio_read; in smc91c92_probe()
327 smc->mii_if.mdio_write = mdio_write; in smc91c92_probe()
328 smc->mii_if.phy_id_mask = 0x1f; in smc91c92_probe()
329 smc->mii_if.reg_num_mask = 0x1f; in smc91c92_probe()
382 struct smc_private *smc = netdev_priv(dev); in mhz_3288_power() local
[all …]
/drivers/ata/
Dpata_at32.c85 struct smc_config smc; member
95 struct smc_config *smc = &info->smc; in pata_at32_setup_timing() local
112 smc_set_timing(smc, &timing); in pata_at32_setup_timing()
115 smc->nrd_setup = smc->nrd_setup + 1; in pata_at32_setup_timing()
117 active = smc->nrd_setup + smc->nrd_pulse; in pata_at32_setup_timing()
118 recover = smc->read_cycle - active; in pata_at32_setup_timing()
122 smc->read_cycle = active + 2; in pata_at32_setup_timing()
125 smc->ncs_read_setup = 1; in pata_at32_setup_timing()
126 smc->ncs_read_pulse = smc->read_cycle - 2; in pata_at32_setup_timing()
129 smc->write_cycle = smc->read_cycle; in pata_at32_setup_timing()
[all …]
Dpata_at91.c210 struct sam9_smc_config smc; in set_smc_timing() local
249 smc.nwe_setup = smc.nrd_setup = setup; in set_smc_timing()
250 smc.ncs_write_setup = smc.ncs_read_setup = 0; in set_smc_timing()
252 smc.nwe_pulse = smc.nrd_pulse = pulse; in set_smc_timing()
253 smc.ncs_write_pulse = smc.ncs_read_pulse = cs_pulse; in set_smc_timing()
255 smc.write_cycle = smc.read_cycle = cycle; in set_smc_timing()
257 smc.tdf_cycles = tdf_cycles; in set_smc_timing()
258 smc.mode = info->mode; in set_smc_timing()
260 sam9_smc_configure(0, info->cs, &smc); in set_smc_timing()
285 struct sam9_smc_config smc; in pata_at91_data_xfer_noirq() local
[all …]

12