Lines Matching refs:pentry
74 struct sfi_timer_table_entry *pentry;
82 pentry = (struct sfi_timer_table_entry *) sb->pentry;
83 totallen = sfi_mtimer_num * sizeof(*pentry);
84 memcpy(sfi_mtimer_array, pentry, totallen);
88 pentry = sfi_mtimer_array;
89 for (totallen = 0; totallen < sfi_mtimer_num; totallen++, pentry++) {
91 totallen, (u32)pentry->phys_addr,
92 pentry->freq_hz, pentry->irq);
97 mp_irq.srcbusirq = pentry->irq; /* IRQ */
99 mp_irq.dstirq = pentry->irq;
101 mp_map_gsi_to_irq(pentry->irq, IOAPIC_MAP_ALLOC, NULL);
145 struct sfi_rtc_table_entry *pentry;
154 pentry = (struct sfi_rtc_table_entry *)sb->pentry;
155 totallen = sfi_mrtc_num * sizeof(*pentry);
156 memcpy(sfi_mrtc_array, pentry, totallen);
160 pentry = sfi_mrtc_array;
161 for (totallen = 0; totallen < sfi_mrtc_num; totallen++, pentry++) {
163 totallen, (u32)pentry->phys_addr, pentry->irq);
168 mp_irq.srcbusirq = pentry->irq; /* IRQ */
170 mp_irq.dstirq = pentry->irq;
172 mp_map_gsi_to_irq(pentry->irq, IOAPIC_MAP_ALLOC, NULL);
185 struct sfi_gpio_table_entry *pentry;
192 pentry = (struct sfi_gpio_table_entry *)sb->pentry;
194 gpio_table = kmemdup(pentry, num * sizeof(*pentry), GFP_KERNEL);
200 for (i = 0; i < num; i++, pentry++)
203 pentry->controller_name,
204 pentry->pin_name,
205 pentry->pin_no);
211 struct sfi_gpio_table_entry *pentry = gpio_table;
214 if (!pentry)
216 for (i = 0; i < gpio_num_entry; i++, pentry++) {
217 if (!strncmp(name, pentry->pin_name, SFI_NAME_LEN))
218 return pentry->pin_no;
324 static void __init sfi_handle_ipc_dev(struct sfi_device_table_entry *pentry,
331 pentry->name, pentry->irq);
337 pdata = intel_mid_sfi_get_pdata(dev, pentry);
348 pdev = platform_device_alloc(pentry->name, 0);
351 pentry->name);
354 install_irq_resource(pdev, pentry->irq);
363 static void __init sfi_handle_spi_dev(struct sfi_device_table_entry *pentry,
370 strncpy(spi_info.modalias, pentry->name, SFI_NAME_LEN);
371 spi_info.irq = ((pentry->irq == (u8)0xff) ? 0 : pentry->irq);
372 spi_info.bus_num = pentry->host_num;
373 spi_info.chip_select = pentry->addr;
374 spi_info.max_speed_hz = pentry->max_freq;
393 static void __init sfi_handle_i2c_dev(struct sfi_device_table_entry *pentry,
400 strncpy(i2c_info.type, pentry->name, SFI_NAME_LEN);
401 i2c_info.irq = ((pentry->irq == (u8)0xff) ? 0 : pentry->irq);
402 i2c_info.addr = pentry->addr;
404 pentry->host_num,
414 intel_scu_i2c_device_register(pentry->host_num, &i2c_info);
416 i2c_register_board_info(pentry->host_num, &i2c_info, 1);
419 static void __init sfi_handle_sd_dev(struct sfi_device_table_entry *pentry,
426 strncpy(sd_info.name, pentry->name, SFI_NAME_LEN);
427 sd_info.bus_num = pentry->host_num;
428 sd_info.max_clk = pentry->max_freq;
429 sd_info.addr = pentry->addr;
467 struct sfi_device_table_entry *pentry;
475 pentry = (struct sfi_device_table_entry *)sb->pentry;
477 for (i = 0; i < num; i++, pentry++) {
478 int irq = pentry->irq;
487 if (!strncmp(pentry->name, "r69001-ts-i2c", 13))
490 else if (!strncmp(pentry->name,
510 dev = get_device_id(pentry->type, pentry->name);
515 switch (pentry->type) {
517 sfi_handle_ipc_dev(pentry, dev);
520 sfi_handle_spi_dev(pentry, dev);
523 sfi_handle_i2c_dev(pentry, dev);
526 sfi_handle_sd_dev(pentry, dev);