Lines Matching refs:cmd_len
4061 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_command_rej() argument
4066 if (cmd_len < sizeof(*rej)) in l2cap_command_rej()
4229 struct l2cap_cmd_hdr *cmd, u16 cmd_len, u8 *data) in l2cap_connect_req() argument
4234 if (cmd_len < sizeof(struct l2cap_conn_req)) in l2cap_connect_req()
4248 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_connect_create_rsp() argument
4257 if (cmd_len < sizeof(*rsp)) in l2cap_connect_create_rsp()
4360 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_config_req() argument
4369 if (cmd_len < sizeof(*req)) in l2cap_config_req()
4391 len = cmd_len - sizeof(*req); in l2cap_config_req()
4470 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_config_rsp() argument
4476 int len = cmd_len - sizeof(*rsp); in l2cap_config_rsp()
4479 if (cmd_len < sizeof(*rsp)) in l2cap_config_rsp()
4584 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_disconnect_req() argument
4592 if (cmd_len != sizeof(*req)) in l2cap_disconnect_req()
4631 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_disconnect_rsp() argument
4638 if (cmd_len != sizeof(*rsp)) in l2cap_disconnect_rsp()
4677 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_information_req() argument
4683 if (cmd_len != sizeof(*req)) in l2cap_information_req()
4728 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_information_rsp() argument
4734 if (cmd_len < sizeof(*rsp)) in l2cap_information_rsp()
4792 u16 cmd_len, void *data) in l2cap_create_channel_req() argument
4800 if (cmd_len != sizeof(*req)) in l2cap_create_channel_req()
5216 u16 cmd_len, void *data) in l2cap_move_channel_req() argument
5224 if (cmd_len != sizeof(*req)) in l2cap_move_channel_req()
5432 u16 cmd_len, void *data) in l2cap_move_channel_rsp() argument
5437 if (cmd_len != sizeof(*rsp)) in l2cap_move_channel_rsp()
5455 u16 cmd_len, void *data) in l2cap_move_channel_confirm() argument
5461 if (cmd_len != sizeof(*cfm)) in l2cap_move_channel_confirm()
5497 u16 cmd_len, void *data) in l2cap_move_channel_confirm_rsp() argument
5503 if (cmd_len != sizeof(*rsp)) in l2cap_move_channel_confirm_rsp()
5532 u16 cmd_len, u8 *data) in l2cap_conn_param_update_req() argument
5543 if (cmd_len != sizeof(struct l2cap_conn_param_update_req)) in l2cap_conn_param_update_req()
5581 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_le_connect_rsp() argument
5590 if (cmd_len < sizeof(*rsp)) in l2cap_le_connect_rsp()
5668 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_bredr_sig_cmd() argument
5675 l2cap_command_rej(conn, cmd, cmd_len, data); in l2cap_bredr_sig_cmd()
5679 err = l2cap_connect_req(conn, cmd, cmd_len, data); in l2cap_bredr_sig_cmd()
5684 l2cap_connect_create_rsp(conn, cmd, cmd_len, data); in l2cap_bredr_sig_cmd()
5688 err = l2cap_config_req(conn, cmd, cmd_len, data); in l2cap_bredr_sig_cmd()
5692 l2cap_config_rsp(conn, cmd, cmd_len, data); in l2cap_bredr_sig_cmd()
5696 err = l2cap_disconnect_req(conn, cmd, cmd_len, data); in l2cap_bredr_sig_cmd()
5700 l2cap_disconnect_rsp(conn, cmd, cmd_len, data); in l2cap_bredr_sig_cmd()
5704 l2cap_send_cmd(conn, cmd->ident, L2CAP_ECHO_RSP, cmd_len, data); in l2cap_bredr_sig_cmd()
5711 err = l2cap_information_req(conn, cmd, cmd_len, data); in l2cap_bredr_sig_cmd()
5715 l2cap_information_rsp(conn, cmd, cmd_len, data); in l2cap_bredr_sig_cmd()
5719 err = l2cap_create_channel_req(conn, cmd, cmd_len, data); in l2cap_bredr_sig_cmd()
5723 err = l2cap_move_channel_req(conn, cmd, cmd_len, data); in l2cap_bredr_sig_cmd()
5727 l2cap_move_channel_rsp(conn, cmd, cmd_len, data); in l2cap_bredr_sig_cmd()
5731 err = l2cap_move_channel_confirm(conn, cmd, cmd_len, data); in l2cap_bredr_sig_cmd()
5735 l2cap_move_channel_confirm_rsp(conn, cmd, cmd_len, data); in l2cap_bredr_sig_cmd()
5748 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_le_connect_req() argument
5758 if (cmd_len != sizeof(*req)) in l2cap_le_connect_req()
5874 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_le_credits() argument
5881 if (cmd_len != sizeof(*pkt)) in l2cap_le_credits()
5920 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_ecred_conn_req() argument
5938 if (cmd_len < sizeof(*req) || (cmd_len - sizeof(*req)) % sizeof(u16)) { in l2cap_ecred_conn_req()
5943 cmd_len -= sizeof(*req); in l2cap_ecred_conn_req()
5944 num_scid = cmd_len / sizeof(u16); in l2cap_ecred_conn_req()
6063 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_ecred_conn_rsp() argument
6073 if (cmd_len < sizeof(*rsp)) in l2cap_ecred_conn_rsp()
6086 cmd_len -= sizeof(*rsp); in l2cap_ecred_conn_rsp()
6099 if (cmd_len < sizeof(dcid)) { in l2cap_ecred_conn_rsp()
6106 cmd_len -= sizeof(u16); in l2cap_ecred_conn_rsp()
6177 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_ecred_reconf_req() argument
6189 if (cmd_len < sizeof(*req) || cmd_len - sizeof(*req) % sizeof(u16)) { in l2cap_ecred_reconf_req()
6209 cmd_len -= sizeof(*req); in l2cap_ecred_reconf_req()
6210 num_scid = cmd_len / sizeof(u16); in l2cap_ecred_reconf_req()
6248 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_ecred_reconf_rsp() argument
6255 if (cmd_len < sizeof(*rsp)) in l2cap_ecred_reconf_rsp()
6276 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_le_command_rej() argument
6282 if (cmd_len < sizeof(*rej)) in l2cap_le_command_rej()
6301 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_le_sig_cmd() argument
6308 l2cap_le_command_rej(conn, cmd, cmd_len, data); in l2cap_le_sig_cmd()
6312 err = l2cap_conn_param_update_req(conn, cmd, cmd_len, data); in l2cap_le_sig_cmd()
6319 l2cap_le_connect_rsp(conn, cmd, cmd_len, data); in l2cap_le_sig_cmd()
6323 err = l2cap_le_connect_req(conn, cmd, cmd_len, data); in l2cap_le_sig_cmd()
6327 err = l2cap_le_credits(conn, cmd, cmd_len, data); in l2cap_le_sig_cmd()
6331 err = l2cap_ecred_conn_req(conn, cmd, cmd_len, data); in l2cap_le_sig_cmd()
6335 err = l2cap_ecred_conn_rsp(conn, cmd, cmd_len, data); in l2cap_le_sig_cmd()
6339 err = l2cap_ecred_reconf_req(conn, cmd, cmd_len, data); in l2cap_le_sig_cmd()
6343 err = l2cap_ecred_reconf_rsp(conn, cmd, cmd_len, data); in l2cap_le_sig_cmd()
6347 err = l2cap_disconnect_req(conn, cmd, cmd_len, data); in l2cap_le_sig_cmd()
6351 l2cap_disconnect_rsp(conn, cmd, cmd_len, data); in l2cap_le_sig_cmd()