• Home
  • Raw
  • Download

Lines Matching refs:node_data

31 	struct imx_icc_node *node_data = node->data;  in imx_icc_node_set()  local
34 if (!node_data->qos_dev) in imx_icc_node_set()
37 freq = (node->avg_bw + node->peak_bw) * node_data->desc->adj->bw_mul; in imx_icc_node_set()
38 do_div(freq, node_data->desc->adj->bw_div); in imx_icc_node_set()
40 node->name, dev_name(node_data->qos_dev), in imx_icc_node_set()
49 dev_pm_qos_update_request(&node_data->qos_req, freq); in imx_icc_node_set()
62 struct imx_icc_node *node_data = node->data; in imx_icc_node_destroy() local
65 if (dev_pm_qos_request_active(&node_data->qos_req)) { in imx_icc_node_destroy()
66 ret = dev_pm_qos_remove_request(&node_data->qos_req); in imx_icc_node_destroy()
70 dev_name(node_data->qos_dev)); in imx_icc_node_destroy()
73 put_device(node_data->qos_dev); in imx_icc_node_destroy()
81 struct imx_icc_node *node_data = node->data; in imx_icc_node_init_qos() local
82 const struct imx_icc_node_adj_desc *adj = node_data->desc->adj; in imx_icc_node_init_qos()
88 node_data->qos_dev = dev; in imx_icc_node_init_qos()
113 node_data->qos_dev = &pdev->dev; in imx_icc_node_init_qos()
118 return dev_pm_qos_add_request(node_data->qos_dev, in imx_icc_node_init_qos()
119 &node_data->qos_req, in imx_icc_node_init_qos()
127 struct imx_icc_node *node_data; in imx_icc_node_add() local
143 node_data = devm_kzalloc(dev, sizeof(*node_data), GFP_KERNEL); in imx_icc_node_add()
144 if (!node_data) { in imx_icc_node_add()
150 node->data = node_data; in imx_icc_node_add()
151 node_data->desc = node_desc; in imx_icc_node_add()