In case of buyback, you can put 100% shares for tender offer. The registrar will do his calculation and accept the shares as per tender shares volume. In case your shares are not accepted 100%, remaining shares will be return to your DP. You can check your left out shares in your portfolio. You will get contract note from your broker for accepted shares.