Home
last modified time | relevance | path

Searched refs:loc (Results 1 – 25 of 78) sorted by relevance

1234

/drivers/macintosh/
Dwindfarm_lm75_sensor.c95 const char *name, *loc; in wf_lm75_probe() local
100 loc = of_get_property(client->dev.of_node, "hwsensor-location", NULL); in wf_lm75_probe()
101 if (!loc) { in wf_lm75_probe()
110 if (!strcmp(loc, "Hard drive") || !strcmp(loc, "DRIVE BAY")) in wf_lm75_probe()
112 else if (!strcmp(loc, "Incoming Air Temp")) in wf_lm75_probe()
114 else if (!strcmp(loc, "ODD Temp")) in wf_lm75_probe()
116 else if (!strcmp(loc, "HD Temp")) in wf_lm75_probe()
118 else if (!strcmp(loc, "PCI SLOTS")) in wf_lm75_probe()
120 else if (!strcmp(loc, "CPU A INLET")) in wf_lm75_probe()
122 else if (!strcmp(loc, "CPU B INLET")) in wf_lm75_probe()
Dwindfarm_max6690_sensor.c66 const char *name, *loc; in wf_max6690_probe() local
70 loc = of_get_property(client->dev.of_node, "hwsensor-location", NULL); in wf_max6690_probe()
71 if (!loc) { in wf_max6690_probe()
80 if (!strcmp(loc, "BACKSIDE") || !strcmp(loc, "SYS CTRLR AMBIENT")) in wf_max6690_probe()
82 else if (!strcmp(loc, "NB Ambient")) in wf_max6690_probe()
84 else if (!strcmp(loc, "GPU Ambient")) in wf_max6690_probe()
Dwindfarm_lm87_sensor.c102 const char *name = NULL, *loc; in wf_lm87_probe() local
114 loc = of_get_property(np, "location", NULL); in wf_lm87_probe()
115 if (!loc) in wf_lm87_probe()
117 if (strstr(loc, "DIMM")) in wf_lm87_probe()
119 else if (strstr(loc, "Processors")) in wf_lm87_probe()
Dwindfarm_smu_sat.c199 const char *loc; in wf_sat_probe() local
222 loc = of_get_property(child, "location", NULL); in wf_sat_probe()
223 if (reg == NULL || loc == NULL) in wf_sat_probe()
232 if (strncmp(loc, "CPU ", 4) != 0) in wf_sat_probe()
234 chip = loc[4] - 'A'; in wf_sat_probe()
235 core = loc[5] - '0'; in wf_sat_probe()
238 "location %s for %pOF\n", loc, child); in wf_sat_probe()
246 "multiple CPU chips on one SAT (%s)\n", loc); in wf_sat_probe()
Dwindfarm_ad7417_sensor.c237 const char *loc; in wf_ad7417_probe() local
240 loc = of_get_property(client->dev.of_node, "hwsensor-location", NULL); in wf_ad7417_probe()
241 if (!loc) { in wf_ad7417_probe()
250 if (!strncmp(loc, "CPU A", 5)) in wf_ad7417_probe()
252 else if (!strncmp(loc, "CPU B", 5)) in wf_ad7417_probe()
255 pr_err("wf_ad7417: Can't identify location %s\n", loc); in wf_ad7417_probe()
/drivers/acpi/hmat/
Dhmat.c227 struct memory_locality *loc; in hmat_add_locality() local
229 loc = kzalloc(sizeof(*loc), GFP_KERNEL); in hmat_add_locality()
230 if (!loc) { in hmat_add_locality()
235 loc->hmat_loc = hmat_loc; in hmat_add_locality()
236 list_add_tail(&loc->node, &localities); in hmat_add_locality()
240 localities_types[READ_LATENCY] = loc; in hmat_add_locality()
241 localities_types[WRITE_LATENCY] = loc; in hmat_add_locality()
244 localities_types[READ_LATENCY] = loc; in hmat_add_locality()
247 localities_types[WRITE_LATENCY] = loc; in hmat_add_locality()
250 localities_types[READ_BANDWIDTH] = loc; in hmat_add_locality()
[all …]
/drivers/infiniband/hw/qib/
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; in qib_resync_ibepb() local
183 loc = IB_PGUDP(chn); in qib_resync_ibepb()
184 ret = qib_sd7220_reg_mod(dd, IB_7220_SERDES, loc, 0, 0); in qib_resync_ibepb()
192 ret = qib_sd7220_reg_mod(dd, IB_7220_SERDES, loc, pat, 0xFF); in qib_resync_ibepb()
197 ret = qib_sd7220_reg_mod(dd, IB_7220_SERDES, loc, 0, 0); in qib_resync_ibepb()
206 loc = IB_CMUDONE(chn); in qib_resync_ibepb()
207 ret = qib_sd7220_reg_mod(dd, IB_7220_SERDES, loc, 0, 0); in qib_resync_ibepb()
656 static int qib_sd7220_reg_mod(struct qib_devdata *dd, int sdnum, u32 loc, in qib_sd7220_reg_mod() argument
[all …]
/drivers/staging/exfat/
Dexfat_cache.c196 static int __FAT_read(struct super_block *sb, u32 loc, u32 *content) in __FAT_read() argument
207 ((loc + (loc >> 1)) >> p_bd->sector_size_bits); in __FAT_read()
208 off = (loc + (loc >> 1)) & p_bd->sector_size_mask; in __FAT_read()
231 if (loc & 1) in __FAT_read()
244 (loc >> (p_bd->sector_size_bits - 1)); in __FAT_read()
245 off = (loc << 1) & p_bd->sector_size_mask; in __FAT_read()
265 (loc >> (p_bd->sector_size_bits - 2)); in __FAT_read()
266 off = (loc << 2) & p_bd->sector_size_mask; in __FAT_read()
286 (loc >> (p_bd->sector_size_bits - 2)); in __FAT_read()
287 off = (loc << 2) & p_bd->sector_size_mask; in __FAT_read()
[all …]
/drivers/rtc/
Drtc-pcf8583.c22 unsigned int loc; member
149 if (mem->loc < 8) in pcf8583_read_mem()
152 addr[0] = mem->loc; in pcf8583_read_mem()
162 if (mem->loc < 8 || mem->nr > 8) in pcf8583_write_mem()
165 buf[0] = mem->loc; in pcf8583_write_mem()
177 .loc = CMOS_YEAR, in pcf8583_rtc_read_time()
227 .loc = CMOS_YEAR, in pcf8583_rtc_set_time()
232 .loc = CMOS_CHECKSUM, in pcf8583_rtc_set_time()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_binding.c301 struct vmw_ctx_bindinfo *loc = in vmw_binding_add() local
305 if (loc->ctx != NULL) in vmw_binding_add()
306 vmw_binding_drop(loc); in vmw_binding_add()
308 memcpy(loc, bi, b->size); in vmw_binding_add()
309 loc->scrubbed = false; in vmw_binding_add()
310 list_add(&loc->ctx_list, &cbs->list); in vmw_binding_add()
311 INIT_LIST_HEAD(&loc->res_list); in vmw_binding_add()
326 struct vmw_ctx_bindinfo *loc = (struct vmw_ctx_bindinfo *) in vmw_binding_transfer() local
329 if (loc->ctx != NULL) { in vmw_binding_transfer()
332 vmw_binding_drop(loc); in vmw_binding_transfer()
[all …]
/drivers/char/tpm/
Dtpm_i2c_infineon.c312 static bool check_locality(struct tpm_chip *chip, int loc) in check_locality() argument
317 rc = iic_tpm_read(TPM_ACCESS(loc), &buf, 1); in check_locality()
323 tpm_dev.locality = loc; in check_locality()
331 static void release_locality(struct tpm_chip *chip, int loc, int force) in release_locality() argument
334 if (iic_tpm_read(TPM_ACCESS(loc), &buf, 1) < 0) in release_locality()
340 iic_tpm_write(TPM_ACCESS(loc), &buf, 1); in release_locality()
344 static int request_locality(struct tpm_chip *chip, int loc) in request_locality() argument
349 if (check_locality(chip, loc)) in request_locality()
350 return loc; in request_locality()
352 iic_tpm_write(TPM_ACCESS(loc), &buf, 1); in request_locality()
[all …]
/drivers/input/mouse/
Dtrackpoint.c50 static int trackpoint_read(struct ps2dev *ps2dev, u8 loc, u8 *results) in trackpoint_read() argument
52 results[0] = loc; in trackpoint_read()
57 static int trackpoint_write(struct ps2dev *ps2dev, u8 loc, u8 val) in trackpoint_write() argument
59 u8 param[3] = { TP_WRITE_MEM, loc, val }; in trackpoint_write()
64 static int trackpoint_toggle_bit(struct ps2dev *ps2dev, u8 loc, u8 mask) in trackpoint_toggle_bit() argument
66 u8 param[3] = { TP_TOGGLE, loc, mask }; in trackpoint_toggle_bit()
69 if (loc < 0x20 || loc >= 0x2F) in trackpoint_toggle_bit()
76 u8 loc, u8 mask, u8 value) in trackpoint_update_bit() argument
81 retval = trackpoint_read(ps2dev, loc, &data); in trackpoint_update_bit()
86 retval = trackpoint_toggle_bit(ps2dev, loc, mask); in trackpoint_update_bit()
/drivers/net/usb/
Dasix_common.c444 int asix_mdio_read(struct net_device *netdev, int phy_id, int loc) in asix_mdio_read() argument
467 (__u16)loc, 2, &res, 0); in asix_mdio_read()
472 phy_id, loc, le16_to_cpu(res)); in asix_mdio_read()
477 void asix_mdio_write(struct net_device *netdev, int phy_id, int loc, int val) in asix_mdio_write() argument
486 phy_id, loc, val); in asix_mdio_write()
503 (__u16)loc, 2, &res, 0); in asix_mdio_write()
508 int asix_mdio_read_nopm(struct net_device *netdev, int phy_id, int loc) in asix_mdio_read_nopm() argument
531 (__u16)loc, 2, &res, 1); in asix_mdio_read_nopm()
536 phy_id, loc, le16_to_cpu(res)); in asix_mdio_read_nopm()
542 asix_mdio_write_nopm(struct net_device *netdev, int phy_id, int loc, int val) in asix_mdio_write_nopm() argument
[all …]
Dch9200.c179 static int ch9200_mdio_read(struct net_device *netdev, int phy_id, int loc) in ch9200_mdio_read() argument
185 phy_id, loc); in ch9200_mdio_read()
190 control_read(dev, REQUEST_READ, 0, loc * 2, buff, 0x02, in ch9200_mdio_read()
197 int phy_id, int loc, int val) in ch9200_mdio_write() argument
203 phy_id, loc); in ch9200_mdio_write()
211 control_write(dev, REQUEST_WRITE, 0, loc * 2, buff, 0x02, in ch9200_mdio_write()
Dasix.h223 int asix_mdio_read(struct net_device *netdev, int phy_id, int loc);
224 void asix_mdio_write(struct net_device *netdev, int phy_id, int loc, int val);
226 int asix_mdio_read_nopm(struct net_device *netdev, int phy_id, int loc);
227 void asix_mdio_write_nopm(struct net_device *netdev, int phy_id, int loc,
Dsr9700.c176 static int sr_mdio_read(struct net_device *netdev, int phy_id, int loc) in sr_mdio_read() argument
188 if (loc == MII_BMSR) { in sr_mdio_read()
195 sr_share_read_word(dev, 1, loc, &res); in sr_mdio_read()
202 phy_id, loc, res); in sr_mdio_read()
207 static void sr_mdio_write(struct net_device *netdev, int phy_id, int loc, in sr_mdio_write() argument
219 phy_id, loc, val); in sr_mdio_write()
221 sr_share_write_word(dev, 1, loc, res); in sr_mdio_write()
Ddm9601.c219 static int dm9601_mdio_read(struct net_device *netdev, int phy_id, int loc) in dm9601_mdio_read() argument
230 dm_read_shared_word(dev, 1, loc, &res); in dm9601_mdio_read()
234 phy_id, loc, le16_to_cpu(res)); in dm9601_mdio_read()
239 static void dm9601_mdio_write(struct net_device *netdev, int phy_id, int loc, in dm9601_mdio_write() argument
251 phy_id, loc, val); in dm9601_mdio_write()
253 dm_write_shared_word(dev, 1, loc, res); in dm9601_mdio_write()
/drivers/media/pci/solo6x10/
Dsolo6x10-eeprom.c94 __be16 solo_eeprom_read(struct solo_dev *solo_dev, int loc) in solo_eeprom_read() argument
96 int read_cmd = loc | (EE_READ_CMD << ADDR_LEN); in solo_eeprom_read()
114 int solo_eeprom_write(struct solo_dev *solo_dev, int loc, in solo_eeprom_write() argument
117 int write_cmd = loc | (EE_WRITE_CMD << ADDR_LEN); in solo_eeprom_write()
/drivers/vme/bridges/
Dvme_fake.c423 u8 *loc; in fake_vmeread8() local
437 loc = (u8 *)(bridge->slaves[i].buf_base + offset); in fake_vmeread8()
438 retval = *loc; in fake_vmeread8()
455 u16 *loc; in fake_vmeread16() local
469 loc = (u16 *)(bridge->slaves[i].buf_base + offset); in fake_vmeread16()
470 retval = *loc; in fake_vmeread16()
487 u32 *loc; in fake_vmeread32() local
501 loc = (u32 *)(bridge->slaves[i].buf_base + offset); in fake_vmeread32()
502 retval = *loc; in fake_vmeread32()
617 u8 *loc; in fake_vmewrite8() local
[all …]
/drivers/media/v4l2-core/
Dv4l2-dv-timings.c1000 unsigned int loc = cec_get_edid_spa_location(edid, size); in v4l2_get_edid_phys_addr() local
1003 *offset = loc; in v4l2_get_edid_phys_addr()
1004 if (loc == 0) in v4l2_get_edid_phys_addr()
1006 return (edid[loc] << 8) | edid[loc + 1]; in v4l2_get_edid_phys_addr()
1024 unsigned int loc = cec_get_edid_spa_location(edid, size); in v4l2_set_edid_phys_addr() local
1028 if (loc == 0) in v4l2_set_edid_phys_addr()
1030 edid[loc] = phys_addr >> 8; in v4l2_set_edid_phys_addr()
1031 edid[loc + 1] = phys_addr & 0xff; in v4l2_set_edid_phys_addr()
1032 loc &= ~0x7f; in v4l2_set_edid_phys_addr()
1035 for (i = loc; i < loc + 127; i++) in v4l2_set_edid_phys_addr()
/drivers/infiniband/hw/mthca/
Dmthca_mcg.c221 int i, loc; in mthca_multicast_detach() local
241 for (loc = -1, i = 0; i < MTHCA_QP_PER_MGM; ++i) { in mthca_multicast_detach()
243 loc = i; in mthca_multicast_detach()
248 if (loc == -1) { in mthca_multicast_detach()
254 mgm->qp[loc] = mgm->qp[i - 1]; in mthca_multicast_detach()
/drivers/net/dsa/
Dbcm_sf2_cfp.c918 u32 loc, u32 *next_loc) in bcm_sf2_cfp_rule_del_one() argument
924 bcm_sf2_cfp_rule_addr_set(priv, loc); in bcm_sf2_cfp_rule_del_one()
948 clear_bit(loc, priv->cfp.used); in bcm_sf2_cfp_rule_del_one()
949 clear_bit(loc, priv->cfp.unique); in bcm_sf2_cfp_rule_del_one()
955 u32 loc) in bcm_sf2_cfp_rule_remove() argument
960 ret = bcm_sf2_cfp_rule_del_one(priv, port, loc, &next_loc); in bcm_sf2_cfp_rule_remove()
971 static int bcm_sf2_cfp_rule_del(struct bcm_sf2_priv *priv, int port, u32 loc) in bcm_sf2_cfp_rule_del() argument
976 if (loc >= CFP_NUM_RULES) in bcm_sf2_cfp_rule_del()
983 if (!test_bit(loc, priv->cfp.unique) || loc == 0) in bcm_sf2_cfp_rule_del()
986 rule = bcm_sf2_cfp_rule_find(priv, port, loc); in bcm_sf2_cfp_rule_del()
[all …]
/drivers/net/ethernet/stmicro/stmmac/
Ddwmac5.c25 unsigned long loc, mask; in dwmac5_log_error() local
32 for_each_set_bit(loc, &mask, 32) { in dwmac5_log_error()
35 desc[loc].desc, desc[loc].detailed_desc); in dwmac5_log_error()
38 ptr[loc]++; in dwmac5_log_error()
/drivers/char/
Dapplicom.c132 static int ac_register_board(unsigned long physloc, void __iomem *loc, in ac_register_board() argument
137 if((readb(loc + CONF_END_TEST) != 0x00) || in ac_register_board()
138 (readb(loc + CONF_END_TEST + 1) != 0x55) || in ac_register_board()
139 (readb(loc + CONF_END_TEST + 2) != 0xAA) || in ac_register_board()
140 (readb(loc + CONF_END_TEST + 3) != 0xFF)) in ac_register_board()
144 boardno = readb(loc + NUMCARD_OWNER_TO_PC); in ac_register_board()
161 apbs[boardno].RamIO = loc; in ac_register_board()
164 byte_reset_it = readb(loc + RAM_IT_TO_PC); in ac_register_board()
/drivers/net/ethernet/cavium/liquidio/
Docteon_device.c765 oct->loc.bus = bus; in octeon_register_device()
766 oct->loc.dev = dev; in octeon_register_device()
767 oct->loc.func = func; in octeon_register_device()
789 if ((octeon_device[idx]->loc.bus == bus) && in octeon_register_device()
790 (octeon_device[idx]->loc.dev == dev)) { in octeon_register_device()
804 oct->loc.bus, oct->loc.dev, oct->loc.func, refcount); in octeon_register_device()
821 oct->loc.bus, oct->loc.dev, oct->loc.func, refcount); in octeon_deregister_device()

1234