Searched refs:IB (Results 1 - 200 of 219) sorted by relevance

12

/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dradeon_ib.c33 * IB
35 * commands are stored. You can put a pointer to the IB in the
36 * command ring and the hw will fetch the commands from the IB
44 * radeon_ib_get - request an IB (Indirect Buffer)
47 * @ring: ring index the IB is associated with
48 * @ib: IB object returned
49 * @size: requested IB size
51 * Request an IB (all asics). IBs are allocated using the
63 dev_err(rdev->dev, "failed to get a new IB (%d)\n", r); radeon_ib_get()
87 * radeon_ib_free - free an IB (Indirect Buffer)
90 * @ib: IB object to free
92 * Free an IB (all asics).
102 * radeon_ib_schedule - schedule an IB (Indirect Buffer) on the ring
105 * @ib: IB object to schedule
106 * @const_ib: Const IB to schedule (SI only)
109 * Schedule an IB on the associated ring (all asics).
118 * IBs, one for the CE and one for the DE. If there is a CE IB (called
119 * a CONST_IB), it will be put on the ring prior to the DE IB. Prior
120 * to SI there was just a DE IB.
137 dev_err(rdev->dev, "scheduling IB failed (%d).\n", r); radeon_ib_schedule()
167 dev_err(rdev->dev, "failed to emit fence for new IB (%d)\n", r); radeon_ib_schedule()
183 * radeon_ib_pool_init - Init the IB (Indirect Buffer) pool
231 * radeon_ib_pool_fini - Free the IB (Indirect Buffer) pool
252 * Test an IB (Indirect Buffer) on each ring.
255 * IB test fails.
276 DRM_ERROR("radeon: failed testing IB on GFX ring (%d).\n", r); radeon_ib_ring_tests()
282 DRM_ERROR("radeon: failed testing IB on ring %d (%d).\n", i, r); radeon_ib_ring_tests()
H A Devergreen_dma.c60 * evergreen_dma_ring_ib_execute - schedule an IB on the DMA engine
63 * @ib: IB object to schedule
65 * Schedule an IB in the DMA ring (evergreen).
H A Dr600_dma.c329 * r600_dma_ib_test - test an IB on the DMA engine
334 * Test a simple IB in the DMA ring (r6xx-SI).
393 * r600_dma_ring_ib_execute - Schedule an IB on the DMA engine
396 * @ib: IB object to schedule
398 * Schedule an IB in the DMA ring (r6xx-r7xx).
H A Dni_dma.c115 * cayman_dma_ring_ib_execute - Schedule an IB on the DMA engine
118 * @ib: IB object to schedule
120 * Schedule an IB in the DMA ring (cayman-SI).
438 * cayman_dma_vm_pad_ib - pad the IB to the required number of dw
H A Dradeon_cs.c304 /* zero length IB isn't useful */ radeon_cs_parser_init()
310 /* zero length CONST IB isn't useful */ radeon_cs_parser_init()
473 DRM_ERROR("Failed to schedule IB !\n"); radeon_cs_ib_chunk()
602 DRM_ERROR("cs IB CONST too big: %d\n", ib_chunk->length_dw); radeon_cs_ib_fill()
621 DRM_ERROR("cs IB too big: %d\n", ib_chunk->length_dw); radeon_cs_ib_fill()
H A Dcik_sdma.c126 * cik_sdma_ring_ib_execute - Schedule an IB on the DMA engine
129 * @ib: IB object to schedule
131 * Schedule an IB in the DMA ring (CIK).
151 /* IB packet must end on a 8 DW boundary */ cik_sdma_ring_ib_execute()
694 * cik_sdma_ib_test - test an IB on the DMA engine
699 * Test a simple IB in the DMA ring (CIK).
923 * cik_sdma_vm_pad_ib - pad the IB to the required number of dw
H A Dradeon_object.c468 /* Returns how many bytes TTM can move per IB.
478 * is equal to 1/4 of the size of VRAM for this IB. radeon_bo_get_threshold_for_moves()
481 * 1 MB of data for this IB. radeon_bo_get_threshold_for_moves()
545 * if we have moved too many buffers for this IB already. list_for_each_entry()
H A Duvd_v1_0.c298 /* swap (8 in 32) RB and IB */ uvd_v1_0_start()
497 * Test if we can successfully execute an IB
H A Dradeon_uvd.c589 DRM_ERROR("More than one message in a UVD-IB!\n"); radeon_uvd_cs_reloc()
644 /* does the IB has a msg command */ radeon_uvd_cs_parse()
656 DRM_ERROR("UVD IB length (%d) not 16 dwords aligned!\n", radeon_uvd_cs_parse()
H A Dradeon_vce.c660 DRM_ERROR("no session command at start of IB\n"); radeon_vce_cs_parse()
676 * IB contains a destroy msg or we have allocated an radeon_vce_cs_parse()
716 * @ib: the IB to execute
H A Dr520.c214 dev_err(rdev->dev, "IB initialization failed (%d).\n", r); r520_startup()
H A Dradeon_vm.c656 /* update too big for an IB */ radeon_vm_update_page_directory()
722 * @ib: IB for the update
994 /* update too big for an IB */ radeon_vm_bo_update()
H A Dr600_cs.c1007 /* get value to populate the IB don't remove */ r600_cs_check_reg()
2398 /* Copy the packet into the IB, the parser will read from the r600_cs_legacy()
2399 * input memory (cached) and write to the IB (which can be r600_cs_legacy()
2465 * r600_dma_cs_parse() - parse the DMA IB
2468 * Parses the DMA IB from the CS ioctl and updates
H A Drs400.c452 dev_err(rdev->dev, "IB initialization failed (%d).\n", r); rs400_startup()
H A Dr420.c293 dev_err(rdev->dev, "IB initialization failed (%d).\n", r); r420_startup()
H A Dradeon_test.c57 * (Total GTT - IB pool - writeback page - ring buffers) / test size radeon_do_test_moves()
H A Devergreen_cs.c1131 /* get value to populate the IB don't remove */ evergreen_cs_handle_reg()
2737 * evergreen_dma_cs_parse() - parse the DMA IB
2740 * Parses the DMA IB from the CS ioctl and updates
3484 * evergreen_dma_ib_parse() - parse the DMA IB for VM
3488 * Parses the DMA IB from the VM CS ioctl
H A Dcik.c4127 * IB stuff
4130 * cik_ring_ib_execute - emit an IB (Indirect Buffer) on the gfx ring
4135 * Emits an DE (drawing engine) or CE (constant engine) IB
4138 * sheduling on the ring. This function schedules the IB
4148 /* set switch buffer packet before const IB */ cik_ring_ib_execute()
4182 * cik_ib_test - basic gfx ring IB test
4187 * Allocate an IB and execute it on the gfx ring (CIK).
6020 * CIK uses hw IB checking so this is a nop (CIK).
8304 case 177: /* GFX IB CP_INT */ cik_irq_process()
8726 dev_err(rdev->dev, "IB initialization failed (%d).\n", r); cik_startup()
H A Drs600.c1020 dev_err(rdev->dev, "IB initialization failed (%d).\n", r); rs600_startup()
H A Drs690.c739 dev_err(rdev->dev, "IB initialization failed (%d).\n", r); rs690_startup()
H A Drv515.c561 dev_err(rdev->dev, "IB initialization failed (%d).\n", r); rv515_startup()
H A Dr300.c1435 dev_err(rdev->dev, "IB initialization failed (%d).\n", r); r300_startup()
H A Drv770.c1788 dev_err(rdev->dev, "IB initialization failed (%d).\n", r); rv770_startup()
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ib.c37 * IB
39 * commands are stored. You can put a pointer to the IB in the
40 * command ring and the hw will fetch the commands from the IB
48 * amdgpu_ib_get - request an IB (Indirect Buffer)
50 * @ring: ring index the IB is associated with
51 * @size: requested IB size
52 * @ib: IB object returned
54 * Request an IB (all asics). IBs are allocated using the
68 dev_err(adev->dev, "failed to get a new IB (%d)\n", r); amdgpu_ib_get()
87 * amdgpu_ib_free - free an IB (Indirect Buffer)
90 * @ib: IB object to free
92 * Free an IB (all asics).
103 * amdgpu_ib_schedule - schedule an IB (Indirect Buffer) on the ring
107 * @ibs: IB objects to schedule
110 * Schedule an IB on the associated ring (all asics).
119 * IBs, one for the CE and one for the DE. If there is a CE IB (called
120 * a CONST_IB), it will be put on the ring prior to the DE IB. Prior
121 * to SI there was just a DE IB.
146 dev_err(adev->dev, "IB sync failed (%d).\n", r); amdgpu_ib_schedule()
151 dev_err(adev->dev, "scheduling IB failed (%d).\n", r); amdgpu_ib_schedule()
210 /* wrap the last IB with fence */ amdgpu_ib_schedule()
226 * amdgpu_ib_pool_init - Init the IB (Indirect Buffer) pool
262 * amdgpu_ib_pool_fini - Free the IB (Indirect Buffer) pool
283 * Test an IB (Indirect Buffer) on each ring.
286 * IB test fails.
305 DRM_ERROR("amdgpu: failed testing IB on GFX ring (%d).\n", r); amdgpu_ib_ring_tests()
311 DRM_ERROR("amdgpu: failed testing IB on ring %d (%d).\n", i, r); amdgpu_ib_ring_tests()
H A Damdgpu_cs.c287 /* Returns how many bytes TTM can move per IB.
297 * is equal to 1/4 of the size of VRAM for this IB. amdgpu_cs_get_threshold_for_moves()
300 * 1 MB of data for this IB. amdgpu_cs_get_threshold_for_moves()
357 * if we have moved too many buffers for this IB already. list_for_each_entry()
652 DRM_ERROR("IB va_start is invalid\n"); amdgpu_cs_ib_fill()
658 DRM_ERROR("IB va_start+ib_bytes is invalid\n"); amdgpu_cs_ib_fill()
662 /* the IB should be reserved at this point */ amdgpu_cs_ib_fill()
698 /* add GDS resources to first IB */ amdgpu_cs_ib_fill()
718 /* wrap the last IB with user fence */ amdgpu_cs_ib_fill()
743 /* Add dependencies to first IB */ amdgpu_cs_dependencies()
H A Dcik_sdma.c205 * cik_sdma_ring_emit_ib - Schedule an IB on the DMA engine
208 * @ib: IB object to schedule
210 * Schedule an IB in the DMA ring (CIK).
228 /* IB packet must end on a 8 DW boundary */ cik_sdma_ring_emit_ib()
620 * cik_sdma_ring_test_ib - test an IB on the DMA engine
624 * Test a simple IB in the DMA ring (CIK).
825 * cik_sdma_vm_pad_ib - pad the IB to the required number of dw
H A Dsdma_v2_4.c237 * sdma_v2_4_ring_emit_ib - Schedule an IB on the DMA engine
240 * @ib: IB object to schedule
242 * Schedule an IB in the DMA ring (VI).
262 /* IB packet must end on a 8 DW boundary */ sdma_v2_4_ring_emit_ib()
674 * sdma_v2_4_ring_test_ib - test an IB on the DMA engine
678 * Test a simple IB in the DMA ring (VI).
884 * sdma_v2_4_vm_pad_ib - pad the IB to the required number of dw
H A Dsdma_v3_0.c348 * sdma_v3_0_ring_emit_ib - Schedule an IB on the DMA engine
351 * @ib: IB object to schedule
353 * Schedule an IB in the DMA ring (VI).
372 /* IB packet must end on a 8 DW boundary */ sdma_v3_0_ring_emit_ib()
824 * sdma_v3_0_ring_test_ib - test an IB on the DMA engine
828 * Test a simple IB in the DMA ring (VI).
1033 * sdma_v3_0_vm_pad_ib - pad the IB to the required number of dw
H A Damdgpu_vce.c720 DRM_ERROR("no session command at start of IB\n"); amdgpu_vce_ring_parse_cs()
736 * IB contains a destroy msg or we have allocated an amdgpu_vce_ring_parse_cs()
774 * @ib: the IB to execute
H A Damdgpu_uvd.c70 /* does the IB has a msg command */
802 DRM_ERROR("UVD IB length (%d) not 16 dwords aligned!\n", amdgpu_uvd_ring_parse_cs()
H A Duvd_v4_2.c300 /* swap (8 in 32) RB and IB */ uvd_v4_2_start()
532 * Test if we can successfully execute an IB
H A Duvd_v5_0.c335 /* swap (8 in 32) RB and IB */ uvd_v5_0_start()
578 * Test if we can successfully execute an IB
H A Duvd_v6_0.c333 /* swap (8 in 32) RB and IB */ uvd_v6_0_start()
578 * Test if we can successfully execute an IB
H A Damdgpu_vm.c447 /* update too big for an IB */ amdgpu_vm_update_page_directory()
531 * @ib: IB for the update
756 /* update too big for an IB */ amdgpu_vm_bo_update_mapping()
H A Damdgpu_test.c43 * (Total GTT - IB pool - writeback page - ring buffers) / test size amdgpu_do_test_moves()
H A Dgfx_v7_0.c2550 * IB stuff
2553 * gfx_v7_0_ring_emit_ib - emit an IB (Indirect Buffer) on the ring
2558 * Emits an DE (drawing engine) or CE (constant engine) IB
2561 * sheduling on the ring. This function schedules the IB
2571 /* drop the CE preamble IB for the same context */ gfx_v7_0_ring_emit_ib_gfx()
2585 /* insert SWITCH_BUFFER packet before first IB in the ring frame */ gfx_v7_0_ring_emit_ib_gfx()
2639 * gfx_v7_0_ring_test_ib - basic ring IB test
2643 * Allocate an IB and execute it on the gfx ring (CIK).
H A Damdgpu_ttm.c1028 /* for IB padding */ amdgpu_copy_buffer()
/linux-4.4.14/include/rdma/
H A Drdma_netlink.h17 * Add a a client to the list of IB netlink exporters.
28 * Remove a client from IB netlink.
29 * @index: Index of the removed IB client.
41 * @client: Calling IB netlink client.
H A Dib.h91 * The IB interfaces that use write() as bi-directional ioctl() are
H A Dib_sa.h48 IB_SA_CLASS_VERSION = 2, /* IB spec version 1.1/1.2 */
159 /* ignored in IB */
161 /* ignored in IB */
417 * to IB MAD wire format.
H A Dib_smi.h138 u8 vl; /* IB: VL is low 4 bits, upper 4 bits reserved */
H A Diw_cm.h131 * @device: The IB device on which to create the IW CM identier.
165 * @ib_device: The IB device
H A Dib_verbs.h75 /* IB values map to NodeInfo:NodeType. */
554 * ib_rate_to_mult - Convert the IB rate enum to a multiple of the
562 * ib_rate_to_mbps - Convert the IB rate enum to Mbps.
687 * mult_to_ib_rate - Convert a multiple of 2.5 Gbit/sec to an IB rate
851 * These qp types will not be visible at the IB core layer, so the
1851 * (such as IP over IB) should implement this callback, allowing the
1904 * transition from cur_state to next_state is allowed by the IB spec,
1925 * rdma_cap_ib_switch - Check if the device is IB switch
1931 * Return: true if the device is IB switch.
2064 * Return: true if the port supports an IB CM (this does not guarantee that
H A Dib_addr.h236 * reduce IB headers from effective IBoE MTU. 28 stands for iboe_get_mtu()
H A Drdma_cm.h383 * rdma_get_service_id - Return the IB service ID for a specified address.
/linux-4.4.14/drivers/infiniband/ulp/srpt/
H A Dib_srpt.h271 * @thread: Kernel thread that processes the IB queues associated with
273 * @cm_id: IB CM ID associated with the channel.
274 * @qp: IB queue pair used for communicating over this channel.
275 * @cq: IB completion queue for this channel.
276 * @rq_size: IB receive queue size.
277 * @rsp_size IB response message size in bytes.
291 * @wc: IB work completion array for srpt_process_completion().
343 * struct srpt_port - Information associated by SRPT with a single IB port.
377 * @device: Backpointer to the struct ib_device managed by the IB core.
378 * @pd: IB protection domain.
390 * @event_handler: Per-HCA asynchronous IB event handler.
H A Dib_srpt.c165 * srpt_event_handler() - Asynchronous IB event callback function.
167 * Callback function called by the InfiniBand core when an asynchronous IB
207 pr_err("received unrecognized IB event %d\n", srpt_event_handler()
242 pr_err("received unrecognized IB QP event %d\n", event->event); srpt_qp_event()
772 * srpt_post_recv() - Post an IB receive request.
795 * srpt_post_send() - Post an IB send request.
811 pr_warn("IB send queue full (needed 1)\n"); srpt_post_send()
1045 * srpt_unmap_sg_to_ib_sge() - Unmap an IB SGE list.
1075 * srpt_map_sg_to_ib_sge() - Map an SG list to an IB SGE list.
1411 * srpt_handle_send_comp() - Process an IB send completion notification.
1431 pr_err("IB completion has been received too late for" srpt_handle_send_comp()
1437 * srpt_handle_rdma_comp() - Process an IB RDMA completion notification.
1440 * the data that has been transferred via IB RDMA had to be postponed until the
1466 * srpt_handle_rdma_err_comp() - Process an IB RDMA error completion.
1896 * srpt_process_send_completion() - Process an IB send completion.
1905 * if IB retransmission causes generation of the send completion to be
1974 * srpt_completion() - IB completion queue callback function.
2186 * srpt_drain_channel() - Drain a channel by resetting the IB queue pair.
2192 * waits until all target sessions for the associated IB device have been
2265 * - Calling the ib_destroy_cm_id() call from inside an IB CM callback would
2615 pr_info("Received IB REJ for cm_id %p.\n", cm_id); srpt_cm_rej_recv()
2650 pr_info("Received IB TimeWait exit for cm_id %p.\n", cm_id); srpt_cm_timewait_exit()
2656 pr_info("Received IB REP error for cm_id %p.\n", cm_id); srpt_cm_rep_error()
2691 pr_err("Sending IB DREP failed.\n"); srpt_cm_dreq_recv()
2707 * srpt_cm_handler() - IB connection manager callback function.
2746 pr_info("Received IB DREQ ERROR event.\n"); srpt_cm_handler()
2749 pr_info("Received IB MRA event\n"); srpt_cm_handler()
2752 pr_err("received unrecognized IB CM event %d\n", event->event); srpt_cm_handler()
2760 * srpt_perform_rdmas() - Perform IB RDMA.
2782 pr_warn("IB send queue full (needed %d)\n", srpt_perform_rdmas()
2944 * invoked on the context of the IB completion handler.
3279 /* Cancel any work queued by the just unregistered IB event handler. */ srpt_remove_one()
3807 pr_err("couldn't register IB client\n"); srpt_init_module()
/linux-4.4.14/drivers/infiniband/core/
H A Ddevice.c201 * ib_alloc_device - allocate an IB device struct
237 * ib_dealloc_device - free an IB device struct
314 * ib_register_device - Register an IB device with IB core
318 * devices with the IB core. All registered clients will receive a
379 * ib_unregister_device - Unregister an IB device
382 * Unregister an IB device. All clients will receive a remove callback.
423 * ib_register_client - Register an IB client
426 * Upper level users of the IB drivers can use ib_register_client() to
427 * register callbacks for IB device addition and removal. When an IB
456 * ib_unregister_client - Unregister an IB client
461 * will receive a remove callback for each IB device still registered.
512 * ib_get_client_data - Get IB client context
538 * ib_set_client_data - Set IB client context
568 * ib_register_event_handler - Register an IB event handler
572 * called back when asynchronous IB events occur (as defined in
631 * ib_query_device - Query IB device attributes
650 * ib_query_port - Query IB port attributes
696 * @ib_dev : IB device we want to query
777 * ib_modify_device - Change IB device attributes
965 printk(KERN_WARNING "Couldn't init IB netlink interface\n"); ib_core_init()
H A Dsmi.c52 /* See section 14.2.2.2, Vol 1 IB spec */ __smi_handle_dr_smp_send()
164 /* See section 14.2.2.2, Vol 1 IB spec */ __smi_handle_dr_smp_recv()
H A Droce_gid_mgmt.c495 /* The following functions operate on all IB devices. netdevice_event and
497 * ib_enum_all_roce_netdevs iterates through all IB devices.
H A Dumem_odp.c473 pr_err("error: got different pages in IB device and from get_user_pages. IB device page: %p, gup page: %p\n", ib_umem_odp_map_dma_single_page()
H A Daddr.c51 MODULE_DESCRIPTION("IB Address Translation");
H A Dcm_msgs.h45 #define IB_CM_CLASS_VERSION 2 /* IB specification 1.2 */
H A Dmad.c52 MODULE_DESCRIPTION("kernel IB MAD API");
772 * hop_ptr or hop_cnt. See section 14.2.2, Vol 1 IB spec. handle_outgoing_dr_smp()
2552 * IB MAD completion callback
H A Dcache.c107 * writers. We don't need this lock for IB, as the MAD
H A Dcma.c531 * Select the source IB device and address to reach the destination IB address.
1581 printk(KERN_ERR "RDMA CMA: unexpected IB CM event: %d\n", cma_ib_handler()
3093 printk(KERN_ERR "RDMA CMA: unexpected IB CM event: %d\n", cma_sidr_rep_handler()
H A Diwcm.c258 * IB SQD QP state.
H A Duverbs_main.c899 /* In case IB device supports disassociate ucontext, there is no hard ib_uverbs_open()
H A Dsa_query.c817 /* if the result is a failure, send out the packet via IB */ ib_nl_handle_resolve_resp()
/linux-4.4.14/net/rds/
H A Diw.c169 /* We will only ever look at IB transports */ rds_iw_conn_info_visitor()
208 * Early RDS/IB was built to only bind to an address if there is an IPoIB
224 * IB and iWARP capable NICs. rds_iw_laddr_check()
234 /* rdma_bind_addr will only succeed for IB & iWARP devices */ rds_iw_laddr_check()
236 /* due to this, we will claim to support IB devices unless we rds_iw_laddr_check()
H A Dib.c127 /* Only handle IB (no iWARP) devices */ rds_ib_add_one()
185 rdsdebug("RDS/IB: max_mr = %d, max_wrs = %d, max_sge = %d, fmr_max_remaps = %d, max_1m_fmrs = %d, max_8k_fmrs = %d\n", rds_ib_add_one()
212 * performance of the IB call. (As of this writing, it uses an interrupt
238 * The IB stack is letting us know that a device is going away. This can
282 /* We will only ever look at IB transports */ rds_ib_conn_info_visitor()
321 * Early RDS/IB was built to only bind to an address if there is an IPoIB
337 * IB and iWARP capable NICs. rds_ib_laddr_check()
347 /* rdma_bind_addr will only succeed for IB & iWARP devices */ rds_ib_laddr_check()
H A Dib_send.c43 * Convert IB-specific error message to RDS error message and call core
98 * 2. Notify when the IB stack gives us the completion event for rds_ib_send_unmap_rdma()
100 * 3. Notify when the IB stack gives us the completion event for rds_ib_send_unmap_rdma()
178 "RDS/IB: %s: unexpected opcode 0x%x in WR!\n", rds_ib_send_unmap_op()
472 * we see a message we map its scatterlist into the IB device so that
473 * we can provide that mapped address to the IB scatter gather entries
474 * in the IB work requests. We translate the scatterlist into a series
508 /* Do not send cong updates to IB loopback */ rds_ib_xmit()
730 printk(KERN_WARNING "RDS/IB: ib_post_send to %pI4 " rds_ib_xmit()
827 printk(KERN_WARNING "RDS/IB: atomic ib_post_send to %pI4 " rds_ib_xmit_atomic()
835 printk(KERN_WARNING "RDS/IB: atomic ib_post_send() rc=%d, but failed_wqe updated!\n", ret); rds_ib_xmit_atomic()
967 printk(KERN_WARNING "RDS/IB: rdma ib_post_send to %pI4 " rds_ib_xmit_rdma()
975 printk(KERN_WARNING "RDS/IB: ib_post_send() rc=%d, but failed_wqe updated!\n", ret); rds_ib_xmit_rdma()
H A Dib_rdma.c97 /* By the time this is called all the IB devices should have been torn down and
395 printk(KERN_WARNING "RDS/IB: ib_alloc_fmr failed (err=%d)\n", err); rds_ib_alloc_fmr()
432 printk(KERN_WARNING "RDS/IB: dma_map_sg failed!\n"); rds_ib_map_fmr()
696 printk(KERN_WARNING "RDS/IB: ib_unmap_fmr failed (err=%d)\n", ret); rds_ib_flush_mr_pool()
762 rdsdebug("RDS/IB: free_mr nents %u\n", ibmr->sg_len); rds_ib_free_mr()
836 printk(KERN_WARNING "RDS/IB: map_fmr failed (errno=%d)\n", ret); rds_ib_get_mr()
H A Dib_ring.c39 * Locking for IB rings.
H A Diw_ring.c39 * Locking for IB rings.
H A Dib.h37 * IB posts RDS_FRAG_SIZE fragments of pages to the receive queues to
344 __rds_ib_conn_error(conn, KERN_WARNING "RDS/IB: " fmt)
H A Diw_send.c98 * 2. Notify when the IB stack gives us the completion event for rds_iw_send_unmap_rm()
100 * 3. Notify when the IB stack gives us the completion event for rds_iw_send_unmap_rm()
477 * we see a message we map its scatterlist into the IB device so that
478 * we can provide that mapped address to the IB scatter gather entries
479 * in the IB work requests. We translate the scatterlist into a series
H A Dconnection.c136 /* This is a looped back IB connection, and we're __rds_conn_create()
315 * The passive side of an IB loopback connection is never added rds_conn_shutdown()
H A Dib_cm.c115 printk(KERN_NOTICE "RDS/IB: Connection to %pI4 version %u.%u failed," rds_ib_cm_connect_complete()
123 printk(KERN_NOTICE "RDS/IB: connected to %pI4 version %u.%u%s\n", rds_ib_cm_connect_complete()
224 * This relies on IB only calling one cq comp_handler for each cq so that
553 /* RDS/IB is not currently netns aware, thus init_net */ rds_ib_cm_handle_connect()
H A Drdma_transport.c232 MODULE_DESCRIPTION("RDS: IB/iWARP transport");
H A Dthreads.c69 * (TCP, IB/RDMA) to provide the necessary synchronisation.
H A Diw.h24 * IB posts RDS_FRAG_SIZE fragments of pages to the receive queues to
H A Diw_recv.c364 * You'd think that with reliable IB connections you wouldn't need to ack
365 * messages that have been received. The problem is that IB hardware generates
765 * This relies on IB only calling one cq comp_handler for each cq so that
H A Dib_recv.c577 * You'd think that with reliable IB connections you wouldn't need to ack
578 * messages that have been received. The problem is that IB hardware generates
H A Dsend.c461 * the IB send completion on the RDMA op and the accompanying
562 * This is called from the IB send completion when we detect
H A Diw_cm.c258 /* rds_iw_add_one creates a rds_iw_device object per IB device, rds_iw_setup_qp()
H A Drds.h185 * NB: This is no longer true for IB, where we do a version
/linux-4.4.14/drivers/staging/rdma/hfi1/
H A Dopa_compat.h56 * IB core. We'll collect these all here, then merge them into
89 * IB Volume 1, Table 146 PortInfo/IB Volume 2 Section 5.4.2(1) PortPhysState
H A Dcommon.h295 #define RHF_RCV_TYPE_IB 2 /* normal IB, IB Raw, or IPv6 */
309 /* RHF receive type error - IB packet errors */
332 /* IB - LRH header constants */
333 #define HFI1_LRH_GRH 0x0003 /* 1. word of IB LRH - next header: GRH */
334 #define HFI1_LRH_BTH 0x0002 /* 1. word of IB LRH - next header: BTH */
H A Dintr.c95 * Only call ib_dispatch_event() if the IB device has been signal_ib_event()
97 * registered with the IB core. signal_ib_event()
177 /* notify IB of the link change */ handle_linkup_change()
H A Dhfi.h374 * Get/Set IB link-level config parameters for f_get/set_ib_cfg()
387 #define HFI1_IB_CFG_HRTBT 9 /* IB heartbeat off/enable/auto; DDR/QDR only */
391 #define HFI1_IB_CFG_OVERRUN_THRESH 13 /* IB overrun threshold */
392 #define HFI1_IB_CFG_PHYERR_THRESH 14 /* IB PHY error threshold */
393 #define HFI1_IB_CFG_LINKDEFAULT 15 /* IB link default (sleep/poll) */
543 * The structure below encapsulates data relevant to a physical IB Port.
545 * clarifies things a bit. Note that to conform to IB conventions,
598 * Current max size IB packet (in bytes) including IB headers, that
625 u8 port; /* IB port number and index into dd->pports - 1 */
639 /* placeholders for IB MAD packet settings */
768 * fields related to a physical IB port are in a hfi1_pportdata struct.
900 * IB link status cheaply
1379 /* MTU enumeration, 256-4k match IB */
1461 unsigned pidx = port - 1; /* IB number port from 1, hdw from 0 */ to_iport()
1503 /* IB dword length mask in PBC (lower 11 bits); same for all chips */
1755 * the IB port# to be definitive as to what's happening..
1782 dev_err(&(dd)->pcidev->dev, "%s: IB%u:%u " fmt, \
H A Dkeys.c165 * hfi1_lkey_ok - check IB SGE for validity and initialize
176 * Check the IB SGE for validity and initialize our internal version
262 * hfi1_rkey_ok - check the IB virtual address, length, and RKEY
H A Dqsfp.h88 /* Bytes 131..138 are Transceiver types, bit maps for various tech, none IB */
120 /* Byte 164 is IB Extended transceiver codes Bits D0..3 are SDR,DDR,QDR,EDR */
H A Dverbs.h109 /* IB Performance Manager status values */
114 /* Mandatory IB performance counter select values. */
181 * long (72 w/ imm_data). Only the first 56 bytes of the IB header
311 u64 iova; /* IB start address of this region */
746 /* QP numbers are shared by all IB ports */
H A Duc.c55 /* cut down ridiculously long IB macro names */
451 * It seems that IB mandates the presence of an SL in a hfi1_uc_rcv()
456 * with the way that IB/qib works and is trying avoid hfi1_uc_rcv()
H A Dmad.h126 * There should be an equivalent IB #define for the following, but
H A Dmmap.c103 * @context: the IB user context of the process making the mmap() call
H A Dverbs.c138 * completions as per IB 1.2 C10-96.
374 /* IB spec says that num_sge == 0 is OK. */ post_one_send()
1439 * Convert a single OPA link width (no multiple flags) to an IB value.
1440 * A zero OPA link width means link down, which means the IB width value
1447 /* map 2x and 3x to 1x as they don't exist in IB */ opa_width_to_ib()
1470 /* OPA logical states match IB logical states */ query_port()
H A Dverbs_mcast.c121 * @ibp: the IB port structure
H A Dinit.c473 ppd->port = port; /* IB port number, not index */ hfi1_init_pportdata()
1432 /* unregister from IB core */ remove_one()
1436 * Disable the IB link, disable interrupts on the device, remove_one()
H A Dmad.c320 unsigned pidx = port - 1; /* IB number port from 1, hw from 0 */ __subn_get_opa_nodeinfo()
358 unsigned pidx = port - 1; /* IB number port from 1, hw from 0 */ subn_get_nodeinfo()
536 /* IB numbers ports from 1, hw from 0 */ __subn_get_opa_portinfo()
718 * @port: the IB port number
1085 /* IB numbers ports from 1, hw from 0 */ __subn_set_opa_portinfo()
1339 * @port: the IB port number
1350 * IB port one/two always maps to context zero/one, set_pkeys()
1608 /* IB numbers ports from 1, hw from 0 */ __subn_set_opa_sc_to_vlt()
1664 /* IB numbers ports from 1, hw from 0 */ __subn_set_opa_sc_to_vlnt()
H A Dmr.c195 * @iova_start: the starting address passed over IB which maps to this MR
H A Drc.c58 /* cut down ridiculously long IB macro names */
90 * @ohdr: a pointer to the IB header being constructed
2123 * It seems that IB mandates the presence of an SL in a hfi1_rc_rcv()
2128 * with the way that IB/qib works and is trying avoid hfi1_rc_rcv()
H A Dsysfs.c678 "IB%u: Congestion Control Agent enabled for port %d\n", hfi1_create_port_files()
H A Dchip.c6082 case HFI1_IB_CFG_OVERRUN_THRESH: /* IB overrun threshold */ hfi1_get_ib_cfg()
6085 case HFI1_IB_CFG_PHYERR_THRESH: /* IB PHY error threshold */ hfi1_get_ib_cfg()
6088 case HFI1_IB_CFG_LINKDEFAULT: /* IB link default (sleep/poll) */ hfi1_get_ib_cfg()
6409 * state (an HLS_*) into a physical state (a {IB,OPA}_PORTPHYSSTATE_*).
6601 /* Signal the IB layer that the port has went active */ set_link_state()
6766 case HFI1_IB_CFG_LINKDEFAULT: /* IB link default (sleep/poll) */ hfi1_set_ib_cfg()
6802 case HFI1_IB_CFG_OVERRUN_THRESH: /* IB overrun threshold */ hfi1_set_ib_cfg()
6804 * HFI does not follow IB specs, save this value hfi1_set_ib_cfg()
6809 case HFI1_IB_CFG_PHYERR_THRESH: /* IB PHY error threshold */ hfi1_set_ib_cfg()
6811 * HFI does not follow IB specs, save this value hfi1_set_ib_cfg()
8556 * wait_logical_linkstate - wait for an IB link state change to occur
8561 * Wait up to msecs milliseconds for IB link state change to occur.
H A Ddriver.c1007 dd_dev_info(dd, "IB%u:%u got a lid: 0x%x\n", dd->unit, ppd->port, lid); hfi1_set_lid()
H A Druc.c667 * @ibp: a pointer to the IB port
H A Dtrace.h71 packettype_name(IB), \
H A Dud.c737 * IB spec (release 1.3, section 10.9.4) hfi1_ud_rcv()
/linux-4.4.14/drivers/scsi/pm8001/
H A Dpm8001_defs.h97 #define IB (USI_MAX_MEMCNT_BASE + 1) macro
98 #define CI (IB + PM8001_MAX_SPCV_INB_NUM)
H A Dpm8001_init.c287 pm8001_ha->memoryMap.region[IB+i].num_elements = pm8001_alloc()
289 pm8001_ha->memoryMap.region[IB+i].element_size = 128; pm8001_alloc()
290 pm8001_ha->memoryMap.region[IB+i].total_len = pm8001_alloc()
292 pm8001_ha->memoryMap.region[IB+i].alignment = 128; pm8001_alloc()
294 pm8001_ha->memoryMap.region[IB+i].num_elements = pm8001_alloc()
296 pm8001_ha->memoryMap.region[IB+i].element_size = 64; pm8001_alloc()
297 pm8001_ha->memoryMap.region[IB+i].total_len = pm8001_alloc()
299 pm8001_ha->memoryMap.region[IB+i].alignment = 64; pm8001_alloc()
H A Dpm8001_ctl.c328 memoryMap.region[IB].virt_ptr + \ pm8001_ctl_ib_queue_log_show()
H A Dpm8001_hwi.c226 pm8001_ha->memoryMap.region[IB + i].phys_addr_hi; init_default_table_values()
228 pm8001_ha->memoryMap.region[IB + i].phys_addr_lo; init_default_table_values()
230 (u8 *)pm8001_ha->memoryMap.region[IB + i].virt_ptr; init_default_table_values()
232 pm8001_ha->memoryMap.region[IB + i].total_len; init_default_table_values()
H A Dpm80xx_hwi.c498 pm8001_ha->memoryMap.region[IB + i].phys_addr_hi; init_default_table_values()
500 pm8001_ha->memoryMap.region[IB + i].phys_addr_lo; init_default_table_values()
502 (u8 *)pm8001_ha->memoryMap.region[IB + i].virt_ptr; init_default_table_values()
504 pm8001_ha->memoryMap.region[IB + i].total_len; init_default_table_values()
/linux-4.4.14/drivers/infiniband/hw/qib/
H A Dqib.h283 * Get/Set IB link-level config parameters for f_get/set_ib_cfg()
295 #define QIB_IB_CFG_HRTBT 9 /* IB heartbeat off/enable/auto; DDR/QDR only */
299 #define QIB_IB_CFG_OVERRUN_THRESH 13 /* IB overrun threshold */
300 #define QIB_IB_CFG_PHYERR_THRESH 14 /* IB PHY error threshold */
301 #define QIB_IB_CFG_LINKDEFAULT 15 /* IB link default (sleep/poll) */
337 * The values were chosen to match values used within the IB spec.
345 /* max number of IB ports supported per HCA */
349 * Possible IB config parameters for f_get/set_ib_table()
411 /* IB link related error counters */
531 * The structure below encapsulates data relevant to a physical IB Port.
533 * clarifies things a bit. Note that to conform to IB conventions,
623 * Current max size IB packet (in bytes) including IB headers, that
650 u8 port; /* IB port number and index into dd->pports - 1 */
725 * fields related to a physical IB port are in a qib_pportdata struct,
807 /* per chip actions needed for IB Link up/down changes */
921 * IB link status cheaply
1231 unsigned pidx = port - 1; /* IB number port from 1, hdw from 0 */ to_iport()
1240 #define QIB_HAS_LINK_LATENCY 0x1 /* supports link latency (IB 1.2) */
1260 #define QIBL_LINKV 0x1 /* IB link state valid */
1261 #define QIBL_LINKDOWN 0x8 /* IB link is down */
1262 #define QIBL_LINKINIT 0x10 /* IB link level is up */
1263 #define QIBL_LINKARMED 0x20 /* IB link is ARMED */
1264 #define QIBL_LINKACTIVE 0x40 /* IB link is ACTIVE */
1265 /* leave a gap for more IB-link state */
1272 /* IB dword length mask in PBC (lower 11 bits); same for all chips */
1358 * We need to be able to handle an IB header of at least 24 dwords.
1359 * We need the rcvhdrq large enough to handle largest IB header, but
1360 * still have room for a 2KB MTU standard IB packet.
1505 * the IB port# to be definitive as to what's happening..
1521 dev_err(&(dd)->pcidev->dev, "%s: IB%u:%u " fmt, \
H A Dqib_sd7220.c78 * used for PCIe, or the single SerDes used for IB.
224 * Localize the stuff that should be done to change IB uC reset
258 * hwerrmask and in IB uC control reg. uC will allow qib_ibsd_reset()
270 qib_dev_err(dd, "unable to re-sync IB EPB\n"); qib_ibsd_reset()
276 /* IB uC code past Version 1.32.17 allow suppression of wdog */ qib_ibsd_reset()
317 qib_dev_err(dd, "not able to re-sync IB EPB (%s)\n", where); qib_sd_trimdone_monitor()
391 * Post IB uC code version 1.32.17, was_reset being 1 is not really
410 qib_dev_err(dd, "Failed to load IB SERDES image\n"); qib_sd7220_init()
422 * are not right for IB. qib_sd7220_init()
426 qib_dev_err(dd, "Failed to set IB SERDES early defaults\n"); qib_sd7220_init()
430 * Set DAC manual trim IB. qib_sd7220_init()
437 qib_dev_err(dd, "Failed IB SERDES DAC trim\n"); qib_sd7220_init()
449 qib_dev_err(dd, "Failed to set IB SERDES presets\n"); qib_sd7220_init()
454 qib_dev_err(dd, "Failed to set IB SERDES TRIMSELF\n"); qib_sd7220_init()
466 qib_dev_err(dd, "Failed to load IB SERDES image\n"); qib_sd7220_init()
562 * The IB SERDES "ownership" is fairly simple. A single each epb_access()
745 /* Transfer date to/from uC Program RAM of IB or PCIe SerDes */ qib_sd7220_ram_xfer()
1124 * Repeat a "store" across all channels of the IB SerDes.
1243 * we do this initially and whenever we turn off IB-1.2
H A Dqib_common.h67 * an qlogic_ib protocol IB packet vs standard IB transport
83 /* IB link is at ACTIVE, usable for data traffic */
140 * IB MTU, packets IB data must be less than this.
182 * protocol packet from standard IB packets. More, probably much
238 __u16 spi_port; /* IB port number we are using */
357 __u32 spu_port; /* IB port requested by user if > 0 */
422 __u16 port; /* IB port assigned to caller (1-based) */
495 * buffers, but the total length (exclusive of IB headers) must be less
497 * including IB headers, must be less than the qib_piosize value (words).
737 /* IB - LRH header consts */
738 #define QIB_LRH_GRH 0x0003 /* 1. word of IB LRH - next header: GRH */
739 #define QIB_LRH_BTH 0x0002 /* 1. word of IB LRH - next header: BTH */
H A Dqib_7220.h86 * these 5 fields are used to establish deltas for IB symbol
115 * used for PCIe, or the single SerDes used for IB, which is the
H A Dqib_qsfp.h68 /* Bytes 131..138 are Transceiver types, bit maps for various tech, none IB */
100 /* Byte 164 is IB Extended tranceiver codes Bits D0..3 are SDR,DDR,QDR,EDR */
159 u8 xt_xcv; /* Ext. tranceiver codes, 4 lsbs are IB speed supported */
H A Dqib_driver.c58 MODULE_PARM_DESC(ibmtu, "Set max IB MTU (0=2KB, 1=256, 2=512, ... 5=4096");
68 MODULE_DESCRIPTION("Intel IB driver");
72 * QIB_PIO_MAXIBHDR is the max IB header size allowed for in our
158 * qib_wait_linkstate - wait for an IB link state change to occur
163 * wait up to msecs milliseconds for IB link state change to occur for
510 * Both tiderr and qibhdrerr are set for all plain IB qib_kreceive()
663 qib_devinfo(dd->pcidev, "IB%u:%u got a lid: 0x%x\n", qib_set_lid()
H A Dqib_keys.c141 * qib_lkey_ok - check IB SGE for validity and initialize
152 * Check the IB SGE for validity and initialize our internal version
240 * qib_rkey_ok - check the IB virtual address, length, and RKEY
H A Dqib_iba7220.c673 "IB uC memory parity"),
917 "IB%u:%u SendBufMisuse: %04lx %016lx %016lx\n", sdma_7220_errors()
923 qib_dev_err(dd, "IB%u:%u SDmaUnexpData\n", ppd->dd->unit, sdma_7220_errors()
1126 * up, but the IB link changes state at the "wrong" handle_7220_errors()
1127 * time. The IB logic then complains that the packet handle_7220_errors()
1137 * up, but the IB link changes state at the "wrong" time. handle_7220_errors()
1138 * The IB logic then complains that the packet isn't handle_7220_errors()
1559 * control update in time to not let the IB link go idle. qib_7220_bringup_serdes()
1566 /* IB credit flow control. */ qib_7220_bringup_serdes()
1717 * These LEDs indicate the physical and logical state of IB link.
2398 case QIB_IB_CFG_OVERRUN_THRESH: /* IB overrun threshold */ qib_7220_get_ib_cfg()
2403 case QIB_IB_CFG_PHYERR_THRESH: /* IB PHY error threshold */ qib_7220_get_ib_cfg()
2408 case QIB_IB_CFG_LINKDEFAULT: /* IB link default (sleep/poll) */ qib_7220_get_ib_cfg()
2474 val--; /* convert from IB to chip */ qib_7220_set_ib_cfg()
2531 case QIB_IB_CFG_OVERRUN_THRESH: /* IB overrun threshold */ qib_7220_set_ib_cfg()
2544 case QIB_IB_CFG_PHYERR_THRESH: /* IB PHY error threshold */ qib_7220_set_ib_cfg()
2564 case QIB_IB_CFG_LINKDEFAULT: /* IB link default (sleep/poll) */ qib_7220_set_ib_cfg()
2591 case QIB_IB_CFG_LSTATE: /* set the IB link state */ qib_7220_set_ib_cfg()
2709 qib_devinfo(ppd->dd->pcidev, "Enabling IB%u:%u IBC loopback\n", qib_7220_set_loopback()
2716 "Disabling IB%u:%u IBC loopback (normal)\n", qib_7220_set_loopback()
3404 * This code for non-IBTA-compliant IB speed negotiation is only known to
3491 * Do the absolute minimum to cause an IB speed change, and make it
3497 * code for devices that are not compliant with IB 1.2 (or code that
3522 * IB 1.2-compliant device that we think can do DDR.
3532 * non-IB-compliant switches don't need it, but so far, try_7220_autoneg()
3699 ret = 1; /* no other IB status change processing */ qib_7220_ib_updown()
3706 ret = 1; /* no other IB status change processing */ qib_7220_ib_updown()
H A Dqib_iba7322.c95 /* Below is special-purpose, so only really works for the IB SerDes blocks. */
125 MODULE_PARM_DESC(singleport, "Use only IB port 1; more per-port buffer space");
229 /* full speed IB port 1 only */
435 /* no chip register for # of IB ports supported, so define */
438 /* 1 VL15 buffer per hardware IB port, no register for this, so define */
623 * these 5 fields are used to establish deltas for IB symbol
1605 qib_dev_err(dd, "IB%u:%u SDmaUnexpData\n", dd->unit, sdma_7322_p_errors()
1856 "IB%u:%u re-enabled QDR adaptation ibclt %x\n", handle_serdes_issues()
1922 * up, but the IB link changes state at the "wrong" handle_7322_p_errors()
1923 * time. The IB logic then complains that the packet handle_7322_p_errors()
1938 * up, but the IB link changes state at the "wrong" time. handle_7322_p_errors()
1939 * The IB logic then complains that the packet isn't handle_7322_p_errors()
2319 * in units of 64 bytes (same as IB flow control credit unit).
2321 * So, a VL15 packet needs 4.50 IB credits, and 9 rx buffer chunks,
2322 * and we can therefore allocate just 9 IB credits for 2 VL15 packets
2342 /* 2 VL15 packets @ 288 bytes each (including IB headers) */ set_vls()
2425 /* IB credit flow control. */ qib_7322_bringup_serdes()
2596 * No need to save ibmalfdelta since IB perfcounters qib_7322_mini_quiet_serdes()
2613 * These LEDs indicate the physical and logical state of IB link.
3631 n = "Intel IB QDR 1P FLR-QSFP Adptr"; qib_7322_boardname()
3661 "IB%u: Forced to single port mode by module parameter\n", qib_7322_boardname()
3903 * IB header (currently 96 bytes) that we expect to handle (plus of qib_7322_tidtemplate()
4064 case QIB_IB_CFG_OVERRUN_THRESH: /* IB overrun threshold */ qib_7322_get_ib_cfg()
4069 case QIB_IB_CFG_PHYERR_THRESH: /* IB PHY error threshold */ qib_7322_get_ib_cfg()
4074 case QIB_IB_CFG_LINKDEFAULT: /* IB link default (sleep/poll) */ qib_7322_get_ib_cfg()
4147 /* convert IB value to chip register value */ qib_7322_set_ib_cfg()
4193 case QIB_IB_CFG_OVERRUN_THRESH: /* IB overrun threshold */ qib_7322_set_ib_cfg()
4207 case QIB_IB_CFG_PHYERR_THRESH: /* IB PHY error threshold */ qib_7322_set_ib_cfg()
4228 case QIB_IB_CFG_LINKDEFAULT: /* IB link default (sleep/poll) */ qib_7322_set_ib_cfg()
4257 case QIB_IB_CFG_LSTATE: /* set the IB link state */ qib_7322_set_ib_cfg()
4381 qib_devinfo(ppd->dd->pcidev, "Enabling IB%u:%u IBC loopback\n", qib_7322_set_loopback()
4389 "Disabling IB%u:%u IBC loopback (normal)\n", qib_7322_set_loopback()
5266 * This code for non-IBTA-compliant IB speed negotiation is only known to
5357 * Do the absolute minimum to cause an IB speed change, and make it
5363 * code for devices that are not compliant with IB 1.2 (or code that
5398 * IB 1.2-compliant device that we think can do DDR.
5679 ret = 1; /* no other IB status change processing */ qib_7322_ib_updown()
5686 ret = 1; /* no other IB status change processing */ qib_7322_ib_updown()
6277 /* per IB port errors. */
6627 "IB%u:%u: Unknown mezzanine card type\n", qib_init_7322_variables()
7741 pr_info("IB%u:%u use idx %u into txdds_mfg\n", find_best_ent()
7896 pr_info("IB%u:%u Turning LOS on\n", serdes_7322_los_enable()
7900 pr_info("IB%u:%u Turning LOS off\n", serdes_7322_los_enable()
7933 /* Patch some SerDes defaults to "Better for IB" */ serdes_7322_init_old()
8412 /* these are common for all IB port use cases. */
8493 * Do setup to properly handle IB link recovery; if port is zero, we
8529 qib_dev_err(dd, "Failed IB link recovery setup\n"); setup_7322_link_recovery()
H A Dqib_mmap.c85 * @context: the IB user context of the process making the mmap() call
H A Dqib_verbs.h93 /* IB Performance Manager status values */
98 /* Mandatory IB performance counter select values. */
185 * long (72 w/ imm_data). Only the first 56 bytes of the IB header
300 u64 iova; /* IB start address of this region */
761 /* QP numbers are shared by all IB ports */
1140 * Below HCA-independent IB PhysPortState values, returned
H A Dqib_iba6120.c234 * these 5 fields are used to establish deltas for IB symbol
253 /* used with gpio interrupts to implement IB counters */
258 * errors were seen in the receive headers of IB standard packets
459 /* Bits in GPIO for the added IB link interrupts */
1035 * up, but the IB link changes state at the "wrong" handle_6120_errors()
1036 * time. The IB logic then complains that the packet handle_6120_errors()
1046 * up, but the IB link changes state at the "wrong" time. handle_6120_errors()
1047 * The IB logic then complains that the packet isn't handle_6120_errors()
1257 * control update in time to not let the IB link go idle. qib_6120_bringup_serdes()
1265 /* IB credit flow control. */ qib_6120_bringup_serdes()
1432 * These LEDs indicate the physical and logical state of IB link.
2031 * IB header (currently 96 bytes) that we expect to handle (plus of qib_6120_tidtemplate()
2755 case QIB_IB_CFG_OVERRUN_THRESH: /* IB overrun threshold */ qib_6120_get_ib_cfg()
2760 case QIB_IB_CFG_PHYERR_THRESH: /* IB PHY error threshold */ qib_6120_get_ib_cfg()
2765 case QIB_IB_CFG_LINKDEFAULT: /* IB link default (sleep/poll) */ qib_6120_get_ib_cfg()
2806 case QIB_IB_CFG_OVERRUN_THRESH: /* IB overrun threshold */ qib_6120_set_ib_cfg()
2819 case QIB_IB_CFG_PHYERR_THRESH: /* IB PHY error threshold */ qib_6120_set_ib_cfg()
2839 case QIB_IB_CFG_LINKDEFAULT: /* IB link default (sleep/poll) */ qib_6120_set_ib_cfg()
2867 case QIB_IB_CFG_LSTATE: /* set the IB link state */ qib_6120_set_ib_cfg()
2936 qib_devinfo(ppd->dd->pcidev, "Enabling IB%u:%u IBC loopback\n", qib_6120_set_loopback()
2941 "Disabling IB%u:%u IBC loopback (normal)\n", qib_6120_set_loopback()
H A Dqib_mad.c283 unsigned pidx = port - 1; /* IB number port from 1, hdw from 0 */ subn_get_nodeinfo()
319 unsigned pidx = port - 1; /* IB number port from 1, hdw from 0 */ subn_get_guidinfo()
483 /* IB numbers ports from 1, hdw from 0 */ subn_get_portinfo()
576 * @port: the IB port number
624 unsigned pidx = port - 1; /* IB number port from 1, hdw from 0 */ subn_set_guidinfo()
682 /* IB numbers ports from 1, hdw from 0 */ subn_set_portinfo()
742 * The IB 1.2 spec. only allows link speed values subn_set_portinfo()
984 * @port: the IB port number
995 * IB port one/two always maps to context zero/one, set_pkeys()
H A Dqib_init.c89 MODULE_PARM_DESC(krcvqs, "number of kernel receive queues per IB port");
231 ppd->port = port; /* IB port number, not index */ qib_init_pportdata()
738 "Failed to bringup IB port %u\n", ppd->port); qib_init()
1054 /* 1 GiB/sec, slightly over IB SDR line rate */ qib_verify_pioperf()
1558 /* unregister from IB core */ qib_remove_one()
1562 * Disable the IB link, disable interrupts on the device, qib_remove_one()
H A Dqib_verbs_mcast.c104 * @ibp: the IB port structure
H A Dqib_mr.c178 * @iova_start: the starting address passed over IB which maps to this MR
H A Dqib_uc.c37 /* cut down ridiculously long IB macro names */
H A Dqib_sdma.c525 * This function queues one IB packet onto the send DMA queue per call.
529 * 2) The IB SGE addresses and lengths are 32-bit aligned
H A Dqib_verbs.c118 * completions as per IB 1.2 C10-96.
356 /* IB spec says that num_sge == 0 is OK. */ qib_post_one_send()
2183 * IB HCAs in a single system but since there can be other qib_register_ib_device()
H A Dqib_ruc.c646 * @ibp: a pointer to the IB port
H A Dqib_sysfs.c757 "IB%u: Congestion Control Agent enabled for port %d\n", qib_create_port_files()
H A Dqib_rc.c38 /* cut down ridiculously long IB macro names */
70 * @ohdr: a pointer to the IB header being constructed
H A Dqib_diag.c541 * qib_diagpkt_write - write an IB packet
/linux-4.4.14/arch/ia64/include/asm/sn/
H A Dl1.h43 #define L1_BOARDTYPE_BASEIO 0x0300 /* IB */
/linux-4.4.14/arch/arm/mach-gemini/
H A Dboard-nas4220b.c99 MACHINE_START(NAS4220B, "Raidsonic NAS IB-4220-B")
/linux-4.4.14/drivers/staging/rdma/ipath/
H A Dipath_common.h68 * an infinipath protocol IB packet vs standard IB transport
91 * The values were chosen to match values used within the IB spec.
113 /* number of times IB link changed state unexpectedly */
140 /* number of user ports per chip (not IB ports) */
172 /* IB link is at ACTIVE, usable for data traffic */
227 * IB MTU, packets IB data must be less than this.
269 * protocol packet from standard IB packets. More, probably much
530 * buffers, but the total length (exclusive of IB headers) must be less
532 * including IB headers, must be less than the ipath_piosize value (words).
771 /* IB - LRH header consts */
772 #define IPATH_LRH_GRH 0x0003 /* 1. word of IB LRH - next header: GRH */
773 #define IPATH_LRH_BTH 0x0002 /* 1. word of IB LRH - next header: BTH */
H A Dipath_keys.c110 * ipath_lkey_ok - check IB SGE for validity and initialize
118 * Check the IB SGE for validity and initialize our internal version
189 * ipath_rkey_ok - check the IB virtual address, length, and RKEY
H A Dipath_kernel.h245 * Possible IB config parameters for ipath_f_get/set_ib_cfg()
328 /* per chip actions needed for IB Link up/down changes */
359 /* these 5 fields are used to establish deltas for IB Symbol
655 * The max size IB packet, included IB headers that we can send.
770 * IB link and linktraining states and masks that vary per chip in
771 * some way. Set at init, to avoid each IB status change interrupt
950 /* chip can report link latency (IB 1.2) */
978 /* no IB cable, or no device on IB cable */
H A Dipath_mmap.c85 * @context: the IB user context of the process making the mmap() call
H A Dipath_verbs.h83 /* IB Performance Manager status values */
88 /* Mandatory IB performance counter select values. */
131 * long (72 w/ imm_data). Only the first 56 bytes of the IB header
244 u64 iova; /* IB start address of this region */
906 * Below converts HCA-specific LinkTrainingState to IB PhysPortState
H A Dipath_sdma.c188 * The IB verbs layer needs to see the callback before getting sdma_notify_taskbody()
656 * This function queues one IB packet onto the send DMA queue per call.
660 * 2) The IB SGE addresses and lengths are 32-bit aligned
H A Dipath_intr.c139 * up, but the IB link changes state at the "wrong" time. handle_e_sum_errs()
140 * The IB logic then complains that the packet isn't handle_e_sum_errs()
330 * to a live IB device or not. We will cycle back and handle_e_ibstatuschanged()
357 ipath_dbg("IB linkrecov up %Lx (%s %s) recov %Lu\n", handle_e_ibstatuschanged()
675 * up, but the IB link changes state at the "wrong" time. handle_errors()
676 * The IB logic then complains that the packet isn't handle_errors()
H A Dipath_registers.h304 /* L1 Power down; use with RXDETECT, Otherwise not used on IB side */
313 * IPATH_PIO_MAXIBHDR is the max IB header size allowed for in our
H A Dipath_driver.c83 unsigned ipath_mtu4096 = 1; /* max 4KB IB mtu by default, if supported */
354 * on chips where that may matter (due to IB flowcontrol) ipath_verify_pioperf()
373 /* 1 GiB/sec, slightly over IB SDR line rate */ ipath_verify_pioperf()
749 * disable the IB link early, to be sure no new packets arrive, which ipath_remove_one()
843 * ipath_wait_linkstate - wait for an IB link state change to occur
848 * wait up to msecs milliseconds for IB link state change to occur for
1206 * both tiderr and ipathhdrerr are set for all plain IB ipath_kreceive()
2072 dev_info(&dd->pcidev->dev, "Enabling IB local loopback\n"); ipath_set_linkstate()
2086 "Disabling IB local loopback (normal)\n"); ipath_set_linkstate()
2142 * mtu is IB data payload max. It's the largest power of 2 less ipath_set_mtu()
2145 * piosize). We check that it's one of the valid IB sizes. ipath_set_mtu()
H A Dipath_init_chip.c168 * control update in time to not let the IB link go idle. bringup_link()
175 /* IB credit flow control. */ bringup_link()
843 dev_info(&dd->pcidev->dev, "Failed to bringup IB link\n"); ipath_init_chip()
957 /* takes ~16 seconds to overflow at full IB 4x bandwdith */ ipath_init_chip()
H A Dipath_verbs.c120 * completions as per IB 1.2 C10-96.
359 /* IB spec says that num_sge == 0 is OK. */ ipath_post_one_send()
988 * Convert IB rate to delay multiplier.
1002 * Convert delay multiplier to IB rate
1612 /* map LinkState to IB portinfo values. */ ipath_query_port()
2127 * IB HCAs in a single system but since there can be other ipath_register_ib_device()
H A Dipath_mr.c128 * @iova_start: the starting address passed over IB which maps to this MR
H A Dipath_diag.c318 * ipath_diagpkt_write - write an IB packet
H A Dipath_uc.c37 /* cut down ridiculously long IB macro names */
H A Dipath_sysfs.c741 * New sysfs entries to control various IB config. These all turn into
796 * Get/Set Link-widths enabled. Or of 1=1x, 2=4x (this is human/IB centric,
H A Dipath_ud.c434 * bytes of the IB header is in the data buffer. ipath_ud_rcv()
H A Dipath_mad.c100 * the value if we ever have more than one IB port on a chip. recv_subn_get_nodeinfo()
275 /* map LinkState to IB portinfo values. */ recv_subn_get_portinfo()
H A Dipath_iba6110.c1084 * logical state of IB link. For this chip (at least with recommended
1578 * one cache line; long IB headers will spill over into received ipath_ht_early_init()
H A Dipath_rc.c39 /* cut down ridiculously long IB macro names */
79 * @ohdr: a pointer to the IB header being constructed
/linux-4.4.14/drivers/watchdog/
H A Diop_wdt.c234 /* Configure Watchdog Timeout to cause an Internal Bus (IB) Reset iop_wdt_init()
235 * NOTE: An IB Reset will Reset both cores in the IOP342 iop_wdt_init()
/linux-4.4.14/include/uapi/drm/
H A Dmsm_drm.h132 * IB_TARGET_BUF - this cmd buffer is an IB target. Reloc's are
133 * processed normally, but the kernel does not setup an IB to
175 * (context-restore), and IB buffers needed for per tile/bin draw cmds.
H A Damdgpu_drm.h382 /* Specify flags to be used for IB */
384 /* This IB should be submitted to CE */
394 /** Virtual address to begin IB execution */
/linux-4.4.14/drivers/staging/lustre/lnet/klnds/o2iblnd/
H A Do2iblnd.h83 unsigned int *kib_service; /* IB service number */
99 int *kib_ib_mtu; /* IB MTU */
206 struct ib_device *ibh_ibdev; /* IB device */
284 struct kib_net *fps_net; /* IB network */
300 struct ib_fmr_pool *fpo_fmr_pool; /* IB FMR pool */
307 struct ib_pool_fmr *fmr_pfmr; /* IB pool fmr */
323 kib_dev_t *ibn_dev; /* underlying IB device */
343 struct list_head kib_devs; /* IB devices extant */
364 * IB Wire message format.
H A Do2iblnd_modparams.c105 MODULE_PARM_DESC(ib_mtu, "IB MTU 256/512/1024/2048/4096");
/linux-4.4.14/drivers/gpu/drm/msm/
H A Dmsm_rd.c324 /* ignore IB-targets, we've logged the buffer, the msm_rd_dump_submit()
325 * parser tool will follow the IB based on the logged msm_rd_dump_submit()
/linux-4.4.14/net/sched/
H A Dsch_qfq.c126 enum qfq_state { ER, IR, EB, IB, QFQ_MAX_STATE }; enumerator in enum:qfq_state
763 * The state computation relies on ER=0, IR=1, EB=2, IB=3
810 qfq_move_groups(q, mask, IB, IR); qfq_unblock_groups()
838 qfq_move_groups(q, mask, IB, EB); qfq_make_eligible()
983 ineligible = q->bitmaps[IR] | q->bitmaps[IB]; qfq_update_eligible()
1307 __clear_bit(grp->index, &q->bitmaps[IB]); qfq_schedule_agg()
1385 __clear_bit(grp->index, &q->bitmaps[IB]); qfq_deactivate_agg()
1395 qfq_move_groups(q, mask, IB, IR); qfq_deactivate_agg()
1405 __clear_bit(grp->index, &q->bitmaps[IB]); qfq_deactivate_agg()
/linux-4.4.14/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_packet_manager.c110 pr_err("kfd: failed to allocate runlist IB\n"); pm_allocate_runlist_ib()
346 pr_debug("kfd: not enough space left in runlist IB\n"); list_for_each_entry()
508 pr_debug("kfd: runlist IB address: 0x%llX\n", rl_gpu_ib_addr); pm_send_runlist()
H A Dkfd_dbgdev.c75 * and in the PQ we put the IB packet + sync packet(s). dbgdev_diq_submit_ib()
502 pr_err("amdkfd: Failed to submit IB to DIQ\n"); dbgdev_address_watch_diq()
723 pr_err("amdkfd: Failed to submit IB to DIQ\n"); dbgdev_wave_control_diq()
/linux-4.4.14/include/linux/
H A Ddio.h162 #define DIO_ID_FHPIB 0x08 /* 98625A/98625B fast HP-IB */
164 #define DIO_ID_NHPIB 0x01 /* 98624A HP-IB (normal ie slow) */
/linux-4.4.14/drivers/infiniband/hw/mlx5/
H A Dmain.c54 MODULE_DESCRIPTION("Mellanox Connect-IB HCA IB driver");
63 DRIVER_NAME ": Mellanox Connect-IB Infiniband driver v"
323 mlx5_ib_dbg(dev, "active_width %d is not supported by IB spec\n", translate_active_width()
1331 /* don't create IB instance over Eth ports, no RoCE yet! */ mlx5_ib_add()
H A Dmr.c894 * be 2k-aligned for Connect-IB. */ mlx5_ib_update_mtt()
1081 pr_err("Got MR registration for ODP MR > 512MB, not supported for Connect-IB"); mlx5_ib_reg_user_mr()
H A Dmlx5_ib.h152 * Connect-IB can trigger up to four concurrent pagefaults
/linux-4.4.14/drivers/rapidio/devices/
H A Dtsi721.c743 * NOTE: Inbound message MBOX 0...4 use IB channels 4...7. Therefore tsi721_enable_msix()
744 * offset +4 is added to IB MBOX number. tsi721_enable_msix()
1740 dev_info(&priv->pdev->dev, "IB MBOX%d SRIO timeout\n", tsi721_imsg_handler()
1744 dev_info(&priv->pdev->dev, "IB MBOX%d PCIe error\n", tsi721_imsg_handler()
1749 "IB MBOX%d IB free queue low\n", mbox); tsi721_imsg_handler()
1751 /* Clear IB channel interrupts */ tsi721_imsg_handler()
1754 /* If an IB Msg is received notify the upper layer */ tsi721_imsg_handler()
1795 /* Initialize IB Messaging Ring */ tsi721_open_inb_mbox()
1814 "Failed to allocate buffers for IB MBOX%d\n", mbox); tsi721_open_inb_mbox()
1828 "Failed to allocate free queue for IB MBOX%d\n", mbox); tsi721_open_inb_mbox()
1841 "Failed to allocate descriptor memory for IB MBOX%d\n", tsi721_open_inb_mbox()
/linux-4.4.14/include/uapi/rdma/hfi/
H A Dhfi1_user.h169 /* IB link is at ACTIVE, usable for data traffic */
300 * protocol packet from standard IB packets.
/linux-4.4.14/drivers/staging/lustre/include/linux/lnet/
H A Dapi.h41 * connectionless service that can't guarantee any order. It supports OFA IB,
/linux-4.4.14/drivers/staging/rdma/ehca/
H A Dehca_qes.h85 /*should be 0x1B for IB transport */
H A Dehca_qp.c77 * qp state transitions as defined by IB Arch Rel 1.1 page 431
95 * ib2ehca_qp_state maps IB to ehca qp_state
122 * ehca2ib_qp_state maps ehca to IB qp_state
1288 * as expected by IB spec internal_modify_qp()
H A Dehca_reqs.c225 /* IB 1.2 spec C10-15 compliance */ ehca_write_swqe()
/linux-4.4.14/drivers/infiniband/ulp/ipoib/
H A Dipoib_multicast.c332 ipoib_dbg(priv, "Keeping carrier off until IB port is active\n"); ipoib_mcast_carrier_on_task()
518 * Send-only IB Multicast joins do not work at the core ipoib_mcast_join()
519 * IB layer yet, so we can't use them here. However, ipoib_mcast_join()
527 * when the core IB layers support send only joins we ipoib_mcast_join()
H A Dipoib_ib.c138 * IB will leave a 40 byte gap for a GRH and IPoIB adds a 4 byte ipoib_alloc_rx_skb()
/linux-4.4.14/drivers/infiniband/ulp/iser/
H A Diser_verbs.c170 iser_err("failed to allocate an IB resource\n"); iser_create_device_ib_res()
613 /* Wait for IB resouces cleanup to complete */ iser_release_work()
624 * iser_free_ib_conn_res - release IB related resources
681 * release IB resources (which is safe to call more than once). iser_conn_release()
H A Discsi_iser.c133 iser_err("wrong datalen %d (hdr), %d (IB)\n", iscsi_iser_recv()
140 iser_dbg("aligned datalen (%d) hdr, %d (IB)\n", iscsi_iser_recv()
179 * state mutex to avoid dereferencing the IB device which
H A Discsi_iser.h385 * @event_handler: IB events handle routine
H A Diser_memory.c84 iser_err("IB device does not support FMRs nor FastRegs, can't register memory\n"); iser_assign_reg_ops()
/linux-4.4.14/drivers/media/platform/sti/c8sectpfe/
H A Dc8sectpfe-core.h239 /* Enable Interrupt for a IB */
H A Dc8sectpfe-core.c298 /* disable IB (prevents more TS data going to memdma) */ c8sectpfe_stop_feed()
947 /* iterate round each tsin and configure memdma descriptor and IB hw */ for_each_child_of_node()
/linux-4.4.14/include/uapi/linux/
H A Drds.h74 * memory range into a IB MR, and send the
/linux-4.4.14/arch/arm/mach-rpc/
H A Ddma.c114 case DMA_ST_AB: /* .IB */ iomd_dma_handle()
/linux-4.4.14/sound/soc/au1x/
H A Di2sc.c104 c &= ~(CFG_IC | CFG_ICK); /* IB-IF */ au1xi2s_set_fmt()
H A Dpsc-i2s.c79 ct &= ~(PSC_I2SCFG_BI | PSC_I2SCFG_WI); /* IB-IF */ au1xpsc_i2s_set_fmt()
/linux-4.4.14/drivers/net/ethernet/brocade/bna/
H A Dbna_tx_rx.c22 /* IB */
1481 /* Start IB */ bna_rx_sm_started_entry()
1741 /* Stop IB */ bna_rx_enet_stop()
2366 /* Setup IB */ bna_rx_create()
2749 /* Set it to IB */ bna_rx_dim_update()
2883 /* Start IB */ bna_tx_sm_started_entry()
3161 /* Stop IB */ bna_tx_enet_stop()
3455 /* IB */ bna_tx_create()
H A Dbna_hw_defs.h222 /* These macros build the data portion of the IB doorbell */
H A Dbna_types.h402 /* IB structure */
/linux-4.4.14/drivers/infiniband/hw/mthca/
H A Dmthca_mad.c180 * wrong following the IB spec strictly, but we know forward_trap()
/linux-4.4.14/drivers/gpu/drm/msm/adreno/
H A Dadreno_gpu.c133 /* ignore IB-targets */ adreno_submit()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
H A Dmain.c54 MODULE_DESCRIPTION("Mellanox Connect-IB, ConnectX-4 core driver");
1369 { PCI_VDEVICE(MELLANOX, 0x1011) }, /* Connect-IB */
1370 { PCI_VDEVICE(MELLANOX, 0x1012) }, /* Connect-IB VF */
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
H A Dmain.c161 "1 for IB, 2 for Ethernet");
444 /* if only IB is supported, assign IB */ mlx4_dev_cap()
449 /* if IB and ETH are supported, we set the port mlx4_dev_cap()
501 "Granular QoS per VF not supported with IB/Eth configuration\n"); mlx4_dev_cap()
1172 mlx4_warn(mdev, "port level mtu is only used for IB ports\n"); show_port_ib_mtu()
1190 mlx4_warn(mdev, "port level mtu is only used for IB ports\n"); set_port_ib_mtu()
3936 pr_warn("Module parameter configuration ETH/IB is not supported. Switching to default configuration IB/IB\n"); mlx4_verify_params()
H A Dport.c852 /* For IB, we only consider: mlx4_common_set_port()
952 /* IB VL CAP enum isn't used by the firmware, just numerical values */ mlx4_SET_PORT()
H A Deq.c612 } else { /* IB port */ mlx4_eq_int()
652 else /* IB port */ mlx4_eq_int()
/linux-4.4.14/drivers/infiniband/hw/mlx4/
H A Dmad.c369 * wrong following the IB spec strictly, but we know forward_trap()
881 /* iboe_process_mad() which uses the HCA flow-counters to implement IB PMA mlx4_ib_process_mad()
1710 * IB MAD completion callback for real SQPs
1808 /* have QP0 only if link layer is IB */ create_pv_resources()
H A Dmain.c110 pr_warn("Device managed flow steering is unavailable for IB port in multifunction env.\n"); check_flow_steering_support()
596 /* Avoid wrong speed value returned by FW if the IB link is down. */ ib_link_query_port()
878 * of whether port link layer is ETH or IB. For ETH ports, qkey mlx4_ib_modify_port()
2550 /* Add an empty rule for IB L2 */ mlx4_ib_steer_qp_reg()
/linux-4.4.14/drivers/scsi/esas2r/
H A Desas2r_init.c931 esas2r_hdebug("failed to allocate IB list"); esas2r_init_adapter_struct()
941 esas2r_hdebug("failed to allocate IB list"); esas2r_init_adapter_struct()
/linux-4.4.14/net/sunrpc/xprtrdma/
H A Dsvc_rdma_transport.c1008 * IB N N Y N svc_rdma_accept()
1014 * of an RDMA_READ. IB does not. svc_rdma_accept()
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/
H A Dinode.c175 * filesystems (IB, configfs) release dcache_lock spufs_prune_dir()
/linux-4.4.14/drivers/staging/rdma/amso1100/
H A Dc2_qp.c114 return "<invalid IB QP state>"; to_ib_state_str()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
H A Dbcmsdh.c100 brcmf_dbg(INTR, "IB intr triggered\n"); brcmf_sdiod_ib_irqhandler()
/linux-4.4.14/include/linux/mlx4/
H A Ddevice.h112 * - A0 steering mode - Limited low level API for eth. In case of IB,
/linux-4.4.14/sound/soc/codecs/
H A Dtlv320aic31xx.c856 /* NOTE: BCLKINV bit value 1 equas NB and 0 equals IB */ aic31xx_set_dai_fmt()
/linux-4.4.14/drivers/infiniband/ulp/srp/
H A Dib_srp.c351 * @device: IB device to allocate fast registration descriptors for.
3636 pr_err("couldn't register IB client\n"); srp_init_module()
/linux-4.4.14/drivers/target/iscsi/
H A Discsi_target_configfs.c298 * iSER/IB (TODO, hardware available) lio_target_call_addnptotpg()
/linux-4.4.14/drivers/net/wireless/ipw2x00/
H A Dipw2100.c6518 IPW2100_DEV_ID(0x2550), /* IB 2100A mPCI 3B */
6519 IPW2100_DEV_ID(0x2551), /* IB 2100 mPCI 3B */
6520 IPW2100_DEV_ID(0x2553), /* IB 2100 mPCI 3B */
6521 IPW2100_DEV_ID(0x2554), /* IB 2100 mPCI 3B */
6522 IPW2100_DEV_ID(0x2555), /* IB 2100 mPCI 3B */

Completed in 5205 milliseconds

12