/drivers/macintosh/ |
D | windfarm_lm75_sensor.c | 96 const char *name, *loc; in wf_lm75_probe() local 101 loc = of_get_property(client->dev.of_node, "hwsensor-location", NULL); in wf_lm75_probe() 102 if (!loc) { in wf_lm75_probe() 111 if (!strcmp(loc, "Hard drive") || !strcmp(loc, "DRIVE BAY")) in wf_lm75_probe() 113 else if (!strcmp(loc, "Incoming Air Temp")) in wf_lm75_probe() 115 else if (!strcmp(loc, "ODD Temp")) in wf_lm75_probe() 117 else if (!strcmp(loc, "HD Temp")) in wf_lm75_probe() 119 else if (!strcmp(loc, "PCI SLOTS")) in wf_lm75_probe() 121 else if (!strcmp(loc, "CPU A INLET")) in wf_lm75_probe() 123 else if (!strcmp(loc, "CPU B INLET")) in wf_lm75_probe()
|
D | windfarm_max6690_sensor.c | 67 const char *name, *loc; in wf_max6690_probe() local 71 loc = of_get_property(client->dev.of_node, "hwsensor-location", NULL); in wf_max6690_probe() 72 if (!loc) { in wf_max6690_probe() 81 if (!strcmp(loc, "BACKSIDE") || !strcmp(loc, "SYS CTRLR AMBIENT")) in wf_max6690_probe() 83 else if (!strcmp(loc, "NB Ambient")) in wf_max6690_probe() 85 else if (!strcmp(loc, "GPU Ambient")) in wf_max6690_probe()
|
D | windfarm_lm87_sensor.c | 104 const char *name = NULL, *loc; in wf_lm87_probe() local 116 loc = of_get_property(np, "location", NULL); in wf_lm87_probe() 117 if (!loc) in wf_lm87_probe() 119 if (strstr(loc, "DIMM")) in wf_lm87_probe() 121 else if (strstr(loc, "Processors")) in wf_lm87_probe()
|
D | windfarm_smu_sat.c | 200 const char *loc, *type; in wf_sat_probe() local 224 loc = of_get_property(child, "location", NULL); in wf_sat_probe() 225 if (reg == NULL || loc == NULL) in wf_sat_probe() 234 if (strncmp(loc, "CPU ", 4) != 0) in wf_sat_probe() 236 chip = loc[4] - 'A'; in wf_sat_probe() 237 core = loc[5] - '0'; in wf_sat_probe() 240 "location %s for %s\n", loc, child->full_name); in wf_sat_probe() 248 "multiple CPU chips on one SAT (%s)\n", loc); in wf_sat_probe()
|
D | windfarm_ad7417_sensor.c | 238 const char *loc; in wf_ad7417_probe() local 241 loc = of_get_property(client->dev.of_node, "hwsensor-location", NULL); in wf_ad7417_probe() 242 if (!loc) { in wf_ad7417_probe() 251 if (!strncmp(loc, "CPU A", 5)) in wf_ad7417_probe() 253 else if (!strncmp(loc, "CPU B", 5)) in wf_ad7417_probe() 256 pr_err("wf_ad7417: Can't identify location %s\n", loc); in wf_ad7417_probe()
|
D | windfarm_fcu_controls.c | 435 const char *loc; in wf_fcu_lookup_fans() local 453 loc = of_get_property(np, "location", NULL); in wf_fcu_lookup_fans() 455 if (loc == NULL || reg == NULL) in wf_fcu_lookup_fans() 457 DBG(" matching location: %s, reg: 0x%08x\n", loc, *reg); in wf_fcu_lookup_fans() 460 if (strncmp(loc, loc_trans[i].dt_name, in wf_fcu_lookup_fans()
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | layout.c | 1741 enum req_location loc) in __req_msg() argument 1746 return loc == RCL_CLIENT ? req->rq_reqmsg : req->rq_repmsg; in __req_msg() 1771 enum req_location loc) in req_capsule_filled_sizes() argument 1778 for (i = 0; i < fmt->rf_fields[loc].nr; ++i) { in req_capsule_filled_sizes() 1779 if (pill->rc_area[loc][i] == -1) { in req_capsule_filled_sizes() 1780 pill->rc_area[loc][i] = in req_capsule_filled_sizes() 1781 fmt->rf_fields[loc].d[i]->rmf_size; in req_capsule_filled_sizes() 1782 if (pill->rc_area[loc][i] == -1) { in req_capsule_filled_sizes() 1789 LASSERT(loc != RCL_SERVER); in req_capsule_filled_sizes() 1833 enum req_location loc) in __req_capsule_offset() argument [all …]
|
/drivers/infiniband/hw/qib/ |
D | qib_sd7220.c | 98 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/input/mouse/ |
D | trackpoint.c | 50 unsigned char loc, unsigned char *results) in trackpoint_read() argument 53 ps2_command(ps2dev, results, MAKE_PS2_CMD(0, 1, loc))) { in trackpoint_read() 61 unsigned char loc, unsigned char val) in trackpoint_write() argument 65 ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, loc)) || in trackpoint_write() 74 unsigned char loc, unsigned char mask) in trackpoint_toggle_bit() argument 77 if (loc < 0x20 || loc >= 0x2F) in trackpoint_toggle_bit() 82 ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, loc)) || in trackpoint_toggle_bit() 90 static int trackpoint_update_bit(struct ps2dev *ps2dev, unsigned char loc, in trackpoint_update_bit() argument 96 trackpoint_read(ps2dev, loc, &data); in trackpoint_update_bit() 98 retval = trackpoint_toggle_bit(ps2dev, loc, mask); in trackpoint_update_bit()
|
/drivers/rtc/ |
D | rtc-pcf8583.c | 25 unsigned int loc; member 152 if (mem->loc < 8) in pcf8583_read_mem() 155 addr[0] = mem->loc; in pcf8583_read_mem() 165 if (mem->loc < 8 || mem->nr > 8) in pcf8583_write_mem() 168 buf[0] = mem->loc; in pcf8583_write_mem() 180 .loc = CMOS_YEAR, in pcf8583_rtc_read_time() 230 .loc = CMOS_YEAR, in pcf8583_rtc_set_time() 235 .loc = CMOS_CHECKSUM, in pcf8583_rtc_set_time()
|
/drivers/char/tpm/ |
D | tpm_i2c_infineon.c | 280 static int check_locality(struct tpm_chip *chip, int loc) in check_locality() argument 285 rc = iic_tpm_read(TPM_ACCESS(loc), &buf, 1); in check_locality() 291 chip->vendor.locality = loc; in check_locality() 292 return loc; in check_locality() 299 static void release_locality(struct tpm_chip *chip, int loc, int force) in release_locality() argument 302 if (iic_tpm_read(TPM_ACCESS(loc), &buf, 1) < 0) in release_locality() 308 iic_tpm_write(TPM_ACCESS(loc), &buf, 1); in release_locality() 312 static int request_locality(struct tpm_chip *chip, int loc) in request_locality() argument 317 if (check_locality(chip, loc) >= 0) in request_locality() 318 return loc; in request_locality() [all …]
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_binding.c | 301 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/staging/lustre/lustre/include/ |
D | lustre_req_layout.h | 83 int req_capsule_filled_sizes(struct req_capsule *pill, enum req_location loc); 108 enum req_location loc, int size); 111 enum req_location loc); 112 int req_capsule_msg_size(struct req_capsule *pill, enum req_location loc); 114 enum req_location loc); 119 enum req_location loc); 123 enum req_location loc);
|
/drivers/media/pci/solo6x10/ |
D | solo6x10-eeprom.c | 103 __be16 solo_eeprom_read(struct solo_dev *solo_dev, int loc) in solo_eeprom_read() argument 105 int read_cmd = loc | (EE_READ_CMD << ADDR_LEN); in solo_eeprom_read() 123 int solo_eeprom_write(struct solo_dev *solo_dev, int loc, in solo_eeprom_write() argument 126 int write_cmd = loc | (EE_WRITE_CMD << ADDR_LEN); in solo_eeprom_write()
|
/drivers/net/usb/ |
D | ch9200.c | 180 static int ch9200_mdio_read(struct net_device *netdev, int phy_id, int loc) in ch9200_mdio_read() argument 186 phy_id, loc); in ch9200_mdio_read() 191 control_read(dev, REQUEST_READ, 0, loc * 2, buff, 0x02, in ch9200_mdio_read() 198 int phy_id, int loc, int val) in ch9200_mdio_write() argument 204 phy_id, loc); in ch9200_mdio_write() 212 control_write(dev, REQUEST_WRITE, 0, loc * 2, buff, 0x02, in ch9200_mdio_write()
|
D | sr9700.c | 176 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()
|
D | dm9601.c | 219 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()
|
D | asix_common.c | 397 int asix_mdio_read(struct net_device *netdev, int phy_id, int loc) in asix_mdio_read() argument 405 (__u16)loc, 2, &res); in asix_mdio_read() 410 phy_id, loc, le16_to_cpu(res)); in asix_mdio_read() 415 void asix_mdio_write(struct net_device *netdev, int phy_id, int loc, int val) in asix_mdio_write() argument 421 phy_id, loc, val); in asix_mdio_write() 424 asix_write_cmd(dev, AX_CMD_WRITE_MII_REG, phy_id, (__u16)loc, 2, &res); in asix_mdio_write()
|
D | sr9800.c | 336 static int sr_mdio_read(struct net_device *net, int phy_id, int loc) in sr_mdio_read() argument 343 sr_read_cmd(dev, SR_CMD_READ_MII_REG, phy_id, (__u16)loc, 2, &res); in sr_mdio_read() 349 phy_id, loc, le16_to_cpu(res)); in sr_mdio_read() 355 sr_mdio_write(struct net_device *net, int phy_id, int loc, int val) in sr_mdio_write() argument 362 phy_id, loc, val); in sr_mdio_write() 365 sr_write_cmd(dev, SR_CMD_WRITE_MII_REG, phy_id, (__u16)loc, 2, &res); in sr_mdio_write()
|
D | asix.h | 218 int asix_mdio_read(struct net_device *netdev, int phy_id, int loc); 219 void asix_mdio_write(struct net_device *netdev, int phy_id, int loc, int val);
|
/drivers/infiniband/hw/mthca/ |
D | mthca_mcg.c | 221 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/char/ |
D | applicom.c | 131 static int ac_register_board(unsigned long physloc, void __iomem *loc, in ac_register_board() argument 136 if((readb(loc + CONF_END_TEST) != 0x00) || in ac_register_board() 137 (readb(loc + CONF_END_TEST + 1) != 0x55) || in ac_register_board() 138 (readb(loc + CONF_END_TEST + 2) != 0xAA) || in ac_register_board() 139 (readb(loc + CONF_END_TEST + 3) != 0xFF)) in ac_register_board() 143 boardno = readb(loc + NUMCARD_OWNER_TO_PC); in ac_register_board() 160 apbs[boardno].RamIO = loc; in ac_register_board() 163 byte_reset_it = readb(loc + RAM_IT_TO_PC); in ac_register_board()
|
/drivers/mmc/host/ |
D | dw_mmc-exynos.c | 427 s8 i, loc = -1; in dw_mci_exynos_get_best_clksmpl() local 432 loc = i; in dw_mci_exynos_get_best_clksmpl() 440 loc = i; in dw_mci_exynos_get_best_clksmpl() 453 loc = i; in dw_mci_exynos_get_best_clksmpl() 458 return loc; in dw_mci_exynos_get_best_clksmpl()
|
/drivers/ssb/ |
D | pci.c | 367 u16 loc[3]; in sprom_extract_r123() local 370 loc[0] = SSB_SPROM3_IL0MAC; in sprom_extract_r123() 372 loc[0] = SSB_SPROM1_IL0MAC; in sprom_extract_r123() 373 loc[1] = SSB_SPROM1_ET0MAC; in sprom_extract_r123() 374 loc[2] = SSB_SPROM1_ET1MAC; in sprom_extract_r123() 376 sprom_get_mac(out->il0mac, &in[SPOFF(loc[0])]); in sprom_extract_r123() 378 sprom_get_mac(out->et0mac, &in[SPOFF(loc[1])]); in sprom_extract_r123() 379 sprom_get_mac(out->et1mac, &in[SPOFF(loc[2])]); in sprom_extract_r123()
|
/drivers/isdn/hisax/ |
D | l3_1tr6.c | 361 pc->para.loc = p[3]; in l3_1tr6_rel() 363 pc->para.loc = 0; in l3_1tr6_rel() 366 pc->para.loc = 0; in l3_1tr6_rel() 427 pc->para.loc = p[3]; in l3_1tr6_disc() 429 pc->para.loc = 0; in l3_1tr6_disc() 432 pc->para.loc = 0; in l3_1tr6_disc() 658 pc->para.loc = 0; in l3_1tr6_dl_release()
|