Lines Matching refs:sio_data
983 struct pc87427_sio_data *sio_data = dev->platform_data;
995 if (!(sio_data->has_fanin & (1 << i))) /* Not wired */
1006 if (!(sio_data->has_fanin & (1 << i))) /* Not wired */
1012 data->fan_enabled = sio_data->has_fanin;
1017 if (!(sio_data->has_fanout & (1 << i))) /* Not wired */
1073 struct pc87427_sio_data *sio_data = pdev->dev.platform_data;
1084 data->address[0] = sio_data->address[0];
1085 data->address[1] = sio_data->address[1];
1173 static int __init pc87427_device_add(const struct pc87427_sio_data *sio_data)
1183 if (!sio_data->address[i])
1185 res[res_count].start = sio_data->address[i];
1186 res[res_count].end = sio_data->address[i] + REGION_LENGTH - 1;
1210 err = platform_device_add_data(pdev, sio_data,
1232 static int __init pc87427_find(int sioaddr, struct pc87427_sio_data *sio_data)
1246 sio_data->address[i] = 0;
1271 sio_data->address[i] = val;
1275 if (!sio_data->address[0] && !sio_data->address[1]) {
1281 sio_data->has_fanin = (1 << 2) | (1 << 3); /* FANIN2, FANIN3 */
1285 sio_data->has_fanin |= (1 << 0); /* FANIN0 */
1287 sio_data->has_fanin |= (1 << 4); /* FANIN4 */
1291 sio_data->has_fanin |= (1 << 1); /* FANIN1 */
1295 sio_data->has_fanin |= (1 << 7); /* FANIN7 */
1298 sio_data->has_fanin |= (1 << 5); /* FANIN5 */
1301 sio_data->has_fanin |= (1 << 6); /* FANIN6 */
1304 sio_data->has_fanout = (1 << 0); /* FANOUT0 */
1306 sio_data->has_fanout |= (1 << 3); /* FANOUT3 */
1311 sio_data->has_fanout |= (1 << 1); /* FANOUT1 */
1313 sio_data->has_fanout |= (1 << 2); /* FANOUT2 */
1319 sio_data->has_fanout |= (1 << 1); /* FANOUT1 */
1321 sio_data->has_fanout |= (1 << 2); /* FANOUT2 */
1331 struct pc87427_sio_data sio_data;
1333 if (pc87427_find(0x2e, &sio_data)
1334 && pc87427_find(0x4e, &sio_data))
1342 err = pc87427_device_add(&sio_data);