Home
last modified time | relevance | path

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

/net/rds/
Dib_cm.c59 struct rds_ib_connection *ic = conn->c_transport_data; in rds_ib_set_flow_control() local
63 ic->i_flowctl = 1; in rds_ib_set_flow_control()
66 ic->i_flowctl = 0; in rds_ib_set_flow_control()
85 rds_ib_tune_rnr(struct rds_ib_connection *ic, struct ib_qp_attr *attr) in rds_ib_tune_rnr() argument
90 ret = ib_modify_qp(ic->i_cm_id->qp, attr, IB_QP_MIN_RNR_TIMER); in rds_ib_tune_rnr()
101 struct rds_ib_connection *ic = conn->c_transport_data; in rds_ib_cm_connect_complete() local
150 ic->i_active_side ? "Active" : "Passive", in rds_ib_cm_connect_complete()
154 ic->i_flowctl ? ", flow control" : ""); in rds_ib_cm_connect_complete()
157 ic->i_sl = ic->i_cm_id->route.path_rec->sl; in rds_ib_cm_connect_complete()
159 atomic_set(&ic->i_cq_quiesce, 0); in rds_ib_cm_connect_complete()
[all …]
Dib_recv.c47 void rds_ib_recv_init_ring(struct rds_ib_connection *ic) in rds_ib_recv_init_ring() argument
52 for (i = 0, recv = ic->i_recvs; i < ic->i_recv_ring.w_nr; i++, recv++) { in rds_ib_recv_init_ring()
64 sge->addr = ic->i_recv_hdrs_dma[i]; in rds_ib_recv_init_ring()
66 sge->lkey = ic->i_pd->local_dma_lkey; in rds_ib_recv_init_ring()
71 sge->lkey = ic->i_pd->local_dma_lkey; in rds_ib_recv_init_ring()
121 int rds_ib_recv_alloc_caches(struct rds_ib_connection *ic, gfp_t gfp) in rds_ib_recv_alloc_caches() argument
125 ret = rds_ib_recv_alloc_cache(&ic->i_cache_incs, gfp); in rds_ib_recv_alloc_caches()
127 ret = rds_ib_recv_alloc_cache(&ic->i_cache_frags, gfp); in rds_ib_recv_alloc_caches()
129 free_percpu(ic->i_cache_incs.percpu); in rds_ib_recv_alloc_caches()
155 void rds_ib_recv_free_caches(struct rds_ib_connection *ic) in rds_ib_recv_free_caches() argument
[all …]
Dib_send.c73 static void rds_ib_send_unmap_data(struct rds_ib_connection *ic, in rds_ib_send_unmap_data() argument
78 ib_dma_unmap_sg(ic->i_cm_id->device, in rds_ib_send_unmap_data()
83 static void rds_ib_send_unmap_rdma(struct rds_ib_connection *ic, in rds_ib_send_unmap_rdma() argument
88 ib_dma_unmap_sg(ic->i_cm_id->device, in rds_ib_send_unmap_rdma()
123 static void rds_ib_send_unmap_atomic(struct rds_ib_connection *ic, in rds_ib_send_unmap_atomic() argument
129 ib_dma_unmap_sg(ic->i_cm_id->device, op->op_sg, 1, in rds_ib_send_unmap_atomic()
150 static struct rds_message *rds_ib_send_unmap_op(struct rds_ib_connection *ic, in rds_ib_send_unmap_op() argument
161 rds_ib_send_unmap_data(ic, send->s_op, wc_status); in rds_ib_send_unmap_op()
168 rds_ib_send_unmap_rdma(ic, send->s_op, wc_status); in rds_ib_send_unmap_op()
175 rds_ib_send_unmap_atomic(ic, send->s_op, wc_status); in rds_ib_send_unmap_op()
[all …]
Dib.c75 struct rds_ib_connection *ic; in rds_ib_nodev_connect() local
78 list_for_each_entry(ic, &ib_nodev_conns, ib_node) in rds_ib_nodev_connect()
79 rds_conn_connect_if_down(ic->conn); in rds_ib_nodev_connect()
85 struct rds_ib_connection *ic; in rds_ib_dev_shutdown() local
89 list_for_each_entry(ic, &rds_ibdev->conn_list, ib_node) in rds_ib_dev_shutdown()
90 rds_conn_path_drop(&ic->conn->c_path[0], true); in rds_ib_dev_shutdown()
298 struct rds_ib_connection *ic = conn->c_transport_data; in rds_ib_conn_info_visitor() local
308 if (ic) { in rds_ib_conn_info_visitor()
310 iinfo->sl = ic->i_sl; in rds_ib_conn_info_visitor()
318 rdma_read_gids(ic->i_cm_id, (union ib_gid *)&iinfo->src_gid, in rds_ib_conn_info_visitor()
[all …]
Dib_frmr.c47 atomic_dec(&ibmr->ic->i_fastreg_inuse_count); in rds_transition_frwr_state()
129 while (atomic_dec_return(&ibmr->ic->i_fastreg_wrs) <= 0) { in rds_ib_post_reg_frmr()
130 atomic_inc(&ibmr->ic->i_fastreg_wrs); in rds_ib_post_reg_frmr()
143 atomic_inc(&ibmr->ic->i_fastreg_inuse_count); in rds_ib_post_reg_frmr()
164 ret = ib_post_send(ibmr->ic->i_cm_id->qp, &reg_wr.wr, NULL); in rds_ib_post_reg_frmr()
169 atomic_inc(&ibmr->ic->i_fastreg_wrs); in rds_ib_post_reg_frmr()
270 struct rdma_cm_id *i_cm_id = ibmr->ic->i_cm_id; in rds_ib_post_inv()
279 while (atomic_dec_return(&ibmr->ic->i_fastreg_wrs) <= 0) { in rds_ib_post_inv()
280 atomic_inc(&ibmr->ic->i_fastreg_wrs); in rds_ib_post_inv()
301 atomic_inc(&ibmr->ic->i_fastreg_wrs); in rds_ib_post_inv()
[all …]
Dib.h392 void rds_ib_mr_cqe_handler(struct rds_ib_connection *ic, struct ib_wc *wc);
398 int rds_ib_recv_alloc_caches(struct rds_ib_connection *ic, gfp_t gfp);
399 void rds_ib_recv_free_caches(struct rds_ib_connection *ic);
403 void rds_ib_recv_cqe_handler(struct rds_ib_connection *ic, struct ib_wc *wc,
406 void rds_ib_recv_init_ring(struct rds_ib_connection *ic);
407 void rds_ib_recv_clear_ring(struct rds_ib_connection *ic);
408 void rds_ib_recv_init_ack(struct rds_ib_connection *ic);
409 void rds_ib_attempt_ack(struct rds_ib_connection *ic);
410 void rds_ib_ack_send_complete(struct rds_ib_connection *ic);
411 u64 rds_ib_piggyb_ack(struct rds_ib_connection *ic);
[all …]
Dib_rdma.c128 struct rds_ib_connection *ic = conn->c_transport_data; in rds_ib_add_conn() local
133 BUG_ON(list_empty(&ic->ib_node)); in rds_ib_add_conn()
134 list_del(&ic->ib_node); in rds_ib_add_conn()
137 list_add_tail(&ic->ib_node, &rds_ibdev->conn_list); in rds_ib_add_conn()
141 ic->rds_ibdev = rds_ibdev; in rds_ib_add_conn()
147 struct rds_ib_connection *ic = conn->c_transport_data; in rds_ib_remove_conn() local
153 BUG_ON(list_empty(&ic->ib_node)); in rds_ib_remove_conn()
154 list_del(&ic->ib_node); in rds_ib_remove_conn()
157 list_add_tail(&ic->ib_node, &ib_nodev_conns); in rds_ib_remove_conn()
161 ic->rds_ibdev = NULL; in rds_ib_remove_conn()
[all …]
Dib_mr.h69 struct rds_ib_connection *ic; member
137 struct rds_ib_connection *ic,
/net/netfilter/ipset/
Dip_set_getport.c68 const struct icmphdr *ic; in get_port() local
70 ic = skb_header_pointer(skb, protooff, sizeof(_ich), &_ich); in get_port()
71 if (!ic) in get_port()
74 *port = (__force __be16)htons((ic->type << 8) | ic->code); in get_port()
79 const struct icmp6hdr *ic; in get_port() local
81 ic = skb_header_pointer(skb, protooff, sizeof(_ich), &_ich); in get_port()
82 if (!ic) in get_port()
86 htons((ic->icmp6_type << 8) | ic->icmp6_code); in get_port()
/net/ipv6/netfilter/
Dnf_log_ipv6.c214 const struct icmp6hdr *ic; in dump_ipv6_packet() local
223 ic = skb_header_pointer(skb, ptr, sizeof(_icmp6h), &_icmp6h); in dump_ipv6_packet()
224 if (ic == NULL) { in dump_ipv6_packet()
232 ic->icmp6_type, ic->icmp6_code); in dump_ipv6_packet()
234 switch (ic->icmp6_type) { in dump_ipv6_packet()
239 ntohs(ic->icmp6_identifier), in dump_ipv6_packet()
240 ntohs(ic->icmp6_sequence)); in dump_ipv6_packet()
250 ntohl(ic->icmp6_pointer)); in dump_ipv6_packet()
264 if (ic->icmp6_type == ICMPV6_PKT_TOOBIG) { in dump_ipv6_packet()
266 ntohl(ic->icmp6_mtu)); in dump_ipv6_packet()
Dip6_tables.c1804 const struct icmp6hdr *ic; in icmp6_match() local
1812 ic = skb_header_pointer(skb, par->thoff, sizeof(_icmph), &_icmph); in icmp6_match()
1813 if (ic == NULL) { in icmp6_match()
1824 ic->icmp6_type, ic->icmp6_code, in icmp6_match()
/net/netfilter/ipvs/
Dip_vs_core.c930 struct icmphdr _icmph, *ic; in ip_vs_out_icmp() local
948 ic = skb_header_pointer(skb, offset, sizeof(_icmph), &_icmph); in ip_vs_out_icmp()
949 if (ic == NULL) in ip_vs_out_icmp()
953 ic->type, ntohs(icmp_id(ic)), in ip_vs_out_icmp()
963 if ((ic->type != ICMP_DEST_UNREACH) && in ip_vs_out_icmp()
964 (ic->type != ICMP_SOURCE_QUENCH) && in ip_vs_out_icmp()
965 (ic->type != ICMP_TIME_EXCEEDED)) { in ip_vs_out_icmp()
1006 struct icmp6hdr _icmph, *ic; in ip_vs_out_icmp_v6() local
1014 ic = frag_safe_skb_hp(skb, ipvsh->len, sizeof(_icmph), &_icmph); in ip_vs_out_icmp_v6()
1015 if (ic == NULL) in ip_vs_out_icmp_v6()
[all …]
/net/atm/
Dioctl.c157 struct atm_ioctl *ic = list_entry(pos, struct atm_ioctl, list); in do_vcc_ioctl() local
158 if (try_module_get(ic->owner)) { in do_vcc_ioctl()
159 error = ic->ioctl(sock, cmd, arg); in do_vcc_ioctl()
160 module_put(ic->owner); in do_vcc_ioctl()
/net/ipv4/netfilter/
Dip_tables.c1794 const struct icmphdr *ic; in icmp_match() local
1802 ic = skb_header_pointer(skb, par->thoff, sizeof(_icmph), &_icmph); in icmp_match()
1803 if (ic == NULL) { in icmp_match()
1814 ic->type, ic->code, in icmp_match()