• Home
  • Raw
  • Download

Lines Matching refs:sbd

27 static int ps3stor_open_hv_device(struct ps3_system_bus_device *sbd)  in ps3stor_open_hv_device()  argument
29 int error = ps3_open_hv_device(sbd); in ps3stor_open_hv_device()
34 if (sbd->match_id == PS3_MATCH_ID_STOR_FLASH) in ps3stor_open_hv_device()
37 if (sbd->match_id == PS3_MATCH_ID_STOR_DISK) in ps3stor_open_hv_device()
43 static int ps3stor_close_hv_device(struct ps3_system_bus_device *sbd) in ps3stor_close_hv_device() argument
47 if (sbd->match_id == PS3_MATCH_ID_STOR_DISK in ps3stor_close_hv_device()
50 ps3_flash_workaround.disk_sbd = sbd; in ps3stor_close_hv_device()
54 error = ps3_close_hv_device(sbd); in ps3stor_close_hv_device()
59 if (sbd->match_id == PS3_MATCH_ID_STOR_DISK) in ps3stor_close_hv_device()
62 if (sbd->match_id == PS3_MATCH_ID_STOR_FLASH) { in ps3stor_close_hv_device()
81 if (dev->sbd.match_id == PS3_MATCH_ID_STOR_ROM) { in ps3stor_probe_access()
89 dev_dbg(&dev->sbd.core, in ps3stor_probe_access()
97 dev_dbg(&dev->sbd.core, "%s:%u: read failed, " in ps3stor_probe_access()
103 dev_dbg(&dev->sbd.core, "%s:%u: region %u is accessible\n", in ps3stor_probe_access()
115 dev_info(&dev->sbd.core, in ps3stor_probe_access()
120 dev_info(&dev->sbd.core, in ps3stor_probe_access()
141 error = ps3stor_open_hv_device(&dev->sbd); in ps3stor_setup()
143 dev_err(&dev->sbd.core, in ps3stor_setup()
149 error = ps3_sb_event_receive_port_setup(&dev->sbd, PS3_BINDING_CPU_ANY, in ps3stor_setup()
152 dev_err(&dev->sbd.core, in ps3stor_setup()
159 dev->sbd.core.driver->name, dev); in ps3stor_setup()
161 dev_err(&dev->sbd.core, "%s:%u: request_irq failed %d\n", in ps3stor_setup()
169 dev_err(&dev->sbd.core, in ps3stor_setup()
178 dev->sbd.d_region = &dev->dma_region; in ps3stor_setup()
179 ps3_dma_region_init(&dev->sbd, &dev->dma_region, page_size, in ps3stor_setup()
183 dev_err(&dev->sbd.core, "%s:%u: cannot create DMA region\n", in ps3stor_setup()
190 dev->bounce_dma = dma_map_single(&dev->sbd.core, dev->bounce_buf, in ps3stor_setup()
192 if (dma_mapping_error(&dev->sbd.core, dev->bounce_dma)) { in ps3stor_setup()
193 dev_err(&dev->sbd.core, "%s:%u: map DMA region failed\n", in ps3stor_setup()
201 dev_err(&dev->sbd.core, "%s:%u: No accessible regions found\n", in ps3stor_setup()
208 dma_unmap_single(&dev->sbd.core, dev->bounce_dma, dev->bounce_size, in ps3stor_setup()
215 ps3_sb_event_receive_port_destroy(&dev->sbd, dev->irq); in ps3stor_setup()
217 ps3stor_close_hv_device(&dev->sbd); in ps3stor_setup()
232 dma_unmap_single(&dev->sbd.core, dev->bounce_dma, dev->bounce_size, in ps3stor_teardown()
238 error = ps3_sb_event_receive_port_destroy(&dev->sbd, dev->irq); in ps3stor_teardown()
240 dev_err(&dev->sbd.core, in ps3stor_teardown()
244 error = ps3stor_close_hv_device(&dev->sbd); in ps3stor_teardown()
246 dev_err(&dev->sbd.core, in ps3stor_teardown()
271 dev_dbg(&dev->sbd.core, "%s:%u: %s %llu sectors starting at %llu\n", in ps3stor_read_write_sectors()
275 res = write ? lv1_storage_write(dev->sbd.dev_id, region_id, in ps3stor_read_write_sectors()
278 : lv1_storage_read(dev->sbd.dev_id, region_id, in ps3stor_read_write_sectors()
282 dev_dbg(&dev->sbd.core, "%s:%u: %s failed %d\n", __func__, in ps3stor_read_write_sectors()
289 dev_dbg(&dev->sbd.core, "%s:%u: %s failed 0x%llx\n", __func__, in ps3stor_read_write_sectors()
294 dev_dbg(&dev->sbd.core, "%s:%u: %s completed\n", __func__, __LINE__, in ps3stor_read_write_sectors()
319 dev_dbg(&dev->sbd.core, "%s:%u: send device command 0x%llx\n", __func__, in ps3stor_send_command()
324 res = lv1_storage_send_device_command(dev->sbd.dev_id, cmd, arg1, in ps3stor_send_command()
327 dev_err(&dev->sbd.core, in ps3stor_send_command()
335 dev_dbg(&dev->sbd.core, "%s:%u: command 0x%llx failed 0x%llx\n", in ps3stor_send_command()
340 dev_dbg(&dev->sbd.core, "%s:%u: command 0x%llx completed\n", __func__, in ps3stor_send_command()