Home
last modified time | relevance | path

Searched refs:sc (Results 1 – 14 of 14) sorted by relevance

/net/tipc/
Dname_table.c143 static struct service_range *tipc_service_first_range(struct tipc_service *sc, in tipc_service_first_range() argument
146 struct rb_node *n = sc->ranges.rb_node; in tipc_service_first_range()
163 static struct service_range *tipc_service_find_range(struct tipc_service *sc, in tipc_service_find_range() argument
166 struct rb_node *n = sc->ranges.rb_node; in tipc_service_find_range()
169 sr = tipc_service_first_range(sc, lower); in tipc_service_find_range()
185 static struct service_range *tipc_service_create_range(struct tipc_service *sc, in tipc_service_create_range() argument
191 n = &sc->ranges.rb_node; in tipc_service_create_range()
215 rb_insert_color(&sr->tree_node, &sc->ranges); in tipc_service_create_range()
220 struct tipc_service *sc, in tipc_service_insert_publ() argument
231 sr = tipc_service_create_range(sc, lower, upper); in tipc_service_insert_publ()
[all …]
Daddr.h75 static inline int tipc_scope2node(struct net *net, int sc) in tipc_scope2node() argument
77 return sc != TIPC_NODE_SCOPE ? 0 : tipc_own_addr(net); in tipc_scope2node()
/net/ceph/
Dsnapshot.c46 struct ceph_snap_context *ceph_get_snap_context(struct ceph_snap_context *sc) in ceph_get_snap_context() argument
48 if (sc) in ceph_get_snap_context()
49 refcount_inc(&sc->nref); in ceph_get_snap_context()
50 return sc; in ceph_get_snap_context()
54 void ceph_put_snap_context(struct ceph_snap_context *sc) in ceph_put_snap_context() argument
56 if (!sc) in ceph_put_snap_context()
58 if (refcount_dec_and_test(&sc->nref)) { in ceph_put_snap_context()
60 kfree(sc); in ceph_put_snap_context()
Dceph_fs.c14 __u32 sc = layout->stripe_count; in ceph_file_layout_is_valid() local
26 if (!sc) in ceph_file_layout_is_valid()
Dauth_x.c578 struct ceph_x_server_challenge *sc = buf; in ceph_x_handle_reply() local
580 if (len != sizeof(*sc)) in ceph_x_handle_reply()
582 xi->server_challenge = le64_to_cpu(sc->server_challenge); in ceph_x_handle_reply()
/net/sunrpc/xprtrdma/
Dverbs.c77 static void rpcrdma_sendctx_put_locked(struct rpcrdma_sendctx *sc);
135 struct rpcrdma_sendctx *sc = in rpcrdma_wc_send() local
139 trace_xprtrdma_wc_send(sc, wc); in rpcrdma_wc_send()
140 rpcrdma_sendctx_put_locked(sc); in rpcrdma_wc_send()
814 struct rpcrdma_sendctx *sc; in rpcrdma_sendctx_create() local
816 sc = kzalloc(struct_size(sc, sc_sges, ia->ri_max_send_sges), in rpcrdma_sendctx_create()
818 if (!sc) in rpcrdma_sendctx_create()
821 sc->sc_wr.wr_cqe = &sc->sc_cqe; in rpcrdma_sendctx_create()
822 sc->sc_wr.sg_list = sc->sc_sges; in rpcrdma_sendctx_create()
823 sc->sc_wr.opcode = IB_WR_SEND; in rpcrdma_sendctx_create()
[all …]
Drpc_rdma.c582 void rpcrdma_sendctx_unmap(struct rpcrdma_sendctx *sc) in rpcrdma_sendctx_unmap() argument
586 if (!sc->sc_unmap_count) in rpcrdma_sendctx_unmap()
593 for (sge = &sc->sc_sges[2]; sc->sc_unmap_count; in rpcrdma_sendctx_unmap()
594 ++sge, --sc->sc_unmap_count) in rpcrdma_sendctx_unmap()
595 ib_dma_unmap_page(sc->sc_device, sge->addr, sge->length, in rpcrdma_sendctx_unmap()
598 kref_put(&sc->sc_req->rl_kref, rpcrdma_sendctx_done); in rpcrdma_sendctx_unmap()
606 struct rpcrdma_sendctx *sc = req->rl_sendctx; in rpcrdma_prepare_hdr_sge() local
608 struct ib_sge *sge = sc->sc_sges; in rpcrdma_prepare_hdr_sge()
618 sc->sc_wr.num_sge++; in rpcrdma_prepare_hdr_sge()
634 struct rpcrdma_sendctx *sc = req->rl_sendctx; in rpcrdma_prepare_msg_sges() local
[all …]
Dxprt_rdma.h579 void rpcrdma_sendctx_unmap(struct rpcrdma_sendctx *sc);
/net/sched/
Dsch_hfsc.c474 sc2isc(struct tc_service_curve *sc, struct internal_sc *isc) in sc2isc() argument
476 isc->sm1 = m2sm(sc->m1); in sc2isc()
477 isc->ism1 = m2ism(sc->m1); in sc2isc()
478 isc->dx = d2dx(sc->d); in sc2isc()
480 isc->sm2 = m2sm(sc->m2); in sc2isc()
481 isc->ism2 = m2ism(sc->m2); in sc2isc()
1268 hfsc_dump_sc(struct sk_buff *skb, int attr, struct internal_sc *sc) in hfsc_dump_sc() argument
1272 tsc.m1 = sm2m(sc->sm1); in hfsc_dump_sc()
1273 tsc.d = dx2d(sc->dx); in hfsc_dump_sc()
1274 tsc.m2 = sm2m(sc->sm2); in hfsc_dump_sc()
/net/netfilter/ipvs/
Dip_vs_sync.c792 ip_vs_conn_fill_param_sync(struct netns_ipvs *ipvs, int af, union ip_vs_sync_conn *sc, in ip_vs_conn_fill_param_sync() argument
799 ip_vs_conn_fill_param(ipvs, af, sc->v6.protocol, in ip_vs_conn_fill_param_sync()
800 (const union nf_inet_addr *)&sc->v6.caddr, in ip_vs_conn_fill_param_sync()
801 sc->v6.cport, in ip_vs_conn_fill_param_sync()
802 (const union nf_inet_addr *)&sc->v6.vaddr, in ip_vs_conn_fill_param_sync()
803 sc->v6.vport, p); in ip_vs_conn_fill_param_sync()
806 ip_vs_conn_fill_param(ipvs, af, sc->v4.protocol, in ip_vs_conn_fill_param_sync()
807 (const union nf_inet_addr *)&sc->v4.caddr, in ip_vs_conn_fill_param_sync()
808 sc->v4.cport, in ip_vs_conn_fill_param_sync()
809 (const union nf_inet_addr *)&sc->v4.vaddr, in ip_vs_conn_fill_param_sync()
[all …]
/net/ieee802154/
Dheader_ops.c198 static int ieee802154_hdr_sechdr_len(u8 sc) in ieee802154_hdr_sechdr_len() argument
200 return ieee802154_sechdr_lengths[IEEE802154_SCF_KEY_ID_MODE(sc)]; in ieee802154_hdr_sechdr_len()
/net/sunrpc/
Dauth.c527 rpcauth_cache_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in rpcauth_cache_shrink_scan() argument
530 if ((sc->gfp_mask & GFP_KERNEL) != GFP_KERNEL) in rpcauth_cache_shrink_scan()
537 return rpcauth_cache_do_shrink(sc->nr_to_scan); in rpcauth_cache_shrink_scan()
541 rpcauth_cache_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in rpcauth_cache_shrink_count() argument
/net/mac80211/
Drx.c1267 u16 sc = le16_to_cpu(hdr->seq_ctrl); in ieee80211_sta_manage_reorder_buf() local
1268 u16 mpdu_seq_num = (sc & IEEE80211_SCTL_SEQ) >> 4; in ieee80211_sta_manage_reorder_buf()
1368 u16 sc; in ieee80211_rx_reorder_ampdu() local
1413 sc = le16_to_cpu(hdr->seq_ctrl); in ieee80211_rx_reorder_ampdu()
1414 if (sc & IEEE80211_SCTL_FRAG) { in ieee80211_rx_reorder_ampdu()
2187 u16 sc; in ieee80211_rx_h_defragment() local
2200 sc = le16_to_cpu(hdr->seq_ctrl); in ieee80211_rx_h_defragment()
2201 frag = sc & IEEE80211_SCTL_FRAG; in ieee80211_rx_h_defragment()
2223 seq = (sc & IEEE80211_SCTL_SEQ) >> 4; in ieee80211_rx_h_defragment()
/net/nfc/
Ddigital_core.c293 params->sc = DIGITAL_SENSF_FELICA_SC; in digital_tg_listen_mdaa()