Lines Matching refs:max_ws_blocks
486 return sprintf(buf, "%u\n", sdkp->max_ws_blocks); in max_write_same_blocks_show()
513 sdkp->max_ws_blocks = max; in max_write_same_blocks_store()
811 max_blocks = sdkp->max_ws_blocks; in sd_config_discard()
820 max_blocks = sdkp->max_ws_blocks; in sd_config_discard()
826 max_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_discard()
967 sdkp->max_ws_blocks = 0; in sd_config_write_same()
976 if (sdkp->max_ws_blocks > SD_MAX_WS10_BLOCKS) in sd_config_write_same()
977 sdkp->max_ws_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_write_same()
980 sdkp->max_ws_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_write_same()
984 sdkp->max_ws_blocks = 0; in sd_config_write_same()
991 else if (sdkp->max_ws_blocks) in sd_config_write_same()
996 if (sdkp->max_ws_blocks && in sd_config_write_same()
1010 sdkp->max_ws_blocks = in sd_config_write_same()
1011 round_down(sdkp->max_ws_blocks, in sd_config_write_same()
1017 blk_queue_max_write_zeroes_sectors(q, sdkp->max_ws_blocks * in sd_config_write_same()
2867 sdkp->max_ws_blocks = (u32)get_unaligned_be64(&vpd->data[36]); in sd_read_block_limits()