Lines Matching refs:tokens
1070 /* This is the number of tokens and frags that the user can SO_DEVMEM_DONTNEED
1072 * allocates to copy these tokens, and to prevent looping over the frags for
1082 struct dmabuf_token *tokens;
1089 if (optlen % sizeof(*tokens) ||
1090 optlen > sizeof(*tokens) * MAX_DONTNEED_TOKENS)
1093 num_tokens = optlen / sizeof(*tokens);
1094 tokens = kvmalloc_array(num_tokens, sizeof(*tokens), GFP_KERNEL);
1095 if (!tokens)
1098 if (copy_from_sockptr(tokens, optval, optlen)) {
1099 kvfree(tokens);
1105 for (j = 0; j < tokens[i].token_count; j++) {
1110 &sk->sk_user_frags, tokens[i].token_start + j);
1132 kvfree(tokens);