Home
last modified time | relevance | path

Searched refs:ib (Results 1 – 25 of 134) sorted by relevance

123456

/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dradeon_ib.c59 struct radeon_ib *ib, struct radeon_vm *vm, in radeon_ib_get() argument
64 r = radeon_sa_bo_new(rdev, &rdev->ring_tmp_bo, &ib->sa_bo, size, 256); in radeon_ib_get()
70 radeon_sync_create(&ib->sync); in radeon_ib_get()
72 ib->ring = ring; in radeon_ib_get()
73 ib->fence = NULL; in radeon_ib_get()
74 ib->ptr = radeon_sa_bo_cpu_addr(ib->sa_bo); in radeon_ib_get()
75 ib->vm = vm; in radeon_ib_get()
80 ib->gpu_addr = ib->sa_bo->soffset + RADEON_VA_IB_OFFSET; in radeon_ib_get()
82 ib->gpu_addr = radeon_sa_bo_gpu_addr(ib->sa_bo); in radeon_ib_get()
84 ib->is_const_ib = false; in radeon_ib_get()
[all …]
Dsi_dma.c70 struct radeon_ib *ib, in si_dma_vm_copy_pages() argument
79 ib->ptr[ib->length_dw++] = DMA_PACKET(DMA_PACKET_COPY, in si_dma_vm_copy_pages()
81 ib->ptr[ib->length_dw++] = lower_32_bits(pe); in si_dma_vm_copy_pages()
82 ib->ptr[ib->length_dw++] = lower_32_bits(src); in si_dma_vm_copy_pages()
83 ib->ptr[ib->length_dw++] = upper_32_bits(pe) & 0xff; in si_dma_vm_copy_pages()
84 ib->ptr[ib->length_dw++] = upper_32_bits(src) & 0xff; in si_dma_vm_copy_pages()
106 struct radeon_ib *ib, in si_dma_vm_write_pages() argument
120 ib->ptr[ib->length_dw++] = DMA_PACKET(DMA_PACKET_WRITE, 0, 0, 0, ndw); in si_dma_vm_write_pages()
121 ib->ptr[ib->length_dw++] = pe; in si_dma_vm_write_pages()
122 ib->ptr[ib->length_dw++] = upper_32_bits(pe) & 0xff; in si_dma_vm_write_pages()
[all …]
Dni_dma.c123 struct radeon_ib *ib) in cayman_dma_ring_ib_execute() argument
125 struct radeon_ring *ring = &rdev->ring[ib->ring]; in cayman_dma_ring_ib_execute()
126 unsigned vm_id = ib->vm ? ib->vm->ids[ib->ring].id : 0; in cayman_dma_ring_ib_execute()
145 radeon_ring_write(ring, (ib->gpu_addr & 0xFFFFFFE0)); in cayman_dma_ring_ib_execute()
146 radeon_ring_write(ring, (ib->length_dw << 12) | (upper_32_bits(ib->gpu_addr) & 0xFF)); in cayman_dma_ring_ib_execute()
316 struct radeon_ib *ib, in cayman_dma_vm_copy_pages() argument
327 ib->ptr[ib->length_dw++] = DMA_PACKET(DMA_PACKET_COPY, in cayman_dma_vm_copy_pages()
329 ib->ptr[ib->length_dw++] = lower_32_bits(pe); in cayman_dma_vm_copy_pages()
330 ib->ptr[ib->length_dw++] = lower_32_bits(src); in cayman_dma_vm_copy_pages()
331 ib->ptr[ib->length_dw++] = upper_32_bits(pe) & 0xff; in cayman_dma_vm_copy_pages()
[all …]
Dradeon_vce.c350 struct radeon_ib ib; in radeon_vce_get_create_msg() local
354 r = radeon_ib_get(rdev, ring, &ib, NULL, ib_size_dw * 4); in radeon_vce_get_create_msg()
360 dummy = ib.gpu_addr + 1024; in radeon_vce_get_create_msg()
363 ib.length_dw = 0; in radeon_vce_get_create_msg()
364 ib.ptr[ib.length_dw++] = cpu_to_le32(0x0000000c); /* len */ in radeon_vce_get_create_msg()
365 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000001); /* session cmd */ in radeon_vce_get_create_msg()
366 ib.ptr[ib.length_dw++] = cpu_to_le32(handle); in radeon_vce_get_create_msg()
368 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000030); /* len */ in radeon_vce_get_create_msg()
369 ib.ptr[ib.length_dw++] = cpu_to_le32(0x01000001); /* create cmd */ in radeon_vce_get_create_msg()
370 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000000); in radeon_vce_get_create_msg()
[all …]
Dcik_sdma.c134 struct radeon_ib *ib) in cik_sdma_ring_ib_execute() argument
136 struct radeon_ring *ring = &rdev->ring[ib->ring]; in cik_sdma_ring_ib_execute()
137 u32 extra_bits = (ib->vm ? ib->vm->ids[ib->ring].id : 0) & 0xf; in cik_sdma_ring_ib_execute()
155 radeon_ring_write(ring, ib->gpu_addr & 0xffffffe0); /* base must be 32 byte aligned */ in cik_sdma_ring_ib_execute()
156 radeon_ring_write(ring, upper_32_bits(ib->gpu_addr)); in cik_sdma_ring_ib_execute()
157 radeon_ring_write(ring, ib->length_dw); in cik_sdma_ring_ib_execute()
704 struct radeon_ib ib; in cik_sdma_ib_test() local
721 r = radeon_ib_get(rdev, ring->idx, &ib, NULL, 256); in cik_sdma_ib_test()
727 ib.ptr[0] = SDMA_PACKET(SDMA_OPCODE_WRITE, SDMA_WRITE_SUB_OPCODE_LINEAR, 0); in cik_sdma_ib_test()
728 ib.ptr[1] = lower_32_bits(gpu_addr); in cik_sdma_ib_test()
[all …]
Dradeon_vm.c360 struct radeon_ib *ib, in radeon_vm_set_pages() argument
369 radeon_asic_vm_copy_pages(rdev, ib, pe, src, count); in radeon_vm_set_pages()
372 radeon_asic_vm_write_pages(rdev, ib, pe, addr, in radeon_vm_set_pages()
376 radeon_asic_vm_set_pages(rdev, ib, pe, addr, in radeon_vm_set_pages()
391 struct radeon_ib ib; in radeon_vm_clear_bo() local
407 r = radeon_ib_get(rdev, R600_RING_TYPE_DMA_INDEX, &ib, NULL, 256); in radeon_vm_clear_bo()
411 ib.length_dw = 0; in radeon_vm_clear_bo()
413 radeon_vm_set_pages(rdev, &ib, addr, 0, entries, 0, 0); in radeon_vm_clear_bo()
414 radeon_asic_vm_pad_ib(rdev, &ib); in radeon_vm_clear_bo()
415 WARN_ON(ib.length_dw > 64); in radeon_vm_clear_bo()
[all …]
Devergreen_cs.c451 uint32_t *ib = p->ib.ptr; in evergreen_cs_track_validate_cb() local
473 ib[track->cb_color_slice_idx[id]] = slice; in evergreen_cs_track_validate_cb()
1098 u32 tmp, *ib; in evergreen_cs_handle_reg() local
1101 ib = p->ib.ptr; in evergreen_cs_handle_reg()
1149 ib[idx] += (u32)((reloc->gpu_offset >> 8) & 0xffffffff); in evergreen_cs_handle_reg()
1178 ib[idx] &= ~Z_ARRAY_MODE(0xf); in evergreen_cs_handle_reg()
1180 ib[idx] |= Z_ARRAY_MODE(evergreen_cs_get_aray_mode(reloc->tiling_flags)); in evergreen_cs_handle_reg()
1188 ib[idx] |= DB_NUM_BANKS(evergreen_cs_get_num_banks(track->nbanks)); in evergreen_cs_handle_reg()
1189 ib[idx] |= DB_TILE_SPLIT(tile_split) | in evergreen_cs_handle_reg()
1221 ib[idx] += (u32)((reloc->gpu_offset >> 8) & 0xffffffff); in evergreen_cs_handle_reg()
[all …]
Dr600_cs.c357 volatile u32 *ib = p->ib.ptr; in r600_cs_track_validate_cb() local
467 ib[track->cb_color_size_idx[i]] = tmp; in r600_cs_track_validate_cb()
526 volatile u32 *ib = p->ib.ptr; in r600_cs_track_validate_db() local
564 ib[track->db_depth_size_idx] = S_028000_SLICE_TILE_MAX(tmp - 1) | (track->db_depth_size & 0x3FF); in r600_cs_track_validate_db()
833 volatile uint32_t *ib; in r600_cs_common_vline_parse() local
835 ib = p->ib.ptr; in r600_cs_common_vline_parse()
898 ib[h_idx + 2] = PACKET2(0); in r600_cs_common_vline_parse()
899 ib[h_idx + 3] = PACKET2(0); in r600_cs_common_vline_parse()
900 ib[h_idx + 4] = PACKET2(0); in r600_cs_common_vline_parse()
901 ib[h_idx + 5] = PACKET2(0); in r600_cs_common_vline_parse()
[all …]
/kernel/linux/linux-5.10/arch/s390/include/asm/
Didals.h120 struct idal_buffer *ib; in idal_buffer_alloc() local
125 ib = kmalloc(struct_size(ib, data, nr_ptrs), GFP_DMA | GFP_KERNEL); in idal_buffer_alloc()
126 if (ib == NULL) in idal_buffer_alloc()
128 ib->size = size; in idal_buffer_alloc()
129 ib->page_order = page_order; in idal_buffer_alloc()
132 ib->data[i] = ib->data[i-1] + IDA_BLOCK_SIZE; in idal_buffer_alloc()
135 ib->data[i] = (void *) in idal_buffer_alloc()
137 if (ib->data[i] != NULL) in idal_buffer_alloc()
142 free_pages((unsigned long) ib->data[i], in idal_buffer_alloc()
143 ib->page_order); in idal_buffer_alloc()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vce.c444 struct amdgpu_ib *ib; in amdgpu_vce_get_create_msg() local
454 ib = &job->ibs[0]; in amdgpu_vce_get_create_msg()
459 ib->length_dw = 0; in amdgpu_vce_get_create_msg()
460 ib->ptr[ib->length_dw++] = 0x0000000c; /* len */ in amdgpu_vce_get_create_msg()
461 ib->ptr[ib->length_dw++] = 0x00000001; /* session cmd */ in amdgpu_vce_get_create_msg()
462 ib->ptr[ib->length_dw++] = handle; in amdgpu_vce_get_create_msg()
465 ib->ptr[ib->length_dw++] = 0x00000040; /* len */ in amdgpu_vce_get_create_msg()
467 ib->ptr[ib->length_dw++] = 0x00000030; /* len */ in amdgpu_vce_get_create_msg()
468 ib->ptr[ib->length_dw++] = 0x01000001; /* create cmd */ in amdgpu_vce_get_create_msg()
469 ib->ptr[ib->length_dw++] = 0x00000000; in amdgpu_vce_get_create_msg()
[all …]
Dsi_dma.c65 struct amdgpu_ib *ib, in si_dma_ring_emit_ib() argument
75 amdgpu_ring_write(ring, (ib->gpu_addr & 0xFFFFFFE0)); in si_dma_ring_emit_ib()
76 amdgpu_ring_write(ring, (ib->length_dw << 12) | (upper_32_bits(ib->gpu_addr) & 0xFF)); in si_dma_ring_emit_ib()
254 struct amdgpu_ib ib; in si_dma_ring_test_ib() local
268 memset(&ib, 0, sizeof(ib)); in si_dma_ring_test_ib()
270 AMDGPU_IB_POOL_DIRECT, &ib); in si_dma_ring_test_ib()
274 ib.ptr[0] = DMA_PACKET(DMA_PACKET_WRITE, 0, 0, 0, 1); in si_dma_ring_test_ib()
275 ib.ptr[1] = lower_32_bits(gpu_addr); in si_dma_ring_test_ib()
276 ib.ptr[2] = upper_32_bits(gpu_addr) & 0xff; in si_dma_ring_test_ib()
277 ib.ptr[3] = 0xDEADBEEF; in si_dma_ring_test_ib()
[all …]
Dsdma_v2_4.c252 struct amdgpu_ib *ib, in sdma_v2_4_ring_emit_ib() argument
263 amdgpu_ring_write(ring, lower_32_bits(ib->gpu_addr) & 0xffffffe0); in sdma_v2_4_ring_emit_ib()
264 amdgpu_ring_write(ring, upper_32_bits(ib->gpu_addr)); in sdma_v2_4_ring_emit_ib()
265 amdgpu_ring_write(ring, ib->length_dw); in sdma_v2_4_ring_emit_ib()
600 struct amdgpu_ib ib; in sdma_v2_4_ring_test_ib() local
614 memset(&ib, 0, sizeof(ib)); in sdma_v2_4_ring_test_ib()
616 AMDGPU_IB_POOL_DIRECT, &ib); in sdma_v2_4_ring_test_ib()
620 ib.ptr[0] = SDMA_PKT_HEADER_OP(SDMA_OP_WRITE) | in sdma_v2_4_ring_test_ib()
622 ib.ptr[1] = lower_32_bits(gpu_addr); in sdma_v2_4_ring_test_ib()
623 ib.ptr[2] = upper_32_bits(gpu_addr); in sdma_v2_4_ring_test_ib()
[all …]
Dcik_sdma.c224 struct amdgpu_ib *ib, in cik_sdma_ring_emit_ib() argument
234 amdgpu_ring_write(ring, ib->gpu_addr & 0xffffffe0); /* base must be 32 byte aligned */ in cik_sdma_ring_emit_ib()
235 amdgpu_ring_write(ring, upper_32_bits(ib->gpu_addr) & 0xffffffff); in cik_sdma_ring_emit_ib()
236 amdgpu_ring_write(ring, ib->length_dw); in cik_sdma_ring_emit_ib()
665 struct amdgpu_ib ib; in cik_sdma_ring_test_ib() local
679 memset(&ib, 0, sizeof(ib)); in cik_sdma_ring_test_ib()
681 AMDGPU_IB_POOL_DIRECT, &ib); in cik_sdma_ring_test_ib()
685 ib.ptr[0] = SDMA_PACKET(SDMA_OPCODE_WRITE, in cik_sdma_ring_test_ib()
687 ib.ptr[1] = lower_32_bits(gpu_addr); in cik_sdma_ring_test_ib()
688 ib.ptr[2] = upper_32_bits(gpu_addr); in cik_sdma_ring_test_ib()
[all …]
Damdgpu_vcn.c439 struct amdgpu_ib *ib; in amdgpu_vcn_dec_send_msg() local
448 ib = &job->ibs[0]; in amdgpu_vcn_dec_send_msg()
450 ib->ptr[0] = PACKET0(adev->vcn.internal.data0, 0); in amdgpu_vcn_dec_send_msg()
451 ib->ptr[1] = addr; in amdgpu_vcn_dec_send_msg()
452 ib->ptr[2] = PACKET0(adev->vcn.internal.data1, 0); in amdgpu_vcn_dec_send_msg()
453 ib->ptr[3] = addr >> 32; in amdgpu_vcn_dec_send_msg()
454 ib->ptr[4] = PACKET0(adev->vcn.internal.cmd, 0); in amdgpu_vcn_dec_send_msg()
455 ib->ptr[5] = 0; in amdgpu_vcn_dec_send_msg()
457 ib->ptr[i] = PACKET0(adev->vcn.internal.nop, 0); in amdgpu_vcn_dec_send_msg()
458 ib->ptr[i+1] = 0; in amdgpu_vcn_dec_send_msg()
[all …]
Dsdma_v3_0.c426 struct amdgpu_ib *ib, in sdma_v3_0_ring_emit_ib() argument
437 amdgpu_ring_write(ring, lower_32_bits(ib->gpu_addr) & 0xffffffe0); in sdma_v3_0_ring_emit_ib()
438 amdgpu_ring_write(ring, upper_32_bits(ib->gpu_addr)); in sdma_v3_0_ring_emit_ib()
439 amdgpu_ring_write(ring, ib->length_dw); in sdma_v3_0_ring_emit_ib()
872 struct amdgpu_ib ib; in sdma_v3_0_ring_test_ib() local
886 memset(&ib, 0, sizeof(ib)); in sdma_v3_0_ring_test_ib()
888 AMDGPU_IB_POOL_DIRECT, &ib); in sdma_v3_0_ring_test_ib()
892 ib.ptr[0] = SDMA_PKT_HEADER_OP(SDMA_OP_WRITE) | in sdma_v3_0_ring_test_ib()
894 ib.ptr[1] = lower_32_bits(gpu_addr); in sdma_v3_0_ring_test_ib()
895 ib.ptr[2] = upper_32_bits(gpu_addr); in sdma_v3_0_ring_test_ib()
[all …]
Dsdma_v5_2.c354 struct amdgpu_ib *ib, in sdma_v5_2_ring_emit_ib() argument
373 amdgpu_ring_write(ring, lower_32_bits(ib->gpu_addr) & 0xffffffe0); in sdma_v5_2_ring_emit_ib()
374 amdgpu_ring_write(ring, upper_32_bits(ib->gpu_addr)); in sdma_v5_2_ring_emit_ib()
375 amdgpu_ring_write(ring, ib->length_dw); in sdma_v5_2_ring_emit_ib()
910 struct amdgpu_ib ib; in sdma_v5_2_ring_test_ib() local
926 memset(&ib, 0, sizeof(ib)); in sdma_v5_2_ring_test_ib()
927 r = amdgpu_ib_get(adev, NULL, 256, AMDGPU_IB_POOL_DIRECT, &ib); in sdma_v5_2_ring_test_ib()
933 ib.ptr[0] = SDMA_PKT_HEADER_OP(SDMA_OP_WRITE) | in sdma_v5_2_ring_test_ib()
935 ib.ptr[1] = lower_32_bits(gpu_addr); in sdma_v5_2_ring_test_ib()
936 ib.ptr[2] = upper_32_bits(gpu_addr); in sdma_v5_2_ring_test_ib()
[all …]
Dsdma_v5_0.c405 struct amdgpu_ib *ib, in sdma_v5_0_ring_emit_ib() argument
436 amdgpu_ring_write(ring, lower_32_bits(ib->gpu_addr) & 0xffffffe0); in sdma_v5_0_ring_emit_ib()
437 amdgpu_ring_write(ring, upper_32_bits(ib->gpu_addr)); in sdma_v5_0_ring_emit_ib()
438 amdgpu_ring_write(ring, ib->length_dw); in sdma_v5_0_ring_emit_ib()
973 struct amdgpu_ib ib; in sdma_v5_0_ring_test_ib() local
989 memset(&ib, 0, sizeof(ib)); in sdma_v5_0_ring_test_ib()
991 AMDGPU_IB_POOL_DIRECT, &ib); in sdma_v5_0_ring_test_ib()
997 ib.ptr[0] = SDMA_PKT_HEADER_OP(SDMA_OP_WRITE) | in sdma_v5_0_ring_test_ib()
999 ib.ptr[1] = lower_32_bits(gpu_addr); in sdma_v5_0_ring_test_ib()
1000 ib.ptr[2] = upper_32_bits(gpu_addr); in sdma_v5_0_ring_test_ib()
[all …]
Duvd_v6_0.c214 struct amdgpu_ib *ib; in uvd_v6_0_enc_get_create_msg() local
224 ib = &job->ibs[0]; in uvd_v6_0_enc_get_create_msg()
227 ib->length_dw = 0; in uvd_v6_0_enc_get_create_msg()
228 ib->ptr[ib->length_dw++] = 0x00000018; in uvd_v6_0_enc_get_create_msg()
229 ib->ptr[ib->length_dw++] = 0x00000001; /* session info */ in uvd_v6_0_enc_get_create_msg()
230 ib->ptr[ib->length_dw++] = handle; in uvd_v6_0_enc_get_create_msg()
231 ib->ptr[ib->length_dw++] = 0x00010000; in uvd_v6_0_enc_get_create_msg()
232 ib->ptr[ib->length_dw++] = upper_32_bits(addr); in uvd_v6_0_enc_get_create_msg()
233 ib->ptr[ib->length_dw++] = addr; in uvd_v6_0_enc_get_create_msg()
235 ib->ptr[ib->length_dw++] = 0x00000014; in uvd_v6_0_enc_get_create_msg()
[all …]
Dsdma_v4_0.c846 struct amdgpu_ib *ib, in sdma_v4_0_ring_emit_ib() argument
857 amdgpu_ring_write(ring, lower_32_bits(ib->gpu_addr) & 0xffffffe0); in sdma_v4_0_ring_emit_ib()
858 amdgpu_ring_write(ring, upper_32_bits(ib->gpu_addr)); in sdma_v4_0_ring_emit_ib()
859 amdgpu_ring_write(ring, ib->length_dw); in sdma_v4_0_ring_emit_ib()
1583 struct amdgpu_ib ib; in sdma_v4_0_ring_test_ib() local
1597 memset(&ib, 0, sizeof(ib)); in sdma_v4_0_ring_test_ib()
1599 AMDGPU_IB_POOL_DIRECT, &ib); in sdma_v4_0_ring_test_ib()
1603 ib.ptr[0] = SDMA_PKT_HEADER_OP(SDMA_OP_WRITE) | in sdma_v4_0_ring_test_ib()
1605 ib.ptr[1] = lower_32_bits(gpu_addr); in sdma_v4_0_ring_test_ib()
1606 ib.ptr[2] = upper_32_bits(gpu_addr); in sdma_v4_0_ring_test_ib()
[all …]
Damdgpu_ib.c65 struct amdgpu_ib *ib) in amdgpu_ib_get() argument
71 &ib->sa_bo, size, 256); in amdgpu_ib_get()
77 ib->ptr = amdgpu_sa_bo_cpu_addr(ib->sa_bo); in amdgpu_ib_get()
79 ib->flags = AMDGPU_IB_FLAG_EMIT_MEM_SYNC; in amdgpu_ib_get()
82 ib->gpu_addr = amdgpu_sa_bo_gpu_addr(ib->sa_bo); in amdgpu_ib_get()
97 void amdgpu_ib_free(struct amdgpu_device *adev, struct amdgpu_ib *ib, in amdgpu_ib_free() argument
100 amdgpu_sa_bo_free(adev, &ib->sa_bo, f); in amdgpu_ib_free()
129 struct amdgpu_ib *ib = &ibs[0]; in amdgpu_ib_schedule() local
166 if ((ib->flags & AMDGPU_IB_FLAGS_SECURE) && in amdgpu_ib_schedule()
194 if ((ib->flags & AMDGPU_IB_FLAG_EMIT_MEM_SYNC) && ring->funcs->emit_mem_sync) in amdgpu_ib_schedule()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/
D7990.c100 t, ib->brx_ring[t].rmd1_hadr, ib->brx_ring[t].rmd0, \
101 ib->brx_ring[t].length, \
102 ib->brx_ring[t].mblength, ib->brx_ring[t].rmd1_bits); \
106 t, ib->btx_ring[t].tmd1_hadr, ib->btx_ring[t].tmd0, \
107 ib->btx_ring[t].length, \
108 ib->btx_ring[t].misc, ib->btx_ring[t].tmd1_bits); \
140 volatile struct lance_init_block *ib = lp->init_block; in lance_init_ring() local
150 ib->mode = LE_MO_PROM; /* normal, enable Tx & Rx */ in lance_init_ring()
163 ib->phys_addr[0] = dev->dev_addr[1]; in lance_init_ring()
164 ib->phys_addr[1] = dev->dev_addr[0]; in lance_init_ring()
[all …]
Dsunlance.c319 struct lance_init_block *ib = lp->init_block_mem; in lance_init_ring_dvma() local
332 ib->phys_addr [0] = dev->dev_addr [1]; in lance_init_ring_dvma()
333 ib->phys_addr [1] = dev->dev_addr [0]; in lance_init_ring_dvma()
334 ib->phys_addr [2] = dev->dev_addr [3]; in lance_init_ring_dvma()
335 ib->phys_addr [3] = dev->dev_addr [2]; in lance_init_ring_dvma()
336 ib->phys_addr [4] = dev->dev_addr [5]; in lance_init_ring_dvma()
337 ib->phys_addr [5] = dev->dev_addr [4]; in lance_init_ring_dvma()
342 ib->btx_ring [i].tmd0 = leptr; in lance_init_ring_dvma()
343 ib->btx_ring [i].tmd1_hadr = leptr >> 16; in lance_init_ring_dvma()
344 ib->btx_ring [i].tmd1_bits = 0; in lance_init_ring_dvma()
[all …]
Da2065.c149 volatile struct lance_init_block *ib = lp->init_block; in lance_init_ring() local
160 ib->mode = 0; in lance_init_ring()
165 ib->phys_addr[0] = dev->dev_addr[1]; in lance_init_ring()
166 ib->phys_addr[1] = dev->dev_addr[0]; in lance_init_ring()
167 ib->phys_addr[2] = dev->dev_addr[3]; in lance_init_ring()
168 ib->phys_addr[3] = dev->dev_addr[2]; in lance_init_ring()
169 ib->phys_addr[4] = dev->dev_addr[5]; in lance_init_ring()
170 ib->phys_addr[5] = dev->dev_addr[4]; in lance_init_ring()
176 ib->btx_ring[i].tmd0 = leptr; in lance_init_ring()
177 ib->btx_ring[i].tmd1_hadr = leptr >> 16; in lance_init_ring()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dah.c48 ah->av.ib.port_pd = cpu_to_be32(to_mpd(ib_ah->pd)->pdn | in create_ib_ah()
50 ah->av.ib.g_slid = rdma_ah_get_path_bits(ah_attr); in create_ib_ah()
51 ah->av.ib.sl_tclass_flowlabel = in create_ib_ah()
56 ah->av.ib.g_slid |= 0x80; in create_ib_ah()
57 ah->av.ib.gid_index = grh->sgid_index; in create_ib_ah()
58 ah->av.ib.hop_limit = grh->hop_limit; in create_ib_ah()
59 ah->av.ib.sl_tclass_flowlabel |= in create_ib_ah()
62 memcpy(ah->av.ib.dgid, grh->dgid.raw, 16); in create_ib_ah()
65 ah->av.ib.dlid = cpu_to_be16(rdma_ah_get_dlid(ah_attr)); in create_ib_ah()
73 ah->av.ib.stat_rate = static_rate; in create_ib_ah()
[all …]
/kernel/linux/linux-5.10/include/rdma/
Dib_sa.h184 struct sa_path_rec_ib ib; member
217 static inline void path_conv_opa_to_ib(struct sa_path_rec *ib, in path_conv_opa_to_ib() argument
225 ib->dgid.global.interface_id in path_conv_opa_to_ib()
227 ib->dgid.global.subnet_prefix in path_conv_opa_to_ib()
229 ib->sgid.global.interface_id in path_conv_opa_to_ib()
231 ib->dgid.global.subnet_prefix in path_conv_opa_to_ib()
233 ib->ib.dlid = 0; in path_conv_opa_to_ib()
235 ib->ib.slid = 0; in path_conv_opa_to_ib()
237 ib->ib.dlid = htons(ntohl(opa->opa.dlid)); in path_conv_opa_to_ib()
238 ib->ib.slid = htons(ntohl(opa->opa.slid)); in path_conv_opa_to_ib()
[all …]

123456