/net/rds/ |
D | ib_cm.c | 59 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() 76 struct rds_ib_connection *ic = conn->c_transport_data; in rds_ib_cm_connect_complete() local 124 ic->i_active_side ? "Active" : "Passive", in rds_ib_cm_connect_complete() 128 ic->i_flowctl ? ", flow control" : ""); in rds_ib_cm_connect_complete() 131 ic->i_sl = ic->i_cm_id->route.path_rec->sl; in rds_ib_cm_connect_complete() 133 atomic_set(&ic->i_cq_quiesce, 0); in rds_ib_cm_connect_complete() 139 rds_ib_send_init_ring(ic); in rds_ib_cm_connect_complete() 140 rds_ib_recv_init_ring(ic); in rds_ib_cm_connect_complete() [all …]
|
D | ib_recv.c | 48 void rds_ib_recv_init_ring(struct rds_ib_connection *ic) in rds_ib_recv_init_ring() argument 53 for (i = 0, recv = ic->i_recvs; i < ic->i_recv_ring.w_nr; i++, recv++) { in rds_ib_recv_init_ring() 65 sge->addr = ic->i_recv_hdrs_dma[i]; in rds_ib_recv_init_ring() 67 sge->lkey = ic->i_pd->local_dma_lkey; in rds_ib_recv_init_ring() 72 sge->lkey = ic->i_pd->local_dma_lkey; in rds_ib_recv_init_ring() 122 int rds_ib_recv_alloc_caches(struct rds_ib_connection *ic, gfp_t gfp) in rds_ib_recv_alloc_caches() argument 126 ret = rds_ib_recv_alloc_cache(&ic->i_cache_incs, gfp); in rds_ib_recv_alloc_caches() 128 ret = rds_ib_recv_alloc_cache(&ic->i_cache_frags, gfp); in rds_ib_recv_alloc_caches() 130 free_percpu(ic->i_cache_incs.percpu); in rds_ib_recv_alloc_caches() 156 void rds_ib_recv_free_caches(struct rds_ib_connection *ic) in rds_ib_recv_free_caches() argument [all …]
|
D | ib_send.c | 73 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 …]
|
D | ib.c | 75 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 …]
|
D | ib_frmr.c | 47 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, ®_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 …]
|
D | ib.h | 392 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 …]
|
D | ib_rdma.c | 128 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 …]
|
D | ib_mr.h | 69 struct rds_ib_connection *ic; member 137 struct rds_ib_connection *ic,
|
/net/netfilter/ipset/ |
D | ip_set_getport.c | 68 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/netfilter/ |
D | xt_tcpudp.c | 191 const struct icmphdr *ic; in icmp_match() local 199 ic = skb_header_pointer(skb, par->thoff, sizeof(_icmph), &_icmph); in icmp_match() 200 if (!ic) { in icmp_match() 211 ic->type, ic->code, in icmp_match() 218 const struct icmp6hdr *ic; in icmp6_match() local 226 ic = skb_header_pointer(skb, par->thoff, sizeof(_icmph), &_icmph); in icmp6_match() 227 if (!ic) { in icmp6_match() 238 ic->icmp6_type, ic->icmp6_code, in icmp6_match()
|
D | nf_log_syslog.c | 704 const struct icmp6hdr *ic; in dump_ipv6_packet() local 713 ic = skb_header_pointer(skb, ptr, sizeof(_icmp6h), &_icmp6h); in dump_ipv6_packet() 714 if (!ic) { in dump_ipv6_packet() 722 ic->icmp6_type, ic->icmp6_code); in dump_ipv6_packet() 724 switch (ic->icmp6_type) { in dump_ipv6_packet() 729 ntohs(ic->icmp6_identifier), in dump_ipv6_packet() 730 ntohs(ic->icmp6_sequence)); in dump_ipv6_packet() 740 ntohl(ic->icmp6_pointer)); in dump_ipv6_packet() 754 if (ic->icmp6_type == ICMPV6_PKT_TOOBIG) { in dump_ipv6_packet() 756 ntohl(ic->icmp6_mtu)); in dump_ipv6_packet()
|
/net/netfilter/ipvs/ |
D | ip_vs_core.c | 918 struct icmphdr _icmph, *ic; in ip_vs_out_icmp() local 936 ic = skb_header_pointer(skb, offset, sizeof(_icmph), &_icmph); in ip_vs_out_icmp() 937 if (ic == NULL) in ip_vs_out_icmp() 941 ic->type, ntohs(icmp_id(ic)), in ip_vs_out_icmp() 951 if ((ic->type != ICMP_DEST_UNREACH) && in ip_vs_out_icmp() 952 (ic->type != ICMP_SOURCE_QUENCH) && in ip_vs_out_icmp() 953 (ic->type != ICMP_TIME_EXCEEDED)) { in ip_vs_out_icmp() 994 struct icmp6hdr _icmph, *ic; in ip_vs_out_icmp_v6() local 1002 ic = frag_safe_skb_hp(skb, ipvsh->len, sizeof(_icmph), &_icmph); in ip_vs_out_icmp_v6() 1003 if (ic == NULL) in ip_vs_out_icmp_v6() [all …]
|
/net/atm/ |
D | ioctl.c | 157 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()
|