Home
last modified time | relevance | path

Searched full:smc (Results 1 – 25 of 480) sorted by relevance

12345678910>>...20

/linux/drivers/net/fddi/skfp/
H A Drmt.c43 #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);
115 rmt_init(struct s_smc * smc) rmt_init() argument
137 rmt(struct s_smc * smc,int event) rmt() argument
156 rmt_fsm(struct s_smc * smc,int cmd) rmt_fsm() argument
521 rmt_dup_actions(struct s_smc * smc) rmt_dup_actions() argument
540 rmt_reinsert_actions(struct s_smc * smc) rmt_reinsert_actions() argument
549 rmt_new_dup_actions(struct s_smc * smc) rmt_new_dup_actions() argument
574 rmt_leave_actions(struct s_smc * smc) rmt_leave_actions() argument
587 start_rmt_timer0(struct s_smc * smc,u_long value,int event) start_rmt_timer0() argument
597 start_rmt_timer1(struct s_smc * smc,u_long value,int event) start_rmt_timer1() argument
607 start_rmt_timer2(struct s_smc * smc,u_long value,int event) start_rmt_timer2() argument
617 stop_rmt_timer0(struct s_smc * smc) stop_rmt_timer0() argument
627 stop_rmt_timer1(struct s_smc * smc) stop_rmt_timer1() argument
637 stop_rmt_timer2(struct s_smc * smc) stop_rmt_timer2() argument
[all...]
H A Dcfm.c34 #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 in cfm_init()
107 THRU_ENABLED(smc) global() argument
110 selection_criteria(struct s_smc * smc,struct s_phy * phy) selection_criteria() argument
136 all_selection_criteria(struct s_smc * smc) all_selection_criteria() argument
147 cem_priv_state(struct s_smc * smc,int event) cem_priv_state() argument
203 cfm(struct s_smc * smc,int event) cfm() argument
266 cfm_fsm(struct s_smc * smc,int cmd) cfm_fsm() argument
524 cfm_get_mac_input(struct s_smc * smc) cfm_get_mac_input() argument
535 cfm_get_mac_output(struct s_smc * smc) cfm_get_mac_output() argument
575 cem_build_path(struct s_smc * smc,char * to,int path_index) cem_build_path() argument
[all...]
H A Decm.c38 #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 in ecm_init()
113 ecm(struct s_smc * smc,int event) ecm() argument
132 ecm_fsm(struct s_smc * smc,int cmd) ecm_fsm() argument
415 prop_actions(struct s_smc * smc) prop_actions() argument
465 prop_actions(struct s_smc * smc) prop_actions() argument
511 start_ecm_timer(struct s_smc * smc,u_long value,int event) start_ecm_timer() argument
520 stop_ecm_timer(struct s_smc * smc) stop_ecm_timer() argument
[all...]
H A Dsmt.c15 #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 …]
H A Dfplustm.c19 #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
103 mac_get_tneg(struct s_smc * smc) mac_get_tneg() argument
112 mac_update_counter(struct s_smc * smc) mac_update_counter() argument
137 write_mdr(struct s_smc * smc,u_long val) write_mdr() argument
166 init_ram(struct s_smc * smc) init_ram() argument
185 set_recvptr(struct s_smc * smc) set_recvptr() argument
215 set_txptr(struct s_smc * smc) set_txptr() argument
247 init_rbc(struct s_smc * smc) init_rbc() argument
268 init_rx(struct s_smc * smc) init_rx() argument
290 set_formac_tsync(struct s_smc * smc,long sync_bw) set_formac_tsync() argument
298 init_tx(struct s_smc * smc) init_tx() argument
324 mac_counter_init(struct s_smc * smc) mac_counter_init() argument
347 set_formac_addr(struct s_smc * smc) set_formac_addr() argument
389 copy_tx_mac(struct s_smc * smc,u_long td,struct fddi_mac * mac,unsigned int off,int len) copy_tx_mac() argument
438 directed_beacon(struct s_smc * smc) directed_beacon() argument
467 build_claim_beacon(struct s_smc * smc,u_long t_request) build_claim_beacon() argument
528 formac_rcv_restart(struct s_smc * smc) formac_rcv_restart() argument
536 formac_tx_restart(struct s_smc * smc) formac_tx_restart() argument
542 enable_formac(struct s_smc * smc) enable_formac() argument
633 disable_formac(struct s_smc * smc) disable_formac() argument
645 mac_ring_up(struct s_smc * smc,int up) mac_ring_up() argument
672 mac2_irq(struct s_smc * smc,u_short code_s2u,u_short code_s2l) mac2_irq() argument
798 mac3_irq(struct s_smc * smc,u_short code_s3u,u_short code_s3l) mac3_irq() argument
821 formac_offline(struct s_smc * smc) formac_offline() argument
839 formac_online(struct s_smc * smc) formac_online() argument
849 init_fplus(struct s_smc * smc) init_fplus() argument
887 init_mac(struct s_smc * smc,int all) init_mac() argument
992 config_mux(struct s_smc * smc,int mux) config_mux() argument
1006 sm_mac_check_beacon_claim(struct s_smc * smc) sm_mac_check_beacon_claim() argument
1019 sm_ma_control(struct s_smc * smc,int mode) sm_ma_control() argument
1043 sm_mac_get_tx_state(struct s_smc * smc) sm_mac_get_tx_state() argument
1052 mac_get_mc_table(struct s_smc * smc,struct fddi_addr * user,struct fddi_addr * own,int del,int can) mac_get_mc_table() argument
1096 mac_clear_multicast(struct s_smc * smc) mac_clear_multicast() argument
1138 mac_add_multicast(struct s_smc * smc,struct fddi_addr * addr,int can) mac_add_multicast() argument
1192 mac_update_multicast(struct s_smc * smc) mac_update_multicast() argument
1268 mac_set_rx_mode(struct s_smc * smc,int mode) mac_set_rx_mode() argument
1324 rtm_irq(struct s_smc * smc) rtm_irq() argument
1337 rtm_init(struct s_smc * smc) rtm_init() argument
1343 rtm_set_timer(struct s_smc * smc) rtm_set_timer() argument
1353 smt_split_up_fifo(struct s_smc * smc) smt_split_up_fifo() argument
1473 formac_reinit_tx(struct s_smc * smc) formac_reinit_tx() argument
[all...]
H A Dsrf.c20 #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 …]
H A Dhwmtm.c21 #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 …]
H A Ddrvfbi.c19 #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 …]
H A Dess.c34 #include "h/smc.h"
78 static void ess_send_response(struct s_smc *smc, struct smt_header *sm,
80 static void ess_config_fifo(struct s_smc *smc);
81 static void ess_send_alc_req(struct s_smc *smc);
82 static void ess_send_frame(struct s_smc *smc, SMbuf *mb);
96 void ess_timer_poll(struct s_smc *smc);
97 void ess_para_change(struct s_smc *smc);
98 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm,
100 static int process_bw_alloc(struct s_smc *smc, long int payload, long int overhead);
112 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm, in ess_raf_received_pack() argument
[all …]
H A Dsmttimer.c19 #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 …]
H A Dqueue.c19 #include "h/smc.h"
26 void ev_init(struct s_smc *smc) in ev_init() argument
28 smc->q.ev_put = smc->q.ev_get = smc->q.ev_queue ; in ev_init()
34 void queue_event(struct s_smc *smc, int class, int event) in queue_event() argument
37 smc->q.ev_put->class = class ; in queue_event()
38 smc->q.ev_put->event = event ; in queue_event()
39 if (++smc->q.ev_put == &smc->q.ev_queue[MAX_EVENT]) in queue_event()
40 smc->q.ev_put = smc->q.ev_queue ; in queue_event()
42 if (smc->q.ev_put == smc->q.ev_get) { in queue_event()
43 SMT_ERR_LOG(smc,SMT_E0137, SMT_E0137_MSG) ; in queue_event()
[all …]
H A Dhwt.c28 #include "h/smc.h"
43 * struct s_smc *smc,
46 * smc - A pointer to the SMT Context structure.
55 void hwt_start(struct s_smc *smc, u_long time) in hwt_start() argument
62 smc->hw.t_start = time ; in hwt_start()
63 smc->hw.t_stop = 0L ; in hwt_start()
76 smc->hw.timer_activ = TRUE ; in hwt_start()
86 * struct s_smc *smc) ;
88 * smc - A pointer to the SMT Context structure.
93 void hwt_stop(struct s_smc *smc) in hwt_stop() argument
[all …]
H A Dsmtinit.c20 #include "h/smc.h"
22 void init_fddi_driver(struct s_smc *smc, const u_char *mac_addr);
30 #define OEMID(smc,i) oem_id[i] argument
33 #define OEMID(smc,i) smc->hw.oem_id->oi_mark[i] argument
43 static void set_oem_spec_val(struct s_smc *smc) in set_oem_spec_val() argument
47 mib = &smc->mib ; in set_oem_spec_val()
52 if (OEMID(smc,0) == 'I') { in set_oem_spec_val()
60 int init_smt(struct s_smc *smc, const u_char *mac_addr) in init_smt() argument
84 smc->y[p].mib = & smc->mib.p[p] ; in init_smt()
87 set_oem_spec_val(smc) ; in init_smt()
[all …]
H A Dsmtdef.c19 #include "h/smc.h"
67 void smt_reset_defaults(struct s_smc *smc, int level);
68 static void smt_init_mib(struct s_smc *smc, int level);
74 void smt_reset_defaults(struct s_smc *smc, int level) in smt_reset_defaults() argument
81 smt_init_mib(smc,level) ; in smt_reset_defaults()
83 smc->os.smc_version = SMC_VERSION ; in smt_reset_defaults()
86 smc->sm.last_tok_time[i] = smt_boot_time ; in smt_reset_defaults()
87 smt = &smc->s ; in smt_reset_defaults()
125 smc->ess.sync_bw_available = FALSE ; in smt_reset_defaults()
126 smc->mib.fddiESSPayload = 0 ; in smt_reset_defaults()
[all …]
H A Dpcmplc.c43 #include "h/smc.h"
51 struct s_smc * smc, int type, int index
58 struct s_smc *smc ,
191 static void pcm_fsm(struct s_smc *smc, struct s_phy *phy, int cmd);
192 static void pc_rcode_actions(struct s_smc *smc, int bit, struct s_phy *phy);
193 static void pc_tcode_actions(struct s_smc *smc, const int bit, struct s_phy *phy);
195 static void plc_init(struct s_smc *smc, int p);
196 static void sm_ph_lem_start(struct s_smc *smc, int np, int threshold);
197 static void sm_ph_lem_stop(struct s_smc *smc, int np);
198 static void sm_ph_linestate(struct s_smc *smc, in
205 start_pcm_timer0(struct s_smc * smc,u_long value,int event,struct s_phy * phy) start_pcm_timer0() argument
216 stop_pcm_timer0(struct s_smc * smc,struct s_phy * phy) stop_pcm_timer0() argument
226 pcm_init(struct s_smc * smc) pcm_init() argument
390 init_plc(struct s_smc * smc) init_plc() argument
403 real_init_plc(struct s_smc * smc) real_init_plc() argument
411 plc_init(struct s_smc * smc,int p) plc_init() argument
474 plc_go_state(struct s_smc * smc,int p,int state) plc_go_state() argument
490 sm_pm_get_ls(struct s_smc * smc,int phy) sm_pm_get_ls() argument
523 plc_send_bits(struct s_smc * smc,struct s_phy * phy,int len) plc_send_bits() argument
560 plc_config_mux(struct s_smc * smc,int mux) plc_config_mux() argument
584 pcm(struct s_smc * smc,const int np,int event) pcm() argument
662 pcm_fsm(struct s_smc * smc,struct s_phy * phy,int cmd) pcm_fsm() argument
1026 sm_ph_linestate(struct s_smc * smc,int phy,int ls) sm_ph_linestate() argument
1066 lem_evaluate(struct s_smc * smc,struct s_phy * phy) lem_evaluate() argument
1165 sm_lem_evaluate(struct s_smc * smc) sm_lem_evaluate() argument
1173 lem_check_lct(struct s_smc * smc,struct s_phy * phy) lem_check_lct() argument
1217 sm_ph_lem_start(struct s_smc * smc,int np,int threshold) sm_ph_lem_start() argument
1235 sm_ph_lem_stop(struct s_smc * smc,int np) sm_ph_lem_stop() argument
1252 pc_rcode_actions(struct s_smc * smc,int bit,struct s_phy * phy) pc_rcode_actions() argument
1389 pc_tcode_actions(struct s_smc * smc,const int bit,struct s_phy * phy) pc_tcode_actions() argument
1567 pcm_status_twisted(struct s_smc * smc) pcm_status_twisted() argument
1586 pcm_status_state(struct s_smc * smc,int np,int * type,int * state,int * remote,int * mac) pcm_status_state() argument
1610 pcm_rooted_station(struct s_smc * smc) pcm_rooted_station() argument
1625 plc_irq(struct s_smc * smc,int np,unsigned int cmd) plc_irq() argument
1846 pcm_get_state(struct s_smc * smc,struct smt_state * state) pcm_get_state() argument
1880 get_pcm_state(struct s_smc * smc,int np) get_pcm_state() argument
1902 get_linestate(struct s_smc * smc,int np) get_linestate() argument
1924 get_pcmstate(struct s_smc * smc,int np) get_pcmstate() argument
1946 list_phy(struct s_smc * smc) list_phy() argument
1974 pcm_lem_dump(struct s_smc * smc) pcm_lem_dump() argument
[all...]
H A Dskfddi.c95 #include "h/smc.h"
112 static void send_queued_packets(struct s_smc *smc);
114 static void ResetAdapter(struct s_smc *smc);
118 void *mac_drv_get_space(struct s_smc *smc, u_int size);
119 void *mac_drv_get_desc_mem(struct s_smc *smc, u_int size);
120 unsigned long mac_drv_virt2phys(struct s_smc *smc, void *virt);
121 unsigned long dma_master(struct s_smc *smc, void *virt, int len, int flag);
122 void dma_complete(struct s_smc *smc, volatile union s_fp_descr *descr,
124 void mac_drv_tx_complete(struct s_smc *smc, volatile struct s_smt_fp_txd *txd);
125 void llc_restart_tx(struct s_smc *smc);
[all …]
/linux/drivers/mfd/
H A Dmacsmc.c3 * Apple SMC (System Management Controller) MFD driver
50 MFD_CELL_OF("macsmc-gpio", NULL, NULL, 0, 0, "apple,smc-gpio"),
51 MFD_CELL_OF("macsmc-hwmon", NULL, NULL, 0, 0, "apple,smc-hwmon"),
52 MFD_CELL_OF("macsmc-reboot", NULL, NULL, 0, 0, "apple,smc-reboot"),
53 MFD_CELL_OF("macsmc-rtc", NULL, NULL, 0, 0, "apple,smc-rtc"),
56 static int apple_smc_cmd_locked(struct apple_smc *smc, u64 cmd, u64 arg, in apple_smc_cmd_locked() argument
63 lockdep_assert_held(&smc->mutex); in apple_smc_cmd_locked()
65 if (smc->boot_stage != APPLE_SMC_INITIALIZED) in apple_smc_cmd_locked()
67 if (smc->atomic_mode) in apple_smc_cmd_locked()
70 reinit_completion(&smc->cmd_done); in apple_smc_cmd_locked()
[all …]
/linux/net/smc/
H A Daf_smc.c3 * Shared Memory Communications over RDMA (SMC-R) and RoCE
19 #define pr_fmt(fmt) "smc: " fmt
37 #include <net/smc.h>
44 #include "smc.h"
91 sock_net(skb->sk)->smc.limit_smc_hs)) in smc_nl_dump_hs_limitation()
105 sock_net(skb->sk)->smc.limit_smc_hs = true; in smc_nl_enable_hs_limitation()
111 sock_net(skb->sk)->smc.limit_smc_hs = false; in smc_nl_disable_hs_limitation()
117 struct smc_sock *smc = smc_sk(sk); in smc_set_keepalive() local
119 smc->clcsock->sk->sk_prot->keepalive(smc in smc_set_keepalive()
131 struct smc_sock *smc; smc_tcp_syn_recv_sock() local
176 const struct smc_sock *smc; smc_hs_congested() local
230 struct smc_sock *smc = smc_sk(sk); smc_release_cb() local
264 smc_fback_restore_callbacks(struct smc_sock * smc) smc_fback_restore_callbacks() argument
279 smc_restore_fallback_changes(struct smc_sock * smc) smc_restore_fallback_changes() argument
288 __smc_release(struct smc_sock * smc) __smc_release() argument
331 struct smc_sock *smc; smc_release() local
397 struct smc_sock *smc = smc_sk(sk); smc_sk_init() local
443 struct smc_sock *smc; smc_bind() local
530 smc_copy_sock_settings_to_clc(struct smc_sock * smc) smc_copy_sock_settings_to_clc() argument
540 smc_copy_sock_settings_to_smc(struct smc_sock * smc) smc_copy_sock_settings_to_smc() argument
618 smcr_clnt_conf_first_link(struct smc_sock * smc) smcr_clnt_conf_first_link() argument
700 smc_conn_save_peer_info_fce(struct smc_sock * smc,struct smc_clc_msg_accept_confirm * clc) smc_conn_save_peer_info_fce() argument
727 smcr_conn_save_peer_info(struct smc_sock * smc,struct smc_clc_msg_accept_confirm * clc) smcr_conn_save_peer_info() argument
739 smcd_conn_save_peer_info(struct smc_sock * smc,struct smc_clc_msg_accept_confirm * clc) smcd_conn_save_peer_info() argument
752 smc_conn_save_peer_info(struct smc_sock * smc,struct smc_clc_msg_accept_confirm * clc) smc_conn_save_peer_info() argument
773 smc_stat_inc_fback_rsn_cnt(struct smc_sock * smc,struct smc_stats_fback * fback_arr) smc_stat_inc_fback_rsn_cnt() argument
791 smc_stat_fallback(struct smc_sock * smc) smc_stat_fallback() argument
807 smc_fback_wakeup_waitqueue(struct smc_sock * smc,void * key) smc_fback_wakeup_waitqueue() argument
842 smc_fback_forward_wakeup(struct smc_sock * smc,struct sock * clcsk,void (* clcsock_callback)(struct sock * sk)) smc_fback_forward_wakeup() argument
866 struct smc_sock *smc; smc_fback_state_change() local
878 struct smc_sock *smc; smc_fback_data_ready() local
890 struct smc_sock *smc; smc_fback_write_space() local
902 struct smc_sock *smc; smc_fback_error_report() local
912 smc_fback_replace_callbacks(struct smc_sock * smc) smc_fback_replace_callbacks() argument
931 smc_switch_to_fallback(struct smc_sock * smc,int reason_code) smc_switch_to_fallback() argument
964 smc_connect_fallback(struct smc_sock * smc,int reason_code) smc_connect_fallback() argument
984 smc_connect_decline_fallback(struct smc_sock * smc,int reason_code,u8 version) smc_connect_decline_fallback() argument
1008 smc_conn_abort(struct smc_sock * smc,int local_first) smc_conn_abort() argument
1024 smc_find_rdma_device(struct smc_sock * smc,struct smc_init_info * ini) smc_find_rdma_device() argument
1040 smc_find_ism_device(struct smc_sock * smc,struct smc_init_info * ini) smc_find_ism_device() argument
1066 smc_find_ism_v2_device_clnt(struct smc_sock * smc,struct smc_init_info * ini) smc_find_ism_v2_device_clnt() argument
1120 smc_find_proposal_devices(struct smc_sock * smc,struct smc_init_info * ini) smc_find_proposal_devices() argument
1188 smc_connect_clc(struct smc_sock * smc,struct smc_clc_msg_accept_confirm * aclc,struct smc_init_info * ini) smc_connect_clc() argument
1231 smc_connect_rdma_v2_prepare(struct smc_sock * smc,struct smc_clc_msg_accept_confirm * aclc,struct smc_init_info * ini) smc_connect_rdma_v2_prepare() argument
1267 smc_connect_rdma(struct smc_sock * smc,struct smc_clc_msg_accept_confirm * aclc,struct smc_init_info * ini) smc_connect_rdma() argument
1416 smc_connect_ism(struct smc_sock * smc,struct smc_clc_msg_accept_confirm * aclc,struct smc_init_info * ini) smc_connect_ism() argument
1520 __smc_connect(struct smc_sock * smc) __smc_connect() argument
1612 struct smc_sock *smc = container_of(work, struct smc_sock, smc_connect_work() local
1660 struct smc_sock *smc; smc_connect() local
1859 struct smc_sock *smc = smc_sk(sk); smc_close_non_accepted() local
1872 smcr_serv_conf_first_link(struct smc_sock * smc) smcr_serv_conf_first_link() argument
2651 struct smc_sock *smc; smc_listen() local
2786 struct smc_sock *smc; smc_getname() local
2805 struct smc_sock *smc; smc_sendmsg() local
2844 struct smc_sock *smc; smc_recvmsg() local
2894 struct smc_sock *smc; smc_poll() local
2954 struct smc_sock *smc; smc_shutdown() local
3028 struct smc_sock *smc; __smc_getsockopt() local
3061 struct smc_sock *smc; __smc_setsockopt() local
3093 struct smc_sock *smc; smc_setsockopt() local
3179 struct smc_sock *smc; smc_getsockopt() local
3207 struct smc_sock *smc; smc_ioctl() local
3295 struct smc_sock *smc; smc_splice_read() local
3360 struct smc_sock *smc = smc_sk(sk); smc_create_clcsk() local
[all...]
H A Dsmc_close.c3 * 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 in smc_clcsock_release()
49 smc_close_stream_wait(struct smc_sock * smc,long timeout) smc_close_stream_wait() argument
81 smc_close_wake_tx_prepared(struct smc_sock * smc) smc_close_wake_tx_prepared() argument
114 smc_close_cancel_work(struct smc_sock * smc) smc_close_cancel_work() argument
128 smc_close_active_abort(struct smc_sock * smc) smc_close_active_abort() argument
193 smc_close_active(struct smc_sock * smc) smc_close_active() argument
312 smc_close_passive_abort_received(struct smc_sock * smc) smc_close_passive_abort_received() argument
361 struct smc_sock *smc = container_of(conn, struct smc_sock, conn); smc_close_passive_work() local
447 smc_close_shutdown_write(struct smc_sock * smc) smc_close_shutdown_write() argument
503 smc_close_init(struct smc_sock * smc) smc_close_init() argument
[all...]
H A Dsmc_stats.h3 * Shared Memory Communications over RDMA (SMC-R) and RoCE
5 * Macros for SMC statistics
18 #include <linux/smc.h>
87 struct smc_stats_tech smc[2]; member
100 this_cpu_inc((*stats).smc[t].key ## _cnt); \
105 this_cpu_inc((*stats).smc[t].key ## _pd.buf[_pos]); \
106 this_cpu_add((*stats).smc[t].key ## _bytes, r); \
114 struct smc_stats __percpu *_smc_stats = _net->smc.smc_stats; \
129 struct smc_stats __percpu *_smc_stats = _net->smc.smc_stats; \
153 this_cpu_inc((*stats).smc[t].k ## _rmbsize.buf[_pos]); \
[all …]
H A Dsmc_sysctl.c3 * Shared Memory Communications over RDMA (SMC-R) and RoCE
5 * smc_sysctl.c: sysctl interface to SMC subsystem.
18 #include "smc.h"
51 if (ctrl == rcu_dereference(net->smc.hs_ctrl)) { in smc_net_replace_smc_hs_ctrl()
61 ctrl = unrcu_pointer(xchg(&net->smc.hs_ctrl, RCU_INITIALIZER(ctrl))); in smc_net_replace_smc_hs_ctrl()
73 struct net *net = container_of(ctl->data, struct net, smc.hs_ctrl); in proc_smc_hs_ctrl()
83 ctrl = rcu_dereference(net->smc.hs_ctrl); in proc_smc_hs_ctrl()
103 .data = &init_net.smc.sysctl_autocorking_size,
110 .data = &init_net.smc.sysctl_smcr_buf_type,
119 .data = &init_net.smc.sysctl_smcr_testlink_time,
[all …]
H A Dsmc_rx.c3 * Shared Memory Communications over RDMA (SMC-R) and RoCE
21 #include "smc.h"
59 static int smc_rx_update_consumer(struct smc_sock *smc, in smc_rx_update_consumer() argument
62 struct smc_connection *conn = &smc->conn; in smc_rx_update_consumer()
63 struct sock *sk = &smc->sk; in smc_rx_update_consumer()
100 static void smc_rx_update_cons(struct smc_sock *smc, size_t len) in smc_rx_update_cons() argument
102 struct smc_connection *conn = &smc->conn; in smc_rx_update_cons()
106 smc_rx_update_consumer(smc, cons, len); in smc_rx_update_cons()
110 struct smc_sock *smc; member
118 struct smc_connection *conn = &priv->smc->conn; in smc_rx_pipe_buf_release()
[all …]
/linux/Documentation/devicetree/bindings/memory-controllers/
H A Datmel,ebi.txt5 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 …]
/linux/drivers/net/fddi/skfp/h/
H A Dcmtdef.h61 #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/drivers/power/supply/
H A Dmacsmc-power.c3 * Apple SMC Power/Battery Management Driver
6 * and AC adapter status provided by the Apple SMC (System Management Controller)
28 * The SMC reports charge in mAh (Coulombs) but energy in mWh (Joules).
35 /* SMC Key Flags */
71 struct apple_smc *smc; member
83 /* Supported feature flags based on SMC key presence */
123 ret = apple_smc_read_u32(power->smc, SMC_KEY(CH0R), &nopower_flags); in macsmc_battery_get_status()
128 ret = apple_smc_read_flag(power->smc, SMC_KEY(CHCE), &flag); in macsmc_battery_get_status()
135 ret = apple_smc_read_flag(power->smc, SMC_KEY(CHCC), &flag); in macsmc_battery_get_status()
142 ret = apple_smc_read_u16(power->smc, SMC_KEY(AC-i), &ac_current); in macsmc_battery_get_status()
[all …]

12345678910>>...20