Lines Matching defs:size
326 static int l2cap_seq_list_init(struct l2cap_seq_list *seq_list, u16 size)
330 /* Allocated size is a power of 2 to map sequence numbers
334 alloc_size = roundup_pow_of_two(size);
1409 /* The minimum encryption key size needs to be enforced by the
1415 * that have no key size requirements. Ensure that the link is
1416 * actually encrypted before enforcing a key size.
1420 /* On FIPS security level, key size must be 16 bytes */
2373 /* PDU size is derived from the HCI MTU */
2376 /* Constrain PDU size for BR/EDR connections */
3040 static void l2cap_add_conf_opt(void **ptr, u8 type, u8 len, unsigned long val, size_t size)
3046 if (size < L2CAP_CONF_OPT_SIZE + len)
3073 static void l2cap_add_opt_efs(void **ptr, struct l2cap_chan *chan, size_t size)
3101 (unsigned long) &efs, size);
3254 u16 size;
3310 size = min_t(u16, L2CAP_DEFAULT_MAX_PDU_SIZE, chan->conn->mtu -
3313 rfc.max_pdu_size = cpu_to_le16(size);
3347 size = min_t(u16, L2CAP_DEFAULT_MAX_PDU_SIZE, chan->conn->mtu -
3350 rfc.max_pdu_size = cpu_to_le16(size);
3388 u16 size;
3533 size = min_t(u16, le16_to_cpu(rfc.max_pdu_size),
3536 rfc.max_pdu_size = cpu_to_le16(size);
3537 chan->remote_mps = size;
3564 size = min_t(u16, le16_to_cpu(rfc.max_pdu_size),
3567 rfc.max_pdu_size = cpu_to_le16(size);
3568 chan->remote_mps = size;
3595 void *data, size_t size, u16 *result)
3599 void *endptr = data + size;
3858 * did not send an RFC or extended window size option.