Searched defs:loc (Results 1 - 25 of 31) sorted by relevance

12

/drivers/infiniband/hw/mthca/
H A Dmthca_mcg.c221 int i, loc; local
241 for (loc = -1, i = 0; i < MTHCA_QP_PER_MGM; ++i) {
243 loc = i;
248 if (loc == -1) {
254 mgm->qp[loc] = mgm->qp[i - 1];
/drivers/input/mouse/
H A Dtrackpoint.c25 static int trackpoint_read(struct ps2dev *ps2dev, unsigned char loc, unsigned char *results) argument
28 ps2_command(ps2dev, results, MAKE_PS2_CMD(0, 1, loc))) {
35 static int trackpoint_write(struct ps2dev *ps2dev, unsigned char loc, unsigned char val) argument
39 ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, loc)) ||
47 static int trackpoint_toggle_bit(struct ps2dev *ps2dev, unsigned char loc, unsigned char mask) argument
49 /* Bad things will happen if the loc param isn't in this range */
50 if (loc < 0x20 || loc >= 0x2F)
55 ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, loc)) ||
/drivers/macintosh/
H A Dwindfarm_lm75_sensor.c119 const char *loc)
132 if (!strcmp(loc, "Hard drive") || !strcmp(loc, "DRIVE BAY"))
134 else if (!strcmp(loc, "Incoming Air Temp"))
136 else if (!strcmp(loc, "ODD Temp"))
138 else if (!strcmp(loc, "HD Temp"))
182 const char *loc = local
192 if (loc == NULL || addr == 0)
196 wf_lm75_create(adapter, addr, 0, loc);
199 wf_lm75_create(adapter, addr, 1, loc);
117 wf_lm75_create(struct i2c_adapter *adapter, u8 addr, int ds1775, const char *loc) argument
[all...]
H A Dwindfarm_max6690_sensor.c93 u8 addr, const char *loc)
99 if (!strcmp(loc, "BACKSIDE"))
101 else if (!strcmp(loc, "NB Ambient"))
103 else if (!strcmp(loc, "GPU Ambient"))
134 const char *loc; local
152 loc = of_get_property(dev, "hwsensor-location", NULL);
153 if (loc == NULL || addr == 0)
155 printk("found max6690, loc=%s addr=0x%02x\n", loc, addr);
156 wf_max6690_create(adapter, addr, loc);
92 wf_max6690_create(struct i2c_adapter *adapter, u8 addr, const char *loc) argument
[all...]
H A Dwindfarm_smu_sat.c237 const char *loc, *type; local
260 loc = of_get_property(child, "location", NULL);
261 if (reg == NULL || loc == NULL)
270 if (strncmp(loc, "CPU ", 4) != 0)
272 chip = loc[4] - 'A';
273 core = loc[5] - '0';
276 "location %s for %s\n", loc, child->full_name);
284 "multiple CPU chips on one SAT (%s)\n", loc);
H A Dtherm_pm72.c193 char* loc; /* location code */ member in struct:fcu_fan_table
207 .loc = "BACKSIDE,SYS CTRLR FAN",
212 .loc = "DRIVE BAY",
217 .loc = "SLOT,PCI FAN",
222 .loc = "CPU A INTAKE",
227 .loc = "CPU A EXHAUST",
232 .loc = "CPU B INTAKE",
237 .loc = "CPU B EXHAUST",
245 .loc = "CPU A PUMP",
250 .loc
2116 fan_check_loc_match(const char *loc, int fan) argument
2152 const char *loc; local
[all...]
/drivers/mtd/devices/
H A Ddocecc.c195 gf root[NN-KK], reg[NN-KK + 1], loc[NN-KK]; local
265 loc[count] = k;
276 printf("%d ", loc[i]);
354 loc[count] = k;
422 eras_pos[i] = loc[i];
/drivers/rtc/
H A Drtc-pcf8583.c24 unsigned int loc; member in struct:rtc_mem
151 if (mem->loc < 8)
154 addr[0] = mem->loc;
164 if (mem->loc < 8 || mem->nr > 8)
167 buf[0] = mem->loc;
/drivers/char/
H A Dapplicom.c130 static int ac_register_board(unsigned long physloc, void __iomem *loc, argument
135 if((readb(loc + CONF_END_TEST) != 0x00) ||
136 (readb(loc + CONF_END_TEST + 1) != 0x55) ||
137 (readb(loc + CONF_END_TEST + 2) != 0xAA) ||
138 (readb(loc + CONF_END_TEST + 3) != 0xFF))
142 boardno = readb(loc + NUMCARD_OWNER_TO_PC);
159 apbs[boardno].RamIO = loc;
162 byte_reset_it = readb(loc + RAM_IT_TO_PC);
/drivers/net/ethernet/mellanox/mlx4/
H A Dmcg.c466 int loc, i; local
520 for (loc = -1, i = 0; i < members_count; ++i)
522 loc = i;
526 mgm->qp[loc] = mgm->qp[i - 1];
736 int i, loc; local
765 for (loc = -1, i = 0; i < members_count; ++i)
767 loc = i;
769 if (loc == -1) {
777 mgm->qp[loc] = mgm->qp[i - 1];
/drivers/ssb/
H A Dpci.c334 u16 loc[3]; local
337 loc[0] = SSB_SPROM3_IL0MAC;
339 loc[0] = SSB_SPROM1_IL0MAC;
340 loc[1] = SSB_SPROM1_ET0MAC;
341 loc[2] = SSB_SPROM1_ET1MAC;
344 v = in[SPOFF(loc[0]) + i];
349 v = in[SPOFF(loc[1]) + i];
353 v = in[SPOFF(loc[2]) + i];
/drivers/isdn/isdnloop/
H A Disdnloop.c540 * loc = location: 0 = local, 1 = remote.
546 isdnloop_unicause(isdnloop_card *card, int loc, int cau) argument
552 sprintf(buf, "E%02X%02X", (loc) ? 4 : 2, ctable_eu[cau]);
/drivers/net/usb/
H A Ddm9601.c301 static int dm9601_mdio_read(struct net_device *netdev, int phy_id, int loc) argument
312 dm_read_shared_word(dev, 1, loc, &res);
315 "dm9601_mdio_read() phy_id=0x%02x, loc=0x%02x, returns=0x%04x\n",
316 phy_id, loc, le16_to_cpu(res));
321 static void dm9601_mdio_write(struct net_device *netdev, int phy_id, int loc, argument
332 netdev_dbg(dev->net, "dm9601_mdio_write() phy_id=0x%02x, loc=0x%02x, val=0x%04x\n",
333 phy_id, loc, val);
335 dm_write_shared_word(dev, 1, loc, res);
H A Dpegasus.c360 static int mdio_read(struct net_device *dev, int phy_id, int loc) argument
365 read_mii_word(pegasus, phy_id, loc, &res);
398 static void mdio_write(struct net_device *dev, int phy_id, int loc, int val) argument
402 write_mii_word(pegasus, phy_id, loc, val);
H A Dasix.c570 static int asix_mdio_read(struct net_device *netdev, int phy_id, int loc) argument
578 (__u16)loc, 2, &res);
582 netdev_dbg(dev->net, "asix_mdio_read() phy_id=0x%02x, loc=0x%02x, returns=0x%04x\n",
583 phy_id, loc, le16_to_cpu(res));
589 asix_mdio_write(struct net_device *netdev, int phy_id, int loc, int val) argument
594 netdev_dbg(dev->net, "asix_mdio_write() phy_id=0x%02x, loc=0x%02x, val=0x%04x\n",
595 phy_id, loc, val);
598 asix_write_cmd(dev, AX_CMD_WRITE_MII_REG, phy_id, (__u16)loc, 2, &res);
/drivers/scsi/ibmvscsi/
H A Dviosrp.h189 char loc[SRP_MAX_LOC_LEN]; member in struct:capabilities
/drivers/staging/bcm/
H A DMisc.c3 static int BcmFileDownload(PMINI_ADAPTER Adapter, const char *path, unsigned int loc);
182 static int BcmFileDownload(PMINI_ADAPTER Adapter, const char *path, unsigned int loc) argument
195 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_INITEXIT, MP_INIT, DBG_LVL_ALL, "Opened file is = %s and length =0x%lx to be downloaded at =0x%x", path, (unsigned long)flp->f_dentry->d_inode->i_size, loc);
199 if (Adapter->bcm_file_download(Adapter->pvInterfaceAdapter, flp, loc)) {
208 if (Adapter->bcm_file_readback_from_chip(Adapter->pvInterfaceAdapter, flp, loc)) {
/drivers/isdn/act2000/
H A Dcapi.h65 unsigned loc:4; /* location */ member in struct:actcapi_infoel::cause
100 __u16 loc; member in struct:actcapi_ncpd
/drivers/net/ethernet/8390/
H A Daxnet_cs.c92 static int mdio_read(unsigned int addr, int phy_id, int loc);
93 static void mdio_write(unsigned int addr, int phy_id, int loc, int value);
428 static int mdio_read(unsigned int addr, int phy_id, int loc) argument
430 u_int cmd = (0xf6<<10)|(phy_id<<5)|loc;
447 static void mdio_write(unsigned int addr, int phy_id, int loc, int value) argument
449 u_int cmd = (0x05<<28)|(phy_id<<23)|(loc<<18)|(1<<17)|value;
H A Dpcnet_cs.c704 static int mdio_read(unsigned int addr, int phy_id, int loc) argument
706 u_int cmd = (0x06<<10)|(phy_id<<5)|loc;
723 static void mdio_write(unsigned int addr, int phy_id, int loc, int value) argument
725 u_int cmd = (0x05<<28)|(phy_id<<23)|(loc<<18)|(1<<17)|value;
/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c1624 static int gfar_del_cls(struct gfar_private *priv, u32 loc) argument
1633 if (comp->fs.location == loc) {
/drivers/net/wan/
H A Dcycx_x25.c855 loc[24], local
866 loc[0] = rem[0] = '\0';
869 nibble_to_byte(d, loc, sizeloc, 0);
875 __func__, lcn, loc, rem);
/drivers/staging/iio/adc/
H A Dmax1363_core.c605 unsigned long mask, loc; local
612 for_each_set_bit(loc, &mask, 8)
613 iio_push_event(indio_dev, max1363_event_codes[loc], timestamp);
/drivers/infiniband/hw/qib/
H A Dqib_sd7220.c98 static int qib_sd7220_reg_mod(struct qib_devdata *dd, int sdnum, u32 loc,
100 static int ibsd_mod_allchnls(struct qib_devdata *dd, int loc, int val,
178 u32 loc; local
183 loc = IB_PGUDP(chn);
184 ret = qib_sd7220_reg_mod(dd, IB_7220_SERDES, loc, 0, 0);
192 ret = qib_sd7220_reg_mod(dd, IB_7220_SERDES, loc, pat, 0xFF);
197 ret = qib_sd7220_reg_mod(dd, IB_7220_SERDES, loc, 0, 0);
206 loc = IB_CMUDONE(chn);
207 ret = qib_sd7220_reg_mod(dd, IB_7220_SERDES, loc, 0, 0);
642 * @loc
651 qib_sd7220_reg_mod(struct qib_devdata *dd, int sdnum, u32 loc, u32 wd, u32 mask) argument
741 qib_sd7220_ram_xfer(struct qib_devdata *dd, int sdnum, u32 loc, u8 *buf, int cnt, int rd_notwr) argument
1126 ibsd_mod_allchnls(struct qib_devdata *dd, int loc, int val, int mask) argument
1221 int elt, reg, val, loc; local
1282 int loc = CMUCTRL5 | (1U << EPB_IB_QUAD0_CS_SHF); local
1347 int loc = RXLSPPM(0) | EPB_GLOBAL_WR; local
[all...]
/drivers/net/ethernet/smsc/
H A Depic100.c295 static void mdio_write(struct net_device *dev, int phy_id, int loc, int val);
642 static void mdio_write(struct net_device *dev, int phy_id, int loc, int value) argument
648 outl((phy_id << 9) | (loc << 4) | MII_WRITEOP, ioaddr + MIICtrl);

Completed in 740 milliseconds

12