Searched refs:struct_size (Results 1 – 3 of 3) sorted by relevance
| /tools/include/linux/ |
| D | overflow.h | 139 #define struct_size(p, member, n) \ macro
|
| /tools/testing/cxl/test/ |
| D | mem.c | 248 if (cmd->size_out < struct_size(pl, records, ret_limit)) in mock_get_event() 255 memset(cmd->payload_out, 0, struct_size(pl, records, 0)); in mock_get_event() 271 cmd->size_out = struct_size(pl, records, i); in mock_get_event() 1086 po = kzalloc(struct_size(po, record, poison_inject_dev_max), GFP_KERNEL); in cxl_get_injected_po() 1124 memcpy(cmd->payload_out, po, struct_size(po, record, nr_records)); in mock_get_poison() 1125 cmd->size_out = struct_size(po, record, nr_records); in mock_get_poison()
|
| /tools/testing/nvdimm/test/ |
| D | nfit.c | 1890 + struct_size(flush, hint_address, NUM_HINTS) * NUM_DCR in nfit_test0_alloc()
|