Lines Matching refs:result
150 int result;
157 result = lv1_query_logical_partition_address_region_info(0,
161 if (result) {
164 ps3_result(result));
177 result = lv1_construct_virtual_address_space(CONFIG_PS3_HTAB_SIZE,
181 if (result) {
183 __func__, __LINE__, ps3_result(result));
187 result = lv1_select_virtual_address_space(map.vas_id);
189 if (result) {
191 __func__, __LINE__, ps3_result(result));
211 int result;
216 result = lv1_select_virtual_address_space(0);
217 BUG_ON(result);
218 result = lv1_destruct_virtual_address_space(map.vas_id);
219 BUG_ON(result);
239 int result;
251 result = -1;
255 result = lv1_allocate_memory(r->size, PAGE_SHIFT_16M, 0,
258 if (result || r->base < map.rm.size) {
260 __func__, __LINE__, ps3_result(result));
265 return result;
269 return result;
279 int result;
283 result = lv1_release_memory(r->base);
284 BUG_ON(result);
296 int result;
313 result = add_memory(0, start_addr, map.r1.size);
315 if (result) {
317 __func__, __LINE__, result);
318 return result;
324 result = online_pages(start_pfn, nr_pages);
326 if (result)
328 __func__, __LINE__, result);
330 return result;
467 int result = 0;
470 result = lv1_unmap_device_dma_region(c->region->dev->bus_id,
472 BUG_ON(result);
476 return result;
481 int result = 0;
490 result = lv1_put_iopte(0,
500 if (result) {
502 __LINE__, ps3_result(result));
507 return result;
524 int result;
530 result = -ENOMEM;
540 result = lv1_map_device_dma_region(c->region->dev->bus_id,
543 if (result) {
545 __func__, __LINE__, ps3_result(result));
559 return result;
566 int result;
576 result = -ENOMEM;
603 result = lv1_put_iopte(0,
608 if (result) {
610 __func__, __LINE__, ps3_result(result));
636 return result;
649 int result;
672 result = lv1_allocate_device_dma_region(r->dev->bus_id, r->dev->dev_id,
677 if (result) {
679 __func__, __LINE__, ps3_result(result));
683 return result;
688 int result;
694 result = lv1_allocate_io_segment(0,
699 if (result) {
701 __func__, __LINE__, ps3_result(result));
706 return result;
719 int result;
736 result = lv1_free_device_dma_region(r->dev->bus_id, r->dev->dev_id,
739 if (result)
741 __func__, __LINE__, ps3_result(result));
745 return result;
750 int result;
759 result = lv1_release_io_segment(0, r->bus_addr);
761 if (result)
763 __func__, __LINE__, ps3_result(result));
768 return result;
786 int result;
821 result = dma_sb_map_pages(r, aligned_phys, aligned_len, &c, iopte_flag);
823 if (result) {
826 __func__, __LINE__, result);
828 return result;
834 return result;
841 int result;
866 result = dma_ioc0_map_pages(r, aligned_phys, aligned_len, &c,
869 if (result) {
872 __func__, __LINE__, result);
874 return result;
882 return result;
979 int result;
993 result = dma_sb_region_create(r);
994 BUG_ON(result);
1002 result = dma_sb_map_area(r, virt_addr, len, &tmp,
1005 BUG_ON(result);
1016 result = dma_sb_map_area(r, virt_addr, len, &tmp,
1019 BUG_ON(result);
1022 return result;
1034 int result;
1045 result = dma_sb_unmap_area(r, bus_addr, len);
1046 BUG_ON(result);
1058 result = dma_sb_unmap_area(r, bus_addr, len);
1059 BUG_ON(result);
1062 result = dma_sb_region_free(r);
1063 BUG_ON(result);
1065 return result;
1200 int result;
1204 result = ps3_repository_read_mm_info(&map.rm.base, &map.rm.size,
1207 if (result)