Lines Matching refs:switchtec_dev
54 struct switchtec_dev *stdev;
78 static int is_firmware_running(struct switchtec_dev *stdev)
85 static struct switchtec_user *stuser_create(struct switchtec_dev *stdev)
141 static void mrpc_complete_cmd(struct switchtec_dev *stdev);
143 static void flush_wc_buf(struct switchtec_dev *stdev)
156 static void mrpc_cmd_submit(struct switchtec_dev *stdev)
191 struct switchtec_dev *stdev = stuser->stdev;
204 static void mrpc_cleanup_cmd(struct switchtec_dev *stdev)
220 static void mrpc_complete_cmd(struct switchtec_dev *stdev)
266 struct switchtec_dev *stdev;
268 stdev = container_of(work, struct switchtec_dev, mrpc_work);
278 static void mrpc_error_complete_cmd(struct switchtec_dev *stdev)
297 struct switchtec_dev *stdev;
300 stdev = container_of(work, struct switchtec_dev, mrpc_timeout.work);
329 struct switchtec_dev *stdev = to_stdev(dev);
341 struct switchtec_dev *stdev = to_stdev(dev);
372 struct switchtec_dev *stdev = to_stdev(dev); \
393 struct switchtec_dev *stdev = to_stdev(dev);
408 struct switchtec_dev *stdev = to_stdev(dev);
422 struct switchtec_dev *stdev = to_stdev(dev);
436 struct switchtec_dev *stdev = to_stdev(dev);
445 struct switchtec_dev *stdev = to_stdev(dev);
469 struct switchtec_dev *stdev;
472 stdev = container_of(inode->i_cdev, struct switchtec_dev, cdev);
495 static int lock_mutex_and_test_alive(struct switchtec_dev *stdev)
512 struct switchtec_dev *stdev = stuser->stdev;
564 struct switchtec_dev *stdev = stuser->stdev;
639 struct switchtec_dev *stdev = stuser->stdev;
659 static int ioctl_flash_info(struct switchtec_dev *stdev,
688 static int flash_part_info_gen3(struct switchtec_dev *stdev,
758 static int flash_part_info_gen4(struct switchtec_dev *stdev,
862 static int ioctl_flash_part_info(struct switchtec_dev *stdev,
889 static int ioctl_event_summary(struct switchtec_dev *stdev,
929 static u32 __iomem *global_ev_reg(struct switchtec_dev *stdev,
935 static u32 __iomem *part_ev_reg(struct switchtec_dev *stdev,
941 static u32 __iomem *pff_ev_reg(struct switchtec_dev *stdev,
953 u32 __iomem *(*map_reg)(struct switchtec_dev *stdev,
993 static u32 __iomem *event_hdr_addr(struct switchtec_dev *stdev,
1016 static int event_ctl(struct switchtec_dev *stdev,
1072 static int ioctl_event_ctl(struct switchtec_dev *stdev,
1118 static int ioctl_pff_to_port(struct switchtec_dev *stdev,
1165 static int ioctl_port_to_pff(struct switchtec_dev *stdev,
1207 struct switchtec_dev *stdev = stuser->stdev;
1261 struct switchtec_dev *stdev;
1263 stdev = container_of(work, struct switchtec_dev, link_event_work);
1269 static void check_link_state_events(struct switchtec_dev *stdev)
1291 static void enable_link_state_events(struct switchtec_dev *stdev)
1302 static void enable_dma_mrpc(struct switchtec_dev *stdev)
1311 struct switchtec_dev *stdev = to_stdev(dev);
1316 static void stdev_kill(struct switchtec_dev *stdev)
1342 static struct switchtec_dev *stdev_create(struct pci_dev *pdev)
1344 struct switchtec_dev *stdev;
1394 static int mask_event(struct switchtec_dev *stdev, int eid, int idx)
1416 static int mask_all_events(struct switchtec_dev *stdev, int eid)
1440 struct switchtec_dev *stdev = dev;
1477 struct switchtec_dev *stdev = dev;
1487 static int switchtec_init_isr(struct switchtec_dev *stdev)
1536 static void init_pff(struct switchtec_dev *stdev)
1565 static int switchtec_init_pci(struct switchtec_dev *stdev,
1643 static void switchtec_exit_pci(struct switchtec_dev *stdev)
1658 struct switchtec_dev *stdev;
1708 struct switchtec_dev *stdev = pci_get_drvdata(pdev);