Home
last modified time | relevance | path

Searched refs:cap (Results 1 – 25 of 115) sorted by relevance

12345

/rk3399_rockchip-uboot/cmd/
H A Dcrypto_sum.c30 u32 cap; in do_crypto_csum() local
36 cap = CRYPTO_MD5; in do_crypto_csum()
38 cap = CRYPTO_SHA1; in do_crypto_csum()
40 cap = CRYPTO_SHA256; in do_crypto_csum()
42 cap = CRYPTO_SHA512; in do_crypto_csum()
49 dev = crypto_get_device(cap); in do_crypto_csum()
55 if (cap == CRYPTO_MD5) { in do_crypto_csum()
62 } else if (cap == CRYPTO_SHA1) { in do_crypto_csum()
69 } else if (cap == CRYPTO_SHA256) { in do_crypto_csum()
76 } else if (cap == CRYPTO_SHA512) { in do_crypto_csum()
/rk3399_rockchip-uboot/drivers/ram/rockchip/
H A Dsdram_common.c56 u64 cap; in sdram_print_ddr_info() local
114 cap = sdram_get_cs_cap(cap_info, 3, base->dramtype); in sdram_print_ddr_info()
116 cap = cap * 3 / 4; in sdram_print_ddr_info()
118 cap = cap / 2 + (split << 24) / 2; in sdram_print_ddr_info()
121 printdec(cap >> 20); in sdram_print_ddr_info()
134 u64 cap[4]; in sdram_get_cs_cap() local
143 cap[0] = 1llu << (cap_info->bw + cap_info->col + in sdram_get_cs_cap()
147 cap[1] = 1llu << (cap_info->bw + cap_info->col + in sdram_get_cs_cap()
150 cap[1] = 0; in sdram_get_cs_cap()
153 cap[2] = 1llu << (cap_info->bw + cap_info->col + in sdram_get_cs_cap()
[all …]
/rk3399_rockchip-uboot/drivers/ata/
H A Dahci.c236 uc_priv->cap = readl(mmio + HOST_CAP); in ahci_host_init()
239 uc_priv->n_ports = (uc_priv->cap & 0x1f) + 1; in ahci_host_init()
242 uc_priv->cap, uc_priv->port_map, uc_priv->n_ports); in ahci_host_init()
375 u32 vers, cap, cap2, impl, speed; in ahci_print_info() local
380 cap = uc_priv->cap; in ahci_print_info()
384 speed = (cap >> 20) & 0xf; in ahci_print_info()
417 ((cap >> 8) & 0x1f) + 1, (cap & 0x1f) + 1, speed_s, impl, scc_s); in ahci_print_info()
423 cap & (1 << 31) ? "64bit " : "", in ahci_print_info()
424 cap & (1 << 30) ? "ncq " : "", in ahci_print_info()
425 cap & (1 << 28) ? "ilck " : "", in ahci_print_info()
[all …]
H A Ddwc_ahsata.c50 u32 cap; member
121 cap_save = readl(&host_mmio->cap); in ahci_host_init()
143 writel(cap_save, &host_mmio->cap); in ahci_host_init()
153 uc_priv->cap = readl(&host_mmio->cap); in ahci_host_init()
157 uc_priv->n_ports = (uc_priv->cap & SATA_HOST_CAP_NP_MASK) + 1; in ahci_host_init()
160 uc_priv->cap, uc_priv->port_map, uc_priv->n_ports); in ahci_host_init()
273 u32 vers, cap, impl, speed; in ahci_print_info() local
278 cap = uc_priv->cap; in ahci_print_info()
281 speed = (cap & SATA_HOST_CAP_ISS_MASK) in ahci_print_info()
298 ((cap >> 8) & 0x1f) + 1, in ahci_print_info()
[all …]
/rk3399_rockchip-uboot/drivers/mtd/nand/raw/
H A Datmel_nand.c85 static int pmecc_get_ecc_bytes(int cap, int sector_size) in pmecc_get_ecc_bytes() argument
88 return (m * cap + 7) / 8; in pmecc_get_ecc_bytes()
132 const int cap = host->pmecc_corr_cap; in pmecc_data_alloc() local
135 size = (2 * cap + 1) * sizeof(int16_t); in pmecc_data_alloc()
138 host->pmecc_lmu = malloc((cap + 1) * sizeof(int16_t)); in pmecc_data_alloc()
139 host->pmecc_smu = malloc((cap + 2) * size); in pmecc_data_alloc()
141 size = (cap + 1) * sizeof(int); in pmecc_data_alloc()
185 const int cap = host->pmecc_corr_cap; in pmecc_substitute() local
194 memset(&si[1], 0, sizeof(int16_t) * (2 * cap - 1)); in pmecc_substitute()
198 for (i = 1; i < 2 * cap; i += 2) { in pmecc_substitute()
[all …]
/rk3399_rockchip-uboot/include/linux/
H A Dmii.h214 u8 cap = 0; in mii_resolve_flowctrl_fdx() local
217 cap = FLOW_CTRL_TX | FLOW_CTRL_RX; in mii_resolve_flowctrl_fdx()
220 cap = FLOW_CTRL_RX; in mii_resolve_flowctrl_fdx()
222 cap = FLOW_CTRL_TX; in mii_resolve_flowctrl_fdx()
225 return cap; in mii_resolve_flowctrl_fdx()
/rk3399_rockchip-uboot/include/
H A Dslre.h73 struct cap { struct
95 struct cap *captured_substrings); argument
/rk3399_rockchip-uboot/drivers/nvme/
H A Dnvme.h585 __u64 cap; /* Controller Capabilities */ member
598 #define NVME_CAP_MQES(cap) ((cap) & 0xffff) argument
599 #define NVME_CAP_TIMEOUT(cap) (((cap) >> 24) & 0xff) argument
600 #define NVME_CAP_STRIDE(cap) (((cap) >> 32) & 0xf) argument
601 #define NVME_CAP_MPSMIN(cap) (((cap) >> 48) & 0xf) argument
602 #define NVME_CAP_MPSMAX(cap) (((cap) >> 52) & 0xf) argument
671 u64 cap; member
H A Dnvme.c61 timeout = NVME_CAP_TIMEOUT(dev->cap) * 500; in nvme_wait_ready()
358 u64 cap = dev->cap; in nvme_configure_admin_queue() local
362 unsigned dev_page_min = NVME_CAP_MPSMIN(cap) + 12; in nvme_configure_admin_queue()
363 unsigned dev_page_max = NVME_CAP_MPSMAX(cap) + 12; in nvme_configure_admin_queue()
619 int shift = NVME_CAP_MPSMIN(dev->cap) + 12; in nvme_get_info_from_identify()
974 ndev->cap = nvme_readq(&ndev->bar->cap); in nvme_probe()
975 ndev->q_depth = min_t(int, NVME_CAP_MQES(ndev->cap) + 1, NVME_Q_DEPTH); in nvme_probe()
978 ndev->db_stride = 1 << NVME_CAP_STRIDE(ndev->cap); in nvme_probe()
/rk3399_rockchip-uboot/drivers/misc/
H A Dmisc-uclass.c65 u32 cap; in misc_get_device_by_capability() local
78 ret = ops->ioctl(dev, IOCTL_REQ_CAPABILITY, &cap); in misc_get_device_by_capability()
79 if (!ret && ((cap & capability) == capability)) in misc_get_device_by_capability()
/rk3399_rockchip-uboot/tools/
H A Datmel_pmecc_params.c19 static int pmecc_get_ecc_bytes(int cap, int sector_size) in pmecc_get_ecc_bytes() argument
22 return (m * cap + 7) / 8; in pmecc_get_ecc_bytes()
/rk3399_rockchip-uboot/drivers/power/fuel_gauge/
H A Dfg_cw201x.c315 int cap, i = 0; in cw201x_get_soc() local
318 cap = cw201x_read(cw201x, REG_SOC); in cw201x_get_soc()
319 if ((cap < 0) || (cap > 100)) in cw201x_get_soc()
320 cap = cw201x->capacity; in cw201x_get_soc()
322 if (cap) in cw201x_get_soc()
325 cw201x->capacity = cap; in cw201x_get_soc()
H A Dfg_rk816.c367 static void rk816_bat_save_cap(struct battery_priv *di, int cap) in rk816_bat_save_cap() argument
372 if (old_cap == cap) in rk816_bat_save_cap()
375 if (cap >= di->qmax) in rk816_bat_save_cap()
376 cap = di->qmax; in rk816_bat_save_cap()
378 old_cap = cap; in rk816_bat_save_cap()
379 buf = (cap >> 24) & 0xff; in rk816_bat_save_cap()
381 buf = (cap >> 16) & 0xff; in rk816_bat_save_cap()
383 buf = (cap >> 8) & 0xff; in rk816_bat_save_cap()
385 buf = (cap >> 0) & 0xff; in rk816_bat_save_cap()
660 static void rk816_bat_save_fcc(struct battery_priv *di, u32 cap) in rk816_bat_save_fcc() argument
[all …]
H A Dfg_rk818.c637 static void rk818_bat_save_fcc(struct battery_priv *di, u32 cap) in rk818_bat_save_fcc() argument
641 buf = (cap >> 24) & 0xff; in rk818_bat_save_fcc()
643 buf = (cap >> 16) & 0xff; in rk818_bat_save_fcc()
645 buf = (cap >> 8) & 0xff; in rk818_bat_save_fcc()
647 buf = (cap >> 0) & 0xff; in rk818_bat_save_fcc()
692 static void rk818_bat_save_cap(struct battery_priv *di, int cap) in rk818_bat_save_cap() argument
697 if (old_cap == cap) in rk818_bat_save_cap()
700 if (cap >= di->qmax) in rk818_bat_save_cap()
701 cap = di->qmax; in rk818_bat_save_cap()
703 old_cap = cap; in rk818_bat_save_cap()
[all …]
/rk3399_rockchip-uboot/arch/arm/dts/
H A Dsocfpga_cyclone5.dtsi26 cap-mmc-highspeed;
27 cap-sd-highspeed;
H A Dsocfpga_arria5.dtsi26 cap-mmc-highspeed;
27 cap-sd-highspeed;
/rk3399_rockchip-uboot/drivers/pci/
H A Dpci.c474 int cap) in pci_hose_find_capability() argument
484 pos = pci_find_cap(hose, dev, pos, cap); in pci_hose_find_capability()
511 int pci_find_cap(struct pci_controller *hose, pci_dev_t dev, int pos, int cap) in pci_find_cap() argument
527 if (id == cap) in pci_find_cap()
543 int start, int cap) in pci_find_next_ext_capability() argument
559 if (PCI_EXT_CAP_ID(header) == cap && pos != start) in pci_find_next_ext_capability()
582 int cap) in pci_hose_find_ext_capability() argument
584 return pci_find_next_ext_capability(hose, dev, 0, cap); in pci_hose_find_ext_capability()
H A Dpci-uclass.c1399 static int _dm_pci_find_next_capability(struct udevice *dev, u8 pos, int cap) in _dm_pci_find_next_capability() argument
1416 if (id == cap) in _dm_pci_find_next_capability()
1424 int dm_pci_find_next_capability(struct udevice *dev, u8 start, int cap) in dm_pci_find_next_capability() argument
1427 cap); in dm_pci_find_next_capability()
1430 int dm_pci_find_capability(struct udevice *dev, int cap) in dm_pci_find_capability() argument
1446 return _dm_pci_find_next_capability(dev, pos, cap); in dm_pci_find_capability()
1449 int dm_pci_find_next_ext_capability(struct udevice *dev, int start, int cap) in dm_pci_find_next_ext_capability() argument
1470 if (PCI_EXT_CAP_ID(header) == cap) in dm_pci_find_next_ext_capability()
1483 int dm_pci_find_ext_capability(struct udevice *dev, int cap) in dm_pci_find_ext_capability() argument
1485 return dm_pci_find_next_ext_capability(dev, 0, cap); in dm_pci_find_ext_capability()
/rk3399_rockchip-uboot/drivers/tpm/
H A Dtpm_tis.h79 __be32 cap; member
86 union cap_t cap; member
/rk3399_rockchip-uboot/board/freescale/b4860qds/
H A Dddr.c248 unsigned long long cap = in step_assign_addresses() local
254 current_mem_base += cap; in step_assign_addresses()
255 total_ctlr_mem += cap; in step_assign_addresses()
/rk3399_rockchip-uboot/include/power/power_delivery/
H A Dpd_vdo.h229 #define VDO_UFP(ver, cap, conn, vcpwr, vcr, vbr, alt, spd) \ argument
230 (((ver) & 0x7) << 29 | ((cap) & 0xf) << 24 | ((conn) & 0x3) << 22 \
253 #define VDO_DFP(ver, cap, conn, pnum) \ argument
254 (((ver) & 0x7) << 29 | ((cap) & 0x7) << 24 | ((conn) & 0x3) << 22 \
/rk3399_rockchip-uboot/common/
H A Dusb_storage.c1422 ALLOC_CACHE_ALIGN_BUFFER(u32, cap, 2); in usb_stor_get_info()
1474 pccb->pdata = (unsigned char *)cap; in usb_stor_get_info()
1478 cap[0] = 2880; in usb_stor_get_info()
1479 cap[1] = 0x200; in usb_stor_get_info()
1482 debug("Read Capacity returns: 0x%08x, 0x%08x\n", cap[0], cap[1]); in usb_stor_get_info()
1484 if (cap[0] > (0x200000 * 10)) /* greater than 10 GByte */ in usb_stor_get_info()
1485 cap[0] >>= 16; in usb_stor_get_info()
1487 cap[0] = cpu_to_be32(cap[0]); in usb_stor_get_info()
1488 cap[1] = cpu_to_be32(cap[1]); in usb_stor_get_info()
1491 capacity = be32_to_cpu(cap[0]) + 1; in usb_stor_get_info()
[all …]
/rk3399_rockchip-uboot/drivers/ddr/fsl/
H A Dmain.c367 unsigned long long cap = in __step_assign_addresses() local
372 current_mem_base += cap; in __step_assign_addresses()
373 total_ctlr_mem += cap; in __step_assign_addresses()
392 unsigned long long cap = in __step_assign_addresses() local
397 current_mem_base += cap; in __step_assign_addresses()
398 total_ctlr_mem += cap; in __step_assign_addresses()
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/
H A Dspl_pcie_ep_boot.c126 struct tag cap; member
244 u32 cap, ctrl2, link_speed; in pcie_link_set_max_speed() local
247 cap = readl(dbi_base + offset + PCI_EXP_LNKCAP); in pcie_link_set_max_speed()
253 cap &= ~((u32)PCI_EXP_LNKCAP_SLS); in pcie_link_set_max_speed()
255 writel(cap | link_speed, dbi_base + offset + PCI_EXP_LNKCAP); in pcie_link_set_max_speed()
/rk3399_rockchip-uboot/drivers/usb/eth/
H A Dlan7x.c268 u8 cap = 0; in lan7x_update_flowcontrol() local
278 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in lan7x_update_flowcontrol()
281 if (cap & FLOW_CTRL_TX) { in lan7x_update_flowcontrol()
294 if (cap & FLOW_CTRL_RX) { in lan7x_update_flowcontrol()

12345