/linux-master/drivers/mtd/parsers/ |
H A D | bcm47xxpart.c | 54 static void bcm47xxpart_add_part(struct mtd_partition *part, const char *name, argument 57 part->name = name; 58 part->offset = offset; 59 part->mask_flags = mask_flags; 199 * only part of TRX data. It's commonly used as checksum
|
H A D | cmdlinepart.c | 16 * if specified or truncated size is 0 the part is skipped 18 * if omitted the part will immediately follow the previous part 19 * or 0 if the first part 240 * make sure that part-names with ":" will not be handled as 241 * part of the mtd-id with an ":" 252 * as an <mtd-id>/<part-definition> separator. 339 struct cmdline_mtd_partition *part; local 353 for (part = partitions; part; par [all...] |
H A D | ofpart_core.c | 216 } *part; local 224 part = of_get_property(dp, "partitions", &plen); 225 if (!part) 230 nr_parts = plen / sizeof(part[0]); 239 parts[i].offset = be32_to_cpu(part->offset); 240 parts[i].size = be32_to_cpu(part->len) & ~1; 242 if (be32_to_cpu(part->len) & 1) 255 part++;
|
H A D | parser_trx.c | 56 struct mtd_partition *part; local 87 part = &parts[curr_part++]; 88 part->name = "loader"; 89 part->offset = trx.offset[i]; 94 part = &parts[curr_part++]; 95 part->name = "linux"; 96 part->offset = trx.offset[i]; 101 part = &parts[curr_part++]; 102 part->name = parser_trx_data_part_name(mtd, trx.offset[i]); 103 part [all...] |
/linux-master/drivers/mtd/ |
H A D | rfd_ftl.c | 93 static int build_block_map(struct partition *part, int block_no) argument 95 struct block *block = &part->blocks[block_no]; 98 block->offset = part->block_size * block_no; 100 if (le16_to_cpu(part->header_cache[0]) != RFD_MAGIC) { 107 for (i=0; i<part->data_sectors_per_block; i++) { 110 entry = le16_to_cpu(part->header_cache[HEADER_MAP_OFFSET + i]); 123 if (entry >= part->sector_count) { 127 part->mbd.mtd->name, block_no, i, entry); 131 if (part->sector_map[entry] != -1) { 134 part 151 scan_header(struct partition *part) argument 242 struct partition *part = container_of(dev, struct partition, mbd); local 268 erase_block(struct partition *part, int block) argument 319 move_block_contents(struct partition *part, int block_no, u_long *old_sector) argument 407 reclaim_block(struct partition *part, u_long *old_sector) argument 479 find_free_block(struct partition *part) argument 503 find_writable_block(struct partition *part, u_long *old_sector) argument 545 mark_sector_deleted(struct partition *part, u_long old_addr) argument 582 find_free_sector(const struct partition *part, const struct block *block) argument 603 struct partition *part = container_of(dev, struct partition, mbd); local 669 struct partition *part = container_of(dev, struct partition, mbd); local 711 struct partition *part = container_of(dev, struct partition, mbd); local 738 struct partition *part = container_of(dev, struct partition, mbd); local 749 struct partition *part; local 795 struct partition *part = container_of(dev, struct partition, mbd); local [all...] |
/linux-master/drivers/mtd/spi-nor/ |
H A D | core.c | 2000 const struct flash_info *part; local 2005 part = &manufacturers[i]->parts[j]; 2006 if (part->id && 2007 !memcmp(part->id->bytes, id, part->id->len)) { 2009 return part;
|
/linux-master/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_ethtool.c | 401 u32 part; local 415 part = (speed * 100) / line_speed; 417 if (line_speed < speed || !part) { 425 bp->pending_max = part; 427 bnx2x_update_max_mf_config(bp, part);
|
/linux-master/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_ioc.c | 1393 * Md5 check to be done as a part of compatibility check. 3151 attr->part[i].part_type = 3152 be32_to_cpu(f->part[i].part_type); 3153 attr->part[i].part_instance = 3154 be32_to_cpu(f->part[i].part_instance); 3155 attr->part[i].part_off = 3156 be32_to_cpu(f->part[i].part_off); 3157 attr->part[i].part_size = 3158 be32_to_cpu(f->part[i].part_size); 3159 attr->part[ [all...] |
H A D | bnad_ethtool.c | 926 if (offset >= flash_attr->part[i].part_off && 927 offset < (flash_attr->part[i].part_off + 928 flash_attr->part[i].part_size)) { 929 flash_part = flash_attr->part[i].part_type; 930 *base_offset = flash_attr->part[i].part_off;
|
/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | t4_hw.c | 2 * This file is part of the Chelsio T4 Ethernet driver for Linux. 3515 *reset = 0; /* already reset as part of load_fw */ 3810 * firmware will RESET the affected PHYs as part of this operation 4124 * sent us as part of its IEEE 802.3-based interpretation of 5137 * Programs the selected part of the VI's RSS mapping table with the 8961 unsigned int part, manufacturer; local 8966 /* Issue a Read ID Command to the Flash part. We decode supported 8981 for (part = 0; part < ARRAY_SIZE(supported_flash); part [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum1_kvdl.c | 74 struct mlxsw_sp1_kvdl_part *part, *min_part = NULL; local 78 part = kvdl->parts[i]; 79 if (alloc_size <= part->info.alloc_size && 81 part->info.alloc_size <= min_part->info.alloc_size)) 82 min_part = part; 91 struct mlxsw_sp1_kvdl_part *part; local 95 part = kvdl->parts[i]; 96 if (kvdl_index >= part->info.start_index && 97 kvdl_index <= part->info.end_index) 98 return part; 118 mlxsw_sp1_kvdl_part_alloc(struct mlxsw_sp1_kvdl_part *part, u32 *p_kvdl_index) argument 136 mlxsw_sp1_kvdl_part_free(struct mlxsw_sp1_kvdl_part *part, u32 kvdl_index) argument 152 struct mlxsw_sp1_kvdl_part *part; local 169 struct mlxsw_sp1_kvdl_part *part; local 184 struct mlxsw_sp1_kvdl_part *part; local 195 mlxsw_sp1_kvdl_part_update(struct mlxsw_sp1_kvdl_part *part, struct mlxsw_sp1_kvdl_part *part_prev, unsigned int size) argument 213 struct mlxsw_sp1_kvdl_part *part; local 239 mlxsw_sp1_kvdl_part_fini(struct mlxsw_sp1_kvdl_part *part) argument 277 mlxsw_sp1_kvdl_part_occ(struct mlxsw_sp1_kvdl_part *part) argument 308 struct mlxsw_sp1_kvdl_part *part; local 317 struct mlxsw_sp1_kvdl_part *part; local 326 struct mlxsw_sp1_kvdl_part *part; local [all...] |
H A D | spectrum2_kvdl.c | 56 static int mlxsw_sp2_kvdl_part_find_zero_bits(struct mlxsw_sp2_kvdl_part *part, argument 65 start_bit = part->last_allocated_bit + 1; 66 if (start_bit == part->usage_bit_count) 70 bit = find_next_zero_bit(part->usage, part->usage_bit_count, bit); 71 if (!wrap && bit + bit_count >= part->usage_bit_count) { 79 if (test_bit(bit + i, part->usage)) { 88 static int mlxsw_sp2_kvdl_part_alloc(struct mlxsw_sp2_kvdl_part *part, argument 97 bit_count = DIV_ROUND_UP(size, part->indexes_per_usage_bit); 98 err = mlxsw_sp2_kvdl_part_find_zero_bits(part, bit_coun 124 mlxsw_sp2_kvdl_part_free(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp2_kvdl_part *part, unsigned int size, u32 kvdl_index) argument 152 struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; local 164 struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; local 184 struct mlxsw_sp2_kvdl_part *part; local 216 mlxsw_sp2_kvdl_part_fini(struct mlxsw_sp2_kvdl_part *part) argument [all...] |
/linux-master/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_devlink.c | 242 const char *sn, *vendor, *part; local 248 part = nfp_hwinfo_lookup(pf->hwinfo, "assembly.partno"); 250 if (vendor && part && sn) { 253 buf = kmalloc(strlen(vendor) + strlen(part) + strlen(sn) + 1, 260 strcat(buf, part);
|
/linux-master/drivers/net/ethernet/sfc/ |
H A D | ef10.c | 2990 * - the low part of the timestamp 2991 * - the high part of the timestamp 3006 * Each part of the timestamp is itself split across two 16 bit 3497 struct efx_mcdi_mtd_partition *part, 3539 part->nvram_type = type; 3550 part->fw_subtype = MCDI_DWORD(outbuf, 3553 part->common.dev_type_name = "EF10 NVRAM manager"; 3554 part->common.type_name = info->name; 3556 part->common.mtd.type = MTD_NORFLASH; 3557 part 3496 efx_ef10_mtd_probe_partition(struct efx_nic *efx, struct efx_mcdi_mtd_partition *part, unsigned int type, unsigned long *found) argument [all...] |
H A D | mcdi.c | 2378 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd); local 2387 rc = efx_mcdi_nvram_read(efx, part->nvram_type, offset, 2401 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd); local 2405 size_t chunk = part->common.mtd.erasesize; 2408 if (!part->updating) { 2409 rc = efx_mcdi_nvram_update_start(efx, part->nvram_type); 2412 part->updating = true; 2419 rc = efx_mcdi_nvram_erase(efx, part->nvram_type, offset, 2432 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd); local 2439 if (!part 2462 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd); local 2474 efx_mcdi_mtd_rename(struct efx_mtd_partition *part) argument [all...] |
H A D | mcdi.h | 444 void efx_mcdi_mtd_rename(struct efx_mtd_partition *part);
|
H A D | net_driver.h | 156 #define EFX_TX_BUF_SKB 2 /* buffer is last part of skb */ 205 * @completed_timestamp_major: Top part of the most recent tx timestamp. 206 * @completed_timestamp_minor: Low part of the most recent tx timestamp. 480 * @sync_timestamp_major: Major part of the last ptp sync event 481 * @sync_timestamp_minor: Minor part of the last ptp sync event 1311 * @mtd_erase: Erase part of an MTD partition 1316 * @ptp_write_host_time: Send host time to MC as part of sync protocol 1465 void (*mtd_rename)(struct efx_mtd_partition *part);
|
/linux-master/drivers/net/ethernet/sfc/falcon/ |
H A D | falcon.c | 740 falcon_spi_slow_wait(struct falcon_mtd_partition *part, bool uninterruptible) argument 742 const struct falcon_spi_device *spi = part->spi; 743 struct ef4_nic *efx = part->common.mtd.priv; 762 part->common.name, part->common.dev_type_name); 804 falcon_spi_erase(struct falcon_mtd_partition *part, loff_t start, size_t len) argument 806 const struct falcon_spi_device *spi = part->spi; 807 struct ef4_nic *efx = part->common.mtd.priv; 829 rc = falcon_spi_slow_wait(part, false); 851 static void falcon_mtd_rename(struct ef4_mtd_partition *part) argument 862 struct falcon_mtd_partition *part = to_falcon_mtd_partition(mtd); local 878 struct falcon_mtd_partition *part = to_falcon_mtd_partition(mtd); local 894 struct falcon_mtd_partition *part = to_falcon_mtd_partition(mtd); local 910 struct falcon_mtd_partition *part = to_falcon_mtd_partition(mtd); local [all...] |
H A D | net_driver.h | 156 #define EF4_TX_BUF_SKB 2 /* buffer is last part of skb */ 1015 * @mtd_erase: Erase part of an MTD partition 1130 void (*mtd_rename)(struct ef4_mtd_partition *part);
|
/linux-master/drivers/net/ethernet/sfc/siena/ |
H A D | mcdi.c | 2154 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd); local 2163 rc = efx_mcdi_nvram_read(efx, part->nvram_type, offset, 2177 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd); local 2181 size_t chunk = part->common.mtd.erasesize; 2184 if (!part->updating) { 2185 rc = efx_mcdi_nvram_update_start(efx, part->nvram_type); 2188 part->updating = true; 2195 rc = efx_mcdi_nvram_erase(efx, part->nvram_type, offset, 2208 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd); local 2215 if (!part 2238 struct efx_mcdi_mtd_partition *part = to_efx_mcdi_mtd_partition(mtd); local 2250 efx_siena_mcdi_mtd_rename(struct efx_mtd_partition *part) argument [all...] |
H A D | mcdi.h | 383 void efx_siena_mcdi_mtd_rename(struct efx_mtd_partition *part);
|
H A D | mtd.c | 30 struct efx_mtd_partition *part = to_efx_mtd_partition(mtd); local 37 part->name, part->dev_type_name, rc); 40 static void efx_siena_mtd_remove_partition(struct efx_mtd_partition *part) argument 45 rc = mtd_device_unregister(&part->mtd); 51 list_del(&part->node); 57 struct efx_mtd_partition *part; local 61 part = (struct efx_mtd_partition *)((char *)parts + 64 part->mtd.writesize = 1; 66 if (!(part 100 struct efx_mtd_partition *parts, *part, *next; local 118 struct efx_mtd_partition *part; local [all...] |
H A D | net_driver.h | 176 #define EFX_TX_BUF_SKB 2 /* buffer is last part of skb */ 223 * @completed_timestamp_major: Top part of the most recent tx timestamp. 224 * @completed_timestamp_minor: Low part of the most recent tx timestamp. 488 * @sync_timestamp_major: Major part of the last ptp sync event 489 * @sync_timestamp_minor: Minor part of the last ptp sync event 1260 * @mtd_erase: Erase part of an MTD partition 1265 * @ptp_write_host_time: Send host time to MC as part of sync protocol 1416 void (*mtd_rename)(struct efx_mtd_partition *part);
|
H A D | siena.c | 857 struct efx_mcdi_mtd_partition *part, 881 part->nvram_type = type; 882 part->common.dev_type_name = "Siena NVRAM manager"; 883 part->common.type_name = info->name; 885 part->common.mtd.type = MTD_NORFLASH; 886 part->common.mtd.flags = MTD_CAP_NORFLASH; 887 part->common.mtd.size = size; 888 part->common.mtd.erasesize = erase_size; 856 siena_mtd_probe_partition(struct efx_nic *efx, struct efx_mcdi_mtd_partition *part, unsigned int type) argument
|
/linux-master/drivers/net/ieee802154/ |
H A D | at86rf230.c | 1420 unsigned int part, version, val; local 1435 rc = __at86rf230_read(lp, RG_PART_NUM, &part); 1465 switch (part) {
|