Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\sed-opal.c Create Date:2022-07-28 18:10:19
Last Modify:2020-03-17 23:36:33 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:add_token_u64

Proto:static void add_token_u64(int *err, struct opal_dev *cmd, u64 number)

Type:void

Parameter:

TypeParameterName
int *err
struct opal_dev *cmd
u64number
592  If Not (number & ~TINY_ATOM_DATA_MASK) Then
593  add_token_u8(err, cmd, number)
594  Return
597  msb = ls64 - find last set bit in a 64-bit word*@x: the word to search* This is defined in a similar way as the libc and compiler builtin* ffsll, but returns the position of the most significant set bit
598  len = DIV_ROUND_UP(msb, 8)
600  If Not can_add(err, cmd, len + 1) Then
601  pr_debug("Error adding u64: end of buffer.\n")
602  Return
604  add_short_atom_header(cmd, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., len)
605  When len-- cycle
606  add_token_u8(err, cmd, number >> (len * 8))
Caller
NameDescribe
generic_get_columnquest @column from table @table on device @dev. On success, the column* data will be available in dev->resp->tok[4]
generic_table_write_data
setup_locking_range
start_generic_opal_session
start_auth_opal_session
activate_lsp
read_table_data