Home
last modified time | relevance | path

Searched refs:sg_list (Results 1 – 25 of 79) sorted by relevance

1234

/freebsd/sys/dev/agp/
H A Dagp_i810.h75 void agp_intel_gtt_unmap_memory(device_t dev, struct sglist *sg_list);
79 struct sglist **sg_list);
80 void agp_intel_gtt_insert_sg_entries(device_t dev, struct sglist *sg_list,
87 void intel_gtt_unmap_memory(struct sglist *sg_list);
91 struct sglist **sg_list);
92 void intel_gtt_insert_sg_entries(struct sglist *sg_list, u_int pg_start,
H A Dagp_i810.c2193 agp_intel_gtt_unmap_memory(device_t dev, struct sglist *sg_list) in agp_intel_gtt_unmap_memory() argument
2199 struct sglist **sg_list) in agp_intel_gtt_map_memory() argument
2211 if (*sg_list != NULL) in agp_intel_gtt_map_memory()
2239 *sg_list = sg; in agp_intel_gtt_map_memory()
2254 agp_intel_gtt_insert_sg_entries(device_t dev, struct sglist *sg_list, in agp_intel_gtt_insert_sg_entries() argument
2263 for (i = j = 0; j < sg_list->sg_nseg; j++) { in agp_intel_gtt_insert_sg_entries()
2264 spaddr = sg_list->sg_segs[i].ss_paddr; in agp_intel_gtt_insert_sg_entries()
2265 slen = sg_list->sg_segs[i].ss_len; in agp_intel_gtt_insert_sg_entries()
2308 intel_gtt_unmap_memory(struct sglist *sg_list) in intel_gtt_unmap_memory() argument
2311 agp_intel_gtt_unmap_memory(intel_agp, sg_list); in intel_gtt_unmap_memory()
2316 intel_gtt_map_memory(vm_page_t * pages,u_int num_entries,struct sglist ** sg_list) intel_gtt_map_memory() argument
2324 intel_gtt_insert_sg_entries(struct sglist * sg_list,u_int first_entry,u_int flags) intel_gtt_insert_sg_entries() argument
[all...]
/freebsd/sys/contrib/openzfs/cmd/zed/agents/
H A Dfmd_serd.c93 list_create(&sgp->sg_list, sizeof (fmd_serd_elem_t), in fmd_serd_eng_alloc()
104 list_destroy(&sgp->sg_list); in fmd_serd_eng_free()
229 list_remove(&sgp->sg_list, sep); in fmd_serd_eng_discard()
256 fmd_serd_eng_discard(sgp, list_tail(&sgp->sg_list)); in fmd_serd_eng_record()
265 list_insert_head(&sgp->sg_list, sep); in fmd_serd_eng_record()
275 oep = list_tail(&sgp->sg_list); in fmd_serd_eng_record()
306 fmd_serd_eng_discard(sgp, list_head(&sgp->sg_list)); in fmd_serd_eng_reset()
322 sep = list_head(&sgp->sg_list); in fmd_serd_eng_gc()
328 for (sep = list_head(&sgp->sg_list); sep != NULL; sep = nep) { in fmd_serd_eng_gc()
332 nep = list_next(&sgp->sg_list, sep); in fmd_serd_eng_gc()
H A Dfmd_serd.h47 list_t sg_list; /* list of fmd_serd_elem_t's */ member
/freebsd/contrib/ofed/libcxgb4/
H A Dqp.c113 if ((plen + wr->sg_list[i].length) > max) in build_immd()
115 srcp = (u8 *)(unsigned long)wr->sg_list[i].addr; in build_immd()
116 plen += wr->sg_list[i].length; in build_immd()
117 len = wr->sg_list[i].length; in build_immd()
133 static int build_isgl(struct fw_ri_isgl *isglp, struct ibv_sge *sg_list, in build_isgl() argument
141 if ((plen + sg_list[i].length) < plen) in build_isgl()
143 plen += sg_list[i].length; in build_isgl()
144 *flitp++ = htobe64(((u64)sg_list[i].lkey << 32) | in build_isgl()
145 sg_list[i].length); in build_isgl()
146 *flitp++ = htobe64(sg_list[i].addr); in build_isgl()
[all …]
/freebsd/contrib/ofed/libibverbs/
H A Dcompat-1_0.c86 struct ibv_sge *sg_list; member
113 struct ibv_sge *sg_list; member
377 real_wr->sg_list = w->sg_list; in post_srq_recv_wrapper_1_0()
424 if (TEST_SIZE_TO_END (sg_list)) in post_send_wrapper_1_0()
425 memcpy(&real_wr->sg_list, &w->sg_list, sizeof *real_wr in post_send_wrapper_1_0()
426 - offsetof(struct ibv_send_wr, sg_list)); in post_send_wrapper_1_0()
427 else if (TEST_SIZE_2_POINT (imm_data, sg_list) && in post_send_wrapper_1_0()
432 memcpy(&real_wr->sg_list, &w->sg_list, in post_send_wrapper_1_0()
434 offsetof(struct ibv_send_wr, sg_list) + in post_send_wrapper_1_0()
438 real_wr->sg_list = w->sg_list; in post_send_wrapper_1_0()
[all …]
/freebsd/contrib/ofed/librdmacm/
H A Drdma_verbs.h106 wr.sg_list = sgl; in rdma_post_recvv()
123 wr.sg_list = sgl; in rdma_post_sendv()
139 wr.sg_list = sgl; in rdma_post_readv()
157 wr.sg_list = sgl; in rdma_post_writev()
240 wr.sg_list = &sge; in rdma_post_ud_send()
/freebsd/contrib/ofed/libmlx5/
H A Dqp.c285 addr = (void *) (unsigned long)(wr->sg_list[i].addr + offset); in set_data_inl_seg()
286 len = wr->sg_list[i].length - offset; in set_data_inl_seg()
374 if (likely(wr->sg_list[0].length >= MLX5_ETH_L2_INLINE_HEADER_SIZE)) { in copy_eth_inline_headers()
377 (void *)(uintptr_t)wr->sg_list[0].addr, in copy_eth_inline_headers()
381 inl_hdr_copy_size = min(wr->sg_list[j].length, in copy_eth_inline_headers()
385 (void *)(uintptr_t)wr->sg_list[j].addr, in copy_eth_inline_headers()
402 if (unlikely(wr->sg_list[j].length == inl_hdr_copy_size)) { in copy_eth_inline_headers()
875 if (likely(wr->sg_list[i].length)) { in _mlx5_post_send()
880 set_data_ptr_seg_atomic(dpseg, wr->sg_list + i); in _mlx5_post_send()
883 if (max_tso < wr->sg_list[i].length) { in _mlx5_post_send()
[all …]
H A Dsrq.c120 scat[i].byte_count = htobe32(wr->sg_list[i].length); in mlx5_post_srq_recv()
121 scat[i].lkey = htobe32(wr->sg_list[i].lkey); in mlx5_post_srq_recv()
122 scat[i].addr = htobe64(wr->sg_list[i].addr); in mlx5_post_srq_recv()
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dib_verbs.c1387 wqe.sg_list = (struct bnxt_qplib_sge *)wr->sg_list; in bnxt_re_post_srq_recv()
3004 wqe->sg_list[i].addr = wqe->sg_list[i - 1].addr; in bnxt_re_build_qp1_send()
3005 wqe->sg_list[i].lkey = wqe->sg_list[i - 1].lkey; in bnxt_re_build_qp1_send()
3006 wqe->sg_list[i].size = wqe->sg_list[i - 1].size; in bnxt_re_build_qp1_send()
3008 wqe->sg_list[0].addr = sge.addr; in bnxt_re_build_qp1_send()
3009 wqe->sg_list[0].lkey = sge.lkey; in bnxt_re_build_qp1_send()
3010 wqe->sg_list[0].size = sge.size; in bnxt_re_build_qp1_send()
3030 wqe->sg_list[indx].addr = wr->sg_list[indx].addr; in bnxt_re_build_gsi_send()
3031 wqe->sg_list[indx].lkey = wr->sg_list[indx].lkey; in bnxt_re_build_gsi_send()
3032 wqe->sg_list[indx].size = wr->sg_list[indx].length; in bnxt_re_build_gsi_send()
[all …]
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_uverbs_std_types_mr.c52 const struct ib_sge *sg_list; in UVERBS_HANDLER() local
75 sg_list = uverbs_attr_get_alloced_ptr(attrs, in UVERBS_HANDLER()
77 return ib_dev->advise_mr(pd, advice, flags, sg_list, num_sge, in UVERBS_HANDLER()
H A Dib_mad.c1032 mad_send_wr->sg_list[0].length = hdr_len; in ib_create_send_mad()
1033 mad_send_wr->sg_list[0].lkey = mad_agent->qp->pd->local_dma_lkey; in ib_create_send_mad()
1038 mad_send_wr->sg_list[1].length = data_len; in ib_create_send_mad()
1040 mad_send_wr->sg_list[1].length = mad_size - hdr_len; in ib_create_send_mad()
1042 mad_send_wr->sg_list[1].lkey = mad_agent->qp->pd->local_dma_lkey; in ib_create_send_mad()
1047 mad_send_wr->send_wr.wr.sg_list = mad_send_wr->sg_list; in ib_create_send_mad()
1163 sge = mad_send_wr->sg_list; in ib_send_mad()
2449 mad_send_wr->sg_list[0].length, DMA_TO_DEVICE); in ib_mad_send_done()
2452 mad_send_wr->sg_list[1].length, DMA_TO_DEVICE); in ib_mad_send_done()
2842 struct ib_sge sg_list; in ib_mad_post_receive_mads() local
[all …]
/freebsd/sys/ofed/include/rdma/
H A Drdmavt_mr.h115 struct rvt_sge *sg_list; /* next SGE to be used if any */ member
137 ss->sge = *ss->sg_list++; in rvt_put_ss()
H A Drdmavt_qp.h171 struct rvt_sge sg_list[0]; member
182 struct ib_sge sg_list[0]; member
/freebsd/sys/dev/ips/
H A Dips_disk.c249 ips_sg_element_t *sg_list; in ipsd_dump_map_sg() local
267 sg_list = (ips_sg_element_t *)((uint8_t *) in ipsd_dump_map_sg()
270 sg_list[i].addr = segs[i].ds_addr; in ipsd_dump_map_sg()
271 sg_list[i].len = segs[i].ds_len; in ipsd_dump_map_sg()
H A Dips_commands.c76 ips_sg_element_t *sg_list; in ips_io_request_callback() local
101 sg_list = (ips_sg_element_t *)((u_int8_t *) in ips_io_request_callback()
104 sg_list[i].addr = segments[i].ds_addr; in ips_io_request_callback()
105 sg_list[i].len = segments[i].ds_len; in ips_io_request_callback()
/freebsd/sys/dev/qlnx/qlnxr/
H A Dqlnxr_cm.c129 qp->rqe_wr_id[qp->rq.gsi_cons].sg_list[0].length = in qlnxr_ll2_complete_rx_packet()
503 send_size += swr->sg_list[i].length; in qlnxr_gsi_build_header()
653 packet->payload[i].baddr = swr->sg_list[i].addr; in qlnxr_gsi_build_packet()
654 packet->payload[i].len = swr->sg_list[i].length; in qlnxr_gsi_build_packet()
771 wr->sg_list[0].addr, in qlnxr_gsi_post_recv()
772 wr->sg_list[0].length, in qlnxr_gsi_post_recv()
782 qp->rqe_wr_id[qp->rq.prod].sg_list[0] = wr->sg_list[0]; in qlnxr_gsi_post_recv()
826 wc[i].byte_len = qp->rqe_wr_id[qp->rq.cons].sg_list[0].length; in qlnxr_gsi_poll_cq()
/freebsd/sys/dev/cxgbe/iw_cxgbe/
H A Dqp.c348 if ((plen + wr->sg_list[i].length) > max) in build_immd()
350 srcp = (u8 *)(unsigned long)wr->sg_list[i].addr; in build_immd()
351 plen += wr->sg_list[i].length; in build_immd()
352 rem = wr->sg_list[i].length; in build_immd()
378 struct fw_ri_isgl *isglp, struct ib_sge *sg_list, in build_isgl() argument
387 if ((plen + sg_list[i].length) < plen) in build_isgl()
389 plen += sg_list[i].length; in build_isgl()
390 *flitp = cpu_to_be64(((u64)sg_list[i].lkey << 32) | in build_isgl()
391 sg_list[i].length); in build_isgl()
394 *flitp = cpu_to_be64(sg_list[i].addr); in build_isgl()
[all …]
/freebsd/contrib/ofed/librdmacm/examples/
H A Drping.c375 cb->rq_wr.sg_list = &cb->recv_sgl; in rping_setup_wr()
384 cb->sq_wr.sg_list = &cb->send_sgl; in rping_setup_wr()
390 cb->rdma_sq_wr.sg_list = &cb->rdma_sgl; in rping_setup_wr()
652 cb->rdma_sq_wr.sg_list->length = cb->remote_len; in rping_test_server()
697 cb->rdma_sq_wr.sg_list->length = strlen(cb->rdma_buf) + 1; in rping_test_server()
699 cb->rdma_sq_wr.sg_list->lkey, in rping_test_server()
700 cb->rdma_sq_wr.sg_list->addr, in rping_test_server()
701 cb->rdma_sq_wr.sg_list->length); in rping_test_server()
/freebsd/contrib/ofed/libmlx4/
H A Dsrq.c96 scat[i].byte_count = htobe32(wr->sg_list[i].length); in mlx4_post_srq_recv()
97 scat[i].lkey = htobe32(wr->sg_list[i].lkey); in mlx4_post_srq_recv()
98 scat[i].addr = htobe64(wr->sg_list[i].addr); in mlx4_post_srq_recv()
H A Dqp.c383 addr = (void *) (uintptr_t) wr->sg_list[i].addr; in mlx4_post_send()
384 len = wr->sg_list[i].length; in mlx4_post_send()
438 set_data_seg(seg + i, wr->sg_list + i); in mlx4_post_send()
544 __set_data_seg(scat + i, wr->sg_list + i); in mlx4_post_recv()
/freebsd/sys/dev/aic7xxx/
H A Daic7xxx_inline.h175 return (&scb->sg_list[sg_index]); in ahc_sg_bus_to_virt()
184 sg_index = sg - &scb->sg_list[1]; in ahc_sg_virt_to_bus()
186 return (scb->sg_list_phys + (sg_index * sizeof(*scb->sg_list))); in ahc_sg_virt_to_bus()
212 /*offset*/(scb->sg_list - scb->sg_map->sg_vaddr) in ahc_sync_sglist()
/freebsd/sys/contrib/rdma/krping/
H A Dkrping.c394 cb->stats.write_bytes += cb->rdma_sq_wr.wr.sg_list->length; in krping_cq_event_handler()
402 cb->stats.read_bytes += cb->rdma_sq_wr.wr.sg_list->length; in krping_cq_event_handler()
481 cb->rq_wr.sg_list = &cb->recv_sgl; in krping_setup_wr()
490 cb->sq_wr.sg_list = &cb->send_sgl; in krping_setup_wr()
496 cb->rdma_sq_wr.wr.sg_list = &cb->rdma_sgl; in krping_setup_wr()
790 cb->rdma_sq_wr.wr.sg_list->length = cb->remote_len; in krping_test_server()
863 cb->rdma_sq_wr.wr.sg_list->length = strlen(cb->rdma_buf) + 1; in krping_test_server()
870 cb->rdma_sq_wr.wr.sg_list->lkey, in krping_test_server()
871 (unsigned long long)cb->rdma_sq_wr.wr.sg_list->addr, in krping_test_server()
872 cb->rdma_sq_wr.wr.sg_list->length); in krping_test_server()
[all …]
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_srq.c346 scat[i].byte_count = cpu_to_be32(wr->sg_list[i].length); in mlx4_ib_post_srq_recv()
347 scat[i].lkey = cpu_to_be32(wr->sg_list[i].lkey); in mlx4_ib_post_srq_recv()
348 scat[i].addr = cpu_to_be64(wr->sg_list[i].addr); in mlx4_ib_post_srq_recv()
/freebsd/sys/ofed/drivers/infiniband/ulp/ipoib/
H A Dipoib_verbs.c223 priv->tx_wr.wr.sg_list = priv->tx_sge; in ipoib_transport_dev_init()
229 priv->rx_wr.sg_list = priv->rx_sge; in ipoib_transport_dev_init()

1234