/net/rds/ |
D | ib_cm.c | 85 struct rds_ib_connection *ic = conn->c_transport_data; in rds_ib_set_flow_control() local 89 ic->i_flowctl = 1; in rds_ib_set_flow_control() 92 ic->i_flowctl = 0; in rds_ib_set_flow_control() 111 rds_ib_tune_rnr(struct rds_ib_connection *ic, struct ib_qp_attr *attr) in rds_ib_tune_rnr() argument 116 ret = ib_modify_qp(ic->i_cm_id->qp, attr, IB_QP_MIN_RNR_TIMER); in rds_ib_tune_rnr() 128 struct rds_ib_connection *ic = conn->c_transport_data; in rds_ib_cm_connect_complete() local 157 ic->i_flowctl ? ", flow control" : ""); in rds_ib_cm_connect_complete() 164 rds_ib_send_init_ring(ic); in rds_ib_cm_connect_complete() 165 rds_ib_recv_init_ring(ic); in rds_ib_cm_connect_complete() 171 rds_ib_tune_rnr(ic, &qp_attr); in rds_ib_cm_connect_complete() [all …]
|
D | iw_cm.c | 55 struct rds_iw_connection *ic = conn->c_transport_data; in rds_iw_set_flow_control() local 59 ic->i_flowctl = 1; in rds_iw_set_flow_control() 62 ic->i_flowctl = 0; in rds_iw_set_flow_control() 73 struct rds_iw_connection *ic = conn->c_transport_data; in rds_iw_cm_connect_complete() local 87 rds_iwdev = ib_get_client_data(ic->i_cm_id->device, &rds_iw_client); in rds_iw_cm_connect_complete() 88 err = rds_iw_update_cm_id(rds_iwdev, ic->i_cm_id); in rds_iw_cm_connect_complete() 102 ic->i_flowctl ? ", flow control" : ""); in rds_iw_cm_connect_complete() 112 struct rds_iw_connection *ic = conn->c_transport_data; in rds_iw_cm_fill_conn_param() local 126 dp->dp_ack_seq = rds_iw_piggyb_ack(ic); in rds_iw_cm_fill_conn_param() 129 if (ic->i_flowctl) { in rds_iw_cm_fill_conn_param() [all …]
|
D | iw_recv.c | 69 static void rds_iw_recv_unmap_page(struct rds_iw_connection *ic, in rds_iw_recv_unmap_page() argument 76 ib_dma_unmap_page(ic->i_cm_id->device, in rds_iw_recv_unmap_page() 82 void rds_iw_recv_init_ring(struct rds_iw_connection *ic) in rds_iw_recv_init_ring() argument 87 for (i = 0, recv = ic->i_recvs; i < ic->i_recv_ring.w_nr; i++, recv++) { in rds_iw_recv_init_ring() 98 sge = rds_iw_data_sge(ic, recv->r_sge); in rds_iw_recv_init_ring() 103 sge = rds_iw_header_sge(ic, recv->r_sge); in rds_iw_recv_init_ring() 104 sge->addr = ic->i_recv_hdrs_dma + (i * sizeof(struct rds_header)); in rds_iw_recv_init_ring() 110 static void rds_iw_recv_clear_one(struct rds_iw_connection *ic, in rds_iw_recv_clear_one() argument 118 rds_iw_recv_unmap_page(ic, recv); in rds_iw_recv_clear_one() 126 void rds_iw_recv_clear_ring(struct rds_iw_connection *ic) in rds_iw_recv_clear_ring() argument [all …]
|
D | ib_recv.c | 46 void rds_ib_recv_init_ring(struct rds_ib_connection *ic) in rds_ib_recv_init_ring() argument 51 for (i = 0, recv = ic->i_recvs; i < ic->i_recv_ring.w_nr; i++, recv++) { in rds_ib_recv_init_ring() 63 sge->addr = ic->i_recv_hdrs_dma + (i * sizeof(struct rds_header)); in rds_ib_recv_init_ring() 65 sge->lkey = ic->i_mr->lkey; in rds_ib_recv_init_ring() 70 sge->lkey = ic->i_mr->lkey; in rds_ib_recv_init_ring() 120 int rds_ib_recv_alloc_caches(struct rds_ib_connection *ic) in rds_ib_recv_alloc_caches() argument 124 ret = rds_ib_recv_alloc_cache(&ic->i_cache_incs); in rds_ib_recv_alloc_caches() 126 ret = rds_ib_recv_alloc_cache(&ic->i_cache_frags); in rds_ib_recv_alloc_caches() 128 free_percpu(ic->i_cache_incs.percpu); in rds_ib_recv_alloc_caches() 154 void rds_ib_recv_free_caches(struct rds_ib_connection *ic) in rds_ib_recv_free_caches() argument [all …]
|
D | ib_send.c | 105 static void rds_ib_send_unmap_rdma(struct rds_ib_connection *ic, in rds_ib_send_unmap_rdma() argument 110 ib_dma_unmap_sg(ic->i_cm_id->device, in rds_ib_send_unmap_rdma() 145 static void rds_ib_send_unmap_atomic(struct rds_ib_connection *ic, in rds_ib_send_unmap_atomic() argument 151 ib_dma_unmap_sg(ic->i_cm_id->device, op->op_sg, 1, in rds_ib_send_unmap_atomic() 165 static void rds_ib_send_unmap_data(struct rds_ib_connection *ic, in rds_ib_send_unmap_data() argument 172 ib_dma_unmap_sg(ic->i_cm_id->device, in rds_ib_send_unmap_data() 177 rds_ib_send_unmap_rdma(ic, &rm->rdma, wc_status); in rds_ib_send_unmap_data() 187 static struct rds_message *rds_ib_send_unmap_op(struct rds_ib_connection *ic, in rds_ib_send_unmap_op() argument 198 rds_ib_send_unmap_data(ic, send->s_op, wc_status); in rds_ib_send_unmap_op() 205 rds_ib_send_unmap_rdma(ic, send->s_op, wc_status); in rds_ib_send_unmap_op() [all …]
|
D | iw_send.c | 66 static void rds_iw_send_unmap_rdma(struct rds_iw_connection *ic, in rds_iw_send_unmap_rdma() argument 70 ib_dma_unmap_sg(ic->i_cm_id->device, in rds_iw_send_unmap_rdma() 77 static void rds_iw_send_unmap_rm(struct rds_iw_connection *ic, in rds_iw_send_unmap_rm() argument 83 rdsdebug("ic %p send %p rm %p\n", ic, send, rm); in rds_iw_send_unmap_rm() 85 ib_dma_unmap_sg(ic->i_cm_id->device, in rds_iw_send_unmap_rm() 90 rds_iw_send_unmap_rdma(ic, &rm->rdma); in rds_iw_send_unmap_rm() 128 void rds_iw_send_init_ring(struct rds_iw_connection *ic) in rds_iw_send_init_ring() argument 133 for (i = 0, send = ic->i_sends; i < ic->i_send_ring.w_nr; i++, send++) { in rds_iw_send_init_ring() 148 sge = rds_iw_data_sge(ic, send->s_sge); in rds_iw_send_init_ring() 151 sge = rds_iw_header_sge(ic, send->s_sge); in rds_iw_send_init_ring() [all …]
|
D | iw.h | 265 static inline u32 rds_iw_local_dma_lkey(struct rds_iw_connection *ic) in rds_iw_local_dma_lkey() argument 267 return ic->i_dma_local_lkey ? ic->i_cm_id->device->local_dma_lkey : ic->i_mr->lkey; in rds_iw_local_dma_lkey() 332 void rds_iw_recv_init_ring(struct rds_iw_connection *ic); 333 void rds_iw_recv_clear_ring(struct rds_iw_connection *ic); 334 void rds_iw_recv_init_ack(struct rds_iw_connection *ic); 335 void rds_iw_attempt_ack(struct rds_iw_connection *ic); 336 void rds_iw_ack_send_complete(struct rds_iw_connection *ic); 337 u64 rds_iw_piggyb_ack(struct rds_iw_connection *ic); 356 void rds_iw_send_init_ring(struct rds_iw_connection *ic); 357 void rds_iw_send_clear_ring(struct rds_iw_connection *ic); [all …]
|
D | ib.c | 71 struct rds_ib_connection *ic; in rds_ib_nodev_connect() local 74 list_for_each_entry(ic, &ib_nodev_conns, ib_node) in rds_ib_nodev_connect() 75 rds_conn_connect_if_down(ic->conn); in rds_ib_nodev_connect() 81 struct rds_ib_connection *ic; in rds_ib_dev_shutdown() local 85 list_for_each_entry(ic, &rds_ibdev->conn_list, ib_node) in rds_ib_dev_shutdown() 86 rds_conn_drop(ic->conn); in rds_ib_dev_shutdown() 270 struct rds_ib_connection *ic; in rds_ib_conn_info_visitor() local 285 ic = conn->c_transport_data; in rds_ib_conn_info_visitor() 286 dev_addr = &ic->i_cm_id->route.addr.dev_addr; in rds_ib_conn_info_visitor() 291 rds_ibdev = ic->rds_ibdev; in rds_ib_conn_info_visitor() [all …]
|
D | ib.h | 315 int rds_ib_recv_alloc_caches(struct rds_ib_connection *ic); 316 void rds_ib_recv_free_caches(struct rds_ib_connection *ic); 323 void rds_ib_recv_init_ring(struct rds_ib_connection *ic); 324 void rds_ib_recv_clear_ring(struct rds_ib_connection *ic); 325 void rds_ib_recv_init_ack(struct rds_ib_connection *ic); 326 void rds_ib_attempt_ack(struct rds_ib_connection *ic); 327 void rds_ib_ack_send_complete(struct rds_ib_connection *ic); 328 u64 rds_ib_piggyb_ack(struct rds_ib_connection *ic); 348 void rds_ib_send_init_ring(struct rds_ib_connection *ic); 349 void rds_ib_send_clear_ring(struct rds_ib_connection *ic); [all …]
|
D | ib_rdma.c | 164 struct rds_ib_connection *ic = conn->c_transport_data; in rds_ib_add_conn() local 169 BUG_ON(list_empty(&ic->ib_node)); in rds_ib_add_conn() 170 list_del(&ic->ib_node); in rds_ib_add_conn() 173 list_add_tail(&ic->ib_node, &rds_ibdev->conn_list); in rds_ib_add_conn() 177 ic->rds_ibdev = rds_ibdev; in rds_ib_add_conn() 183 struct rds_ib_connection *ic = conn->c_transport_data; in rds_ib_remove_conn() local 189 BUG_ON(list_empty(&ic->ib_node)); in rds_ib_remove_conn() 190 list_del(&ic->ib_node); in rds_ib_remove_conn() 193 list_add_tail(&ic->ib_node, &ib_nodev_conns); in rds_ib_remove_conn() 197 ic->rds_ibdev = NULL; in rds_ib_remove_conn() [all …]
|
D | iw_rdma.c | 200 struct rds_iw_connection *ic = conn->c_transport_data; local 205 BUG_ON(list_empty(&ic->iw_node)); 206 list_del(&ic->iw_node); 209 list_add_tail(&ic->iw_node, &rds_iwdev->conn_list); 213 ic->rds_iwdev = rds_iwdev; 218 struct rds_iw_connection *ic = conn->c_transport_data; local 224 BUG_ON(list_empty(&ic->iw_node)); 225 list_del(&ic->iw_node); 228 list_add_tail(&ic->iw_node, &iw_nodev_conns); 232 rds_iw_remove_cm_id(ic->rds_iwdev, ic->i_cm_id); [all …]
|
D | iw.c | 171 struct rds_iw_connection *ic; in rds_iw_conn_info_visitor() local 186 ic = conn->c_transport_data; in rds_iw_conn_info_visitor() 187 dev_addr = &ic->i_cm_id->route.addr.dev_addr; in rds_iw_conn_info_visitor() 192 rds_iwdev = ib_get_client_data(ic->i_cm_id->device, &rds_iw_client); in rds_iw_conn_info_visitor() 193 iinfo->max_send_wr = ic->i_send_ring.w_nr; in rds_iw_conn_info_visitor() 194 iinfo->max_recv_wr = ic->i_recv_ring.w_nr; in rds_iw_conn_info_visitor()
|
/net/netfilter/ipset/ |
D | ip_set_getport.c | 67 const struct icmphdr *ic; in get_port() local 69 ic = skb_header_pointer(skb, protooff, sizeof(_ich), &_ich); in get_port() 70 if (ic == NULL) in get_port() 73 *port = (__force __be16)htons((ic->type << 8) | ic->code); in get_port() 78 const struct icmp6hdr *ic; in get_port() local 80 ic = skb_header_pointer(skb, protooff, sizeof(_ich), &_ich); in get_port() 81 if (ic == NULL) in get_port() 85 htons((ic->icmp6_type << 8) | ic->icmp6_code); in get_port()
|
/net/ipv6/netfilter/ |
D | nf_log_ipv6.c | 214 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()
|
D | ip6_tables.c | 2006 const struct icmp6hdr *ic; in icmp6_match() local 2014 ic = skb_header_pointer(skb, par->thoff, sizeof(_icmph), &_icmph); in icmp6_match() 2015 if (ic == NULL) { in icmp6_match() 2027 ic->icmp6_type, ic->icmp6_code, in icmp6_match()
|
/net/netfilter/ipvs/ |
D | ip_vs_core.c | 864 struct icmphdr _icmph, *ic; in ip_vs_out_icmp() local 882 ic = skb_header_pointer(skb, offset, sizeof(_icmph), &_icmph); in ip_vs_out_icmp() 883 if (ic == NULL) in ip_vs_out_icmp() 887 ic->type, ntohs(icmp_id(ic)), in ip_vs_out_icmp() 897 if ((ic->type != ICMP_DEST_UNREACH) && in ip_vs_out_icmp() 898 (ic->type != ICMP_SOURCE_QUENCH) && in ip_vs_out_icmp() 899 (ic->type != ICMP_TIME_EXCEEDED)) { in ip_vs_out_icmp() 938 struct icmp6hdr _icmph, *ic; in ip_vs_out_icmp_v6() local 947 ic = frag_safe_skb_hp(skb, ipvsh->len, sizeof(_icmph), &_icmph, ipvsh); in ip_vs_out_icmp_v6() 948 if (ic == NULL) in ip_vs_out_icmp_v6() [all …]
|
/net/atm/ |
D | ioctl.c | 167 struct atm_ioctl *ic = list_entry(pos, struct atm_ioctl, list); in do_vcc_ioctl() local 168 if (try_module_get(ic->owner)) { in do_vcc_ioctl() 169 error = ic->ioctl(sock, cmd, arg); in do_vcc_ioctl() 170 module_put(ic->owner); in do_vcc_ioctl()
|
/net/ipv4/netfilter/ |
D | ip_tables.c | 2006 const struct icmphdr *ic; in icmp_match() local 2014 ic = skb_header_pointer(skb, par->thoff, sizeof(_icmph), &_icmph); in icmp_match() 2015 if (ic == NULL) { in icmp_match() 2027 ic->type, ic->code, in icmp_match()
|