Lines Matching full:fn
27 struct rmi_function *fn; member
36 static int rmi_f55_detect(struct rmi_function *fn) in rmi_f55_detect() argument
38 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f55_detect()
43 f55 = dev_get_drvdata(&fn->dev); in rmi_f55_detect()
45 error = rmi_read_block(fn->rmi_dev, fn->fd.query_base_addr, in rmi_f55_detect()
48 dev_err(&fn->dev, "%s: Failed to query F55 properties\n", in rmi_f55_detect()
73 error = rmi_read_block(fn->rmi_dev, in rmi_f55_detect()
74 fn->fd.control_base_addr + 1, in rmi_f55_detect()
86 error = rmi_read_block(fn->rmi_dev, in rmi_f55_detect()
87 fn->fd.control_base_addr + 2, in rmi_f55_detect()
100 rmi_dbg(RMI_DEBUG_FN, &fn->dev, "F55 num_rx_electrodes: %d (raw %d)\n", in rmi_f55_detect()
102 rmi_dbg(RMI_DEBUG_FN, &fn->dev, "F55 num_tx_electrodes: %d (raw %d)\n", in rmi_f55_detect()
108 static int rmi_f55_probe(struct rmi_function *fn) in rmi_f55_probe() argument
112 f55 = devm_kzalloc(&fn->dev, sizeof(struct f55_data), GFP_KERNEL); in rmi_f55_probe()
116 f55->fn = fn; in rmi_f55_probe()
117 dev_set_drvdata(&fn->dev, f55); in rmi_f55_probe()
119 return rmi_f55_detect(fn); in rmi_f55_probe()