Searched defs:vpd (Results 1 - 25 of 32) sorted by relevance

12

/drivers/pci/
H A Daccess.c93 * @pos: offset in vpd space
100 if (!dev->vpd || !dev->vpd->ops)
102 return dev->vpd->ops->read(dev, pos, count, buf);
109 * @pos: offset in vpd space
116 if (!dev->vpd || !dev->vpd->ops)
118 return dev->vpd->ops->write(dev, pos, count, buf);
213 struct pci_vpd_pci22 *vpd = local
214 container_of(dev->vpd, struc
247 struct pci_vpd_pci22 *vpd = local
299 struct pci_vpd_pci22 *vpd = local
357 struct pci_vpd_pci22 *vpd; local
[all...]
/drivers/net/ethernet/chelsio/cxgb/
H A Dsubr.c587 static int t1_eeprom_vpd_get(adapter_t *adapter, struct chelsio_vpd_t *vpd) argument
591 for (addr = 0; !ret && addr < sizeof(*vpd); addr += sizeof(u32))
593 (__le32 *)((u8 *)vpd + addr));
603 struct chelsio_vpd_t vpd; local
605 if (t1_eeprom_vpd_get(adapter, &vpd))
607 memcpy(mac_addr, vpd.mac_base_address, 5);
608 mac_addr[5] = vpd.mac_base_address[5] + index;
/drivers/scsi/aic7xxx/
H A Daic79xx_pci.c516 struct vpd_config vpd; local
536 + (sizeof(vpd) * (ahd->channel - 'A'))) / 2;
538 error = ahd_read_seeprom(ahd, (uint16_t *)&vpd,
539 start_addr, sizeof(vpd)/2,
542 error = ahd_parse_vpddata(ahd, &vpd);
H A Daic79xx_core.c263 static int ahd_verify_vpd_cksum(struct vpd_config *vpd);
7844 ahd_parse_vpddata(struct ahd_softc *ahd, struct vpd_config *vpd) argument
7848 error = ahd_verify_vpd_cksum(vpd);
7851 if ((vpd->bios_flags & VPDBOOTHOST) != 0)
10138 ahd_verify_vpd_cksum(struct vpd_config *vpd) argument
10145 vpdarray = (uint8_t *)vpd;
10151 || (-checksum & 0xFF) != vpd->vpd_checksum)
10160 || (-checksum & 0xFF) != vpd->checksum)
/drivers/target/
H A Dtarget_core_device.c624 struct t10_vpd *vpd, *vpd_tmp; local
627 list_for_each_entry_safe(vpd, vpd_tmp,
629 list_del(&vpd->vpd_list);
630 kfree(vpd);
H A Dtarget_core_pscsi.c240 struct t10_vpd *vpd; local
271 vpd = kzalloc(sizeof(struct t10_vpd), GFP_KERNEL);
272 if (!vpd) {
277 INIT_LIST_HEAD(&vpd->vpd_list);
279 transport_set_vpd_proto_id(vpd, page_83);
280 transport_set_vpd_assoc(vpd, page_83);
282 if (transport_set_vpd_ident_type(vpd, page_83) < 0) {
285 kfree(vpd);
288 if (transport_set_vpd_ident(vpd, page_83) < 0) {
291 kfree(vpd);
[all...]
H A Dtarget_core_transport.c811 struct t10_vpd *vpd,
821 switch (vpd->protocol_identifier) {
853 vpd->protocol_identifier);
864 transport_set_vpd_proto_id(struct t10_vpd *vpd, unsigned char *page_83) argument
872 vpd->protocol_identifier = (page_83[0] & 0xf0);
873 vpd->protocol_identifier_set = 1;
874 transport_dump_vpd_proto_id(vpd, NULL, 0);
880 struct t10_vpd *vpd,
891 switch (vpd->association) {
902 sprintf(buf+len, "Unknown 0x%02x\n", vpd
810 transport_dump_vpd_proto_id( struct t10_vpd *vpd, unsigned char *p_buf, int p_buf_len) argument
879 transport_dump_vpd_assoc( struct t10_vpd *vpd, unsigned char *p_buf, int p_buf_len) argument
915 transport_set_vpd_assoc(struct t10_vpd *vpd, unsigned char *page_83) argument
927 transport_dump_vpd_ident_type( struct t10_vpd *vpd, unsigned char *p_buf, int p_buf_len) argument
976 transport_set_vpd_ident_type(struct t10_vpd *vpd, unsigned char *page_83) argument
988 transport_dump_vpd_ident( struct t10_vpd *vpd, unsigned char *p_buf, int p_buf_len) argument
1030 transport_set_vpd_ident(struct t10_vpd *vpd, unsigned char *page_83) argument
[all...]
H A Dtarget_core_configfs.c853 struct t10_vpd *vpd; local
860 list_for_each_entry(vpd, &t10_wwn->t10_vpd_list, vpd_list) {
861 if (!vpd->protocol_identifier_set)
864 transport_dump_vpd_proto_id(vpd, buf, VPD_TMP_BUF_SIZE);
894 struct t10_vpd *vpd; \
899 list_for_each_entry(vpd, &t10_wwn->t10_vpd_list, vpd_list) { \
900 if (vpd->association != _assoc) \
904 transport_dump_vpd_assoc(vpd, buf, VPD_TMP_BUF_SIZE); \
910 transport_dump_vpd_ident_type(vpd, buf, VPD_TMP_BUF_SIZE); \
916 transport_dump_vpd_ident(vpd, bu
[all...]
/drivers/net/ethernet/chelsio/cxgb4vf/
H A Dt4vf_common.h212 struct vpd_params vpd; /* Vital Product Data */ member in struct:adapter_params
241 return adapter->params.vpd.cclk / 1000;
247 return (us * adapter->params.vpd.cclk) / 1000;
253 return (ticks * 1000) / adapter->params.vpd.cclk;
/drivers/scsi/lpfc/
H A Dlpfc_mbox.c485 lpfc_vpd_t *vpd; local
519 vpd = &phba->vpd;
520 if (vpd->rev.feaLevelHigh >= 0x02){
1282 if (phba->sli_rev == LPFC_SLI_REV3 && phba->vpd.sli3Feat.cerbm) {
1291 phba->vpd.sli3Feat.cmv) {
H A Dlpfc_els.c2144 if (phba->vpd.rev.feaLevelHigh >= 0x02) {
4200 lpfc_vpd_t *vpd; local
4238 vpd = &phba->vpd;
4244 (vpd->rev.feaLevelHigh >= 0x02)) {
H A Dlpfc_init.c106 lpfc_vpd_t *vp = &phba->vpd;
1836 * @vpd: pointer to the vital product data.
1848 lpfc_parse_vpd(struct lpfc_hba *phba, uint8_t *vpd, int len) argument
1856 if (!vpd)
1862 (uint32_t) vpd[0], (uint32_t) vpd[1], (uint32_t) vpd[2],
1863 (uint32_t) vpd[3]);
1865 switch (vpd[index]) {
1869 lenlo = vpd[inde
[all...]
/drivers/net/ethernet/brocade/bna/
H A Dbfa_defs.h56 struct bfa_mfg_vpd vpd; member in struct:bfa_adapter_attr
H A Dbfi.h211 struct bfa_mfg_vpd vpd; member in struct:bfi_ioc_attr
/drivers/net/wireless/ath/ath5k/
H A Dphy.c2508 * @vpd: Array of matching PCDAC/PDADC steps (y values)
2513 * Interpolate (pwr,vpd) points to create a Power to PDADC or a
2526 const s16 *pwr, const u8 *vpd,
2562 vpd[idx[0]], vpd[idx[1]]);
2525 ath5k_create_power_curve(s16 pmin, s16 pmax, const s16 *pwr, const u8 *vpd, u8 num_points, u8 *vpd_table, u8 type) argument
/drivers/staging/dgnc/
H A Ddgnc_driver.h177 void (*vpd)(struct dgnc_board *brd); member in struct:board_ops
217 unsigned char vpd[128]; /* VPD of board, if found */ member in struct:dgnc_board
/drivers/scsi/csiostor/
H A Dcsio_hw.c280 * @v: Pointer to buffered vpd data structure
332 uint8_t *vpd, csum; local
345 vpd = kzalloc(VPD_LEN, GFP_ATOMIC);
346 if (vpd == NULL)
353 ret = csio_hw_seeprom_read(hw, VPD_BASE, (uint32_t *)(vpd));
354 addr = *vpd == 0x82 ? VPD_BASE : VPD_BASE_OLD;
357 ret = csio_hw_seeprom_read(hw, addr + i, (uint32_t *)(vpd + i));
359 kfree(vpd);
367 v = (const struct t4_vpd_hdr *)vpd;
373 kfree(vpd); \
[all...]
H A Dcsio_hw.h492 struct csio_vpd vpd; member in struct:csio_hw
564 return (ticks * 1000 + hw->vpd.cclk/2) / hw->vpd.cclk;
570 return (us * hw->vpd.cclk) / 1000;
/drivers/net/ethernet/chelsio/cxgb3/
H A Dcommon.h385 struct vpd_params vpd; member in struct:adapter_params
634 return adap->params.vpd.cclk / 1000;
H A Dt3_hw.c198 u32 clkdiv = adap->params.vpd.cclk / (2 * adap->params.vpd.mdc) - 1;
694 struct t3_vpd vpd; local
700 ret = t3_seeprom_read(adapter, VPD_BASE, (__le32 *)&vpd);
703 addr = vpd.id_tag == 0x82 ? VPD_BASE : 0;
705 for (i = 0; i < sizeof(vpd); i += 4) {
707 (__le32 *)((u8 *)&vpd + i));
712 p->cclk = simple_strtoul(vpd.cclk_data, NULL, 10);
713 p->mclk = simple_strtoul(vpd.mclk_data, NULL, 10);
714 p->uclk = simple_strtoul(vpd
3342 const struct vpd_params *vpd = &adapter->params.vpd; local
[all...]
/drivers/net/ethernet/chelsio/cxgb4/
H A Dt4_hw.c624 u8 *vpd, csum; local
627 vpd = vmalloc(VPD_LEN);
628 if (!vpd)
631 ret = pci_read_vpd(adapter->pdev, VPD_BASE, sizeof(u32), vpd);
641 addr = *vpd == CHELSIO_VPD_UNIQUE_ID ? VPD_BASE : VPD_BASE_OLD;
643 ret = pci_read_vpd(adapter->pdev, addr, VPD_LEN, vpd);
647 if (vpd[0] != PCI_VPD_LRDT_ID_STRING) {
653 id_len = pci_vpd_lrdt_size(vpd);
657 i = pci_vpd_find_tag(vpd, 0, VPD_LEN, PCI_VPD_LRDT_RO_DATA);
664 vpdr_len = pci_vpd_lrdt_size(&vpd[
[all...]
H A Dcxgb4.h289 struct vpd_params vpd; member in struct:adapter_params
922 return adap->params.vpd.cclk / 1000;
928 return (us * adap->params.vpd.cclk) / 1000;
935 return ((ticks * 1000 + adapter->params.vpd.cclk/2) /
936 adapter->params.vpd.cclk);
/drivers/scsi/bfa/
H A Dbfi.h292 struct bfa_mfg_vpd_s vpd; member in struct:bfi_ioc_attr_s
/drivers/scsi/
H A Dipr.c1498 * @vpd: vendor/product id/sn struct
1504 struct ipr_vpd *vpd)
1509 memcpy(buffer, vpd->vpids.vendor_id, IPR_VENDOR_ID_LEN);
1512 memcpy(&buffer[i], vpd->vpids.product_id, IPR_PROD_ID_LEN);
1515 memcpy(&buffer[i], vpd->sn, IPR_SERIAL_NUM_LEN);
1523 * @vpd: vendor/product id/sn struct
1528 static void ipr_log_vpd(struct ipr_vpd *vpd) argument
1533 memcpy(buffer, vpd->vpids.vendor_id, IPR_VENDOR_ID_LEN);
1534 memcpy(buffer + IPR_VENDOR_ID_LEN, vpd->vpids.product_id,
1539 memcpy(buffer, vpd
1503 ipr_log_vpd_compact(char *prefix, struct ipr_hostrcb *hostrcb, struct ipr_vpd *vpd) argument
1553 ipr_log_ext_vpd_compact(char *prefix, struct ipr_hostrcb *hostrcb, struct ipr_ext_vpd *vpd) argument
1568 ipr_log_ext_vpd(struct ipr_ext_vpd *vpd) argument
[all...]
/drivers/net/ethernet/sun/
H A Dniu.c6818 struct niu_vpd *vpd = &np->vpd; local
6823 vpd->fcode_major, vpd->fcode_minor);
8079 struct niu_vpd *vpd = &np->vpd; local
8080 int len = strlen(vpd->version) + 1;
8081 const char *s = vpd->version;
8092 sscanf(s, "%d.%d", &vpd->fcode_major, &vpd
8337 struct niu_vpd *vpd = &np->vpd; local
[all...]

Completed in 6891 milliseconds

12