Lines Matching defs:sih

56 struct sih {
78 static const struct sih *sih_modules;
109 static const struct sih sih_modules_twl4030[6] = {
169 static const struct sih sih_modules_twl5031[8] = {
317 const struct sih *sih;
330 sih = sih_modules;
331 for (i = 0; i < nr_sih_modules; i++, sih++) {
333 if (!sih->bytes_ixr)
337 if (sih->irq_lines <= line)
340 status = twl_i2c_write(sih->module, buf,
341 sih->mask[line].imr_offset, sih->bytes_ixr);
344 status, sih->name, "IMR");
354 if (sih->set_cor) {
355 status = twl_i2c_write_u8(sih->module,
357 sih->control_offset);
360 status, sih->name, "SIH_CTRL");
364 sih = sih_modules;
365 for (i = 0; i < nr_sih_modules; i++, sih++) {
370 if (!sih->bytes_ixr)
374 if (sih->irq_lines <= line)
384 status = twl_i2c_read(sih->module, rxbuf,
385 sih->mask[line].isr_offset, sih->bytes_ixr);
388 status, sih->name, "ISR");
390 if (!sih->set_cor) {
391 status = twl_i2c_write(sih->module, buf,
392 sih->mask[line].isr_offset,
393 sih->bytes_ixr);
417 const struct sih *sih;
476 const struct sih *sih = agent->sih;
490 status = twl_i2c_write(sih->module, imr.bytes,
491 sih->mask[irq_line].imr_offset,
492 sih->bytes_ixr);
511 status = twl_i2c_read(sih->module, bytes,
512 sih->edr_offset, sih->bytes_edr);
538 status = twl_i2c_write(sih->module, bytes,
539 sih->edr_offset, sih->bytes_edr);
560 static inline int sih_read_isr(const struct sih *sih)
571 status = twl_i2c_read(sih->module, isr.bytes,
572 sih->mask[irq_line].isr_offset, sih->bytes_ixr);
584 const struct sih *sih = agent->sih;
588 isr = sih_read_isr(sih);
592 sih->name, isr);
602 if (irq < sih->bits)
606 sih->name, irq);
615 const struct sih *sih = NULL;
621 for (sih_mod = 0, sih = sih_modules; sih_mod < nr_sih_modules;
622 sih_mod++, sih++) {
623 if (sih->module == module && sih->set_cor) {
639 agent->sih = sih;
643 for (i = 0; i < sih->bits; i++) {
656 agent->irq_name = kasprintf(GFP_KERNEL, "twl4030_%s", sih->name);
659 agent->irq_name ?: sih->name, NULL);
661 dev_info(dev, "%s (irq %d) chaining IRQs %d..%d\n", sih->name,