Searched refs:magic_size (Results 1 – 2 of 2) sorted by relevance
/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()
|
/drivers/hid/ |
D | hid-uclogic-params.c | 1051 size_t magic_size, int endpoint) in uclogic_probe_interface() argument 1064 buf = kmemdup(magic_arr, magic_size, GFP_KERNEL); in uclogic_probe_interface() 1073 rc = usb_interrupt_msg(udev, pipe, buf, magic_size, &sent, 1000); in uclogic_probe_interface() 1074 if (rc || sent != magic_size) { in uclogic_probe_interface()
|