Searched refs:pia (Results 1 – 3 of 3) sorted by relevance
77 #define pia(dev) ((struct pia *)(dev->base)) macro84 dummy = pia(p)->pprb; /* clears irq bit */ in mfc3_write_data()86 pia(p)->pprb = data; in mfc3_write_data()92 return pia(p)->pprb; in mfc3_read_data()127 pia(p)->ppra = (pia(p)->ppra & 0x1f) | control_pc_to_mfc3(control); in mfc3_write_control()133 return control_mfc3_to_pc(pia(p)->ppra & 0xe0); in mfc3_read_control()168 status = status_mfc3_to_pc(pia(p)->ppra & 0x1f); in mfc3_read_status()181 if (pia(this_port[i])->crb & 128) { /* Board caused interrupt */ in mfc3_interrupt()182 dummy = pia(this_port[i])->pprb; /* clear irq bit */ in mfc3_interrupt()190 pia(p)->crb |= PIA_C1_ENABLE_IRQ; in mfc3_enable_irq()[all …]
102 unsigned char buf[8], *pia; in amdgpu_fru_get_product_info() local157 pia = kzalloc(size, GFP_KERNEL); in amdgpu_fru_get_product_info()158 if (!pia) in amdgpu_fru_get_product_info()162 len = amdgpu_eeprom_read(adev->pm.fru_eeprom_i2c_bus, addr, pia, size); in amdgpu_fru_get_product_info()164 kfree(pia); in amdgpu_fru_get_product_info()170 csum += pia[size - 1]; in amdgpu_fru_get_product_info()173 kfree(pia); in amdgpu_fru_get_product_info()182 addr = 3 + 1 + (pia[3] & 0x3F); in amdgpu_fru_get_product_info()185 memcpy(adev->product_name, pia + addr + 1, in amdgpu_fru_get_product_info()188 pia[addr] & 0x3F)); in amdgpu_fru_get_product_info()[all …]
24 struct pia { struct