/Linux-v4.19/drivers/scsi/aic7xxx/ |
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 …]
|
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 …]
|
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-v4.19/include/net/ |
D | snmp.h | 126 #define __SNMP_INC_STATS(mib, field) \ argument 127 __this_cpu_inc(mib->mibs[field]) 129 #define SNMP_INC_STATS_ATOMIC_LONG(mib, field) \ argument 130 atomic_long_inc(&mib->mibs[field]) 132 #define SNMP_INC_STATS(mib, field) \ argument 133 this_cpu_inc(mib->mibs[field]) 135 #define SNMP_DEC_STATS(mib, field) \ argument 136 this_cpu_dec(mib->mibs[field]) 138 #define __SNMP_ADD_STATS(mib, field, addend) \ argument 139 __this_cpu_add(mib->mibs[field], addend) [all …]
|
/Linux-v4.19/drivers/xen/xen-pciback/ |
D | conf_space.c | 45 const struct config_field *field = entry->field; in DEFINE_PCI_CONFIG() local 49 switch (field->size) { in DEFINE_PCI_CONFIG() 51 if (field->u.b.read) in DEFINE_PCI_CONFIG() 52 ret = field->u.b.read(dev, offset, (u8 *) value, in DEFINE_PCI_CONFIG() 56 if (field->u.w.read) in DEFINE_PCI_CONFIG() 57 ret = field->u.w.read(dev, offset, (u16 *) value, in DEFINE_PCI_CONFIG() 61 if (field->u.dw.read) in DEFINE_PCI_CONFIG() 62 ret = field->u.dw.read(dev, offset, value, entry->data); in DEFINE_PCI_CONFIG() 73 const struct config_field *field = entry->field; in conf_space_write() local 75 switch (field->size) { in conf_space_write() [all …]
|
/Linux-v4.19/include/linux/ |
D | bitfield.h | 111 static __always_inline u64 field_multiplier(u64 field) in field_multiplier() argument 113 if ((field | (field - 1)) & ((field | (field - 1)) + 1)) in field_multiplier() 115 return field & -field; in field_multiplier() 117 static __always_inline u64 field_mask(u64 field) in field_mask() argument 119 return field / field_multiplier(field); in field_mask() 122 static __always_inline __##type type##_encode_bits(base v, base field) \ 124 if (__builtin_constant_p(v) && (v & ~field_mask(field))) \ 126 return to((v & field_mask(field)) * field_multiplier(field)); \ 129 base val, base field) \ 131 return (old & ~to(field)) | type##_encode_bits(val, field); \ [all …]
|
/Linux-v4.19/drivers/infiniband/hw/mlx5/ |
D | cong.c | 93 static u32 mlx5_get_cc_param_val(void *field, int offset) in mlx5_get_cc_param_val() argument 97 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 100 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 103 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 106 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 109 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 112 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 115 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 118 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 121 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() [all …]
|
/Linux-v4.19/arch/mips/include/asm/mach-pnx833x/ |
D | pnx833x.h | 33 #define PNX833X_BIT(val, reg, field) ((val) & PNX833X_##reg##_##field) argument 34 #define PNX833X_REGBIT(reg, field) PNX833X_BIT(PNX833X_##reg, reg, field) argument 37 #define PNX_FIELD(cpu, val, reg, field) \ argument 38 (((val) & PNX##cpu##_##reg##_##field##_MASK) >> \ 39 PNX##cpu##_##reg##_##field##_SHIFT) 40 #define PNX833X_FIELD(val, reg, field) PNX_FIELD(833X, val, reg, field) argument 41 #define PNX8330_FIELD(val, reg, field) PNX_FIELD(8330, val, reg, field) argument 42 #define PNX8335_FIELD(val, reg, field) PNX_FIELD(8335, val, reg, field) argument 45 #define PNX833X_REGFIELD(reg, field) PNX833X_FIELD(PNX833X_##reg, reg, field) argument 46 #define PNX8330_REGFIELD(reg, field) PNX8330_FIELD(PNX8330_##reg, reg, field) argument [all …]
|
/Linux-v4.19/drivers/gpu/drm/amd/powerplay/hwmgr/ |
D | smu_helper.h | 85 extern uint32_t phm_set_field_to_u32(u32 offset, u32 original_data, u32 field, u32 size); 112 #define PHM_FIELD_SHIFT(reg, field) reg##__##field##__SHIFT argument 113 #define PHM_FIELD_MASK(reg, field) reg##__##field##_MASK argument 115 #define PHM_SET_FIELD(origval, reg, field, fieldval) \ argument 116 (((origval) & ~PHM_FIELD_MASK(reg, field)) | \ 117 (PHM_FIELD_MASK(reg, field) & ((fieldval) << PHM_FIELD_SHIFT(reg, field)))) 119 #define PHM_GET_FIELD(value, reg, field) \ argument 120 (((value) & PHM_FIELD_MASK(reg, field)) >> \ 121 PHM_FIELD_SHIFT(reg, field)) 126 #define PHM_READ_FIELD(device, reg, field) \ argument [all …]
|
/Linux-v4.19/kernel/trace/ |
D | trace_output.c | 29 struct bputs_entry *field; in trace_print_bputs_msg_only() local 31 trace_assign_type(field, entry); in trace_print_bputs_msg_only() 33 trace_seq_puts(s, field->str); in trace_print_bputs_msg_only() 42 struct bprint_entry *field; in trace_print_bprintk_msg_only() local 44 trace_assign_type(field, entry); in trace_print_bprintk_msg_only() 46 trace_seq_bprintf(s, field->fmt, field->buf); in trace_print_bprintk_msg_only() 55 struct print_entry *field; in trace_print_printk_msg_only() local 57 trace_assign_type(field, entry); in trace_print_printk_msg_only() 59 trace_seq_puts(s, field->buf); in trace_print_printk_msg_only() 844 struct ftrace_entry *field; in trace_fn_trace() local [all …]
|
/Linux-v4.19/drivers/clk/st/ |
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-v4.19/drivers/infiniband/hw/hfi1/ |
D | exp_rcv.h | 60 #define EXP_TID_GET(tid, field) \ argument 61 (((tid) >> EXP_TID_TID##field##_SHIFT) & EXP_TID_TID##field##_MASK) 63 #define EXP_TID_SET(field, value) \ argument 64 (((value) & EXP_TID_TID##field##_MASK) << \ 65 EXP_TID_TID##field##_SHIFT) 66 #define EXP_TID_CLEAR(tid, field) ({ \ argument 67 (tid) &= ~(EXP_TID_TID##field##_MASK << \ 68 EXP_TID_TID##field##_SHIFT); \ 70 #define EXP_TID_RESET(tid, field, value) do { \ argument 71 EXP_TID_CLEAR(tid, field); \ [all …]
|
/Linux-v4.19/tools/lib/traceevent/ |
D | event-parse.c | 808 free(arg->field.name); in free_arg() 811 free_arg(arg->flags.field); in free_arg() 816 free_arg(arg->symbol.field); in free_arg() 821 free_arg(arg->hex.field); in free_arg() 825 free_arg(arg->int_array.field); in free_arg() 1301 static int field_is_string(struct format_field *field) in field_is_string() argument 1303 if ((field->flags & FIELD_IS_ARRAY) && in field_is_string() 1304 (strstr(field->type, "char") || strstr(field->type, "u8") || in field_is_string() 1305 strstr(field->type, "s8"))) in field_is_string() 1311 static int field_is_dynamic(struct format_field *field) in field_is_dynamic() argument [all …]
|
D | plugin_sched_switch.c | 47 static void write_and_save_comm(struct format_field *field, in write_and_save_comm() argument 54 comm = (char *)(record->data + field->offset); in write_and_save_comm() 57 field->size, comm); in write_and_save_comm() 64 tep_register_comm(field->event->pevent, comm, pid); in write_and_save_comm() 71 struct format_field *field; in sched_wakeup_handler() local 77 field = tep_find_any_field(event, "comm"); in sched_wakeup_handler() 78 if (field) { in sched_wakeup_handler() 79 write_and_save_comm(field, record, s, val); in sched_wakeup_handler() 100 struct format_field *field; in sched_switch_handler() local 106 field = tep_find_any_field(event, "prev_comm"); in sched_switch_handler() [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/ |
D | fw.c | 208 u8 field; in mlx4_QUERY_FUNC() local 234 MLX4_GET(field, outbox, QUERY_FUNC_BUS_OFFSET); in mlx4_QUERY_FUNC() 235 func->bus = field & 0xf; in mlx4_QUERY_FUNC() 236 MLX4_GET(field, outbox, QUERY_FUNC_DEVICE_OFFSET); in mlx4_QUERY_FUNC() 237 func->device = field & 0xf1; in mlx4_QUERY_FUNC() 238 MLX4_GET(field, outbox, QUERY_FUNC_FUNCTION_OFFSET); in mlx4_QUERY_FUNC() 239 func->function = field & 0x7; in mlx4_QUERY_FUNC() 240 MLX4_GET(field, outbox, QUERY_FUNC_PHYSICAL_FUNCTION_OFFSET); in mlx4_QUERY_FUNC() 241 func->physical_function = field & 0xf; in mlx4_QUERY_FUNC() 246 MLX4_GET(field, outbox, QUERY_FUNC_RSVD_UARS_OFFSET); in mlx4_QUERY_FUNC() [all …]
|
/Linux-v4.19/drivers/gpu/drm/amd/include/ |
D | cgs_common.h | 121 #define CGS_REG_FIELD_SHIFT(reg, field) reg##__##field##__SHIFT argument 122 #define CGS_REG_FIELD_MASK(reg, field) reg##__##field##_MASK argument 124 #define CGS_REG_SET_FIELD(orig_val, reg, field, field_val) \ argument 125 (((orig_val) & ~CGS_REG_FIELD_MASK(reg, field)) | \ 126 (CGS_REG_FIELD_MASK(reg, field) & ((field_val) << CGS_REG_FIELD_SHIFT(reg, field)))) 128 #define CGS_REG_GET_FIELD(value, reg, field) \ argument 129 (((value) & CGS_REG_FIELD_MASK(reg, field)) >> CGS_REG_FIELD_SHIFT(reg, field)) 131 #define CGS_WREG32_FIELD(device, reg, field, val) \ argument 132 …egister(device, mm##reg) & ~CGS_REG_FIELD_MASK(reg, field)) | (val) << CGS_REG_FIELD_SHIFT(reg, fi… 134 #define CGS_WREG32_FIELD_IND(device, space, reg, field, val) \ argument [all …]
|
/Linux-v4.19/drivers/hid/ |
D | hid-dr.c | 65 drff->report->field[0]->value[0] = 0x51; in drff_play() 66 drff->report->field[0]->value[1] = 0x00; in drff_play() 67 drff->report->field[0]->value[2] = weak; in drff_play() 68 drff->report->field[0]->value[4] = strong; in drff_play() 71 drff->report->field[0]->value[0] = 0xfa; in drff_play() 72 drff->report->field[0]->value[1] = 0xfe; in drff_play() 74 drff->report->field[0]->value[0] = 0xf3; in drff_play() 75 drff->report->field[0]->value[1] = 0x00; in drff_play() 78 drff->report->field[0]->value[2] = 0x00; in drff_play() 79 drff->report->field[0]->value[4] = 0x00; in drff_play() [all …]
|
D | hid-lg2ff.c | 48 lg2ff->report->field[0]->value[0] = 0x51; in play_effect() 49 lg2ff->report->field[0]->value[2] = weak; in play_effect() 50 lg2ff->report->field[0]->value[4] = strong; in play_effect() 52 lg2ff->report->field[0]->value[0] = 0xf3; in play_effect() 53 lg2ff->report->field[0]->value[2] = 0x00; in play_effect() 54 lg2ff->report->field[0]->value[4] = 0x00; in play_effect() 88 report->field[0]->value[0] = 0xf3; in lg2ff_init() 89 report->field[0]->value[1] = 0x00; in lg2ff_init() 90 report->field[0]->value[2] = 0x00; in lg2ff_init() 91 report->field[0]->value[3] = 0x00; in lg2ff_init() [all …]
|
D | hid-gaff.c | 57 gaff->report->field[0]->value[0] = 0x51; in hid_gaff_play() 58 gaff->report->field[0]->value[1] = 0x0; in hid_gaff_play() 59 gaff->report->field[0]->value[2] = right; in hid_gaff_play() 60 gaff->report->field[0]->value[3] = 0; in hid_gaff_play() 61 gaff->report->field[0]->value[4] = left; in hid_gaff_play() 62 gaff->report->field[0]->value[5] = 0; in hid_gaff_play() 66 gaff->report->field[0]->value[0] = 0xfa; in hid_gaff_play() 67 gaff->report->field[0]->value[1] = 0xfe; in hid_gaff_play() 68 gaff->report->field[0]->value[2] = 0x0; in hid_gaff_play() 69 gaff->report->field[0]->value[4] = 0x0; in hid_gaff_play() [all …]
|
D | hid-lg3ff.c | 72 memset(report->field[0]->value, 0, in hid_lg3ff_play() 73 sizeof(__s32) * report->field[0]->report_count); in hid_lg3ff_play() 85 report->field[0]->value[0] = 0x51; in hid_lg3ff_play() 91 report->field[0]->value[1] = (unsigned char)(-x); in hid_lg3ff_play() 92 report->field[0]->value[31] = (unsigned char)(-y); in hid_lg3ff_play() 110 report->field[0]->value[0] = 0x51; in hid_lg3ff_set_autocenter() 111 report->field[0]->value[1] = 0x00; in hid_lg3ff_set_autocenter() 112 report->field[0]->value[2] = 0x00; in hid_lg3ff_set_autocenter() 113 report->field[0]->value[3] = 0x7F; in hid_lg3ff_set_autocenter() 114 report->field[0]->value[4] = 0x7F; in hid_lg3ff_set_autocenter() [all …]
|
D | hid-input.c | 109 for (j = 0; j < report->field[i]->maxusage; j++) { in hidinput_find_key() 110 usage = report->field[i]->usage + j; in hidinput_find_key() 211 __s32 hidinput_calc_abs_res(const struct hid_field *field, __u16 code) in hidinput_calc_abs_res() argument 213 __s32 unit_exponent = field->unit_exponent; in hidinput_calc_abs_res() 214 __s32 logical_extents = field->logical_maximum - in hidinput_calc_abs_res() 215 field->logical_minimum; in hidinput_calc_abs_res() 216 __s32 physical_extents = field->physical_maximum - in hidinput_calc_abs_res() 217 field->physical_minimum; in hidinput_calc_abs_res() 238 if (field->unit == 0x11) { /* If centimeters */ in hidinput_calc_abs_res() 241 } else if (field->unit == 0x13) { /* If inches */ in hidinput_calc_abs_res() [all …]
|
/Linux-v4.19/lib/ |
D | test_bitfield.c | 12 #define CHECK_ENC_GET_U(tp, v, field, res) do { \ argument 16 _res = u##tp##_encode_bits(v, field); \ 18 pr_warn("u" #tp "_encode_bits(" #v ", " #field ") is 0x%llx != " #res "\n",\ 22 if (u##tp##_get_bits(_res, field) != v) \ 27 #define CHECK_ENC_GET_LE(tp, v, field, res) do { \ argument 31 _res = le##tp##_encode_bits(v, field); \ 33 pr_warn("le" #tp "_encode_bits(" #v ", " #field ") is 0x%llx != 0x%llx\n",\ 38 if (le##tp##_get_bits(_res, field) != v) \ 43 #define CHECK_ENC_GET_BE(tp, v, field, res) do { \ argument 47 _res = be##tp##_encode_bits(v, field); \ [all …]
|
/Linux-v4.19/Documentation/media/uapi/v4l/ |
D | field-order.rst | 13 odd and even field are transmitted, and due to a small delay between 23 object on screen may well move between one field and the next. For 25 which field of a frame is older, the *temporal order*. 27 When the driver provides or accepts images field by field rather than 30 even) fields, the *spatial order*: The first line of the top field is 32 field is the second line of that frame. 35 whether a frame commences with the top or bottom field is pointless. Any 41 Counter to intuition the top field is not necessarily the older field. 42 Whether the older field contains the top or bottom lines is a convention 47 All video capture and output devices must report the current field [all …]
|
/Linux-v4.19/drivers/net/ethernet/sfc/ |
D | bitfield.h | 48 #define EFX_VAL(field, attribute) field ## _ ## attribute argument 50 #define EFX_LOW_BIT(field) EFX_VAL(field, LBN) argument 52 #define EFX_WIDTH(field) EFX_VAL(field, WIDTH) argument 54 #define EFX_HIGH_BIT(field) (EFX_LOW_BIT(field) + EFX_WIDTH(field) - 1) argument 171 #define EFX_OWORD_FIELD64(oword, field) \ argument 172 EFX_EXTRACT_OWORD64(oword, EFX_LOW_BIT(field), \ 173 EFX_HIGH_BIT(field)) 175 #define EFX_QWORD_FIELD64(qword, field) \ argument 176 EFX_EXTRACT_QWORD64(qword, EFX_LOW_BIT(field), \ 177 EFX_HIGH_BIT(field)) [all …]
|
/Linux-v4.19/drivers/net/ethernet/sfc/falcon/ |
D | bitfield.h | 48 #define EF4_VAL(field, attribute) field ## _ ## attribute argument 50 #define EF4_LOW_BIT(field) EF4_VAL(field, LBN) argument 52 #define EF4_WIDTH(field) EF4_VAL(field, WIDTH) argument 54 #define EF4_HIGH_BIT(field) (EF4_LOW_BIT(field) + EF4_WIDTH(field) - 1) argument 171 #define EF4_OWORD_FIELD64(oword, field) \ argument 172 EF4_EXTRACT_OWORD64(oword, EF4_LOW_BIT(field), \ 173 EF4_HIGH_BIT(field)) 175 #define EF4_QWORD_FIELD64(qword, field) \ argument 176 EF4_EXTRACT_QWORD64(qword, EF4_LOW_BIT(field), \ 177 EF4_HIGH_BIT(field)) [all …]
|