Home
last modified time | relevance | path

Searched refs:stdev (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/drivers/pci/switch/
Dswitchtec.c42 struct switchtec_dev *stdev; member
59 static struct switchtec_user *stuser_create(struct switchtec_dev *stdev) in stuser_create() argument
67 get_device(&stdev->dev); in stuser_create()
68 stuser->stdev = stdev; in stuser_create()
72 stuser->event_cnt = atomic_read(&stdev->event_cnt); in stuser_create()
74 dev_dbg(&stdev->dev, "%s: %p\n", __func__, stuser); in stuser_create()
85 dev_dbg(&stuser->stdev->dev, "%s: %p\n", __func__, stuser); in stuser_free()
87 put_device(&stuser->stdev->dev); in stuser_free()
110 dev_dbg(&stuser->stdev->dev, "stuser state %p -> %s", in stuser_set_state()
114 static void mrpc_complete_cmd(struct switchtec_dev *stdev);
[all …]
/Linux-v4.19/drivers/thermal/
Dspear_thermal.c43 struct spear_thermal_dev *stdev = thermal->devdata; in thermal_get_temp() local
49 *temp = (readl_relaxed(stdev->thermal_base) & 0x7F) * MD_FACTOR; in thermal_get_temp()
61 struct spear_thermal_dev *stdev = spear_thermal->devdata; in spear_thermal_suspend() local
65 actual_mask = readl_relaxed(stdev->thermal_base); in spear_thermal_suspend()
66 writel_relaxed(actual_mask & ~stdev->flags, stdev->thermal_base); in spear_thermal_suspend()
68 clk_disable(stdev->clk); in spear_thermal_suspend()
78 struct spear_thermal_dev *stdev = spear_thermal->devdata; in spear_thermal_resume() local
82 ret = clk_enable(stdev->clk); in spear_thermal_resume()
89 actual_mask = readl_relaxed(stdev->thermal_base); in spear_thermal_resume()
90 writel_relaxed(actual_mask | stdev->flags, stdev->thermal_base); in spear_thermal_resume()
[all …]
/Linux-v4.19/drivers/ntb/hw/mscc/
Dntb_hw_switchtec.c84 struct switchtec_dev *stdev; member
180 dev_err(&sndev->stdev->dev, in switchtec_ntb_part_op()
315 dev_dbg(&sndev->stdev->dev, "MW %d: part %d addr %pad size %pap\n", in switchtec_ntb_mw_set_trans()
332 dev_err(&sndev->stdev->dev, in switchtec_ntb_mw_set_trans()
358 dev_err(&sndev->stdev->dev, in switchtec_ntb_mw_set_trans()
454 struct switchtec_dev *stdev = sndev->stdev; in switchtec_ntb_part_link_speed() local
456 u32 pff = ioread32(&stdev->mmio_part_cfg[partition].vep_pff_inst_id); in switchtec_ntb_part_link_speed()
457 u32 linksta = ioread32(&stdev->mmio_pff_csr[pff].pci_cap_region[13]); in switchtec_ntb_part_link_speed()
543 dev_info(&sndev->stdev->dev, "ntb link forced down\n"); in switchtec_ntb_check_link()
565 dev_info(&sndev->stdev->dev, "ntb link %s\n", in switchtec_ntb_check_link()
[all …]
/Linux-v4.19/include/linux/
Dswitchtec.h380 void (*link_notifier)(struct switchtec_dev *stdev);