Home
last modified time | relevance | path

Searched refs:gp (Results 1 – 25 of 70) sorted by relevance

123

/linux-2.4.37.9/drivers/net/
Dsungem.c129 static u16 __phy_read(struct gem *gp, int reg, int phy_addr) in __phy_read() argument
139 writel(cmd, gp->regs + MIF_FRAME); in __phy_read()
142 cmd = readl(gp->regs + MIF_FRAME); in __phy_read()
155 static inline u16 phy_read(struct gem *gp, int reg) in phy_read() argument
157 return __phy_read(gp, reg, gp->mii_phy_addr); in phy_read()
160 static void __phy_write(struct gem *gp, int reg, u16 val, int phy_addr) in __phy_write() argument
171 writel(cmd, gp->regs + MIF_FRAME); in __phy_write()
174 cmd = readl(gp->regs + MIF_FRAME); in __phy_write()
182 static inline void phy_write(struct gem *gp, int reg, u16 val) in phy_write() argument
184 __phy_write(gp, reg, val, gp->mii_phy_addr); in phy_write()
[all …]
Dgt64240eth.c105 static void read_mib_counters(struct gt64240_private *gp);
117 static void update_stats(struct gt64240_private *gp);
233 struct gt64240_private *gp = (struct gt64240_private *) dev->priv; in read_MII() local
235 u32 smir = smirOpCode | (gp->phy_addr << smirPhyAdBit) | in read_MII()
278 struct gt64240_private *gp = (struct gt64240_private *) dev->priv; in gp_get_settings() local
281 spin_lock_irq(&gp->lock); in gp_get_settings()
282 rc = mii_ethtool_gset(&gp->mii_if, cmd); in gp_get_settings()
283 spin_unlock_irq(&gp->lock); in gp_get_settings()
289 struct gt64240_private *gp = (struct gt64240_private *) dev->priv; in gp_set_settings() local
292 spin_lock_irq(&gp->lock); in gp_set_settings()
[all …]
Dgt96100eth.c70 static void read_mib_counters(struct gt96100_private *gp);
86 static void update_stats(struct gt96100_private *gp);
94 static int gt96100_check_tx_consistent(struct gt96100_private *gp);
284 struct gt96100_private *gp = (struct gt96100_private *)dev->priv; in dump_tx_desc() local
285 gt96100_td_t *td = &gp->tx_ring[i]; in dump_tx_desc()
299 struct gt96100_private *gp = (struct gt96100_private *)dev->priv; in dump_rx_desc() local
300 gt96100_rd_t *rd = &gp->rx_ring[i]; in dump_rx_desc()
339 struct gt96100_private *gp = (struct gt96100_private *)dev->priv;
343 gp->tx_next_out, gp->tx_next_in, gp->tx_count);
352 struct gt96100_private *gp = (struct gt96100_private *)dev->priv;
[all …]
Dgt96100eth.h70 #define GT96100ETH_READ(gp, offset) \ argument
71 GT96100_READ((gp->port_offset + offset))
73 #define GT96100ETH_WRITE(gp, offset, data) \ argument
74 GT96100_WRITE((gp->port_offset + offset), data)
76 #define GT96100ETH_SETBIT(gp, offset, bits) {\ argument
77 u32 val = GT96100ETH_READ(gp, offset); val |= (u32)(bits); \
78 GT96100ETH_WRITE(gp, offset, val); }
80 #define GT96100ETH_CLRBIT(gp, offset, bits) {\ argument
81 u32 val = GT96100ETH_READ(gp, offset); val &= (u32)(~(bits)); \
82 GT96100ETH_WRITE(gp, offset, val); }
Dgt64240eth.h116 #define GT64240ETH_READ(gp, offset) \ argument
117 GT_READ_DATA((gp)->port_offset + (offset))
119 #define GT64240ETH_WRITE(gp, offset, data) \ argument
120 GT_WRITE((gp)->port_offset + (offset), (data))
122 #define GT64240ETH_SETBIT(gp, offset, bits) \ argument
123 GT64240ETH_WRITE((gp), (offset), GT64240ETH_READ((gp), (offset)) | (bits))
125 #define GT64240ETH_CLRBIT(gp, offset, bits) \ argument
126 GT64240ETH_WRITE((gp), (offset), GT64240ETH_READ((gp), (offset)) & ~(bits))
Dsungem.h851 #define RXDCTRL_FRESH(gp) \ argument
852 ((((RX_BUF_ALLOC_SIZE(gp) - RX_OFFSET) << 16) & RXDCTRL_BUFSZ) | \
911 #define RX_BUF_ALLOC_SIZE(gp) ((gp)->dev->mtu + 46 + RX_OFFSET + 64) argument
/linux-2.4.37.9/drivers/block/
Dgenhd.c49 add_gendisk(struct gendisk *gp) in add_gendisk() argument
63 if (sgp == gp) in add_gendisk()
70 gendisk_array[gp->major] = gp; in add_gendisk()
71 gp->next = gendisk_head; in add_gendisk()
72 gendisk_head = gp; in add_gendisk()
88 del_gendisk(struct gendisk *gp) in del_gendisk() argument
94 gendisk_array[gp->major] = NULL; in del_gendisk()
96 if (*gpp == gp) in del_gendisk()
116 struct gendisk *gp = NULL; in get_gendisk() local
121 if ((gp = gendisk_array[maj])) in get_gendisk()
[all …]
/linux-2.4.37.9/Documentation/sound/
Dvwsnd252 int get_gain_dB(int fd, const gain_desc_t *gp,
257 int mask = (1 << gp->nbits) - 1;
259 if (ioctl(fd, MIXER_READ(gp->chan), &word) != 0)
265 *left = gp->min_gain + gp->gain_step * lg;
266 *right = gp->min_gain + gp->gain_step * rg;
272 int set_gain_dB(int fd, const gain_desc_t *gp, float left, float right)
275 gp->min_gain + (1 << gp->nbits) * gp->gain_step;
276 float round = gp->gain_step / 2;
277 int mask = (1 << gp->nbits) - 1;
281 if (left < gp->min_gain || right < gp->min_gain)
[all …]
/linux-2.4.37.9/include/asm-ia64/
Dmodule.h27 const char *gp; member
36 archdata.gp = kernel_gp; in arch_init_modules()
65 if (!mod_bound(archdata->gp, 0, mod)) { in ia64_module_init()
87 (unsigned long) archdata->gp, in ia64_module_init()
/linux-2.4.37.9/arch/ia64/mm/
Dextable.c19 unsigned long ip, unsigned long gp) in search_one_table() argument
26 diff = (mid->addr + gp) - ip; in search_one_table()
69 addr, (unsigned long) archdata->gp); in search_exception_table()
71 fix.cont = entry->cont + (unsigned long) archdata->gp; in search_exception_table()
/linux-2.4.37.9/arch/alpha/kernel/
Dcore_wildfire.c188 wildfire_gp *gp; in wildfire_hardware_probe() local
229 gp = WILDFIRE_gp(soft_qbb); in wildfire_hardware_probe()
232 temp |= gp->gpa_qbb_map[i].csr << (i * 8); in wildfire_hardware_probe()
235 i, gp, temp); in wildfire_hardware_probe()
639 wildfire_gp *gp = WILDFIRE_gp(qbbno); in wildfire_dump_gp_regs() local
642 printk(KERN_ERR "GP registers for QBB %d (%p)\n", qbbno, gp); in wildfire_dump_gp_regs()
645 i, gp->gpa_qbb_map[i].csr); in wildfire_dump_gp_regs()
648 gp->gpa_mem_pop_map.csr); in wildfire_dump_gp_regs()
649 printk(KERN_ERR " GPA_SCRATCH: 0x%16lx\n", gp->gpa_scratch.csr); in wildfire_dump_gp_regs()
650 printk(KERN_ERR " GPA_DIAG: 0x%16lx\n", gp->gpa_diag.csr); in wildfire_dump_gp_regs()
[all …]
Dtraps.c86 printk("gp = %016lx sp = %p\n", regs->gp, regs+1); in dik_show_regs()
379 unsigned long ps, pc, gp, a0, a1, a2; member
571 if ((fixup = search_exception_table(pc, regs.gp)) != 0) { in do_entUna()
612 printk("gp = %016lx sp = %p\n", regs.gp, &regs+1); in do_entUna()
703 R(r27), R(r28), R(gp),
/linux-2.4.37.9/arch/ia64/kernel/
Defi_stub.S52 mov loc2=gp // save global pointer
56 ld8 gp=[in0] // load EFI function's global pointer
80 mov gp=loc2
/linux-2.4.37.9/arch/alpha/mm/
Dextable.c37 register unsigned long gp __asm__("$29");
47 addr - gp); in search_exception_table_without_gp()
60 mp->ex_table_end - 1, addr - mp->gp); in search_exception_table_without_gp()
/linux-2.4.37.9/include/asm-alpha/
Dmodule.h15 if (!mod_bound(mod->gp - 0x8000, 0, mod)) { in alpha_module_init()
25 __asm__("stq $29,%0" : "=m" (mod->gp)); in alpha_init_modules()
Dregdef.h40 #define gp $29 /* global pointer */ macro
/linux-2.4.37.9/arch/mips/sibyte/cfe/
Dsmp.c30 int prom_boot_secondary(int cpu, unsigned long sp, unsigned long gp) in prom_boot_secondary() argument
34 retval = cfe_cpu_start(cpu, smp_bootstrap, sp, gp, 0); in prom_boot_secondary()
/linux-2.4.37.9/drivers/atm/
Didt77252.c356 u32 gp; in idt77252_read_gp() local
358 gp = readl(SAR_REG_GP); in idt77252_read_gp()
360 printk("RD: %s\n", gp & SAR_GP_EEDI ? "1" : "0"); in idt77252_read_gp()
362 return gp; in idt77252_read_gp()
386 u32 gp; in idt77252_eeprom_read_status() local
389 gp = idt77252_read_gp(card) & ~(SAR_GP_EESCLK|SAR_GP_EECS|SAR_GP_EEDO); in idt77252_eeprom_read_status()
392 idt77252_write_gp(card, gp | rdsrtab[i]); in idt77252_eeprom_read_status()
395 idt77252_write_gp(card, gp | SAR_GP_EECS); in idt77252_eeprom_read_status()
402 idt77252_write_gp(card, gp | clktab[j++]); in idt77252_eeprom_read_status()
407 idt77252_write_gp(card, gp | clktab[j++]); in idt77252_eeprom_read_status()
[all …]
/linux-2.4.37.9/arch/ia64/sn/fakeprom/
Dfw-emu.c107 unsigned long gp; member
270 fp->gp = in3; in sal_emulator()
367 _fp->gp = __fwtab_pa(base_nasid, _fp->gp); in fix_function_pointer()
379 fp->gp = fp->gp | PAGE_OFFSET; in fix_virt_function_pointer()
698 sal_ed->gp = __fwtab_pa(base_nasid, sal_desc[1]); in sys_fw_init()
/linux-2.4.37.9/arch/ia64/sn/io/sn2/ioc4/
Dsio_ioc4.c523 sioport_t *gp = GPORT(port); in ioc4_serial_intr() local
530 ASSERT(sio_port_islocked(gp) == 0); in ioc4_serial_intr()
549 SIO_LOCK_PORT(gp, flags); in ioc4_serial_intr()
572 UP_DDCD(gp, 1); in ioc4_serial_intr()
591 UP_DCTS(gp, 1); in ioc4_serial_intr()
593 UP_DCTS(gp, 0); in ioc4_serial_intr()
609 UP_DATA_READY(gp); in ioc4_serial_intr()
620 UP_DATA_READY(gp); in ioc4_serial_intr()
661 UP_OUTPUT_LOWAT(gp); in ioc4_serial_intr()
682 UP_OUTPUT_LOWAT(gp); in ioc4_serial_intr()
[all …]
/linux-2.4.37.9/arch/mips/dec/prom/
Dcall_o32.S44 REG_S gp,O32_FRAMESZ-3*SZREG(sp)
85 REG_L gp,O32_FRAMESZ-3*SZREG(sp)
/linux-2.4.37.9/include/linux/mtd/
Dcompatmac.h450 static inline void add_gendisk(struct gendisk *gp) in add_gendisk() argument
452 gp->next = gendisk_head; in add_gendisk()
453 gendisk_head = gp; in add_gendisk()
456 static inline void del_gendisk(struct gendisk *gp) in del_gendisk() argument
461 if (*gdp == gp) { in del_gendisk()
/linux-2.4.37.9/drivers/video/
Dsbusfb.c601 char *rp, *gp, *bp; in sbusfb_ioctl() local
618 __get_user(gp, &cmap->green) || in sbusfb_ioctl()
623 if (verify_area (VERIFY_WRITE, gp, count)) in sbusfb_ioctl()
630 __put_user(fb->color_map CM(i,1), gp) || in sbusfb_ioctl()
633 rp++; gp++; bp++; in sbusfb_ioctl()
639 char *rp, *gp, *bp; in sbusfb_ioctl() local
656 __get_user(gp, &cmap->green) || in sbusfb_ioctl()
661 if (verify_area (VERIFY_READ, gp, count)) in sbusfb_ioctl()
670 if (__get_user(fb->color_map CM(i,1), gp)) in sbusfb_ioctl()
674 rp++; gp++; bp++; in sbusfb_ioctl()
/linux-2.4.37.9/include/asm-mips/
Dregdef.h46 #define gp $28 /* global pointer */ macro
/linux-2.4.37.9/include/asm-mips64/
Dregdef.h46 #define gp $28 /* global pointer - caller saved for PIC */ macro

123