Lines Matching defs:optrom
1118 void *optrom = NULL;
1124 optrom = dma_alloc_coherent(&ha->pdev->dev, OPTROM_BURST_SIZE,
1126 if (!optrom) {
1128 "Unable to allocate memory for optrom burst write "
1164 if (optrom && (liter + OPTROM_BURST_DWORDS) <= dwords) {
1166 memcpy(optrom, dwptr, OPTROM_BURST_SIZE);
1173 "Unable to burst-write optrom segment "
1181 OPTROM_BURST_SIZE, optrom, optrom_dma);
1182 optrom = NULL;
1214 if (optrom)
1216 OPTROM_BURST_SIZE, optrom, optrom_dma);
2373 void *optrom;
2386 optrom = dma_alloc_coherent(&ha->pdev->dev, OPTROM_BURST_SIZE,
2388 if (!optrom) {
2390 "Unable to allocate memory for optrom burst read "
2408 "Unable to burst-read optrom segment "
2416 optrom, optrom_dma);
2420 memcpy(pbuf, optrom, burst * 4);
2427 dma_free_coherent(&ha->pdev->dev, OPTROM_BURST_SIZE, optrom,