/linux-2.6.39/arch/arm/mach-omap2/ |
D | smartreflex.c | 66 static inline void sr_write_reg(struct omap_sr *sr, unsigned offset, u32 value) in sr_write_reg() argument 68 __raw_writel(value, (sr->base + offset)); in sr_write_reg() 71 static inline void sr_modify_reg(struct omap_sr *sr, unsigned offset, u32 mask, in sr_modify_reg() argument 77 reg_val = __raw_readl(sr->base + offset); in sr_modify_reg() 89 if (sr->ip_type == SR_TYPE_V1) { in sr_modify_reg() 92 } else if (sr->ip_type == SR_TYPE_V2) { in sr_modify_reg() 102 __raw_writel(reg_val, (sr->base + offset)); in sr_modify_reg() 105 static inline u32 sr_read_reg(struct omap_sr *sr, unsigned offset) in sr_read_reg() argument 107 return __raw_readl(sr->base + offset); in sr_read_reg() 152 static void sr_set_clk_length(struct omap_sr *sr) in sr_set_clk_length() argument [all …]
|
/linux-2.6.39/arch/mips/alchemy/devboards/ |
D | platform.c | 55 struct resource *sr; in db1x_register_pcmcia_socket() local 64 sr = kzalloc(sizeof(struct resource) * cnt, GFP_KERNEL); in db1x_register_pcmcia_socket() 65 if (!sr) in db1x_register_pcmcia_socket() 74 sr[0].name = "pcmcia-attr"; in db1x_register_pcmcia_socket() 75 sr[0].flags = IORESOURCE_MEM; in db1x_register_pcmcia_socket() 76 sr[0].start = pcmcia_attr_start; in db1x_register_pcmcia_socket() 77 sr[0].end = pcmcia_attr_end; in db1x_register_pcmcia_socket() 79 sr[1].name = "pcmcia-mem"; in db1x_register_pcmcia_socket() 80 sr[1].flags = IORESOURCE_MEM; in db1x_register_pcmcia_socket() 81 sr[1].start = pcmcia_mem_start; in db1x_register_pcmcia_socket() [all …]
|
/linux-2.6.39/arch/ia64/kernel/ |
D | unwind.c | 616 push (struct unw_state_record *sr) in push() argument 625 memcpy(rs, &sr->curr, sizeof(*rs)); in push() 626 sr->curr.next = rs; in push() 630 pop (struct unw_state_record *sr) in pop() argument 632 struct unw_reg_state *rs = sr->curr.next; in pop() 638 memcpy(&sr->curr, rs, sizeof(*rs)); in pop() 746 finish_prologue (struct unw_state_record *sr) in finish_prologue() argument 757 reg = sr->curr.reg + unw.save_order[i]; in finish_prologue() 760 reg->val = sr->gr_save_loc++; in finish_prologue() 770 if (sr->imask) { in finish_prologue() [all …]
|
/linux-2.6.39/arch/sh/include/asm/ |
D | mmu_context_64.h | 32 unsigned long long sr; in get_asid() local 35 : "=r" (sr)); in get_asid() 37 sr = (sr >> SR_ASID_SHIFT) & MMU_CONTEXT_ASID_MASK; in get_asid() 38 return (unsigned long) sr; in get_asid() 44 unsigned long long sr, pc; in set_asid() local 46 asm volatile ("getcon " __SR ", %0" : "=r" (sr)); in set_asid() 48 sr = (sr & SR_ASID_MASK) | (asid << SR_ASID_SHIFT); in set_asid() 66 : "=r" (sr), "=r" (pc) : "0" (sr)); in set_asid()
|
/linux-2.6.39/drivers/rtc/ |
D | rtc-isl1208.c | 135 int sr = i2c_smbus_read_byte_data(client, ISL1208_REG_SR); in isl1208_i2c_get_sr() local 136 if (sr < 0) in isl1208_i2c_get_sr() 139 return sr; in isl1208_i2c_get_sr() 234 int sr, dtr, atr, usr; in isl1208_rtc_proc() local 236 sr = isl1208_i2c_get_sr(client); in isl1208_rtc_proc() 237 if (sr < 0) { in isl1208_rtc_proc() 239 return sr; in isl1208_rtc_proc() 243 (sr & ISL1208_REG_SR_RTCF) ? " RTCF" : "", in isl1208_rtc_proc() 244 (sr & ISL1208_REG_SR_BAT) ? " BAT" : "", in isl1208_rtc_proc() 245 (sr & ISL1208_REG_SR_ALM) ? " ALM" : "", in isl1208_rtc_proc() [all …]
|
/linux-2.6.39/drivers/macintosh/ |
D | windfarm_core.c | 287 struct wf_sensor *sr = container_of(kref, struct wf_sensor, ref); in wf_sensor_release() local 289 DBG("wf: Deleting sensor %s\n", sr->name); in wf_sensor_release() 291 if (sr->ops && sr->ops->release) in wf_sensor_release() 292 sr->ops->release(sr); in wf_sensor_release() 294 kfree(sr); in wf_sensor_release() 312 struct wf_sensor *sr; in wf_register_sensor() local 315 list_for_each_entry(sr, &wf_sensors, link) { in wf_register_sensor() 316 if (!strcmp(sr->name, new_sr->name)) { in wf_register_sensor() 318 " duplicate sensor %s\n", sr->name); in wf_register_sensor() 345 void wf_unregister_sensor(struct wf_sensor *sr) in wf_unregister_sensor() argument [all …]
|
D | windfarm_pm112.c | 268 struct wf_sensor *sr; in cpu_fans_tick() local 275 sr = sens_cpu_temp[cpu]; in cpu_fans_tick() 276 err = sr->ops->get_value(sr, &temp); in cpu_fans_tick() 290 sr = sens_cpu_power[cpu]; in cpu_fans_tick() 291 err = sr->ops->get_value(sr, &power); in cpu_fans_tick() 597 static void pm112_new_sensor(struct wf_sensor *sr) in pm112_new_sensor() argument 601 if (!strncmp(sr->name, "cpu-temp-", 9)) { in pm112_new_sensor() 602 i = sr->name[9] - '0'; in pm112_new_sensor() 603 if (sr->name[10] == 0 && i < NR_CORES && in pm112_new_sensor() 604 sens_cpu_temp[i] == NULL && wf_get_sensor(sr) == 0) in pm112_new_sensor() [all …]
|
D | windfarm.h | 82 int (*get_value)(struct wf_sensor *sr, s32 *val); 83 void (*release)(struct wf_sensor *sr); 96 extern int wf_register_sensor(struct wf_sensor *sr); 97 extern void wf_unregister_sensor(struct wf_sensor *sr); 99 extern int wf_get_sensor(struct wf_sensor *sr); 100 extern void wf_put_sensor(struct wf_sensor *sr);
|
D | windfarm_smu_sensors.c | 60 static void smu_ads_release(struct wf_sensor *sr) in smu_ads_release() argument 62 struct smu_ad_sensor *ads = to_smu_ads(sr); in smu_ads_release() 89 static int smu_cputemp_get(struct wf_sensor *sr, s32 *value) in smu_cputemp_get() argument 91 struct smu_ad_sensor *ads = to_smu_ads(sr); in smu_cputemp_get() 112 static int smu_cpuamp_get(struct wf_sensor *sr, s32 *value) in smu_cpuamp_get() argument 114 struct smu_ad_sensor *ads = to_smu_ads(sr); in smu_cpuamp_get() 133 static int smu_cpuvolt_get(struct wf_sensor *sr, s32 *value) in smu_cpuvolt_get() argument 135 struct smu_ad_sensor *ads = to_smu_ads(sr); in smu_cpuvolt_get() 154 static int smu_slotspow_get(struct wf_sensor *sr, s32 *value) in smu_slotspow_get() argument 156 struct smu_ad_sensor *ads = to_smu_ads(sr); in smu_slotspow_get() [all …]
|
D | windfarm_pm91.c | 577 static void wf_smu_new_sensor(struct wf_sensor *sr) in wf_smu_new_sensor() argument 582 if (sensor_cpu_power == NULL && !strcmp(sr->name, "cpu-power")) { in wf_smu_new_sensor() 583 if (wf_get_sensor(sr) == 0) in wf_smu_new_sensor() 584 sensor_cpu_power = sr; in wf_smu_new_sensor() 587 if (sensor_cpu_temp == NULL && !strcmp(sr->name, "cpu-temp")) { in wf_smu_new_sensor() 588 if (wf_get_sensor(sr) == 0) in wf_smu_new_sensor() 589 sensor_cpu_temp = sr; in wf_smu_new_sensor() 592 if (sensor_hd_temp == NULL && !strcmp(sr->name, "hd-temp")) { in wf_smu_new_sensor() 593 if (wf_get_sensor(sr) == 0) in wf_smu_new_sensor() 594 sensor_hd_temp = sr; in wf_smu_new_sensor() [all …]
|
/linux-2.6.39/arch/avr32/include/asm/ |
D | asm.h | 44 .macro save_min sr, tmp=lr 46 mfsr \tmp, \sr 51 .macro restore_min sr, tmp=lr 53 mtsr \sr, \tmp 57 .macro save_half sr, tmp=lr 61 mfsr \tmp, \sr 65 .macro restore_half sr, tmp=lr 67 mtsr \sr, \tmp 72 .macro save_full_user sr, tmp=lr 76 mfsr \tmp, \sr [all …]
|
D | ptrace.h | 99 unsigned long sr; member 131 #define user_mode(regs) (((regs)->sr & MODE_MASK) == MODE_USER) 143 if ((regs->sr & 0xffff0000) == 0) in valid_user_regs() 150 regs->sr &= 0x0000ffff; in valid_user_regs()
|
/linux-2.6.39/arch/mips/pmc-sierra/yosemite/ |
D | py-console.c | 60 unsigned int sr; in readb_outer_space() local 62 sr = read_c0_status(); in readb_outer_space() 63 write_c0_status((sr | ST0_KX) & ~ ST0_IE); in readb_outer_space() 78 write_c0_status(sr); in readb_outer_space() 88 unsigned int sr; in writeb_outer_space() local 90 sr = read_c0_status(); in writeb_outer_space() 91 write_c0_status((sr | ST0_KX) & ~ ST0_IE); in writeb_outer_space() 106 write_c0_status(sr); in writeb_outer_space()
|
/linux-2.6.39/arch/avr32/kernel/ |
D | process.c | 102 regs.sr = MODE_SUPERVISOR; in kernel_thread() 271 unsigned long mode = (regs->sr & MODE_MASK) >> MODE_SHIFT; in show_regs_log_lvl() 293 regs->sr & SR_Q ? 'Q' : 'q', in show_regs_log_lvl() 294 regs->sr & SR_V ? 'V' : 'v', in show_regs_log_lvl() 295 regs->sr & SR_N ? 'N' : 'n', in show_regs_log_lvl() 296 regs->sr & SR_Z ? 'Z' : 'z', in show_regs_log_lvl() 297 regs->sr & SR_C ? 'C' : 'c'); in show_regs_log_lvl() 299 regs->sr & SR_H ? 'H' : 'h', in show_regs_log_lvl() 300 regs->sr & SR_J ? 'J' : 'j', in show_regs_log_lvl() 301 regs->sr & SR_DM ? 'M' : 'm', in show_regs_log_lvl() [all …]
|
/linux-2.6.39/arch/xtensa/variants/dc232b/include/variant/ |
D | tie.h | 94 XCHAL_SA_REG(s,1,0,0,1, acclo, 4, 4, 4,0x0210, sr,16 , 32,0,0,0) \ 95 XCHAL_SA_REG(s,1,0,0,1, acchi, 4, 4, 4,0x0211, sr,17 , 8,0,0,0) \ 96 XCHAL_SA_REG(s,0,0,0,1, m0, 4, 4, 4,0x0220, sr,32 , 32,0,0,0) \ 97 XCHAL_SA_REG(s,0,0,0,1, m1, 4, 4, 4,0x0221, sr,33 , 32,0,0,0) \ 98 XCHAL_SA_REG(s,0,0,0,1, m2, 4, 4, 4,0x0222, sr,34 , 32,0,0,0) \ 99 XCHAL_SA_REG(s,0,0,0,1, m3, 4, 4, 4,0x0223, sr,35 , 32,0,0,0) \ 100 XCHAL_SA_REG(s,0,0,0,1, scompare1, 4, 4, 4,0x020C, sr,12 , 32,0,0,0) \
|
/linux-2.6.39/arch/parisc/include/asm/ |
D | processor.h | 158 .sr = { 0, }, \ 204 regs->sr[2] = LINUX_GATEWAY_SPACE; \ 205 regs->sr[3] = 0xffff; \ 206 regs->sr[4] = spaceid; \ 207 regs->sr[5] = spaceid; \ 208 regs->sr[6] = spaceid; \ 209 regs->sr[7] = spaceid; \ 307 regs->sr[2] = LINUX_GATEWAY_SPACE; \ 308 regs->sr[3] = 0xffff; \ 309 regs->sr[4] = spaceid; \ [all …]
|
/linux-2.6.39/lib/reed_solomon/ |
D | reed_solomon.c | 70 int i, j, sr, root, iprim; in rs_init() local 104 sr = 1; in rs_init() 106 rs->index_of[sr] = i; in rs_init() 107 rs->alpha_to[i] = sr; in rs_init() 108 sr <<= 1; in rs_init() 109 if (sr & (1 << symsize)) in rs_init() 110 sr ^= gfpoly; in rs_init() 111 sr &= rs->nn; in rs_init() 114 sr = gffunc(0); in rs_init() 116 rs->index_of[sr] = i; in rs_init() [all …]
|
/linux-2.6.39/arch/xtensa/include/asm/ |
D | processor.h | 193 #define WSR(v,sr) __asm__ __volatile__ ("wsr %0,"__stringify(sr) :: "a"(v)); argument 194 #define RSR(v,sr) __asm__ __volatile__ ("rsr %0,"__stringify(sr) : "=a"(v)); argument 196 #define set_sr(x,sr) ({unsigned int v=(unsigned int)x; WSR(v,sr);}) argument 197 #define get_sr(sr) ({unsigned int v; RSR(v,sr); v; }) argument
|
/linux-2.6.39/drivers/misc/eeprom/ |
D | at25.c | 177 int sr; in at25_ee_write() local 220 sr = spi_w8r8(at25->spi, AT25_RDSR); in at25_ee_write() 221 if (sr < 0 || (sr & AT25_SR_nRDY)) { in at25_ee_write() 223 "rdsr --> %d (%02x)\n", sr, sr); in at25_ee_write() 228 if (!(sr & AT25_SR_nRDY)) in at25_ee_write() 232 if ((sr < 0) || (sr & AT25_SR_nRDY)) { in at25_ee_write() 297 int sr; in at25_probe() local 325 sr = spi_w8r8(spi, AT25_RDSR); in at25_probe() 326 if (sr < 0 || sr & AT25_SR_nRDY) { in at25_probe() 327 dev_dbg(&spi->dev, "rdsr --> %d (%02x)\n", sr, sr); in at25_probe()
|
/linux-2.6.39/drivers/i2c/busses/ |
D | i2c-iop3xx.c | 118 u32 sr = __raw_readl(iop3xx_adap->ioaddr + SR_OFFSET); in iop3xx_i2c_irq_handler() local 120 if ((sr &= iop3xx_adap->SR_enabled)) { in iop3xx_i2c_irq_handler() 121 __raw_writel(sr, iop3xx_adap->ioaddr + SR_OFFSET); in iop3xx_i2c_irq_handler() 122 iop3xx_adap->SR_received |= sr; in iop3xx_i2c_irq_handler() 130 iop3xx_i2c_error(u32 sr) in iop3xx_i2c_error() argument 134 if ((sr & IOP3XX_ISR_BERRD)) { in iop3xx_i2c_error() 137 if ((sr & IOP3XX_ISR_ALD)) { in iop3xx_i2c_error() 147 u32 sr; in iop3xx_i2c_get_srstat() local 150 sr = iop3xx_adap->SR_received; in iop3xx_i2c_get_srstat() 154 return sr; in iop3xx_i2c_get_srstat() [all …]
|
D | i2c-sh_mobile.c | 131 int sr; member 408 unsigned char sr; in sh_mobile_i2c_isr() local 411 sr = iic_rd(pd, ICSR); in sh_mobile_i2c_isr() 412 pd->sr |= sr; /* remember state */ in sh_mobile_i2c_isr() 414 dev_dbg(pd->dev, "i2c_isr 0x%02x 0x%02x %s %d %d!\n", sr, pd->sr, in sh_mobile_i2c_isr() 418 if (sr & (ICSR_AL | ICSR_TACK)) { in sh_mobile_i2c_isr() 420 iic_wr(pd, ICSR, sr & ~(ICSR_AL | ICSR_TACK)); in sh_mobile_i2c_isr() 427 if (sr & ICSR_WAIT) /* TODO: add delay here to support slow acks */ in sh_mobile_i2c_isr() 428 iic_wr(pd, ICSR, sr & ~ICSR_WAIT); in sh_mobile_i2c_isr() 431 pd->sr |= SW_DONE; in sh_mobile_i2c_isr() [all …]
|
/linux-2.6.39/arch/sh/kernel/ |
D | relocate_kernel.S | 41 stc.l sr, @-r15 47 stc sr, r8 49 ldc r8, sr 62 stc sr, r8 64 ldc r8, sr 94 stc sr, r8 96 ldc r8, sr 108 stc sr, r8 110 ldc r8, sr 123 stc sr, r8 [all …]
|
/linux-2.6.39/arch/mips/sgi-ip27/ |
D | ip27-nmi.c | 89 printk("Status: %08lx ", nr->sr); in nmi_cpu_eframe_save() 91 if (nr->sr & ST0_KX) in nmi_cpu_eframe_save() 93 if (nr->sr & ST0_SX) in nmi_cpu_eframe_save() 95 if (nr->sr & ST0_UX) in nmi_cpu_eframe_save() 98 switch (nr->sr & ST0_KSU) { in nmi_cpu_eframe_save() 113 if (nr->sr & ST0_ERL) in nmi_cpu_eframe_save() 115 if (nr->sr & ST0_EXL) in nmi_cpu_eframe_save() 117 if (nr->sr & ST0_IE) in nmi_cpu_eframe_save()
|
/linux-2.6.39/drivers/sh/intc/ |
D | handle.c | 262 struct intc_sense_reg *sr = desc->hw.sense_regs; in intc_get_sense_handle() local 265 for (i = 0; sr && enum_id && i < desc->hw.nr_sense_regs; i++) { in intc_get_sense_handle() 266 sr = desc->hw.sense_regs + i; in intc_get_sense_handle() 268 for (j = 0; j < ARRAY_SIZE(sr->enum_ids); j++) { in intc_get_sense_handle() 269 if (sr->enum_ids[j] != enum_id) in intc_get_sense_handle() 273 fn += (sr->reg_width >> 3) - 1; in intc_get_sense_handle() 275 BUG_ON((j + 1) * sr->field_width > sr->reg_width); in intc_get_sense_handle() 277 bit = sr->reg_width - ((j + 1) * sr->field_width); in intc_get_sense_handle() 279 return _INTC_MK(fn, 0, intc_get_reg(d, sr->reg), in intc_get_sense_handle() 280 0, sr->field_width, bit); in intc_get_sense_handle()
|
/linux-2.6.39/drivers/media/dvb/frontends/ |
D | tda10023.c | 169 static int tda10023_set_symbolrate (struct tda10023_state* state, u32 sr) in tda10023_set_symbolrate() argument 180 if (sr < (u32)(sysclk_x_10/984)) { in tda10023_set_symbolrate() 183 } else if (sr < (u32)(sysclk_x_10/640)) { in tda10023_set_symbolrate() 186 } else if (sr < (u32)(sysclk_x_10/492)) { in tda10023_set_symbolrate() 189 } else if (sr < (u32)(sysclk_x_10/320)) { in tda10023_set_symbolrate() 192 } else if (sr < (u32)(sysclk_x_10/246)) { in tda10023_set_symbolrate() 195 } else if (sr < (u32)(sysclk_x_10/160)) { in tda10023_set_symbolrate() 198 } else if (sr < (u32)(sysclk_x_10/123)) { in tda10023_set_symbolrate() 205 BDRI +=sr/2; in tda10023_set_symbolrate() 206 BDRI /=sr; in tda10023_set_symbolrate() [all …]
|