Home
last modified time | relevance | path

Searched refs:llc (Results 1 – 25 of 60) sorted by relevance

123

/kernel/linux/linux-5.10/net/llc/
Dllc_c_ac.c47 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_clear_remote_busy() local
49 if (llc->remote_busy_flag) { in llc_conn_ac_clear_remote_busy()
53 llc->remote_busy_flag = 0; in llc_conn_ac_clear_remote_busy()
54 del_timer(&llc->busy_state_timer.timer); in llc_conn_ac_clear_remote_busy()
134 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_rst_ind() local
154 if (llc->retry_count > llc->n2) { in llc_conn_ac_rst_ind()
191 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2() local
193 if (llc->data_flag == 2) in llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2()
194 del_timer(&llc->rej_sent_timer.timer); in llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2()
201 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_disc_cmd_p_set_x() local
[all …]
Dllc_conn.c64 struct llc_sock *llc = llc_sk(skb->sk); in llc_conn_state_process() local
131 if (!llc_data_accept_state(llc->state)) in llc_conn_state_process()
134 rc = llc->failed_data_req = 1; in llc_conn_state_process()
215 struct llc_sock *llc; in llc_conn_resend_i_pdu_as_cmd() local
225 llc = llc_sk(sk); in llc_conn_resend_i_pdu_as_cmd()
227 while ((skb = skb_dequeue(&llc->pdu_unack_q)) != NULL) { in llc_conn_resend_i_pdu_as_cmd()
233 llc->vS = LLC_I_GET_NS(pdu); in llc_conn_resend_i_pdu_as_cmd()
237 llc->vS = (llc->vS + 1) % LLC_2_SEQ_NBR_MODULO; in llc_conn_resend_i_pdu_as_cmd()
257 struct llc_sock *llc = llc_sk(sk); in llc_conn_resend_i_pdu_as_rsp() local
267 while ((skb = skb_dequeue(&llc->pdu_unack_q)) != NULL) { in llc_conn_resend_i_pdu_as_rsp()
[all …]
Dllc_proc.c83 struct llc_sock *llc; in llc_seq_next() local
97 llc = llc_sk(sk); in llc_seq_next()
98 sap = llc->sap; in llc_seq_next()
99 sk = laddr_hash_next(sap, llc_sk_laddr_hashfn(sap, &llc->laddr)); in llc_seq_next()
118 struct llc_sock *llc = llc_sk(sk); in llc_seq_stop() local
119 struct llc_sap *sap = llc->sap; in llc_seq_stop()
129 struct llc_sock *llc; in llc_seq_socket_show() local
137 llc = llc_sk(sk); in llc_seq_socket_show()
142 if (llc->dev) in llc_seq_socket_show()
143 llc_ui_format_mac(seq, llc->dev->dev_addr); in llc_seq_socket_show()
[all …]
Daf_llc.c129 struct llc_sock* llc = llc_sk(sk); in llc_ui_send_data() local
131 if (unlikely(llc_data_accept_state(llc->state) || in llc_ui_send_data()
132 llc->remote_busy_flag || in llc_ui_send_data()
133 llc->p_flag)) { in llc_ui_send_data()
203 struct llc_sock *llc; in llc_ui_release() local
209 llc = llc_sk(sk); in llc_ui_release()
211 llc->laddr.lsap, llc->daddr.lsap); in llc_ui_release()
215 struct llc_sap *sap = llc->sap; in llc_ui_release()
221 llc_sap_remove_socket(llc->sap, sk); in llc_ui_release()
227 if (llc->dev) in llc_ui_release()
[all …]
Dllc_if.c48 struct llc_sock *llc = llc_sk(sk); in llc_build_and_send_pkt() local
50 if (unlikely(llc->state == LLC_CONN_STATE_ADM)) in llc_build_and_send_pkt()
53 if (unlikely(llc_data_accept_state(llc->state) || /* data_conn_refuse */ in llc_build_and_send_pkt()
54 llc->p_flag)) { in llc_build_and_send_pkt()
55 llc->failed_data_req = 1; in llc_build_and_send_pkt()
62 skb->dev = llc->dev; in llc_build_and_send_pkt()
88 struct llc_sock *llc = llc_sk(sk); in llc_establish_connection() local
91 laddr.lsap = llc->sap->laddr.lsap; in llc_establish_connection()
95 existing = llc_lookup_established(llc->sap, &daddr, &laddr); in llc_establish_connection()
Dllc_sap.c299 struct llc_sock *llc = llc_sk(sk); in llc_dgram_match() local
302 llc->laddr.lsap == laddr->lsap && in llc_dgram_match()
303 ether_addr_equal(llc->laddr.mac, laddr->mac); in llc_dgram_match()
355 struct llc_sock *llc = llc_sk(sk); in llc_mcast_match() local
358 llc->laddr.lsap == laddr->lsap && in llc_mcast_match()
359 llc->dev == skb->dev; in llc_mcast_match()
396 struct llc_sock *llc; in llc_sap_mcast() local
400 hlist_for_each_entry(llc, dev_hb, dev_hash_node) { in llc_sap_mcast()
402 sk = &llc->sk; in llc_sap_mcast()
DMakefile15 obj-$(CONFIG_LLC) += llc.o
17 llc-y := llc_core.o llc_input.o llc_output.o
/kernel/linux/linux-5.10/net/nfc/hci/
Dllc.c96 struct nfc_llc *llc; in nfc_llc_allocate() local
102 llc = kzalloc(sizeof(struct nfc_llc), GFP_KERNEL); in nfc_llc_allocate()
103 if (llc == NULL) in nfc_llc_allocate()
106 llc->data = llc_engine->ops->init(hdev, xmit_to_drv, rcv_to_hci, in nfc_llc_allocate()
108 &llc->rx_headroom, &llc->rx_tailroom, in nfc_llc_allocate()
110 if (llc->data == NULL) { in nfc_llc_allocate()
111 kfree(llc); in nfc_llc_allocate()
114 llc->ops = llc_engine->ops; in nfc_llc_allocate()
116 return llc; in nfc_llc_allocate()
119 void nfc_llc_free(struct nfc_llc *llc) in nfc_llc_free() argument
[all …]
Dllc_nop.c45 static void llc_nop_deinit(struct nfc_llc *llc) in llc_nop_deinit() argument
47 kfree(nfc_llc_get_data(llc)); in llc_nop_deinit()
50 static int llc_nop_start(struct nfc_llc *llc) in llc_nop_start() argument
55 static int llc_nop_stop(struct nfc_llc *llc) in llc_nop_stop() argument
60 static void llc_nop_rcv_from_drv(struct nfc_llc *llc, struct sk_buff *skb) in llc_nop_rcv_from_drv() argument
62 struct llc_nop *llc_nop = nfc_llc_get_data(llc); in llc_nop_rcv_from_drv()
67 static int llc_nop_xmit_from_hci(struct nfc_llc *llc, struct sk_buff *skb) in llc_nop_xmit_from_hci() argument
69 struct llc_nop *llc_nop = nfc_llc_get_data(llc); in llc_nop_xmit_from_hci()
Dllc.h20 void (*deinit) (struct nfc_llc *llc);
21 int (*start) (struct nfc_llc *llc);
22 int (*stop) (struct nfc_llc *llc);
23 void (*rcv_from_drv) (struct nfc_llc *llc, struct sk_buff *skb);
24 int (*xmit_from_hci) (struct nfc_llc *llc, struct sk_buff *skb);
40 void *nfc_llc_get_data(struct nfc_llc *llc);
Dllc_shdlc.c778 static void llc_shdlc_deinit(struct nfc_llc *llc) in llc_shdlc_deinit() argument
780 struct llc_shdlc *shdlc = nfc_llc_get_data(llc); in llc_shdlc_deinit()
789 static int llc_shdlc_start(struct nfc_llc *llc) in llc_shdlc_start() argument
791 struct llc_shdlc *shdlc = nfc_llc_get_data(llc); in llc_shdlc_start()
796 static int llc_shdlc_stop(struct nfc_llc *llc) in llc_shdlc_stop() argument
798 struct llc_shdlc *shdlc = nfc_llc_get_data(llc); in llc_shdlc_stop()
805 static void llc_shdlc_rcv_from_drv(struct nfc_llc *llc, struct sk_buff *skb) in llc_shdlc_rcv_from_drv() argument
807 struct llc_shdlc *shdlc = nfc_llc_get_data(llc); in llc_shdlc_rcv_from_drv()
812 static int llc_shdlc_xmit_from_hci(struct nfc_llc *llc, struct sk_buff *skb) in llc_shdlc_xmit_from_hci() argument
814 struct llc_shdlc *shdlc = nfc_llc_get_data(llc); in llc_shdlc_xmit_from_hci()
Dcore.c99 r = nfc_llc_xmit_from_hci(hdev->llc, skb); in nfc_hci_msg_tx_work()
590 r = nfc_llc_start(hdev->llc); in hci_dev_up()
616 nfc_llc_stop(hdev->llc); in hci_dev_up()
629 nfc_llc_stop(hdev->llc); in hci_dev_down()
971 hdev->llc = nfc_llc_allocate(llc_name, hdev, ops->xmit, in nfc_hci_allocate_device()
974 if (hdev->llc == NULL) { in nfc_hci_allocate_device()
983 nfc_llc_free(hdev->llc); in nfc_hci_allocate_device()
1005 nfc_llc_free(hdev->llc); in nfc_hci_free_device()
1087 nfc_llc_rcv_from_drv(hdev->llc, skb); in nfc_hci_recv_frame()
DMakefile8 hci-y := core.o hcp.o command.o llc.o llc_nop.o
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dintel_llc.c22 static struct intel_gt *llc_to_gt(struct intel_llc *llc) in llc_to_gt() argument
24 return container_of(llc, struct intel_gt, llc); in llc_to_gt()
47 static bool get_ia_constants(struct intel_llc *llc, in get_ia_constants() argument
50 struct drm_i915_private *i915 = llc_to_gt(llc)->i915; in get_ia_constants()
51 struct intel_rps *rps = &llc_to_gt(llc)->rps; in get_ia_constants()
62 intel_uncore_read(llc_to_gt(llc)->uncore, DCLK) & 0xf; in get_ia_constants()
77 static void calc_ia_freq(struct intel_llc *llc, in calc_ia_freq() argument
83 struct drm_i915_private *i915 = llc_to_gt(llc)->i915; in calc_ia_freq()
123 static void gen6_update_ring_freq(struct intel_llc *llc) in gen6_update_ring_freq() argument
125 struct drm_i915_private *i915 = llc_to_gt(llc)->i915; in gen6_update_ring_freq()
[all …]
Dselftest_llc.c11 static int gen6_verify_ring_freq(struct intel_llc *llc) in gen6_verify_ring_freq() argument
13 struct drm_i915_private *i915 = llc_to_gt(llc)->i915; in gen6_verify_ring_freq()
19 wakeref = intel_runtime_pm_get(llc_to_gt(llc)->uncore->rpm); in gen6_verify_ring_freq()
21 if (!get_ia_constants(llc, &consts)) in gen6_verify_ring_freq()
27 struct intel_rps *rps = &llc_to_gt(llc)->rps; in gen6_verify_ring_freq()
32 calc_ia_freq(llc, gpu_freq, &consts, &ia_freq, &ring_freq); in gen6_verify_ring_freq()
66 intel_runtime_pm_put(llc_to_gt(llc)->uncore->rpm, wakeref); in gen6_verify_ring_freq()
70 int st_llc_verify(struct intel_llc *llc) in st_llc_verify() argument
72 return gen6_verify_ring_freq(llc); in st_llc_verify()
Dintel_llc.h12 void intel_llc_enable(struct intel_llc *llc);
13 void intel_llc_disable(struct intel_llc *llc);
Dselftest_llc.h12 int st_llc_verify(struct intel_llc *llc);
/kernel/linux/linux-5.10/net/bridge/netfilter/
Debt_802_3.c27 __be16 type = hdr->llc.ui.ctrl & IS_UI ? hdr->llc.ui.type : hdr->llc.ni.type; in ebt_802_3_mt()
30 if (NF_INVF(info, EBT_802_3_SAP, info->sap != hdr->llc.ui.ssap)) in ebt_802_3_mt()
32 if (NF_INVF(info, EBT_802_3_SAP, info->sap != hdr->llc.ui.dsap)) in ebt_802_3_mt()
37 if (!(hdr->llc.ui.dsap == CHECK_TYPE && hdr->llc.ui.ssap == CHECK_TYPE)) in ebt_802_3_mt()
/kernel/linux/linux-5.10/include/net/nfc/
Dllc.h27 void nfc_llc_free(struct nfc_llc *llc);
29 int nfc_llc_start(struct nfc_llc *llc);
30 int nfc_llc_stop(struct nfc_llc *llc);
31 void nfc_llc_rcv_from_drv(struct nfc_llc *llc, struct sk_buff *skb);
32 int nfc_llc_xmit_from_hci(struct nfc_llc *llc, struct sk_buff *skb);
/kernel/linux/linux-5.10/net/smc/
Dsmc_llc.c162 static void smc_llc_enqueue(struct smc_link *link, union smc_llc_msg *llc);
870 struct smc_llc_msg_add_link *llc = &qentry->msg.add_link; in smc_llc_cli_add_link() local
877 if (!llc->qp_mtu) in smc_llc_cli_add_link()
882 if (!memcmp(llc->sender_gid, link->peer_gid, SMC_GID_SIZE) && in smc_llc_cli_add_link()
883 !memcmp(llc->sender_mac, link->peer_mac, ETH_ALEN)) { in smc_llc_cli_add_link()
900 smc_llc_save_add_link_info(lnk_new, llc); in smc_llc_cli_add_link()
901 lnk_new->link_id = llc->link_num; /* SMC server assigns link id */ in smc_llc_cli_add_link()
957 static bool smc_llc_is_empty_llc_message(union smc_llc_msg *llc) in smc_llc_is_empty_llc_message() argument
961 for (i = 0; i < ARRAY_SIZE(llc->raw.data); i++) in smc_llc_is_empty_llc_message()
962 if (llc->raw.data[i]) in smc_llc_is_empty_llc_message()
[all …]
/kernel/linux/linux-5.10/samples/bpf/
DREADME.rst14 Note that LLVM's tool 'llc' must support target 'bpf', list version
15 and supported targets with command: ``llc --version``
61 To generate a smaller llc binary one can use::
75 It is also possible to point make to the newly compiled 'llc' or
78 make M=samples/bpf LLC=~/git/llvm/build/bin/llc CLANG=~/git/llvm/build/bin/clang
/kernel/linux/linux-5.10/Documentation/driver-api/nfc/
Dnfc-hci.rst142 layers such as an llc to store the frame for re-emission, this
154 A new llc must implement the following functions::
161 void (*deinit) (struct nfc_llc *llc);
162 int (*start) (struct nfc_llc *llc);
163 int (*stop) (struct nfc_llc *llc);
164 void (*rcv_from_drv) (struct nfc_llc *llc, struct sk_buff *skb);
165 int (*xmit_from_hci) (struct nfc_llc *llc, struct sk_buff *skb);
181 The llc must be registered with nfc before it can be used. Do that by
186 Again, note that the llc does not handle the physical link. It is thus very
187 easy to mix any physical link with any llc for a given chip driver.
[all …]
/kernel/linux/linux-5.10/net/openvswitch/
Dflow.c376 struct llc_snap_hdr *llc; in parse_ethertype() local
391 llc = (struct llc_snap_hdr *) skb->data; in parse_ethertype()
392 if (llc->dsap != LLC_SAP_SNAP || in parse_ethertype()
393 llc->ssap != LLC_SAP_SNAP || in parse_ethertype()
394 (llc->oui[0] | llc->oui[1] | llc->oui[2]) != 0) in parse_ethertype()
399 if (eth_proto_is_802_3(llc->ethertype)) in parse_ethertype()
400 return llc->ethertype; in parse_ethertype()
/kernel/linux/linux-5.10/include/uapi/linux/
Dif_fc.h47 __u8 llc; /* LLC control field */ member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dif_fc.h34 __u8 llc; member

123