| /linux/drivers/scsi/aic7xxx/ |
| H A D | queue.h | 127 #define SLIST_FOREACH(var, head, field) \ argument 130 (var) = SLIST_NEXT((var), field)) 136 #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ argument 137 SLIST_NEXT((elm), field) = SLIST_NEXT((slistelm), field); \ 138 SLIST_NEXT((slistelm), field) = (elm); \ 141 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument 142 SLIST_NEXT((elm), field) = SLIST_FIRST((head)); \ 146 #define SLIST_NEXT(elm, field) ((elm)->field.sle_next) argument 148 #define SLIST_REMOVE(head, elm, type, field) do { \ argument 150 SLIST_REMOVE_HEAD((head), field); \ [all …]
|
| H A D | aic79xx.reg | 102 field DST_MODE 0x70 103 field SRC_MODE 0x07 117 field HWERRINT 0x80 118 field BRKADRINT 0x40 119 field SWTMINT 0x20 120 field PCIINT 0x10 121 field SCSIINT 0x08 122 field SEQINT 0x04 123 field CMDCMPLT 0x02 124 field SPLTINT 0x01 [all …]
|
| H A D | aic7xxx.reg | 71 field TEMODE 0x80 72 field ENSELO 0x40 73 field ENSELI 0x20 74 field ENRSELI 0x10 75 field ENAUTOATNO 0x08 76 field ENAUTOATNI 0x04 77 field ENAUTOATNP 0x02 78 field SCSIRSTO 0x01 88 field DFON 0x80 89 field DFPEXP 0x40 [all …]
|
| /linux/rust/syn/gen/ |
| H A D | debug.rs | 13 formatter.field("extern_token", &self.extern_token); in fmt() 14 formatter.field("name", &self.name); in fmt() 29 formatter.field("colon2_token", &self.colon2_token); in debug() 30 formatter.field("lt_token", &self.lt_token); in debug() 31 formatter.field("args", &self.args); in debug() 32 formatter.field("gt_token", &self.gt_token); in debug() 41 formatter.field("attrs", &self.attrs); in fmt() 42 formatter.field("pat", &self.pat); in fmt() 43 formatter.field("guard", &self.guard); in fmt() 44 formatter.field("fat_arrow_token", &self.fat_arrow_token); in fmt() [all …]
|
| /linux/include/linux/ |
| H A D | part_stat.h | 28 #define part_stat_get_cpu(part, field, cpu) \ argument 29 (per_cpu_ptr((part)->bd_stats, (cpu))->field) 31 #define part_stat_get(part, field) \ argument 32 part_stat_get_cpu(part, field, smp_processor_id()) 34 #define part_stat_read(part, field) \ argument 36 TYPEOF_UNQUAL((part)->bd_stats->field) res = 0; \ 39 res += per_cpu_ptr((part)->bd_stats, _cpu)->field; \ 52 #define part_stat_read_accum(part, field) \ argument 53 (part_stat_read(part, field[STAT_READ]) + \ 54 part_stat_read(part, field[STAT_WRITE]) + \ [all …]
|
| H A D | bitfield.h | 73 _pfx "value too large for the field"); \ 102 * FIELD_MAX() - produce the maximum value representable by a field 103 * @_mask: shifted mask defining the field's length and position 105 * FIELD_MAX() returns the maximum value that can be held in the field 115 * FIELD_FIT() - check if value fits in the field 116 * @_mask: shifted mask defining the field's length and position 117 * @_val: value to test against the field 129 * @_mask: shifted mask defining the field's length and position 130 * @_val: value to put in the field 145 * @_mask: shifted mask defining the field' 201 field_multiplier(u64 field) field_multiplier() argument 207 field_mask(u64 field) field_mask() argument 211 field_max(field) global() argument [all...] |
| /linux/arch/x86/kvm/vmx/ |
| H A D | tdx.h | 79 void tdh_vp_rd_failed(struct vcpu_tdx *tdx, char *uclass, u32 field, u64 err); 80 void tdh_vp_wr_failed(struct vcpu_tdx *tdx, char *uclass, char *op, u32 field, 83 static __always_inline u64 td_tdcs_exec_read64(struct kvm_tdx *kvm_tdx, u32 field) in td_tdcs_exec_read64() argument 87 err = tdh_mng_rd(&kvm_tdx->td, TDCS_EXEC(field), &data); in td_tdcs_exec_read64() 89 pr_err("TDH_MNG_RD[EXEC.0x%x] failed: 0x%llx\n", field, err); in td_tdcs_exec_read64() 95 static __always_inline void tdvps_vmcs_check(u32 field, u8 bits) in tdvps_vmcs_check() argument 100 #define VMCS_ENC_ACCESS_TYPE(field) ((field) & VMCS_ENC_ACCESS_TYPE_MASK) in tdvps_vmcs_check() argument 103 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && in tdvps_vmcs_check() 104 VMCS_ENC_ACCESS_TYPE(field) == VMCS_ENC_ACCESS_TYPE_HIGH, in tdvps_vmcs_check() 114 #define VMCS_ENC_WIDTH(field) ((field) & VMCS_ENC_WIDTH_MASK) in tdvps_vmcs_check() argument [all …]
|
| H A D | tdx_arch.h | 14 #define __BUILD_TDX_FIELD(non_arch, class, field) \ argument 17 ((u64)(field) & TDX_FIELD_MASK)) 19 #define BUILD_TDX_FIELD(class, field) \ argument 20 __BUILD_TDX_FIELD(false, (class), (field)) 22 #define BUILD_TDX_FIELD_NON_ARCH(class, field) \ argument 23 __BUILD_TDX_FIELD(true, (class), (field)) 52 #define TDCS_EXEC(field) BUILD_TDX_FIELD(TD_CLASS_EXECUTION_CONTROLS, (field)) argument 55 #define TDVPS_VMCS(field) BUILD_TDX_FIELD(TDVPS_CLASS_VMCS, (field)) argument 58 #define TDVPS_STATE(field) BUILD_TDX_FIELD(TDVPS_CLASS_OTHER_GUEST, (field)) argument 59 #define TDVPS_STATE_NON_ARCH(field) BUILD_TDX_FIELD_NON_ARCH(TDVPS_CLASS_OTHER_GUEST, (field)) argument [all …]
|
| /linux/kernel/trace/ |
| H A D | trace_output.c | 34 struct bputs_entry *field; in trace_print_bputs_msg_only() local 36 trace_assign_type(field, entry); in trace_print_bputs_msg_only() 38 trace_seq_puts(s, field->str); in trace_print_bputs_msg_only() 47 struct bprint_entry *field; in trace_print_bprintk_msg_only() local 49 trace_assign_type(field, entry); in trace_print_bprintk_msg_only() 51 trace_seq_bprintf(s, field->fmt, field->buf); in trace_print_bprintk_msg_only() 60 struct print_entry *field; in trace_print_printk_msg_only() local 62 trace_assign_type(field, entry); in trace_print_printk_msg_only() 64 trace_seq_puts(s, field in trace_print_printk_msg_only() 917 print_array(struct trace_iterator * iter,void * pos,struct ftrace_event_field * field) print_array() argument 946 struct ftrace_event_field *field; print_fields() local 1163 struct ftrace_entry *field; trace_fn_trace() local 1185 struct ftrace_entry *field; trace_fn_raw() local 1199 struct ftrace_entry *field; trace_fn_hex() local 1213 struct ftrace_entry *field; trace_fn_bin() local 1240 struct ctx_switch_entry *field; trace_ctxwake_print() local 1277 struct ctx_switch_entry *field; trace_ctxwake_raw() local 1312 struct ctx_switch_entry *field; trace_ctxwake_hex() local 1348 struct ctx_switch_entry *field; trace_ctxwake_bin() local 1393 struct stack_entry *field; trace_stack_print() local 1434 struct userstack_entry *field; trace_user_stack_print() local 1489 struct hwlat_entry *field; trace_hwlat_print() local 1521 struct hwlat_entry *field; trace_hwlat_raw() local 1553 struct osnoise_entry *field; trace_osnoise_print() local 1588 struct osnoise_entry *field; trace_osnoise_raw() local 1625 struct timerlat_entry *field; trace_timerlat_print() local 1641 struct timerlat_entry *field; trace_timerlat_raw() local 1671 struct bputs_entry *field; trace_bputs_print() local 1687 struct bputs_entry *field; trace_bputs_raw() local 1715 struct bprint_entry *field; trace_bprint_print() local 1731 struct bprint_entry *field; trace_bprint_raw() local 1756 struct print_entry *field; trace_print_print() local 1773 struct print_entry *field; trace_print_raw() local 1795 struct raw_data_entry *field; trace_raw_data() local 1825 struct func_repeats_entry *field; trace_func_repeats_raw() local 1843 struct func_repeats_entry *field; trace_func_repeats_print() local [all...] |
| H A D | trace_events_inject.c | 39 struct ftrace_event_field *field; in parse_field() local 60 field = trace_find_event_field(call, field_name); in parse_field() 62 if (!field) in parse_field() 65 *pf = field; in parse_field() 79 if (is_string_field(field)) in parse_field() 94 if (field->is_signed) in parse_field() 108 if (!is_string_field(field)) in parse_field() 140 struct ftrace_event_field *field; in trace_get_entry_size() local 145 list_for_each_entry(field, head, link) { in trace_get_entry_size() 146 if (field->size + field->offset > size) in trace_get_entry_size() [all …]
|
| /linux/drivers/infiniband/hw/mlx5/ |
| H A D | cong.c | 104 static u32 mlx5_get_cc_param_val(void *field, int offset) in mlx5_get_cc_param_val() argument 108 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 111 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 114 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 117 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 120 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 123 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 126 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 129 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 132 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() [all …]
|
| /linux/tools/include/linux/ |
| H A D | bitfield.h | 133 static __always_inline u64 field_multiplier(u64 field) in field_multiplier() argument 135 if ((field | (field - 1)) & ((field | (field - 1)) + 1)) in field_multiplier() 137 return field & -field; in field_multiplier() 139 static __always_inline u64 field_mask(u64 field) in field_mask() argument 141 return field / field_multiplier(field); in field_mask() 143 #define field_max(field) ((typeof(field))field_mask(field)) argument 145 static __always_inline __##type type##_encode_bits(base v, base field) \ 147 if (__builtin_constant_p(v) && (v & ~field_mask(field))) \ 149 return to((v & field_mask(field)) * field_multiplier(field)); \ 152 base val, base field) \ [all …]
|
| /linux/drivers/xen/xen-pciback/ |
| H A D | conf_space.c | 47 const struct config_field *field = entry->field; in DEFINE_PCI_CONFIG() local 51 switch (field->size) { in DEFINE_PCI_CONFIG() 53 if (field->u.b.read) in DEFINE_PCI_CONFIG() 54 ret = field->u.b.read(dev, offset, (u8 *) value, in DEFINE_PCI_CONFIG() 58 if (field->u.w.read) in DEFINE_PCI_CONFIG() 59 ret = field->u.w.read(dev, offset, (u16 *) value, in DEFINE_PCI_CONFIG() 63 if (field->u.dw.read) in DEFINE_PCI_CONFIG() 64 ret = field->u.dw.read(dev, offset, value, entry->data); in DEFINE_PCI_CONFIG() 75 const struct config_field *field = entry->field; in conf_space_write() local 77 switch (field->size) { in conf_space_write() [all …]
|
| /linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
| H A D | smu_helper.h | 97 extern uint32_t phm_set_field_to_u32(u32 offset, u32 original_data, u32 field, u32 size); 137 #define PHM_FIELD_SHIFT(reg, field) reg##__##field##__SHIFT argument 138 #define PHM_FIELD_MASK(reg, field) reg##__##field##_MASK argument 140 #define PHM_SET_FIELD(origval, reg, field, fieldval) \ argument 141 (((origval) & ~PHM_FIELD_MASK(reg, field)) | \ 142 (PHM_FIELD_MASK(reg, field) & ((fieldval) << PHM_FIELD_SHIFT(reg, field)))) 144 #define PHM_GET_FIELD(value, reg, field) \ argument 145 (((value) & PHM_FIELD_MASK(reg, field)) >> \ 146 PHM_FIELD_SHIFT(reg, field)) 151 #define PHM_READ_FIELD(device, reg, field) \ argument [all …]
|
| /linux/drivers/clk/st/ |
| H A D | clkgen.h | 22 struct clkgen_field *field) in clkgen_read() argument 24 return (readl(base + field->offset) >> field->shift) & field->mask; in clkgen_read() 28 static inline void clkgen_write(void __iomem *base, struct clkgen_field *field, in clkgen_write() argument 31 writel((readl(base + field->offset) & in clkgen_write() 32 ~(field->mask << field->shift)) | (val << field->shift), in clkgen_write() 33 base + field->offset); in clkgen_write() 44 #define CLKGEN_READ(pll, field) clkgen_read(pll->regs_base, \ argument 45 &pll->data->field) 47 #define CLKGEN_WRITE(pll, field, val) clkgen_write(pll->regs_base, \ argument 48 &pll->data->field, val)
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | exp_rcv.h | 18 #define EXP_TID_GET(tid, field) \ argument 19 (((tid) >> EXP_TID_TID##field##_SHIFT) & EXP_TID_TID##field##_MASK) 21 #define EXP_TID_SET(field, value) \ argument 22 (((value) & EXP_TID_TID##field##_MASK) << \ 23 EXP_TID_TID##field##_SHIFT) 24 #define EXP_TID_CLEAR(tid, field) ({ \ argument 25 (tid) &= ~(EXP_TID_TID##field##_MASK << \ 26 EXP_TID_TID##field##_SHIFT); \ 28 #define EXP_TID_RESET(tid, field, value) do { \ argument 29 EXP_TID_CLEAR(tid, field); \ [all …]
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | field-order.rst | 14 odd and even field are transmitted, and due to a small delay between 24 object on screen may well move between one field and the next. For 26 which field of a frame is older, the *temporal order*. 28 When the driver provides or accepts images field by field rather than 31 even) fields, the *spatial order*: The first line of the top field is 33 field is the second line of that frame. 36 whether a frame commences with the top or bottom field is pointless. Any 42 Counter to intuition the top field is not necessarily the older field. 43 Whether the older field contains the top or bottom lines is a convention 49 bus in the same order they were captured, so if the top field was [all …]
|
| /linux/include/linux/cdx/ |
| H A D | bitfield.h | 18 #define CDX_VAL(field, attribute) field ## _ ## attribute argument 20 #define CDX_LOW_BIT(field) CDX_VAL(field, LBN) argument 22 #define CDX_WIDTH(field) CDX_VAL(field, WIDTH) argument 24 #define CDX_HIGH_BIT(field) (CDX_LOW_BIT(field) + CDX_WIDTH(field) - 1) argument 39 #define CDX_DWORD_FIELD(dword, field) \ argument 40 (FIELD_GET(GENMASK(CDX_HIGH_BIT(field), CDX_LOW_BIT(field)), \ 47 #define CDX_INSERT_FIELD(field, value) \ argument 48 (FIELD_PREP(GENMASK(CDX_HIGH_BIT(field), \ 49 CDX_LOW_BIT(field)), value))
|
| /linux/drivers/md/ |
| H A D | dm-init.c | 117 char *field[4]; in dm_parse_table_entry() local 120 field[0] = str; in dm_parse_table_entry() 122 for (i = 0; i < ARRAY_SIZE(field) - 1; i++) { in dm_parse_table_entry() 123 field[i + 1] = str_field_delimit(&field[i], ' '); in dm_parse_table_entry() 124 if (!field[i + 1]) in dm_parse_table_entry() 128 next = str_field_delimit(&field[i], ','); in dm_parse_table_entry() 136 if (kstrtoull(field[0], 0, &sp->sector_start)) in dm_parse_table_entry() 139 if (kstrtoull(field[1], 0, &sp->length)) in dm_parse_table_entry() 142 strscpy(sp->target_type, field[2], sizeof(sp->target_type)); in dm_parse_table_entry() 148 dev->target_args_array[n] = kstrndup(field[3], DM_MAX_STR_SIZE, in dm_parse_table_entry() [all …]
|
| /linux/drivers/acpi/acpica/ |
| H A D | exfield.c | 137 (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field() 139 || obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field() 141 || obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field() 143 || obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field() 145 || obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field() 168 (acpi_size)ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->field.bit_length); in acpi_ex_read_data_from_field() 194 (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field() 202 (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field() 210 obj_desc->field.bit_length)); in acpi_ex_read_data_from_field() 213 obj_desc->field.region_obj->field.internal_pcc_buffer + in acpi_ex_read_data_from_field() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | fw.c | 209 u8 field; in mlx4_QUERY_FUNC() local 235 MLX4_GET(field, outbox, QUERY_FUNC_BUS_OFFSET); in mlx4_QUERY_FUNC() 236 func->bus = field & 0xf; in mlx4_QUERY_FUNC() 237 MLX4_GET(field, outbox, QUERY_FUNC_DEVICE_OFFSET); in mlx4_QUERY_FUNC() 238 func->device = field & 0xf1; in mlx4_QUERY_FUNC() 239 MLX4_GET(field, outbox, QUERY_FUNC_FUNCTION_OFFSET); in mlx4_QUERY_FUNC() 240 func->function = field & 0x7; in mlx4_QUERY_FUNC() 241 MLX4_GET(field, outbox, QUERY_FUNC_PHYSICAL_FUNCTION_OFFSET); in mlx4_QUERY_FUNC() 242 func->physical_function = field & 0xf; in mlx4_QUERY_FUNC() 247 MLX4_GET(field, outbox, QUERY_FUNC_RSVD_UARS_OFFSET); in mlx4_QUERY_FUNC() [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-input.c | 143 for (j = 0; j < report->field[i]->maxusage; j++) { in hidinput_find_key() 144 usage = report->field[i]->usage + j; in hidinput_find_key() 246 __s32 hidinput_calc_abs_res(const struct hid_field *field, __u16 code) in hidinput_calc_abs_res() argument 248 __s32 unit_exponent = field->unit_exponent; in hidinput_calc_abs_res() 249 __s32 logical_extents = field->logical_maximum - in hidinput_calc_abs_res() 250 field->logical_minimum; in hidinput_calc_abs_res() 251 __s32 physical_extents = field->physical_maximum - in hidinput_calc_abs_res() 252 field->physical_minimum; in hidinput_calc_abs_res() 273 if (field->unit == 0x11) { /* If centimeters */ in hidinput_calc_abs_res() 276 } else if (field->unit == 0x13) { /* If inches */ in hidinput_calc_abs_res() [all …]
|
| H A D | hid-dr.c | 53 drff->report->field[0]->value[0] = 0x51; in drff_play() 54 drff->report->field[0]->value[1] = 0x00; in drff_play() 55 drff->report->field[0]->value[2] = weak; in drff_play() 56 drff->report->field[0]->value[4] = strong; in drff_play() 59 drff->report->field[0]->value[0] = 0xfa; in drff_play() 60 drff->report->field[0]->value[1] = 0xfe; in drff_play() 62 drff->report->field[0]->value[0] = 0xf3; in drff_play() 63 drff->report->field[0]->value[1] = 0x00; in drff_play() 66 drff->report->field[0]->value[2] = 0x00; in drff_play() 67 drff->report->field[0]->value[4] = 0x00; in drff_play() [all …]
|
| H A D | hid-gaff.c | 44 gaff->report->field[0]->value[0] = 0x51; in hid_gaff_play() 45 gaff->report->field[0]->value[1] = 0x0; in hid_gaff_play() 46 gaff->report->field[0]->value[2] = right; in hid_gaff_play() 47 gaff->report->field[0]->value[3] = 0; in hid_gaff_play() 48 gaff->report->field[0]->value[4] = left; in hid_gaff_play() 49 gaff->report->field[0]->value[5] = 0; in hid_gaff_play() 53 gaff->report->field[0]->value[0] = 0xfa; in hid_gaff_play() 54 gaff->report->field[0]->value[1] = 0xfe; in hid_gaff_play() 55 gaff->report->field[0]->value[2] = 0x0; in hid_gaff_play() 56 gaff->report->field[0]->value[4] = 0x0; in hid_gaff_play() [all …]
|
| /linux/drivers/gpu/drm/amd/include/ |
| H A D | cgs_common.h | 120 #define CGS_REG_FIELD_SHIFT(reg, field) reg##__##field##__SHIFT argument 121 #define CGS_REG_FIELD_MASK(reg, field) reg##__##field##_MASK argument 123 #define CGS_REG_SET_FIELD(orig_val, reg, field, field_val) \ argument 124 (((orig_val) & ~CGS_REG_FIELD_MASK(reg, field)) | \ 125 (CGS_REG_FIELD_MASK(reg, field) & ((field_val) << CGS_REG_FIELD_SHIFT(reg, field)))) 127 #define CGS_REG_GET_FIELD(value, reg, field) \ argument 128 (((value) & CGS_REG_FIELD_MASK(reg, field)) >> CGS_REG_FIELD_SHIFT(reg, field)) 130 #define CGS_WREG32_FIELD(device, reg, field, val) \ argument 131 …egister(device, mm##reg) & ~CGS_REG_FIELD_MASK(reg, field)) | (val) << CGS_REG_FIELD_SHIFT(reg, fi… 133 #define CGS_WREG32_FIELD_IND(device, space, reg, field, val) \ argument [all …]
|