/Linux-v5.10/drivers/net/fddi/skfp/ |
D | rmt.c | 56 #define GO_STATE(x) (smc->mib.m[MAC0].fddiMACRMTState = (x)|AFLAG) 57 #define ACTIONS_DONE() (smc->mib.m[MAC0].fddiMACRMTState &= ~AFLAG) 99 static void rmt_fsm(struct s_smc *smc, int cmd); 100 static void start_rmt_timer0(struct s_smc *smc, u_long value, int event); 101 static void start_rmt_timer1(struct s_smc *smc, u_long value, int event); 102 static void start_rmt_timer2(struct s_smc *smc, u_long value, int event); 103 static void stop_rmt_timer0(struct s_smc *smc); 104 static void stop_rmt_timer1(struct s_smc *smc); 105 static void stop_rmt_timer2(struct s_smc *smc); 106 static void rmt_dup_actions(struct s_smc *smc); [all …]
|
D | cfm.c | 43 #define GO_STATE(x) (smc->mib.fddiSMTCF_State = (x)|AFLAG) 44 #define ACTIONS_DONE() (smc->mib.fddiSMTCF_State &= ~AFLAG) 89 static void cfm_fsm(struct s_smc *smc, int cmd); 95 void cfm_init(struct s_smc *smc) in cfm_init() argument 97 smc->mib.fddiSMTCF_State = ACTIONS(SC0_ISOLATED) ; in cfm_init() 98 smc->r.rm_join = 0 ; in cfm_init() 99 smc->r.rm_loop = 0 ; in cfm_init() 100 smc->y[PA].scrub = 0 ; in cfm_init() 101 smc->y[PB].scrub = 0 ; in cfm_init() 102 smc->y[PA].cem_pst = CEM_PST_DOWN ; in cfm_init() [all …]
|
D | ecm.c | 51 #define GO_STATE(x) (smc->mib.fddiSMTECMState = (x)|AFLAG) 52 #define ACTIONS_DONE() (smc->mib.fddiSMTECMState &= ~AFLAG) 90 static void ecm_fsm(struct s_smc *smc, int cmd); 91 static void start_ecm_timer(struct s_smc *smc, u_long value, int event); 92 static void stop_ecm_timer(struct s_smc *smc); 93 static void prop_actions(struct s_smc *smc); 99 void ecm_init(struct s_smc *smc) in ecm_init() argument 101 smc->e.path_test = PT_PASSED ; in ecm_init() 102 smc->e.trace_prop = 0 ; in ecm_init() 103 smc->e.sb_flag = 0 ; in ecm_init() [all …]
|
D | fplustm.c | 39 static void build_claim_beacon(struct s_smc *smc, u_long t_request); 40 static int init_mac(struct s_smc *smc, int all); 41 static void rtm_init(struct s_smc *smc); 42 static void smt_split_up_fifo(struct s_smc *smc); 49 #define DUMMY_READ() smc->hw.mc_dummy = (u_short) inp(ADDR(B0_RAP)) 54 SMT_PANIC(smc,SMT_E0130, SMT_E0130_MSG) ; \ 61 SMT_PANIC(smc,SMT_E0131, SMT_E0131_MSG) ; \ 76 #define MA smc->hw.fddi_canon_addr 78 #define MA smc->hw.fddi_home_addr 103 static u_long mac_get_tneg(struct s_smc *smc) in mac_get_tneg() argument [all …]
|
D | smt.c | 54 static int mac_index(struct s_smc *smc, int mac); 55 static int phy_index(struct s_smc *smc, int phy); 56 static int mac_con_resource_index(struct s_smc *smc, int mac); 57 static int phy_con_resource_index(struct s_smc *smc, int phy); 58 static void smt_send_rdf(struct s_smc *smc, SMbuf *rej, int fc, int reason, 60 static void smt_send_nif(struct s_smc *smc, const struct fddi_addr *dest, 62 static void smt_send_ecf(struct s_smc *smc, struct fddi_addr *dest, int fc, 64 static void smt_echo_test(struct s_smc *smc, int dna); 65 static void smt_send_sif_config(struct s_smc *smc, struct fddi_addr *dest, 67 static void smt_send_sif_operation(struct s_smc *smc, struct fddi_addr *dest, [all …]
|
D | srf.c | 37 static void clear_all_rep(struct s_smc *smc); 38 static void clear_reported(struct s_smc *smc); 39 static void smt_send_srf(struct s_smc *smc); 40 static struct s_srf_evc *smt_get_evc(struct s_smc *smc, int code, int index); 42 #define MAX_EVCS ARRAY_SIZE(smc->evcs) 68 void smt_init_evc(struct s_smc *smc) in smt_init_evc() argument 78 memset((char *)smc->evcs,0,sizeof(smc->evcs)) ; in smt_init_evc() 80 evc = smc->evcs ; in smt_init_evc() 97 if ((unsigned int) (evc - smc->evcs) > MAX_EVCS) { in smt_init_evc() 98 SMT_PANIC(smc,SMT_E0127, SMT_E0127_MSG) ; in smt_init_evc() [all …]
|
D | hwmtm.c | 70 static void queue_llc_rx(struct s_smc *smc, SMbuf *mb); 71 static void smt_to_llc(struct s_smc *smc, SMbuf *mb); 72 static void init_txd_ring(struct s_smc *smc); 73 static void init_rxd_ring(struct s_smc *smc); 74 static void queue_txd_mb(struct s_smc *smc, SMbuf *mb); 75 static u_long init_descr_ring(struct s_smc *smc, union s_fp_descr volatile *start, 77 static u_long repair_txd_ring(struct s_smc *smc, struct s_smt_tx_queue *queue); 78 static u_long repair_rxd_ring(struct s_smc *smc, struct s_smt_rx_queue *queue); 79 static SMbuf* get_llc_rx(struct s_smc *smc); 80 static SMbuf* get_txd_mb(struct s_smc *smc); [all …]
|
D | drvfbi.c | 64 #define OEMID(smc,i) oem_id[ID_BYTE0 + i] argument 70 #define OEMID(smc,i) smc->hw.oem_id->oi_id[i] argument 80 static void smt_stop_watchdog(struct s_smc *smc); 85 static void card_start(struct s_smc *smc) in card_start() argument 93 smt_stop_watchdog(smc) ; in card_start() 101 hwt_wait_time(smc,hwt_quick_read(smc),MS2BCLK(10)) ; in card_start() 133 smc->hw.hw_is_64bit = TRUE ; in card_start() 135 smc->hw.hw_is_64bit = FALSE ; in card_start() 141 if (!smc->hw.hw_is_64bit) { in card_start() 154 smc->hw.is_imask = ISR_MASK ; in card_start() [all …]
|
D | ess.c | 79 static void ess_send_response(struct s_smc *smc, struct smt_header *sm, 81 static void ess_config_fifo(struct s_smc *smc); 82 static void ess_send_alc_req(struct s_smc *smc); 83 static void ess_send_frame(struct s_smc *smc, SMbuf *mb); 97 void ess_timer_poll(struct s_smc *smc); 98 void ess_para_change(struct s_smc *smc); 99 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm, 101 static int process_bw_alloc(struct s_smc *smc, long int payload, long int overhead); 113 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm, in ess_raf_received_pack() argument 132 if (!(p = (void *) sm_to_para(smc,sm,SMT_P0015))) { in ess_raf_received_pack() [all …]
|
D | smtinit.c | 26 void init_fddi_driver(struct s_smc *smc, u_char *mac_addr); 34 #define OEMID(smc,i) oem_id[i] argument 37 #define OEMID(smc,i) smc->hw.oem_id->oi_mark[i] argument 47 static void set_oem_spec_val(struct s_smc *smc) in set_oem_spec_val() argument 51 mib = &smc->mib ; in set_oem_spec_val() 56 if (OEMID(smc,0) == 'I') { in set_oem_spec_val() 64 int init_smt(struct s_smc *smc, u_char *mac_addr) in init_smt() argument 88 smc->y[p].mib = & smc->mib.p[p] ; in init_smt() 91 set_oem_spec_val(smc) ; in init_smt() 92 (void) smt_set_mac_opvalues(smc) ; in init_smt() [all …]
|
D | queue.c | 30 void ev_init(struct s_smc *smc) in ev_init() argument 32 smc->q.ev_put = smc->q.ev_get = smc->q.ev_queue ; in ev_init() 38 void queue_event(struct s_smc *smc, int class, int event) in queue_event() argument 41 smc->q.ev_put->class = class ; in queue_event() 42 smc->q.ev_put->event = event ; in queue_event() 43 if (++smc->q.ev_put == &smc->q.ev_queue[MAX_EVENT]) in queue_event() 44 smc->q.ev_put = smc->q.ev_queue ; in queue_event() 46 if (smc->q.ev_put == smc->q.ev_get) { in queue_event() 47 SMT_ERR_LOG(smc,SMT_E0137, SMT_E0137_MSG) ; in queue_event() 54 void timer_event(struct s_smc *smc, u_long token) in timer_event() argument [all …]
|
D | smttimer.c | 25 static void timer_done(struct s_smc *smc, int restart); 27 void smt_timer_init(struct s_smc *smc) in smt_timer_init() argument 29 smc->t.st_queue = NULL; in smt_timer_init() 30 smc->t.st_fast.tm_active = FALSE ; in smt_timer_init() 31 smc->t.st_fast.tm_next = NULL; in smt_timer_init() 32 hwt_init(smc) ; in smt_timer_init() 35 void smt_timer_stop(struct s_smc *smc, struct smt_timer *timer) in smt_timer_stop() argument 44 if (smc->t.st_queue == timer && !timer->tm_next) { in smt_timer_stop() 45 hwt_stop(smc) ; in smt_timer_stop() 47 for (prev = &smc->t.st_queue ; (tm = *prev) ; prev = &tm->tm_next ) { in smt_timer_stop() [all …]
|
D | hwt.c | 59 void hwt_start(struct s_smc *smc, u_long time) in hwt_start() argument 66 smc->hw.t_start = time ; in hwt_start() 67 smc->hw.t_stop = 0L ; in hwt_start() 80 smc->hw.timer_activ = TRUE ; in hwt_start() 97 void hwt_stop(struct s_smc *smc) in hwt_stop() argument 102 smc->hw.timer_activ = FALSE ; in hwt_stop() 119 void hwt_init(struct s_smc *smc) in hwt_init() argument 121 smc->hw.t_start = 0 ; in hwt_init() 122 smc->hw.t_stop = 0 ; in hwt_init() 123 smc->hw.timer_activ = FALSE ; in hwt_init() [all …]
|
D | skfddi.c | 109 static void send_queued_packets(struct s_smc *smc); 111 static void ResetAdapter(struct s_smc *smc); 115 void *mac_drv_get_space(struct s_smc *smc, u_int size); 116 void *mac_drv_get_desc_mem(struct s_smc *smc, u_int size); 117 unsigned long mac_drv_virt2phys(struct s_smc *smc, void *virt); 118 unsigned long dma_master(struct s_smc *smc, void *virt, int len, int flag); 119 void dma_complete(struct s_smc *smc, volatile union s_fp_descr *descr, 121 void mac_drv_tx_complete(struct s_smc *smc, volatile struct s_smt_fp_txd *txd); 122 void llc_restart_tx(struct s_smc *smc); 123 void mac_drv_rx_complete(struct s_smc *smc, volatile struct s_smt_fp_rxd *rxd, [all …]
|
D | pcmplc.c | 55 struct s_smc * smc, int type, int index 62 struct s_smc *smc , 195 static void pcm_fsm(struct s_smc *smc, struct s_phy *phy, int cmd); 196 static void pc_rcode_actions(struct s_smc *smc, int bit, struct s_phy *phy); 197 static void pc_tcode_actions(struct s_smc *smc, const int bit, struct s_phy *phy); 199 static void plc_init(struct s_smc *smc, int p); 200 static void sm_ph_lem_start(struct s_smc *smc, int np, int threshold); 201 static void sm_ph_lem_stop(struct s_smc *smc, int np); 202 static void sm_ph_linestate(struct s_smc *smc, int phy, int ls); 203 static void real_init_plc(struct s_smc *smc); [all …]
|
D | smtdef.c | 71 void smt_reset_defaults(struct s_smc *smc, int level); 72 static void smt_init_mib(struct s_smc *smc, int level); 78 void smt_reset_defaults(struct s_smc *smc, int level) in smt_reset_defaults() argument 85 smt_init_mib(smc,level) ; in smt_reset_defaults() 87 smc->os.smc_version = SMC_VERSION ; in smt_reset_defaults() 90 smc->sm.last_tok_time[i] = smt_boot_time ; in smt_reset_defaults() 91 smt = &smc->s ; in smt_reset_defaults() 129 smc->ess.sync_bw_available = FALSE ; in smt_reset_defaults() 130 smc->mib.fddiESSPayload = 0 ; in smt_reset_defaults() 131 smc->mib.fddiESSOverhead = 0 ; in smt_reset_defaults() [all …]
|
D | pmf.c | 31 static int smt_authorize(struct s_smc *smc, struct smt_header *sm); 32 static int smt_check_set_count(struct s_smc *smc, struct smt_header *sm); 34 static int smt_mib_phys(struct s_smc *smc); 35 static int smt_set_para(struct s_smc *smc, struct smt_para *pa, int index, 37 void smt_add_para(struct s_smc *smc, struct s_pcon *pcon, u_short para, 39 static SMbuf *smt_build_pmf_response(struct s_smc *smc, struct smt_header *req, 41 static int port_to_mib(struct s_smc *smc, int p); 277 void smt_pmf_received_pack(struct s_smc *smc, SMbuf *mb, int local) in smt_pmf_received_pack() argument 285 dump_smt(smc,sm,"PMF Received") ; in smt_pmf_received_pack() 291 smt_start_watchdog(smc) ; in smt_pmf_received_pack() [all …]
|
/Linux-v5.10/drivers/net/fddi/skfp/h/ |
D | cmtdef.h | 61 #define DB_TEST (smc->debug) 484 void hwt_restart(struct s_smc *smc); /* hwt.c */ 485 SMbuf *smt_build_frame(struct s_smc *smc, int class, int type, 487 SMbuf *smt_get_mbuf(struct s_smc *smc); /* drvsr.c */ 488 void *sm_to_para(struct s_smc *smc, struct smt_header *sm, 495 void queue_event(struct s_smc *smc, int class, int event); 496 void ecm(struct s_smc *smc, int event); 497 void ecm_init(struct s_smc *smc); 498 void rmt(struct s_smc *smc, int event); 499 void rmt_init(struct s_smc *smc); [all …]
|
/Linux-v5.10/net/smc/ |
D | af_smc.c | 67 struct smc_sock *smc = smc_sk(sk); in smc_set_keepalive() local 69 smc->clcsock->sk->sk_prot->keepalive(smc->clcsock->sk, val); in smc_set_keepalive() 131 static void smc_restore_fallback_changes(struct smc_sock *smc) in smc_restore_fallback_changes() argument 133 if (smc->clcsock->file) { /* non-accepted sockets have no file yet */ in smc_restore_fallback_changes() 134 smc->clcsock->file->private_data = smc->sk.sk_socket; in smc_restore_fallback_changes() 135 smc->clcsock->file = NULL; in smc_restore_fallback_changes() 139 static int __smc_release(struct smc_sock *smc) in __smc_release() argument 141 struct sock *sk = &smc->sk; in __smc_release() 144 if (!smc->use_fallback) { in __smc_release() 145 rc = smc_close_active(smc); in __smc_release() [all …]
|
D | smc_close.c | 24 void smc_clcsock_release(struct smc_sock *smc) in smc_clcsock_release() argument 28 if (smc->listen_smc && current_work() != &smc->smc_listen_work) in smc_clcsock_release() 29 cancel_work_sync(&smc->smc_listen_work); in smc_clcsock_release() 30 mutex_lock(&smc->clcsock_release_lock); in smc_clcsock_release() 31 if (smc->clcsock) { in smc_clcsock_release() 32 tcp = smc->clcsock; in smc_clcsock_release() 33 smc->clcsock = NULL; in smc_clcsock_release() 36 mutex_unlock(&smc->clcsock_release_lock); in smc_clcsock_release() 49 static void smc_close_stream_wait(struct smc_sock *smc, long timeout) in smc_close_stream_wait() argument 52 struct sock *sk = &smc->sk; in smc_close_stream_wait() [all …]
|
D | smc_rx.c | 53 static int smc_rx_update_consumer(struct smc_sock *smc, in smc_rx_update_consumer() argument 56 struct smc_connection *conn = &smc->conn; in smc_rx_update_consumer() 57 struct sock *sk = &smc->sk; in smc_rx_update_consumer() 94 static void smc_rx_update_cons(struct smc_sock *smc, size_t len) in smc_rx_update_cons() argument 96 struct smc_connection *conn = &smc->conn; in smc_rx_update_cons() 100 smc_rx_update_consumer(smc, cons, len); in smc_rx_update_cons() 104 struct smc_sock *smc; member 112 struct smc_sock *smc = priv->smc; in smc_rx_pipe_buf_release() local 114 struct sock *sk = &smc->sk; in smc_rx_pipe_buf_release() 120 conn = &smc->conn; in smc_rx_pipe_buf_release() [all …]
|
D | smc_cdc.c | 31 struct smc_sock *smc; in smc_cdc_tx_handler() local 38 smc = container_of(conn, struct smc_sock, conn); in smc_cdc_tx_handler() 39 bh_lock_sock(&smc->sk); in smc_cdc_tx_handler() 54 smc_tx_sndbuf_nonfull(smc); in smc_cdc_tx_handler() 55 bh_unlock_sock(&smc->sk); in smc_cdc_tx_handler() 224 struct smc_sock *smc = container_of(conn, struct smc_sock, conn); in smcd_cdc_msg_send() local 254 smc_tx_sndbuf_nonfull(smc); in smcd_cdc_msg_send() 265 static void smc_cdc_handle_urg_data_arrival(struct smc_sock *smc, in smc_cdc_handle_urg_data_arrival() argument 268 struct smc_connection *conn = &smc->conn; in smc_cdc_handle_urg_data_arrival() 274 if (!sock_flag(&smc->sk, SOCK_URGINLINE)) in smc_cdc_handle_urg_data_arrival() [all …]
|
/Linux-v5.10/drivers/net/ethernet/smsc/ |
D | smc91c92_cs.c | 304 struct smc_private *smc; in smc91c92_probe() local 313 smc = netdev_priv(dev); in smc91c92_probe() 314 smc->p_dev = link; in smc91c92_probe() 317 spin_lock_init(&smc->lock); in smc91c92_probe() 324 smc->mii_if.dev = dev; in smc91c92_probe() 325 smc->mii_if.mdio_read = mdio_read; in smc91c92_probe() 326 smc->mii_if.mdio_write = mdio_write; in smc91c92_probe() 327 smc->mii_if.phy_id_mask = 0x1f; in smc91c92_probe() 328 smc->mii_if.reg_num_mask = 0x1f; in smc91c92_probe() 381 struct smc_private *smc = netdev_priv(dev); in mhz_3288_power() local [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/memory-controllers/ |
D | atmel,ebi.txt | 47 - atmel,smc-bus-width: width of the asynchronous device's data bus 51 - atmel,smc-byte-access-type "write" or "select" (see Atmel datasheet). 54 - atmel,smc-read-mode "nrd" or "ncs". 57 - atmel,smc-write-mode "nwe" or "ncs". 60 - atmel,smc-exnw-mode "disabled", "frozen" or "ready". 63 - atmel,smc-page-mode enable page mode if present. The provided value 67 - atmel,smc-tdf-mode: "normal" or "optimized". When set to 74 If at least one atmel,smc- property is defined the following SMC timing 75 properties become mandatory. In the other hand, if none of the atmel,smc- 83 - atmel,smc-ncs-rd-setup-ns [all …]
|
/Linux-v5.10/drivers/firmware/ |
D | qcom_scm-smc.c | 36 static void __scm_smc_do_quirk(const struct arm_smccc_args *smc, in __scm_smc_do_quirk() argument 39 unsigned long a0 = smc->args[0]; in __scm_smc_do_quirk() 45 arm_smccc_smc_quirk(a0, smc->args[1], smc->args[2], in __scm_smc_do_quirk() 46 smc->args[3], smc->args[4], smc->args[5], in __scm_smc_do_quirk() 47 quirk.state.a6, smc->args[7], res, &quirk); in __scm_smc_do_quirk() 55 static void __scm_smc_do(const struct arm_smccc_args *smc, in __scm_smc_do() argument 61 __scm_smc_do_quirk(smc, res); in __scm_smc_do() 68 __scm_smc_do_quirk(smc, res); in __scm_smc_do() 94 struct arm_smccc_args smc = {0}; in scm_smc_call() local 96 smc.args[0] = ARM_SMCCC_CALL_VAL( in scm_smc_call() [all …]
|