Searched refs:prot (Results 1 - 18 of 18) sorted by relevance

/u-boot/board/kontron/sl28/
H A Dspl.c29 u32 prot = in_le32(SERDES_LNDGCR0) & LNDGCR0_PROTS_MASK; local
32 if (prot == LNDGCR0_PROTS_SATA) {
/u-boot/include/
H A Dlibata.h370 static inline unsigned int ata_prot_flags(u8 prot) argument
372 switch (prot) {
391 static inline int ata_is_atapi(u8 prot) argument
393 return ata_prot_flags(prot) & ATA_PROT_FLAG_ATAPI;
396 static inline int ata_is_nodata(u8 prot) argument
398 return !(ata_prot_flags(prot) & ATA_PROT_FLAG_DATA);
401 static inline int ata_is_pio(u8 prot) argument
403 return ata_prot_flags(prot) & ATA_PROT_FLAG_PIO;
406 static inline int ata_is_dma(u8 prot) argument
408 return ata_prot_flags(prot)
411 ata_is_ncq(u8 prot) argument
416 ata_is_data(u8 prot) argument
[all...]
H A Dspi_flash.h194 bool prot)
199 if (prot)
193 spi_flash_protect(struct spi_flash *flash, u32 ofs, u32 len, bool prot) argument
H A Dnet.h571 int net_set_ether(uchar *xet, const uchar *dest_ethaddr, uint prot);
572 int net_update_ether(struct ethernet_hdr *et, uchar *addr, uint prot);
H A Dflash.h107 extern int flash_real_protect(flash_info_t *info, long sector, int prot);
/u-boot/common/
H A Dupdate.c83 static int update_flash_protect(int prot, ulong addr_first, ulong addr_last) argument
92 if (prot == 0) {
124 if (prot == 0) {
134 if (flash_real_protect(info, i, prot))
137 info->protect[i] = prot;
145 prot ? "": "Un-", cnt);
149 if((prot == 1) && saved_prot_info)
/u-boot/drivers/spi/
H A Dspi-sn-f-ospi.c267 u32 prot = 0, val; local
274 prot |= FIELD_PREP(OSPI_PROT_MODE_CODE_MASK, mode);
277 prot |= FIELD_PREP(OSPI_PROT_MODE_ADDR_MASK, mode);
280 prot |= FIELD_PREP(OSPI_PROT_MODE_DATA_MASK, mode);
282 prot |= FIELD_PREP(OSPI_PROT_DATA_RATE_DATA, OSPI_PROT_SDR);
283 prot |= FIELD_PREP(OSPI_PROT_DATA_RATE_ALT, OSPI_PROT_SDR);
284 prot |= FIELD_PREP(OSPI_PROT_DATA_RATE_ADDR, OSPI_PROT_SDR);
285 prot |= FIELD_PREP(OSPI_PROT_DATA_RATE_CODE, OSPI_PROT_SDR);
288 prot |= OSPI_PROT_BIT_POS_DATA | OSPI_PROT_BIT_POS_ALT
292 prot |
[all...]
/u-boot/lib/efi_selftest/
H A Defi_selftest_fdt.c179 struct riscv_efi_boot_protocol *prot; local
183 (void **)&prot);
190 ret = prot->get_boot_hartid(prot, efi_hartid);
256 efi_st_error("boot-hartid differs: prot 0x%p, DT 0x%.8x\n",
/u-boot/board/freescale/m5253demo/
H A Dflash.c167 int flag, prot, sect, count; local
192 prot = 0;
195 prot++;
199 if (prot)
201 prot);
210 if (prot == 0) {
246 } else if (prot == CFG_SYS_SST_SECT) {
/u-boot/arch/arm/mach-at91/arm926ejs/
H A Deflash.c154 int flash_real_protect (flash_info_t *info, long sector, int prot) argument
160 debug("protect sector=%ld prot=%d\n", sector, prot);
164 if (!prot) {
171 if (prot) {
/u-boot/lib/efi_loader/
H A Dboothart.c274 struct riscv_efi_boot_protocol *prot; local
278 (void **)&prot);
286 ret = prot->get_boot_hartid(prot, hartid);
/u-boot/board/cobra5272/
H A Dflash.c136 int iflag, cflag, prot, sect; local
155 prot = 0;
158 prot++;
161 if (prot)
/u-boot/drivers/pci/
H A Dpci_ftpci100.c15 u32 prot; /* 0x04 - AHB Protection */ member in struct:ftpci100_ahbc
/u-boot/drivers/mtd/
H A Dcfi_flash.c1059 int prot; local
1072 prot = 0;
1075 prot++;
1076 if (prot) {
1078 prot);
1446 static int cfi_protect_bugfix(flash_info_t *info, long sector, int prot) argument
1456 prot)) {
1464 if (prot)
1480 int flash_real_protect(flash_info_t *info, long sector, int prot) argument
1488 if (!cfi_protect_bugfix(info, sector, prot)) {
[all...]
/u-boot/drivers/ata/
H A Dsata_sil.h53 __le16 prot; member in struct:sil_prb
H A Dsata_sil.c252 pcmd->prb.prot = cpu_to_le16(PRB_PROT_READ);
317 pcmd->prb.prot = cpu_to_le16(PRB_PROT_WRITE);
320 pcmd->prb.prot = cpu_to_le16(PRB_PROT_READ);
361 pcmd->prb.prot = cpu_to_le16(PRB_PROT_WRITE);
364 pcmd->prb.prot = cpu_to_le16(PRB_PROT_READ);
/u-boot/cmd/
H A Dsf.c389 bool prot = false; local
405 prot = true;
407 prot = false;
411 ret = spi_flash_protect(flash, start, len, prot);
/u-boot/net/
H A Dnet.c1594 int net_set_ether(uchar *xet, const uchar *dest_ethaddr, uint prot) argument
1606 et->et_protlen = htons(prot);
1614 vet->vet_type = htons(prot);
1619 int net_update_ether(struct ethernet_hdr *et, uchar *addr, uint prot) argument
1629 vet->vet_type = htons(prot);
1632 et->et_protlen = htons(prot);
1637 et802->et_prot = htons(prot);

Completed in 133 milliseconds