Searched refs:magic_size (Results 1 – 2 of 2) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_linecards.c | 1348 size_t magic_size = strlen(MLXSW_LINECARDS_INI_BUNDLE_MAGIC); in mlxsw_linecard_types_file_validate() local 1355 if (size < magic_size) { in mlxsw_linecard_types_file_validate() 1359 if (memcmp(data, MLXSW_LINECARDS_INI_BUNDLE_MAGIC, magic_size)) { in mlxsw_linecard_types_file_validate() 1364 data += magic_size; in mlxsw_linecard_types_file_validate() 1365 size -= magic_size; in mlxsw_linecard_types_file_validate() 1397 size_t magic_size = strlen(MLXSW_LINECARDS_INI_BUNDLE_MAGIC); in mlxsw_linecard_types_file_parse() local 1398 size_t size = types_info->data_size - magic_size; in mlxsw_linecard_types_file_parse() 1399 const u8 *data = types_info->data + magic_size; in mlxsw_linecard_types_file_parse()
|
/linux-6.1.9/drivers/hid/ |
D | hid-uclogic-params.c | 1025 int magic_size, int endpoint) in uclogic_probe_interface() argument 1038 buf = kmemdup(magic_arr, magic_size, GFP_KERNEL); in uclogic_probe_interface() 1047 rc = usb_interrupt_msg(udev, pipe, buf, magic_size, &sent, 1000); in uclogic_probe_interface() 1048 if (rc || sent != magic_size) { in uclogic_probe_interface()
|