phy_blk 13196 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c struct bnx2x_phy *phy_blk[PORT_MAX]; phy_blk 13252 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c phy_blk[PORT_0] = &(phy[PORT_1]); phy_blk 13253 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c phy_blk[PORT_1] = &(phy[PORT_0]); phy_blk 13255 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c phy_blk[PORT_0] = &(phy[PORT_0]); phy_blk 13256 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c phy_blk[PORT_1] = &(phy[PORT_1]); phy_blk 13267 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c phy_blk[port]->addr); phy_blk 13268 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c if (bnx2x_8073_8727_external_rom_boot(bp, phy_blk[port], phy_blk 13273 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_read(bp, phy_blk[port], phy_blk 13278 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_write(bp, phy_blk[port], phy_blk 13293 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_read(bp, phy_blk[port], phy_blk 13297 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_write(bp, phy_blk[port], phy_blk 13303 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_read(bp, phy_blk[port], phy_blk 13306 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_write(bp, phy_blk[port], phy_blk 13419 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c struct bnx2x_phy *phy_blk[PORT_MAX]; phy_blk 13484 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c phy_blk[PORT_0] = &(phy[PORT_1]); phy_blk 13485 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c phy_blk[PORT_1] = &(phy[PORT_0]); phy_blk 13487 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c phy_blk[PORT_0] = &(phy[PORT_0]); phy_blk 13488 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c phy_blk[PORT_1] = &(phy[PORT_1]); phy_blk 13497 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c phy_blk[port]->addr); phy_blk 13498 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c if (bnx2x_8073_8727_external_rom_boot(bp, phy_blk[port], phy_blk 13502 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_write(bp, phy_blk[port], phy_blk 1458 drivers/staging/rts5208/ms.c static int ms_set_bad_block(struct rtsx_chip *chip, u16 phy_blk) phy_blk 1464 drivers/staging/rts5208/ms.c retval = ms_read_extra_data(chip, phy_blk, 0, extra, MS_EXTRA_SIZE); phy_blk 1481 drivers/staging/rts5208/ms.c data[2] = (u8)(phy_blk >> 8); phy_blk 1482 drivers/staging/rts5208/ms.c data[3] = (u8)phy_blk; phy_blk 1516 drivers/staging/rts5208/ms.c static int ms_erase_block(struct rtsx_chip *chip, u16 phy_blk) phy_blk 1535 drivers/staging/rts5208/ms.c data[2] = (u8)(phy_blk >> 8); phy_blk 1536 drivers/staging/rts5208/ms.c data[3] = (u8)phy_blk; phy_blk 1561 drivers/staging/rts5208/ms.c ms_set_bad_block(chip, phy_blk); phy_blk 1594 drivers/staging/rts5208/ms.c static int ms_init_page(struct rtsx_chip *chip, u16 phy_blk, u16 log_blk, phy_blk 1613 drivers/staging/rts5208/ms.c retval = ms_write_extra_data(chip, phy_blk, i, phy_blk 2176 drivers/staging/rts5208/ms.c int seg_no, u16 log_off, u16 phy_blk) phy_blk 2186 drivers/staging/rts5208/ms.c segment->l2p_table[log_off] = phy_blk; phy_blk 2189 drivers/staging/rts5208/ms.c static void ms_set_unused_block(struct rtsx_chip *chip, u16 phy_blk) phy_blk 2195 drivers/staging/rts5208/ms.c seg_no = (int)phy_blk >> 9; phy_blk 2198 drivers/staging/rts5208/ms.c segment->free_table[segment->set_index++] = phy_blk; phy_blk 2209 drivers/staging/rts5208/ms.c u16 phy_blk; phy_blk 2216 drivers/staging/rts5208/ms.c phy_blk = segment->free_table[segment->get_index]; phy_blk 2223 drivers/staging/rts5208/ms.c return phy_blk; phy_blk 2231 drivers/staging/rts5208/ms.c static int ms_arbitrate_l2p(struct rtsx_chip *chip, u16 phy_blk, phy_blk 2239 drivers/staging/rts5208/ms.c seg_no = (int)phy_blk >> 9; phy_blk 2249 drivers/staging/rts5208/ms.c segment->l2p_table[log_off] = phy_blk; phy_blk 2252 drivers/staging/rts5208/ms.c ms_erase_block(chip, phy_blk); phy_blk 2254 drivers/staging/rts5208/ms.c ms_set_unused_block(chip, phy_blk); phy_blk 2257 drivers/staging/rts5208/ms.c if (phy_blk < tmp_blk) { phy_blk 2259 drivers/staging/rts5208/ms.c ms_erase_block(chip, phy_blk); phy_blk 2261 drivers/staging/rts5208/ms.c ms_set_unused_block(chip, phy_blk); phy_blk 2267 drivers/staging/rts5208/ms.c segment->l2p_table[log_off] = phy_blk; phy_blk 2280 drivers/staging/rts5208/ms.c u16 start, end, phy_blk, log_blk, tmp_blk, idx; phy_blk 2327 drivers/staging/rts5208/ms.c for (phy_blk = start; phy_blk < end; phy_blk++) { phy_blk 2331 drivers/staging/rts5208/ms.c if (phy_blk == segment->defect_list[i]) { phy_blk 2342 drivers/staging/rts5208/ms.c retval = ms_read_extra_data(chip, phy_blk, 0, phy_blk 2346 drivers/staging/rts5208/ms.c ms_set_bad_block(chip, phy_blk); phy_blk 2353 drivers/staging/rts5208/ms.c retval = ms_erase_block(chip, phy_blk); phy_blk 2373 drivers/staging/rts5208/ms.c retval = ms_erase_block(chip, phy_blk); phy_blk 2377 drivers/staging/rts5208/ms.c ms_set_unused_block(chip, phy_blk); phy_blk 2384 drivers/staging/rts5208/ms.c retval = ms_erase_block(chip, phy_blk); phy_blk 2388 drivers/staging/rts5208/ms.c ms_set_unused_block(chip, phy_blk); phy_blk 2395 drivers/staging/rts5208/ms.c segment->l2p_table[idx] = phy_blk; phy_blk 2407 drivers/staging/rts5208/ms.c (void)ms_arbitrate_l2p(chip, phy_blk, phy_blk 2433 drivers/staging/rts5208/ms.c phy_blk = ms_get_unused_block(chip, seg_no); phy_blk 2434 drivers/staging/rts5208/ms.c if (phy_blk == 0xFFFF) { phy_blk 2438 drivers/staging/rts5208/ms.c retval = ms_init_page(chip, phy_blk, log_blk, 0, 1); phy_blk 2442 drivers/staging/rts5208/ms.c segment->l2p_table[idx] = phy_blk; phy_blk 2467 drivers/staging/rts5208/ms.c phy_blk = ms_get_unused_block(chip, 0); phy_blk 2468 drivers/staging/rts5208/ms.c retval = ms_copy_page(chip, tmp_blk, phy_blk, phy_blk 2474 drivers/staging/rts5208/ms.c segment->l2p_table[log_blk] = phy_blk; phy_blk 2954 drivers/staging/rts5208/ms.c static int ms_read_multiple_pages(struct rtsx_chip *chip, u16 phy_blk, phy_blk 2964 drivers/staging/rts5208/ms.c retval = ms_read_extra_data(chip, phy_blk, start_page, phy_blk 2984 drivers/staging/rts5208/ms.c data[2] = (u8)(phy_blk >> 8); phy_blk 2985 drivers/staging/rts5208/ms.c data[3] = (u8)phy_blk; phy_blk 3033 drivers/staging/rts5208/ms.c (chip, phy_blk, phy_blk 24 drivers/staging/rts5208/xd.c static int xd_init_page(struct rtsx_chip *chip, u32 phy_blk, u16 logoff, phy_blk 831 drivers/staging/rts5208/xd.c static void xd_set_unused_block(struct rtsx_chip *chip, u32 phy_blk) phy_blk 837 drivers/staging/rts5208/xd.c zone_no = (int)phy_blk >> 10; phy_blk 860 drivers/staging/rts5208/xd.c zone->free_table[zone->set_index++] = (u16)(phy_blk & 0x3ff); phy_blk 870 drivers/staging/rts5208/xd.c u32 phy_blk; phy_blk 894 drivers/staging/rts5208/xd.c phy_blk = zone->free_table[zone->get_index]; phy_blk 900 drivers/staging/rts5208/xd.c phy_blk += ((u32)(zone_no) << 10); phy_blk 901 drivers/staging/rts5208/xd.c return phy_blk; phy_blk 922 drivers/staging/rts5208/xd.c u32 phy_blk = 0; phy_blk 940 drivers/staging/rts5208/xd.c phy_blk = xd_get_unused_block(chip, zone_no); phy_blk 941 drivers/staging/rts5208/xd.c if (phy_blk == BLK_NOT_FOUND) { phy_blk 946 drivers/staging/rts5208/xd.c retval = xd_init_page(chip, phy_blk, log_off, phy_blk 956 drivers/staging/rts5208/xd.c xd_set_l2p_tbl(chip, zone_no, log_off, (u16)(phy_blk & 0x3FF)); phy_blk 957 drivers/staging/rts5208/xd.c return phy_blk; phy_blk 993 drivers/staging/rts5208/xd.c static int xd_mark_bad_block(struct rtsx_chip *chip, u32 phy_blk) phy_blk 1000 drivers/staging/rts5208/xd.c dev_dbg(rtsx_dev(chip), "mark block 0x%x as bad block\n", phy_blk); phy_blk 1002 drivers/staging/rts5208/xd.c if (phy_blk == BLK_NOT_FOUND) phy_blk 1018 drivers/staging/rts5208/xd.c page_addr = phy_blk << xd_card->block_shift; phy_blk 1044 drivers/staging/rts5208/xd.c static int xd_init_page(struct rtsx_chip *chip, u32 phy_blk, phy_blk 1052 drivers/staging/rts5208/xd.c dev_dbg(rtsx_dev(chip), "Init block 0x%x\n", phy_blk); phy_blk 1056 drivers/staging/rts5208/xd.c if (phy_blk == BLK_NOT_FOUND) phy_blk 1067 drivers/staging/rts5208/xd.c page_addr = (phy_blk << xd_card->block_shift) + start_page; phy_blk 1087 drivers/staging/rts5208/xd.c xd_mark_bad_block(chip, phy_blk); phy_blk 1239 drivers/staging/rts5208/xd.c static int xd_erase_block(struct rtsx_chip *chip, u32 phy_blk) phy_blk 1246 drivers/staging/rts5208/xd.c if (phy_blk == BLK_NOT_FOUND) phy_blk 1249 drivers/staging/rts5208/xd.c page_addr = phy_blk << xd_card->block_shift; phy_blk 1267 drivers/staging/rts5208/xd.c xd_mark_bad_block(chip, phy_blk); phy_blk 1280 drivers/staging/rts5208/xd.c xd_mark_bad_block(chip, phy_blk); phy_blk 1288 drivers/staging/rts5208/xd.c xd_mark_bad_block(chip, phy_blk); phy_blk 1498 drivers/staging/rts5208/xd.c static int xd_read_multiple_pages(struct rtsx_chip *chip, u32 phy_blk, phy_blk 1516 drivers/staging/rts5208/xd.c if ((phy_blk & 0x3FF) == 0x3FF) { phy_blk 1531 drivers/staging/rts5208/xd.c page_addr = (phy_blk << xd_card->block_shift) + start_page; phy_blk 1601 drivers/staging/rts5208/xd.c retval = xd_copy_page(chip, phy_blk, new_blk, 0, phy_blk 1615 drivers/staging/rts5208/xd.c xd_erase_block(chip, phy_blk); phy_blk 1616 drivers/staging/rts5208/xd.c xd_mark_bad_block(chip, phy_blk);