| /kernel/linux/linux-6.6/drivers/net/fddi/skfp/ |
| D | rmt.c | 43 #include "h/smc.h" 52 #define GO_STATE(x) (smc->mib.m[MAC0].fddiMACRMTState = (x)|AFLAG) 53 #define ACTIONS_DONE() (smc->mib.m[MAC0].fddiMACRMTState &= ~AFLAG) 95 static void rmt_fsm(struct s_smc *smc, int cmd); 96 static void start_rmt_timer0(struct s_smc *smc, u_long value, int event); 97 static void start_rmt_timer1(struct s_smc *smc, u_long value, int event); 98 static void start_rmt_timer2(struct s_smc *smc, u_long value, int event); 99 static void stop_rmt_timer0(struct s_smc *smc); 100 static void stop_rmt_timer1(struct s_smc *smc); 101 static void stop_rmt_timer2(struct s_smc *smc); [all …]
|
| D | cfm.c | 34 #include "h/smc.h" 43 #define GO_STATE(x) (smc->mib.fddiSMTCF_State = (x)|AFLAG) 44 #define ACTIONS_DONE() (smc->mib.fddiSMTCF_State &= ~AFLAG) 79 /* Do this within the smc structure (use in multiple cards) */ 82 * all Globals are defined in smc.h 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() [all …]
|
| D | ecm.c | 38 #include "h/smc.h" 47 #define GO_STATE(x) (smc->mib.fddiSMTECMState = (x)|AFLAG) 48 #define ACTIONS_DONE() (smc->mib.fddiSMTECMState &= ~AFLAG) 78 * all Globals are defined in smc.h 86 static void ecm_fsm(struct s_smc *smc, int cmd); 87 static void start_ecm_timer(struct s_smc *smc, u_long value, int event); 88 static void stop_ecm_timer(struct s_smc *smc); 89 static void prop_actions(struct s_smc *smc); 95 void ecm_init(struct s_smc *smc) in ecm_init() argument 97 smc->e.path_test = PT_PASSED ; in ecm_init() [all …]
|
| D | srf.c | 20 #include "h/smc.h" 32 static void clear_all_rep(struct s_smc *smc); 33 static void clear_reported(struct s_smc *smc); 34 static void smt_send_srf(struct s_smc *smc); 35 static struct s_srf_evc *smt_get_evc(struct s_smc *smc, int code, int index); 37 #define MAX_EVCS ARRAY_SIZE(smc->evcs) 63 void smt_init_evc(struct s_smc *smc) in smt_init_evc() argument 73 memset((char *)smc->evcs,0,sizeof(smc->evcs)) ; in smt_init_evc() 75 evc = smc->evcs ; in smt_init_evc() 92 if ((unsigned int) (evc - smc->evcs) > MAX_EVCS) { in smt_init_evc() [all …]
|
| D | smt.c | 15 #include "h/smc.h" 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, [all …]
|
| D | fplustm.c | 19 #include "h/smc.h" 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 [all …]
|
| D | hwmtm.c | 21 #include "h/smc.h" 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); [all …]
|
| D | drvfbi.c | 19 #include "h/smc.h" 60 #define OEMID(smc,i) oem_id[ID_BYTE0 + i] argument 66 #define OEMID(smc,i) smc->hw.oem_id->oi_id[i] argument 76 static void smt_stop_watchdog(struct s_smc *smc); 81 static void card_start(struct s_smc *smc) in card_start() argument 89 smt_stop_watchdog(smc) ; in card_start() 97 hwt_wait_time(smc,hwt_quick_read(smc),MS2BCLK(10)) ; in card_start() 129 smc->hw.hw_is_64bit = TRUE ; in card_start() 131 smc->hw.hw_is_64bit = FALSE ; in card_start() 137 if (!smc->hw.hw_is_64bit) { in card_start() [all …]
|
| D | smttimer.c | 19 #include "h/smc.h" 21 static void timer_done(struct s_smc *smc, int restart); 23 void smt_timer_init(struct s_smc *smc) in smt_timer_init() argument 25 smc->t.st_queue = NULL; in smt_timer_init() 26 smc->t.st_fast.tm_active = FALSE ; in smt_timer_init() 27 smc->t.st_fast.tm_next = NULL; in smt_timer_init() 28 hwt_init(smc) ; in smt_timer_init() 31 void smt_timer_stop(struct s_smc *smc, struct smt_timer *timer) in smt_timer_stop() argument 40 if (smc->t.st_queue == timer && !timer->tm_next) { in smt_timer_stop() 41 hwt_stop(smc) ; in smt_timer_stop() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/fddi/skfp/ |
| D | rmt.c | 43 #include "h/smc.h" 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); [all …]
|
| D | cfm.c | 34 #include "h/smc.h" 43 #define GO_STATE(x) (smc->mib.fddiSMTCF_State = (x)|AFLAG) 44 #define ACTIONS_DONE() (smc->mib.fddiSMTCF_State &= ~AFLAG) 79 /* Do this within the smc structure (use in multiple cards) */ 82 * all Globals are defined in smc.h 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() [all …]
|
| D | ecm.c | 38 #include "h/smc.h" 51 #define GO_STATE(x) (smc->mib.fddiSMTECMState = (x)|AFLAG) 52 #define ACTIONS_DONE() (smc->mib.fddiSMTECMState &= ~AFLAG) 82 * all Globals are defined in smc.h 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() [all …]
|
| D | srf.c | 20 #include "h/smc.h" 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() [all …]
|
| D | smt.c | 15 #include "h/smc.h" 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, [all …]
|
| D | fplustm.c | 19 #include "h/smc.h" 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 [all …]
|
| D | hwmtm.c | 21 #include "h/smc.h" 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); [all …]
|
| D | drvfbi.c | 19 #include "h/smc.h" 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() [all …]
|
| D | smttimer.c | 19 #include "h/smc.h" 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() [all …]
|
| D | ess.c | 34 #include "h/smc.h" 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 [all …]
|
| /kernel/linux/linux-5.10/net/smc/ |
| D | af_smc.c | 3 * Shared Memory Communications over RDMA (SMC-R) and RoCE 19 #define KMSG_COMPONENT "smc" 33 #include <net/smc.h> 40 #include "smc.h" 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() 108 .name = "SMC", 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() [all …]
|
| D | smc_close.c | 3 * Shared Memory Communications over RDMA (SMC-R) and RoCE 18 #include "smc.h" 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() [all …]
|
| /kernel/linux/linux-6.6/net/smc/ |
| D | af_smc.c | 3 * Shared Memory Communications over RDMA (SMC-R) and RoCE 19 #define KMSG_COMPONENT "smc" 34 #include <net/smc.h> 41 #include "smc.h" 86 sock_net(skb->sk)->smc.limit_smc_hs)) in smc_nl_dump_hs_limitation() 100 sock_net(skb->sk)->smc.limit_smc_hs = true; in smc_nl_enable_hs_limitation() 106 sock_net(skb->sk)->smc.limit_smc_hs = false; in smc_nl_disable_hs_limitation() 112 struct smc_sock *smc = smc_sk(sk); in smc_set_keepalive() local 114 smc->clcsock->sk->sk_prot->keepalive(smc->clcsock->sk, val); in smc_set_keepalive() 124 struct smc_sock *smc; in smc_tcp_syn_recv_sock() local [all …]
|
| D | smc_close.c | 3 * Shared Memory Communications over RDMA (SMC-R) and RoCE 18 #include "smc.h" 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() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/memory-controllers/ |
| D | atmel,ebi.txt | 5 The EBI provides a glue-less interface to asynchronous memories through the SMC 45 Optional EBI/SMC properties: 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 [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/memory-controllers/ |
| D | atmel,ebi.txt | 5 The EBI provides a glue-less interface to asynchronous memories through the SMC 45 Optional EBI/SMC properties: 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 [all …]
|