Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/sun/
Dsungem.c116 static u16 __sungem_phy_read(struct gem *gp, int phy_addr, int reg) in __sungem_phy_read() argument
126 writel(cmd, gp->regs + MIF_FRAME); in __sungem_phy_read()
129 cmd = readl(gp->regs + MIF_FRAME); in __sungem_phy_read()
144 struct gem *gp = netdev_priv(dev); in _sungem_phy_read() local
145 return __sungem_phy_read(gp, mii_id, reg); in _sungem_phy_read()
148 static inline u16 sungem_phy_read(struct gem *gp, int reg) in sungem_phy_read() argument
150 return __sungem_phy_read(gp, gp->mii_phy_addr, reg); in sungem_phy_read()
153 static void __sungem_phy_write(struct gem *gp, int phy_addr, int reg, u16 val) in __sungem_phy_write() argument
164 writel(cmd, gp->regs + MIF_FRAME); in __sungem_phy_write()
167 cmd = readl(gp->regs + MIF_FRAME); in __sungem_phy_write()
[all …]
Dsungem.h879 #define RXDCTRL_FRESH(gp) \ argument
880 ((((RX_BUF_ALLOC_SIZE(gp) - RX_OFFSET) << 16) & RXDCTRL_BUFSZ) | \
939 #define RX_BUF_ALLOC_SIZE(gp) ((gp)->rx_buf_sz + 28 + RX_OFFSET + 64) argument
1025 #define found_mii_phy(gp) ((gp->phy_type == phy_mii_mdio0 || gp->phy_type == phy_mii_mdio1) && \ argument
1026 gp->phy_mii.def && gp->phy_mii.def->ops)
/drivers/video/fbdev/
Dsunxvr1000.c29 static int gfb_get_props(struct gfb_info *gp) in gfb_get_props() argument
31 gp->width = of_getintprop_default(gp->of_node, "width", 0); in gfb_get_props()
32 gp->height = of_getintprop_default(gp->of_node, "height", 0); in gfb_get_props()
33 gp->depth = of_getintprop_default(gp->of_node, "depth", 32); in gfb_get_props()
35 if (!gp->width || !gp->height) { in gfb_get_props()
37 gp->of_node); in gfb_get_props()
70 static int gfb_set_fbinfo(struct gfb_info *gp) in gfb_set_fbinfo() argument
72 struct fb_info *info = gp->info; in gfb_set_fbinfo()
77 info->screen_base = gp->fb_base; in gfb_set_fbinfo()
78 info->screen_size = gp->fb_size; in gfb_set_fbinfo()
[all …]
/drivers/net/wireless/ti/wl12xx/
Dcmd.c52 struct wl1271_ini_general_params *gp = in wl1271_cmd_general_parms() local
61 if (gp->tx_bip_fem_manufacturer >= WL1271_INI_FEM_MODULE_COUNT) { in wl1271_cmd_general_parms()
72 memcpy(&gen_parms->general_params, gp, sizeof(*gp)); in wl1271_cmd_general_parms()
90 gp->tx_bip_fem_manufacturer = in wl1271_cmd_general_parms()
93 if (gp->tx_bip_fem_manufacturer >= WL1271_INI_FEM_MODULE_COUNT) { in wl1271_cmd_general_parms()
101 wl->fem_manuf = gp->tx_bip_fem_manufacturer; in wl1271_cmd_general_parms()
109 gp->tx_bip_fem_manufacturer); in wl1271_cmd_general_parms()
119 struct wl128x_ini_general_params *gp = in wl128x_cmd_general_parms() local
128 if (gp->tx_bip_fem_manufacturer >= WL1271_INI_FEM_MODULE_COUNT) { in wl128x_cmd_general_parms()
139 memcpy(&gen_parms->general_params, gp, sizeof(*gp)); in wl128x_cmd_general_parms()
[all …]
/drivers/gpio/
Dgpio-amd8111.c158 static struct amd_gpio gp = { variable
197 err = pci_read_config_dword(pdev, 0x58, &gp.pmbase); in amd_gpio_init()
201 gp.pmbase &= 0x0000FF00; in amd_gpio_init()
202 if (gp.pmbase == 0) in amd_gpio_init()
204 if (!devm_request_region(&pdev->dev, gp.pmbase + PMBASE_OFFSET, in amd_gpio_init()
207 gp.pmbase + PMBASE_OFFSET); in amd_gpio_init()
211 gp.pm = ioport_map(gp.pmbase + PMBASE_OFFSET, PMBASE_SIZE); in amd_gpio_init()
212 if (!gp.pm) { in amd_gpio_init()
217 gp.pdev = pdev; in amd_gpio_init()
218 gp.chip.parent = &pdev->dev; in amd_gpio_init()
[all …]
Dgpio-altera-a10sr.c21 struct gpio_chip gp; member
90 gpio->gp = altr_a10sr_gc; in altr_a10sr_gpio_probe()
91 gpio->gp.parent = pdev->dev.parent; in altr_a10sr_gpio_probe()
92 gpio->gp.fwnode = dev_fwnode(&pdev->dev); in altr_a10sr_gpio_probe()
94 return devm_gpiochip_add_data(&pdev->dev, &gpio->gp, gpio); in altr_a10sr_gpio_probe()
Dgpio-da9055.c30 struct gpio_chip gp; member
144 gpio->gp = reference_gp; in da9055_gpio_probe()
146 gpio->gp.base = pdata->gpio_base; in da9055_gpio_probe()
148 return devm_gpiochip_add_data(&pdev->dev, &gpio->gp, gpio); in da9055_gpio_probe()
Dgpio-da9052.c46 struct gpio_chip gp; member
207 gpio->gp = reference_gp; in da9052_gpio_probe()
209 gpio->gp.base = pdata->gpio_base; in da9052_gpio_probe()
211 return devm_gpiochip_add_data(&pdev->dev, &gpio->gp, gpio); in da9052_gpio_probe()
/drivers/input/gameport/
Dfm801-gp.c67 struct fm801_gp *gp; in fm801_gp_probe() local
71 gp = kzalloc(sizeof(struct fm801_gp), GFP_KERNEL); in fm801_gp_probe()
73 if (!gp || !port) { in fm801_gp_probe()
92 gp->gameport = port; in fm801_gp_probe()
93 gp->res_port = request_region(port->io, 0x10, "FM801 GP"); in fm801_gp_probe()
94 if (!gp->res_port) { in fm801_gp_probe()
101 pci_set_drvdata(pci, gp); in fm801_gp_probe()
112 kfree(gp); in fm801_gp_probe()
118 struct fm801_gp *gp = pci_get_drvdata(pci); in fm801_gp_remove() local
120 gameport_unregister_port(gp->gameport); in fm801_gp_remove()
[all …]
DMakefile9 obj-$(CONFIG_GAMEPORT_EMU10K1) += emu10k1-gp.o
10 obj-$(CONFIG_GAMEPORT_FM801) += fm801-gp.o
DKconfig52 module will be called emu10k1-gp.
63 module will be called fm801-gp.
/drivers/net/wireless/intel/iwlwifi/
Diwl-eeprom-read.c70 u32 gp = iwl_read32(trans, CSR_EEPROM_GP) & CSR_EEPROM_GP_VALID_MSK; in iwl_eeprom_verify_signature() local
72 IWL_DEBUG_EEPROM(trans->dev, "EEPROM signature=0x%08x\n", gp); in iwl_eeprom_verify_signature()
74 switch (gp) { in iwl_eeprom_verify_signature()
78 gp); in iwl_eeprom_verify_signature()
85 IWL_ERR(trans, "OTP with bad signature: 0x%08x\n", gp); in iwl_eeprom_verify_signature()
93 nvm_is_otp ? "OTP" : "EEPROM", gp); in iwl_eeprom_verify_signature()
291 u32 gp = iwl_read32(trans, CSR_EEPROM_GP); in iwl_read_eeprom() local
315 IWL_ERR(trans, "EEPROM not found, EEPROM_GP=0x%08x\n", gp); in iwl_read_eeprom()
/drivers/macintosh/
Dwindfarm_pm121.c355 s32 gp, itarget; member
365 .gp = 0x002A6666,
371 .gp = 0x0010CCCC,
380 .gp = 0x002D70A3,
386 .gp = 0x002170A3,
395 .gp = 0x003BD70A,
401 .gp = 0x0030F5C2,
410 .gp = 0x001FAE14,
416 .gp = 0x001FAE14,
544 pid_param.gp = param->gp; in pm121_create_sys_fans()
[all …]
Dwindfarm_pm81.c166 s32 gd, gp, gr; member
199 .gp = 0x00200000,
211 .gp = 0x00566666,
223 .gp = 0x00233333,
301 pid_param.gp = param->gp; in wf_smu_create_sys_fans()
440 pid_param.gp = piddata->gp; in wf_smu_create_cpu_fans()
Dwindfarm_pid.h29 s32 gd, gp, gr; /* PID gains */ member
62 s32 gd, gp, gr; /* PID gains */ member
Dwindfarm_pm112.c170 pid.gp = piddata->gp; in create_cpu_loop()
351 .gp = 5 << 20,
401 .gp = 5 << 20,
452 .gp = 0,
Dwindfarm_pm91.c186 pid_param.gp = piddata->gp; in wf_smu_create_cpu_fans()
297 .gp = 0x00500000, in wf_smu_create_drive_fans()
378 .gp = 0x00000000, in wf_smu_create_slots_fans()
/drivers/usb/renesas_usbhs/
Dmod_gadget.c94 #define usbhsg_gpriv_to_dev(gp) usbhs_priv_to_dev((gp)->mod.priv) argument
95 #define usbhsg_gpriv_to_priv(gp) ((gp)->mod.priv) argument
96 #define usbhsg_gpriv_to_dcp(gp) ((gp)->uep) argument
97 #define usbhsg_gpriv_to_nth_uep(gp, i) ((gp)->uep + i) argument
107 #define usbhsg_is_not_connected(gp) ((gp)->gadget.speed == USB_SPEED_UNKNOWN) argument
110 #define usbhsg_status_init(gp) do {(gp)->status = 0; } while (0) argument
111 #define usbhsg_status_set(gp, b) (gp->status |= b) argument
112 #define usbhsg_status_clr(gp, b) (gp->status &= ~b) argument
113 #define usbhsg_status_has(gp, b) (gp->status & b) argument
/drivers/char/agp/
Duninorth-agp.c153 u32 *gp; in uninorth_insert_memory() local
174 gp = (u32 *) &agp_bridge->gatt_table[pg_start]; in uninorth_insert_memory()
176 if (gp[i] != scratch_value) { in uninorth_insert_memory()
179 i, gp[i]); in uninorth_insert_memory()
186 gp[i] = (page_to_phys(mem->pages[i]) >> PAGE_SHIFT) | 0x80000000UL; in uninorth_insert_memory()
188 gp[i] = cpu_to_le32((page_to_phys(mem->pages[i]) & 0xFFFFF000UL) | in uninorth_insert_memory()
202 u32 *gp; in uninorth_remove_memory() local
217 gp = (u32 *) &agp_bridge->gatt_table[pg_start]; in uninorth_remove_memory()
219 gp[i] = scratch_value; in uninorth_remove_memory()
/drivers/atm/
Didt77252.c352 u32 gp; in idt77252_read_gp() local
354 gp = readl(SAR_REG_GP); in idt77252_read_gp()
356 printk("RD: %s\n", gp & SAR_GP_EEDI ? "1" : "0"); in idt77252_read_gp()
358 return gp; in idt77252_read_gp()
382 u32 gp; in idt77252_eeprom_read_status() local
385 gp = idt77252_read_gp(card) & ~(SAR_GP_EESCLK|SAR_GP_EECS|SAR_GP_EEDO); in idt77252_eeprom_read_status()
388 idt77252_write_gp(card, gp | rdsrtab[i]); in idt77252_eeprom_read_status()
391 idt77252_write_gp(card, gp | SAR_GP_EECS); in idt77252_eeprom_read_status()
398 idt77252_write_gp(card, gp | clktab[j++]); in idt77252_eeprom_read_status()
403 idt77252_write_gp(card, gp | clktab[j++]); in idt77252_eeprom_read_status()
[all …]
/drivers/net/wireless/realtek/rtw89/
Drtw8852c_rfk.c756 u8 gp; in _rxk_group_sel() local
788 for (gp = 0; gp < RXK_GROUP_NR; gp++) { in _rxk_group_sel()
793 _rxk_g_idxrxgain[gp]); in _rxk_group_sel()
795 _rxk_g_idxattc2[gp]); in _rxk_group_sel()
799 _rxk_a_idxrxgain[gp]); in _rxk_group_sel()
801 _rxk_a_idxattc2[gp]); in _rxk_group_sel()
805 _rxk_a6_idxrxgain[gp]); in _rxk_group_sel()
807 _rxk_a6_idxattc2[gp]); in _rxk_group_sel()
815 B_CFIR_LUT_GP_V1, gp); in _rxk_group_sel()
841 u8 gp = 0x2; in _iqk_nbrxk() local
[all …]
/drivers/video/fbdev/geode/
Dsuspend_gx.c30 memcpy(par->gp, par->gp_regs, sizeof(par->gp)); in gx_save_regs()
68 for (i = 0; i < ARRAY_SIZE(par->gp); i++) { in gx_restore_gfx_proc()
77 write_gp(par, i, par->gp[i]); in gx_restore_gfx_proc()
Dlxfb_ops.c602 memcpy(par->gp, par->gp_regs, sizeof(par->gp)); in lx_save_regs()
641 write_gp(par, GP_RASTER_MODE, par->gp[GP_RASTER_MODE]); in lx_restore_gfx_proc()
643 for (i = 0; i < ARRAY_SIZE(par->gp); i++) { in lx_restore_gfx_proc()
657 write_gp(par, i, par->gp[i]); in lx_restore_gfx_proc()
/drivers/media/usb/pvrusb2/
Dpvrusb2-std.c176 const struct std_name *ip,*gp; in pvr2_std_id_to_str() local
182 gp = std_groups + idx1; in pvr2_std_id_to_str()
186 if (!(gp->id & ip->id & id)) continue; in pvr2_std_id_to_str()
196 "%s-",gp->name); in pvr2_std_id_to_str()
/drivers/soc/bcm/brcmstb/pm/
Ds3-mips.S35 sw gp, 36(t0)
118 lw gp, 36(t0)

12