Home
last modified time | relevance | path

Searched refs:stdev (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-6.6/drivers/pci/switch/
H A Dswitchtec.c52 struct switchtec_dev *stdev; member
76 static int is_firmware_running(struct switchtec_dev *stdev) in is_firmware_running() argument
78 u32 device = ioread32(&stdev->mmio_sys_info->device_id); in is_firmware_running()
80 return stdev->pdev->device == device; in is_firmware_running()
83 static struct switchtec_user *stuser_create(struct switchtec_dev *stdev) in stuser_create() argument
91 get_device(&stdev->dev); in stuser_create()
92 stuser->stdev = stdev; in stuser_create()
96 stuser->event_cnt = atomic_read(&stdev->event_cnt); in stuser_create()
98 dev_dbg(&stdev in stuser_create()
141 flush_wc_buf(struct switchtec_dev *stdev) flush_wc_buf() argument
154 mrpc_cmd_submit(struct switchtec_dev *stdev) mrpc_cmd_submit() argument
189 struct switchtec_dev *stdev = stuser->stdev; mrpc_queue_cmd() local
202 mrpc_cleanup_cmd(struct switchtec_dev *stdev) mrpc_cleanup_cmd() argument
218 mrpc_complete_cmd(struct switchtec_dev *stdev) mrpc_complete_cmd() argument
264 struct switchtec_dev *stdev; mrpc_event_work() local
276 mrpc_error_complete_cmd(struct switchtec_dev *stdev) mrpc_error_complete_cmd() argument
295 struct switchtec_dev *stdev; mrpc_timeout_work() local
327 struct switchtec_dev *stdev = to_stdev(dev); device_version_show() local
339 struct switchtec_dev *stdev = to_stdev(dev); fw_version_show() local
391 struct switchtec_dev *stdev = to_stdev(dev); component_vendor_show() local
406 struct switchtec_dev *stdev = to_stdev(dev); component_id_show() local
420 struct switchtec_dev *stdev = to_stdev(dev); component_revision_show() local
434 struct switchtec_dev *stdev = to_stdev(dev); partition_show() local
443 struct switchtec_dev *stdev = to_stdev(dev); partition_count_show() local
467 struct switchtec_dev *stdev; switchtec_dev_open() local
493 lock_mutex_and_test_alive(struct switchtec_dev *stdev) lock_mutex_and_test_alive() argument
510 struct switchtec_dev *stdev = stuser->stdev; switchtec_dev_write() local
562 struct switchtec_dev *stdev = stuser->stdev; switchtec_dev_read() local
637 struct switchtec_dev *stdev = stuser->stdev; switchtec_dev_poll() local
657 ioctl_flash_info(struct switchtec_dev *stdev, struct switchtec_ioctl_flash_info __user *uinfo) ioctl_flash_info() argument
686 flash_part_info_gen3(struct switchtec_dev *stdev, struct switchtec_ioctl_flash_part_info *info) flash_part_info_gen3() argument
756 flash_part_info_gen4(struct switchtec_dev *stdev, struct switchtec_ioctl_flash_part_info *info) flash_part_info_gen4() argument
860 ioctl_flash_part_info(struct switchtec_dev *stdev, struct switchtec_ioctl_flash_part_info __user *uinfo) ioctl_flash_part_info() argument
887 ioctl_event_summary(struct switchtec_dev *stdev, struct switchtec_user *stuser, struct switchtec_ioctl_event_summary __user *usum, size_t size) ioctl_event_summary() argument
927 global_ev_reg(struct switchtec_dev *stdev, size_t offset, int index) global_ev_reg() argument
933 part_ev_reg(struct switchtec_dev *stdev, size_t offset, int index) part_ev_reg() argument
939 pff_ev_reg(struct switchtec_dev *stdev, size_t offset, int index) pff_ev_reg() argument
991 event_hdr_addr(struct switchtec_dev *stdev, int event_id, int index) event_hdr_addr() argument
1014 event_ctl(struct switchtec_dev *stdev, struct switchtec_ioctl_event_ctl *ctl) event_ctl() argument
1070 ioctl_event_ctl(struct switchtec_dev *stdev, struct switchtec_ioctl_event_ctl __user *uctl) ioctl_event_ctl() argument
1116 ioctl_pff_to_port(struct switchtec_dev *stdev, struct switchtec_ioctl_pff_port __user *up) ioctl_pff_to_port() argument
1163 ioctl_port_to_pff(struct switchtec_dev *stdev, struct switchtec_ioctl_pff_port __user *up) ioctl_port_to_pff() argument
1205 struct switchtec_dev *stdev = stuser->stdev; switchtec_dev_ioctl() local
1259 struct switchtec_dev *stdev; link_event_work() local
1267 check_link_state_events(struct switchtec_dev *stdev) check_link_state_events() argument
1289 enable_link_state_events(struct switchtec_dev *stdev) enable_link_state_events() argument
1300 enable_dma_mrpc(struct switchtec_dev *stdev) enable_dma_mrpc() argument
1309 struct switchtec_dev *stdev = to_stdev(dev); stdev_release() local
1314 stdev_kill(struct switchtec_dev *stdev) stdev_kill() argument
1342 struct switchtec_dev *stdev; stdev_create() local
1392 mask_event(struct switchtec_dev *stdev, int eid, int idx) mask_event() argument
1414 mask_all_events(struct switchtec_dev *stdev, int eid) mask_all_events() argument
1438 struct switchtec_dev *stdev = dev; switchtec_event_isr() local
1475 struct switchtec_dev *stdev = dev; switchtec_dma_mrpc_isr() local
1485 switchtec_init_isr(struct switchtec_dev *stdev) switchtec_init_isr() argument
1534 init_pff(struct switchtec_dev *stdev) init_pff() argument
1563 switchtec_init_pci(struct switchtec_dev *stdev, struct pci_dev *pdev) switchtec_init_pci() argument
1641 switchtec_exit_pci(struct switchtec_dev *stdev) switchtec_exit_pci() argument
1656 struct switchtec_dev *stdev; switchtec_pci_probe() local
1706 struct switchtec_dev *stdev = pci_get_drvdata(pdev); switchtec_pci_remove() local
[all...]
/kernel/linux/linux-5.10/drivers/pci/switch/
H A Dswitchtec.c51 struct switchtec_dev *stdev; member
69 static struct switchtec_user *stuser_create(struct switchtec_dev *stdev) in stuser_create() argument
77 get_device(&stdev->dev); in stuser_create()
78 stuser->stdev = stdev; in stuser_create()
82 stuser->event_cnt = atomic_read(&stdev->event_cnt); in stuser_create()
84 dev_dbg(&stdev->dev, "%s: %p\n", __func__, stuser); in stuser_create()
95 dev_dbg(&stuser->stdev->dev, "%s: %p\n", __func__, stuser); in stuser_free()
97 put_device(&stuser->stdev->dev); in stuser_free()
120 dev_dbg(&stuser->stdev in stuser_set_state()
126 flush_wc_buf(struct switchtec_dev *stdev) flush_wc_buf() argument
139 mrpc_cmd_submit(struct switchtec_dev *stdev) mrpc_cmd_submit() argument
174 struct switchtec_dev *stdev = stuser->stdev; mrpc_queue_cmd() local
187 mrpc_complete_cmd(struct switchtec_dev *stdev) mrpc_complete_cmd() argument
237 struct switchtec_dev *stdev; mrpc_event_work() local
251 struct switchtec_dev *stdev; mrpc_timeout_work() local
278 struct switchtec_dev *stdev = to_stdev(dev); device_version_show() local
290 struct switchtec_dev *stdev = to_stdev(dev); fw_version_show() local
342 struct switchtec_dev *stdev = to_stdev(dev); component_vendor_show() local
357 struct switchtec_dev *stdev = to_stdev(dev); component_id_show() local
371 struct switchtec_dev *stdev = to_stdev(dev); component_revision_show() local
385 struct switchtec_dev *stdev = to_stdev(dev); partition_show() local
394 struct switchtec_dev *stdev = to_stdev(dev); partition_count_show() local
418 struct switchtec_dev *stdev; switchtec_dev_open() local
444 lock_mutex_and_test_alive(struct switchtec_dev *stdev) lock_mutex_and_test_alive() argument
461 struct switchtec_dev *stdev = stuser->stdev; switchtec_dev_write() local
513 struct switchtec_dev *stdev = stuser->stdev; switchtec_dev_read() local
583 struct switchtec_dev *stdev = stuser->stdev; switchtec_dev_poll() local
603 ioctl_flash_info(struct switchtec_dev *stdev, struct switchtec_ioctl_flash_info __user *uinfo) ioctl_flash_info() argument
632 flash_part_info_gen3(struct switchtec_dev *stdev, struct switchtec_ioctl_flash_part_info *info) flash_part_info_gen3() argument
702 flash_part_info_gen4(struct switchtec_dev *stdev, struct switchtec_ioctl_flash_part_info *info) flash_part_info_gen4() argument
806 ioctl_flash_part_info(struct switchtec_dev *stdev, struct switchtec_ioctl_flash_part_info __user *uinfo) ioctl_flash_part_info() argument
833 ioctl_event_summary(struct switchtec_dev *stdev, struct switchtec_user *stuser, struct switchtec_ioctl_event_summary __user *usum, size_t size) ioctl_event_summary() argument
873 global_ev_reg(struct switchtec_dev *stdev, size_t offset, int index) global_ev_reg() argument
879 part_ev_reg(struct switchtec_dev *stdev, size_t offset, int index) part_ev_reg() argument
885 pff_ev_reg(struct switchtec_dev *stdev, size_t offset, int index) pff_ev_reg() argument
937 event_hdr_addr(struct switchtec_dev *stdev, int event_id, int index) event_hdr_addr() argument
960 event_ctl(struct switchtec_dev *stdev, struct switchtec_ioctl_event_ctl *ctl) event_ctl() argument
1013 ioctl_event_ctl(struct switchtec_dev *stdev, struct switchtec_ioctl_event_ctl __user *uctl) ioctl_event_ctl() argument
1059 ioctl_pff_to_port(struct switchtec_dev *stdev, struct switchtec_ioctl_pff_port __user *up) ioctl_pff_to_port() argument
1106 ioctl_port_to_pff(struct switchtec_dev *stdev, struct switchtec_ioctl_pff_port __user *up) ioctl_port_to_pff() argument
1148 struct switchtec_dev *stdev = stuser->stdev; switchtec_dev_ioctl() local
1202 struct switchtec_dev *stdev; link_event_work() local
1210 check_link_state_events(struct switchtec_dev *stdev) check_link_state_events() argument
1232 enable_link_state_events(struct switchtec_dev *stdev) enable_link_state_events() argument
1243 enable_dma_mrpc(struct switchtec_dev *stdev) enable_dma_mrpc() argument
1252 struct switchtec_dev *stdev = to_stdev(dev); stdev_release() local
1257 stdev_kill(struct switchtec_dev *stdev) stdev_kill() argument
1285 struct switchtec_dev *stdev; stdev_create() local
1336 mask_event(struct switchtec_dev *stdev, int eid, int idx) mask_event() argument
1355 mask_all_events(struct switchtec_dev *stdev, int eid) mask_all_events() argument
1379 struct switchtec_dev *stdev = dev; switchtec_event_isr() local
1416 struct switchtec_dev *stdev = dev; switchtec_dma_mrpc_isr() local
1428 switchtec_init_isr(struct switchtec_dev *stdev) switchtec_init_isr() argument
1477 init_pff(struct switchtec_dev *stdev) init_pff() argument
1506 switchtec_init_pci(struct switchtec_dev *stdev, struct pci_dev *pdev) switchtec_init_pci() argument
1584 switchtec_exit_pci(struct switchtec_dev *stdev) switchtec_exit_pci() argument
1599 struct switchtec_dev *stdev; switchtec_pci_probe() local
1647 struct switchtec_dev *stdev = pci_get_drvdata(pdev); switchtec_pci_remove() local
[all...]
/kernel/linux/linux-5.10/drivers/thermal/
H A Dspear_thermal.c34 struct spear_thermal_dev *stdev = thermal->devdata; in thermal_get_temp() local
40 *temp = (readl_relaxed(stdev->thermal_base) & 0x7F) * MD_FACTOR; in thermal_get_temp()
51 struct spear_thermal_dev *stdev = spear_thermal->devdata; in spear_thermal_suspend() local
55 actual_mask = readl_relaxed(stdev->thermal_base); in spear_thermal_suspend()
56 writel_relaxed(actual_mask & ~stdev->flags, stdev->thermal_base); in spear_thermal_suspend()
58 clk_disable(stdev->clk); in spear_thermal_suspend()
67 struct spear_thermal_dev *stdev = spear_thermal->devdata; in spear_thermal_resume() local
71 ret = clk_enable(stdev->clk); in spear_thermal_resume()
78 actual_mask = readl_relaxed(stdev in spear_thermal_resume()
92 struct spear_thermal_dev *stdev; spear_thermal_probe() local
159 struct spear_thermal_dev *stdev = spear_thermal->devdata; spear_thermal_exit() local
[all...]
/kernel/linux/linux-6.6/drivers/thermal/
H A Dspear_thermal.c34 struct spear_thermal_dev *stdev = thermal_zone_device_priv(thermal); in thermal_get_temp() local
40 *temp = (readl_relaxed(stdev->thermal_base) & 0x7F) * MD_FACTOR; in thermal_get_temp()
51 struct spear_thermal_dev *stdev = thermal_zone_device_priv(spear_thermal); in spear_thermal_suspend() local
55 actual_mask = readl_relaxed(stdev->thermal_base); in spear_thermal_suspend()
56 writel_relaxed(actual_mask & ~stdev->flags, stdev->thermal_base); in spear_thermal_suspend()
58 clk_disable(stdev->clk); in spear_thermal_suspend()
67 struct spear_thermal_dev *stdev = thermal_zone_device_priv(spear_thermal); in spear_thermal_resume() local
71 ret = clk_enable(stdev->clk); in spear_thermal_resume()
78 actual_mask = readl_relaxed(stdev in spear_thermal_resume()
92 struct spear_thermal_dev *stdev; spear_thermal_probe() local
157 struct spear_thermal_dev *stdev = thermal_zone_device_priv(spear_thermal); spear_thermal_exit() local
[all...]
/kernel/linux/linux-5.10/drivers/ntb/hw/mscc/
H A Dntb_hw_switchtec.c47 struct switchtec_dev *stdev; member
144 dev_err(&sndev->stdev->dev, in switchtec_ntb_part_op()
282 dev_dbg(&sndev->stdev->dev, "MW %d: part %d addr %pad size %pap\n", in switchtec_ntb_mw_set_trans()
299 dev_err(&sndev->stdev->dev, in switchtec_ntb_mw_set_trans()
325 dev_err(&sndev->stdev->dev, in switchtec_ntb_mw_set_trans()
421 struct switchtec_dev *stdev = sndev->stdev; in switchtec_ntb_part_link_speed() local
423 u32 pff = ioread32(&stdev->mmio_part_cfg[partition].vep_pff_inst_id); in switchtec_ntb_part_link_speed()
424 u32 linksta = ioread32(&stdev->mmio_pff_csr[pff].pci_cap_region[13]); in switchtec_ntb_part_link_speed()
510 dev_info(&sndev->stdev in switchtec_ntb_link_status_update()
550 switchtec_ntb_link_notification(struct switchtec_dev *stdev) switchtec_ntb_link_notification() argument
1478 struct switchtec_dev *stdev = to_stdev(dev); switchtec_ntb_add() local
1549 struct switchtec_dev *stdev = to_stdev(dev); switchtec_ntb_remove() local
[all...]
/kernel/linux/linux-6.6/drivers/ntb/hw/mscc/
H A Dntb_hw_switchtec.c47 struct switchtec_dev *stdev; member
144 dev_err(&sndev->stdev->dev, in switchtec_ntb_part_op()
282 dev_dbg(&sndev->stdev->dev, "MW %d: part %d addr %pad size %pap\n", in switchtec_ntb_mw_set_trans()
299 dev_err(&sndev->stdev->dev, in switchtec_ntb_mw_set_trans()
325 dev_err(&sndev->stdev->dev, in switchtec_ntb_mw_set_trans()
421 struct switchtec_dev *stdev = sndev->stdev; in switchtec_ntb_part_link_speed() local
423 &stdev->mmio_part_cfg_all[partition]; in switchtec_ntb_part_link_speed()
426 u32 linksta = ioread32(&stdev->mmio_pff_csr[pff].pci_cap_region[13]); in switchtec_ntb_part_link_speed()
512 dev_info(&sndev->stdev in switchtec_ntb_link_status_update()
552 switchtec_ntb_link_notification(struct switchtec_dev *stdev) switchtec_ntb_link_notification() argument
1475 struct switchtec_dev *stdev = to_stdev(dev); switchtec_ntb_add() local
1545 struct switchtec_dev *stdev = to_stdev(dev); switchtec_ntb_remove() local
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dswitchtec.h510 void (*link_notifier)(struct switchtec_dev *stdev);
/kernel/linux/linux-6.6/include/linux/
H A Dswitchtec.h510 void (*link_notifier)(struct switchtec_dev *stdev);

Completed in 9 milliseconds