Home
last modified time | relevance | path

Searched refs:n_parts (Results 1 – 6 of 6) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/sfc/
Dmtd.c67 size_t n_parts, size_t sizeof_part) in efx_mtd_add() argument
72 for (i = 0; i < n_parts; i++) { in efx_mtd_add()
Dfalcon.c924 size_t n_parts; in falcon_mtd_probe() local
933 n_parts = 0; in falcon_mtd_probe()
937 parts[n_parts].spi = spi; in falcon_mtd_probe()
938 parts[n_parts].offset = FALCON_FLASH_BOOTCODE_START; in falcon_mtd_probe()
939 parts[n_parts].common.dev_type_name = "flash"; in falcon_mtd_probe()
940 parts[n_parts].common.type_name = "sfc_flash_bootrom"; in falcon_mtd_probe()
941 parts[n_parts].common.mtd.type = MTD_NORFLASH; in falcon_mtd_probe()
942 parts[n_parts].common.mtd.flags = MTD_CAP_NORFLASH; in falcon_mtd_probe()
943 parts[n_parts].common.mtd.size = spi->size - FALCON_FLASH_BOOTCODE_START; in falcon_mtd_probe()
944 parts[n_parts].common.mtd.erasesize = spi->erase_size; in falcon_mtd_probe()
[all …]
Dsiena.c849 size_t n_parts) in siena_mtd_get_fw_subtypes() argument
860 for (i = 0; i < n_parts; i++) in siena_mtd_get_fw_subtypes()
871 size_t n_parts; in siena_mtd_probe() local
885 n_parts = 0; in siena_mtd_probe()
889 rc = siena_mtd_probe_partition(efx, &parts[n_parts], in siena_mtd_probe()
892 n_parts++; in siena_mtd_probe()
900 rc = siena_mtd_get_fw_subtypes(efx, parts, n_parts); in siena_mtd_probe()
904 rc = efx_mtd_add(efx, &parts[0].common, n_parts, sizeof(*parts)); in siena_mtd_probe()
Defx.h224 size_t n_parts, size_t sizeof_part);
Def10.c4493 size_t outlen, n_parts_total, i, n_parts; in efx_ef10_mtd_probe() local
4516 n_parts = 0; in efx_ef10_mtd_probe()
4520 rc = efx_ef10_mtd_probe_partition(efx, &parts[n_parts], type); in efx_ef10_mtd_probe()
4522 n_parts++; in efx_ef10_mtd_probe()
4527 rc = efx_mtd_add(efx, &parts[0].common, n_parts, sizeof(*parts)); in efx_ef10_mtd_probe()
/linux-4.4.14/net/rxrpc/
Dar-key.c218 unsigned int toklen = *_toklen, n_parts, loop, tmp; in rxrpc_krb5_decode_principal() local
228 n_parts = ntohl(*xdr++); in rxrpc_krb5_decode_principal()
230 if (n_parts <= 0 || n_parts > AFSTOKEN_K5_COMPONENTS_MAX) in rxrpc_krb5_decode_principal()
232 princ->n_name_parts = n_parts; in rxrpc_krb5_decode_principal()
234 if (toklen <= (n_parts + 1) * 4) in rxrpc_krb5_decode_principal()
237 princ->name_parts = kcalloc(n_parts, sizeof(char *), GFP_KERNEL); in rxrpc_krb5_decode_principal()
241 for (loop = 0; loop < n_parts; loop++) { in rxrpc_krb5_decode_principal()