Lines Matching refs:switchtec_dev

52 	struct switchtec_dev *stdev;
76 static int is_firmware_running(struct switchtec_dev *stdev) in is_firmware_running()
83 static struct switchtec_user *stuser_create(struct switchtec_dev *stdev) in stuser_create()
139 static void mrpc_complete_cmd(struct switchtec_dev *stdev);
141 static void flush_wc_buf(struct switchtec_dev *stdev) in flush_wc_buf()
154 static void mrpc_cmd_submit(struct switchtec_dev *stdev) in mrpc_cmd_submit()
189 struct switchtec_dev *stdev = stuser->stdev; in mrpc_queue_cmd()
202 static void mrpc_cleanup_cmd(struct switchtec_dev *stdev) in mrpc_cleanup_cmd()
218 static void mrpc_complete_cmd(struct switchtec_dev *stdev) in mrpc_complete_cmd()
264 struct switchtec_dev *stdev; in mrpc_event_work()
266 stdev = container_of(work, struct switchtec_dev, mrpc_work); in mrpc_event_work()
276 static void mrpc_error_complete_cmd(struct switchtec_dev *stdev) in mrpc_error_complete_cmd()
295 struct switchtec_dev *stdev; in mrpc_timeout_work()
298 stdev = container_of(work, struct switchtec_dev, mrpc_timeout.work); in mrpc_timeout_work()
327 struct switchtec_dev *stdev = to_stdev(dev); in device_version_show()
339 struct switchtec_dev *stdev = to_stdev(dev); in fw_version_show()
370 struct switchtec_dev *stdev = to_stdev(dev); \
391 struct switchtec_dev *stdev = to_stdev(dev); in component_vendor_show()
406 struct switchtec_dev *stdev = to_stdev(dev); in component_id_show()
420 struct switchtec_dev *stdev = to_stdev(dev); in component_revision_show()
434 struct switchtec_dev *stdev = to_stdev(dev); in partition_show()
443 struct switchtec_dev *stdev = to_stdev(dev); in partition_count_show()
467 struct switchtec_dev *stdev; in switchtec_dev_open()
470 stdev = container_of(inode->i_cdev, struct switchtec_dev, cdev); in switchtec_dev_open()
493 static int lock_mutex_and_test_alive(struct switchtec_dev *stdev) in lock_mutex_and_test_alive()
510 struct switchtec_dev *stdev = stuser->stdev; in switchtec_dev_write()
562 struct switchtec_dev *stdev = stuser->stdev; in switchtec_dev_read()
638 struct switchtec_dev *stdev = stuser->stdev; in switchtec_dev_poll()
658 static int ioctl_flash_info(struct switchtec_dev *stdev, in ioctl_flash_info()
687 static int flash_part_info_gen3(struct switchtec_dev *stdev, in flash_part_info_gen3()
757 static int flash_part_info_gen4(struct switchtec_dev *stdev, in flash_part_info_gen4()
861 static int ioctl_flash_part_info(struct switchtec_dev *stdev, in ioctl_flash_part_info()
888 static int ioctl_event_summary(struct switchtec_dev *stdev, in ioctl_event_summary()
928 static u32 __iomem *global_ev_reg(struct switchtec_dev *stdev, in global_ev_reg()
934 static u32 __iomem *part_ev_reg(struct switchtec_dev *stdev, in part_ev_reg()
940 static u32 __iomem *pff_ev_reg(struct switchtec_dev *stdev, in pff_ev_reg()
952 u32 __iomem *(*map_reg)(struct switchtec_dev *stdev,
992 static u32 __iomem *event_hdr_addr(struct switchtec_dev *stdev, in event_hdr_addr()
1015 static int event_ctl(struct switchtec_dev *stdev, in event_ctl()
1071 static int ioctl_event_ctl(struct switchtec_dev *stdev, in ioctl_event_ctl()
1117 static int ioctl_pff_to_port(struct switchtec_dev *stdev, in ioctl_pff_to_port()
1164 static int ioctl_port_to_pff(struct switchtec_dev *stdev, in ioctl_port_to_pff()
1206 struct switchtec_dev *stdev = stuser->stdev; in switchtec_dev_ioctl()
1260 struct switchtec_dev *stdev; in link_event_work()
1262 stdev = container_of(work, struct switchtec_dev, link_event_work); in link_event_work()
1268 static void check_link_state_events(struct switchtec_dev *stdev) in check_link_state_events()
1290 static void enable_link_state_events(struct switchtec_dev *stdev) in enable_link_state_events()
1301 static void enable_dma_mrpc(struct switchtec_dev *stdev) in enable_dma_mrpc()
1310 struct switchtec_dev *stdev = to_stdev(dev); in stdev_release()
1322 static void stdev_kill(struct switchtec_dev *stdev) in stdev_kill()
1348 static struct switchtec_dev *stdev_create(struct pci_dev *pdev) in stdev_create()
1350 struct switchtec_dev *stdev; in stdev_create()
1400 static int mask_event(struct switchtec_dev *stdev, int eid, int idx) in mask_event()
1422 static int mask_all_events(struct switchtec_dev *stdev, int eid) in mask_all_events()
1446 struct switchtec_dev *stdev = dev; in switchtec_event_isr()
1483 struct switchtec_dev *stdev = dev; in switchtec_dma_mrpc_isr()
1495 static int switchtec_init_isr(struct switchtec_dev *stdev) in switchtec_init_isr()
1544 static void init_pff(struct switchtec_dev *stdev) in init_pff()
1573 static int switchtec_init_pci(struct switchtec_dev *stdev, in switchtec_init_pci()
1654 struct switchtec_dev *stdev; in switchtec_pci_probe()
1702 struct switchtec_dev *stdev = pci_get_drvdata(pdev); in switchtec_pci_remove()