It returns a pointer to the allocated region (in the processor’s virtual address space) or NULL if the allocation failed. 它会返回一个指向已分配区域(在处理器虚拟地址空间中)的指针,如果分配失败,则返回 NULL。 It also returns a <dma_handle> which may be cast to an unsigned integer the same...
int e1000_setup_all_rx_resources(structe1000_adapter *adapter){int i, err = ;for (i = ; i < adapter->num_rx_queues; i++) {err = e1000_setup_rx_resources(adapter, &adapter->rx_ring[i]);if (err) {e_err(probe, "Allocation for Rx Queue %u failed\n", i);for (i--...
int e1000_setup_all_rx_resources(struct e1000_adapter *adapter) { int i, err = 0; for (i = 0; i < adapter->num_rx_queues; i++) { err = e1000_setup_rx_resources(adapter, &adapter->rx_ring[i]); if (err) { e_err(probe, "Allocation for Rx Queue %u failed\n", i); for ...
netif_carrier_off(netdev); /* allocate transmit descriptors */ err = e1000_setup_all_tx_resources(adapter); if (err) goto err_setup_tx; /* allocate receive descriptors */ err = e1000_setup_all_rx_resources(adapter); if (err) goto err_setup_rx; 编辑:黄飞...
err =e1000_setup_rx_resources(adapter, &adapter->rx_ring[i]);if(err) {e_err(probe,"Allocation for Rx Queue %u failed\n", i);for(i-- ; i >=0; i--)e1000_free_rx_resources(adapter, &adapter->rx_ring[i]);break; } }returnerr; ...
* e1000_setup_rx_resources - allocate Rx resources (Descriptors) * @adapter: board private structure * @rxdr: rx descriptor ring (for a specific queue) to setup * * Returns 0 on success, negative on failure **/staticint e1000_setup_rx_resources(structe1000_adapter*adapter,structe1000_rx_...
create_rdma_reg_res_failed: iser_err("failed allocating rx descriptors / data buffers\n");return-ENOMEM; } 开发者ID:antiguru,项目名称:ofed-compat-rdma,代码行数:60,代码来源:iser_initiator.c 示例3: rdma_set_ctxt_sge ▲点赞 3▼
isci_log_message(0,"ISCI","bus_dmamap_load failed\n");return(status); }return(0); } 开发者ID:tomtor,项目名称:freebsd,代码行数:37,代码来源:isci.c 示例4: iir_pci_attach ▲点赞 2▼ //...这里部分代码省略...DELAY(20); retries = GDT_RETRIES...
(for example ethernet message descriptors) do not access memory in such a sequential fashion. Instead, they tend to modify a few words or bytes, move around and maybe modify a few more. There are many machine implementations that make this difficult to control in a generic and seamless ...
The DMA resource allocation functions do not guarantee the success of this request as some implementations may not have the hardware ability to support it. DDI_DMA_PARTIAL tells the system that the caller can accept a partial mapping. That is, if the size of the object exceeds the resources ...