/linux-master/fs/bcachefs/ |
H A D | bcachefs_format.h | 66 * value, and a format field indicating whether the key is packed or not (and 71 * be generous with field sizes in the common part of the key format (64 bit 72 * inode number, 64 bit offset, 96 bit version field, etc.) for negligible cost. 86 #define BITMASK(name, type, field, offset, end) \ 92 return (k->field >> offset) & ~(~0ULL << (end - offset)); \ 97 k->field &= ~(~(~0ULL << (end - offset)) << offset); \ 98 k->field |= (v & ~(~0ULL << (end - offset))) << offset; \ 101 #define LE_BITMASK(_bits, name, type, field, offset, end) \ 108 return (__le##_bits##_to_cpu(k->field) >> offset) & \ 114 __u##_bits new = __le##_bits##_to_cpu(k->field); \ 541 struct bch_sb_field field; member in struct:bch_sb_field_journal 546 struct bch_sb_field field; member in struct:bch_sb_field_journal_v2 583 struct bch_sb_field field; member in struct:bch_sb_field_crypt 660 struct bch_sb_field field; member in struct:bch_sb_field_clean 672 struct bch_sb_field field; member in struct:bch_sb_field_ext [all...] |
/linux-master/drivers/media/platform/renesas/ |
H A D | rcar_fdp1.c | 518 * Will always be a field or a full frame, never two fields. 525 enum v4l2_field field; member in struct:fdp1_field_buffer 527 /* Flag to indicate this is the last field in the vb */ 621 * and released when the last 'field' completes 722 /* job->previous may be on the first field */ 760 * Return the next field in the queue - or NULL, 907 if (job->active->field == V4L2_FIELD_BOTTOM) { 908 format |= FD1_RPF_FORMAT_CF; /* Set for Bottom field */ 1147 /* One output buffer is required for each field */ 1148 if (V4L2_FIELD_HAS_BOTH(src_q_data->format.field)) [all...] |
/linux-master/drivers/xen/xen-pciback/ |
H A D | pci_stub.c | 1137 struct config_field *field; local 1149 field = kzalloc(sizeof(*field), GFP_KERNEL); 1150 if (!field) { 1155 field->offset = reg; 1156 field->size = size; 1157 field->mask = mask; 1158 field->init = NULL; 1159 field->reset = NULL; 1160 field 1327 const struct config_field *field; local [all...] |
/linux-master/tools/perf/util/ |
H A D | python.c | 485 tracepoint_field(struct pyrf_event *pe, struct tep_format_field *field) argument 487 struct tep_handle *pevent = field->event->tep; 493 if (field->flags & TEP_FIELD_IS_ARRAY) { 494 offset = field->offset; 495 len = field->size; 496 if (field->flags & TEP_FIELD_IS_DYNAMIC) { 501 if (tep_field_is_relative(field->flags)) 502 offset += field->offset + field->size; 504 if (field 530 struct tep_format_field *field; local [all...] |
/linux-master/drivers/media/platform/ti/vpe/ |
H A D | vpe.c | 400 unsigned int field; /* current field */ member in struct:vpe_ctx 401 unsigned int sequence; /* current frame/field seq */ 456 /* register field read/write helpers */ 467 static void write_field(u32 *valp, u32 field, u32 mask, int shift) argument 472 val |= (field & mask) << shift; 476 static void write_field_reg(struct vpe_dev *dev, int offset, u32 field, argument 481 write_field(&val, field, mask, shift); 543 * However, the roles are reversed after each field is processed. 544 * In other words, after each field i 1091 int field = vbuf->field == V4L2_FIELD_BOTTOM; local [all...] |
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_npc_fs.c | 81 /* Compute keyword masks and figure out the number of keywords a field 87 struct npc_key_field *field = &mcam->rx_key_fields[type]; local 99 field = &mcam->tx_key_fields[type]; 105 field->kw_mask[start_kwi] |= GENMASK_ULL(nr_bits - 1, 0) 107 field->nr_kws = 1; 115 field->kw_mask[start_kwi] |= GENMASK_ULL(bits_in_kw - 1, 0) 119 field->kw_mask[start_kwi + 1] |= GENMASK_ULL(bits_in_kw - 1, 0); 120 field->nr_kws = 2; 127 field->kw_mask[start_kwi] |= GENMASK_ULL(bits_in_kw - 1, 0) 130 field 151 npc_is_same(struct npc_key_field *input, struct npc_key_field *field) argument 759 struct npc_key_field *field; local [all...] |
/linux-master/drivers/media/pci/saa7134/ |
H A D | saa7134-video.c | 645 V4L2_FIELD_HAS_BOTH(dev->field)); 665 if (V4L2_FIELD_HAS_BOTH(dev->field)) { 688 if (V4L2_FIELD_HAS_BOTH(dev->field)) { 744 vbuf->field = dev->field; 1043 f->fmt.pix.field = dev->field; 1061 enum v4l2_field field; local 1068 field = f->fmt.pix.field; 1838 enum v4l2_field field; local [all...] |
/linux-master/drivers/dma/lgm/ |
H A D | lgm-dma.c | 265 u32 field; member in struct:dw2_desc 1201 hw_ds->field &= ~DESC_SOP; 1202 hw_ds->field |= FIELD_PREP(DESC_SOP, 1); 1204 hw_ds->field &= ~DESC_EOP; 1205 hw_ds->field |= FIELD_PREP(DESC_EOP, 1); 1209 hw_ds->field &= ~DESC_SOP; 1210 hw_ds->field |= FIELD_PREP(DESC_SOP, 1); 1212 hw_ds->field &= ~DESC_EOP; 1213 hw_ds->field |= FIELD_PREP(DESC_EOP, 0); 1215 hw_ds->field [all...] |
/linux-master/drivers/ntb/hw/idt/ |
H A D | ntb_hw_idt.h | 604 * @IDT_PCIEDCAP_MPAYLOAD_FLD: Maximum payload size field offset 622 * @IDT_PCIEDCTL_MPS_FLD: MPS field offset 641 * @IDT_PCIELCAP_PORTNUM_MASK: Port number field mask 642 * @IDT_PCIELCAP_PORTNUM_FLD: Port number field offset 650 * @IDT_PCIELSTS_CLS_FLD: Current link speed field offset 652 * @IDT_PCIELSTS_NLW_FLD: Negotiated link width field offset 708 * @IDT_BARSETUP_TYPE_MASK: Mask of the TYPE field 711 * @IDT_BARSETUP_PREF: Value of the BAR prefetchable field 712 * @IDT_BARSETUP_SIZE_MASK: Mask of the SIZE field 713 * @IDT_BARSETUP_SIZE_FLD: SIZE field offse [all...] |
/linux-master/drivers/base/regmap/ |
H A D | regmap.c | 1215 * devm_regmap_field_alloc() - Allocate and initialise a register field. 1218 * @regmap: regmap bank in which this register field is located. 1219 * @reg_field: Register field with in the bank. 1242 * regmap_field_bulk_alloc() - Allocate and initialise a bulk register field. 1244 * @regmap: regmap bank in which this register field is located. 1279 * @regmap: regmap bank in which this register field is located. 1311 * regmap_field_bulk_free() - Free register field allocated using 1314 * @field: regmap fields which should be freed. 1316 void regmap_field_bulk_free(struct regmap_field *field) argument 1318 kfree(field); 1333 devm_regmap_field_bulk_free(struct device *dev, struct regmap_field *field) argument 1351 devm_regmap_field_free(struct device *dev, struct regmap_field *field) argument 1388 regmap_field_free(struct regmap_field *field) argument 2227 regmap_field_update_bits_base(struct regmap_field *field, unsigned int mask, unsigned int val, bool *change, bool async, bool force) argument 2249 regmap_field_test_bits(struct regmap_field *field, unsigned int bits) argument 2276 regmap_fields_update_bits_base(struct regmap_field *field, unsigned int id, unsigned int mask, unsigned int val, bool *change, bool async, bool force) argument 3055 regmap_field_read(struct regmap_field *field, unsigned int *val) argument 3081 regmap_fields_read(struct regmap_field *field, unsigned int id, unsigned int *val) argument [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/inc/ |
H A D | reg_helper.h | 60 #define FN(reg_name, field) \ 61 FD(reg_name##__##field) 63 #define REG_SET(reg_name, initial_val, field, val) \ 65 FN(reg_name, field), val) 155 * read given register and fill in field value in output parameter */ 156 #define REG_GET(reg_name, field, val) \ 158 FN(reg_name, field), val) 216 /* macro to poll and wait for a register field to read back given value */ 218 #define REG_WAIT(reg_name, field, val, delay_between_poll_us, max_try) \ 220 REG(reg_name), FN(reg_name, field), va [all...] |
/linux-master/drivers/net/phy/ |
H A D | mdio_bus.c | 271 #define MDIO_BUS_STATS_ATTR_DECL(field, file) \ 272 static struct dev_ext_attribute dev_attr_mdio_bus_##field = { \ 277 -1, offsetof(struct mdio_bus_stats, field) \ 280 static struct dev_ext_attribute dev_attr_mdio_bus_device_##field = { \ 285 -1, offsetof(struct mdio_bus_stats, field) \ 289 #define MDIO_BUS_STATS_ATTR(field) \ 290 MDIO_BUS_STATS_ATTR_DECL(field, __stringify(field)) 297 #define MDIO_BUS_STATS_ADDR_ATTR_DECL(field, addr, file) \ 298 static struct dev_ext_attribute dev_attr_mdio_bus_addr_##field## [all...] |
/linux-master/drivers/media/platform/renesas/rcar-vin/ |
H A D | rcar-v4l2.c | 141 if (V4L2_FIELD_IS_SEQUENTIAL(pix->field)) 166 switch (pix->field) { 178 pix->field = RVIN_DEFAULT_FIELD; 235 if (vin->format.field == V4L2_FIELD_ALTERNATE) { 236 vin->format.field = V4L2_FIELD_INTERLACED; 261 enum v4l2_field field; local 278 /* Allow the video device to override field and to scale */ 279 field = pix->field; 297 if (field ! [all...] |
/linux-master/drivers/net/ethernet/sfc/falcon/ |
H A D | ethtool.c | 27 u64(*get_stat) (void *field); /* Reader function */ 31 #define EF4_ETHTOOL_STAT(stat_name, source_name, field, field_type, \ 36 &((struct ef4_##source_name *)0)->field) ? \ 37 offsetof(struct ef4_##source_name, field) : \ 38 offsetof(struct ef4_##source_name, field)), \ 42 static u64 ef4_get_uint_stat(void *field) argument 44 return *(unsigned int *)field; 47 static u64 ef4_get_atomic_stat(void *field) argument 49 return atomic_read((atomic_t *) field); 52 #define EF4_ETHTOOL_ATOMIC_NIC_ERROR_STAT(field) \ [all...] |
/linux-master/tools/perf/util/scripting-engines/ |
H A D | trace-event-python.c | 239 struct tep_print_flag_sym *field, 243 define_value(field_type, ev_name, field_name, field->value, 244 field->str); 246 if (field->next) 247 define_values(field_type, field->next, ev_name, field_name); 296 cur_field_name = strdup(args->field.name); 299 define_event_symbols(event, ev_name, args->flags.field); 306 define_event_symbols(event, ev_name, args->symbol.field); 313 define_event_symbols(event, ev_name, args->hex.field); 317 define_event_symbols(event, ev_name, args->int_array.field); 238 define_values(enum tep_print_arg_type field_type, struct tep_print_flag_sym *field, const char *ev_name, const char *field_name) argument 347 get_field_numeric_entry(struct tep_event *event, struct tep_format_field *field, void *data) argument 956 struct tep_format_field *field; local [all...] |
/linux-master/drivers/acpi/acpica/ |
H A D | evregion.c | 82 * field_obj - Corresponding field. Can be NULL. 170 field_obj->field.internal_pcc_buffer; 262 * 1) Address is the pin number index of the field (bit offset from 264 * 2) bit_width is the actual bit length of the field (number of pins) 280 context->connection = field_obj->field.resource_buffer; 281 context->length = field_obj->field.resource_length; 282 context->access_length = field_obj->field.access_length; 285 address = field_obj->field.pin_number_index; 286 bit_width = field_obj->field.bit_length; 391 obj_desc->region.next = NULL; /* Must clear field */ [all...] |
/linux-master/net/dccp/ |
H A D | dccp.h | 188 #define DCCP_INC_STATS(field) SNMP_INC_STATS(dccp_statistics, field) 189 #define __DCCP_INC_STATS(field) __SNMP_INC_STATS(dccp_statistics, field) 190 #define DCCP_DEC_STATS(field) SNMP_DEC_STATS(dccp_statistics, field) 325 * @dccpd_ccval: CCVal field (5.1), see e.g. RFC 4342, 8.1 330 * @dccpd_ack_seq: acknowledgment number subheader field value
|
/linux-master/drivers/hid/ |
H A D | hid-uclogic-core.c | 67 struct hid_field *field, 76 if (params->pen.usage_invalid && (field->application == HID_DG_PEN)) 89 struct hid_field *field; local 122 field = hi->report->field[0]; 124 switch (field->application) { 65 uclogic_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
|
/linux-master/drivers/media/test-drivers/vimc/ |
H A D | vimc-capture.c | 40 .field = V4L2_FIELD_NONE, 106 if (format->field == V4L2_FIELD_ANY) 107 format->field = fmt_default.field; 384 vimc_buf->vb2.field = vcapture->format.field;
|
/linux-master/drivers/media/test-drivers/vivid/ |
H A D | vivid-vid-out.c | 40 * You cannot use write() with FIELD_ALTERNATE since the field 92 vbuf->field = dev->field_out; 93 else if (vbuf->field != V4L2_FIELD_TOP && 94 vbuf->field != V4L2_FIELD_BOTTOM) 278 /* Map the field to something that is valid for the current output */ 279 static enum v4l2_field vivid_field_out(struct vivid_dev *dev, enum v4l2_field field) argument 282 switch (field) { 288 return field; 324 mp->field = dev->field_out; 367 mp->field [all...] |
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu.h | 1332 #define REG_FIELD_SHIFT(reg, field) reg##__##field##__SHIFT 1333 #define REG_FIELD_MASK(reg, field) reg##__##field##_MASK 1335 #define REG_SET_FIELD(orig_val, reg, field, field_val) \ 1336 (((orig_val) & ~REG_FIELD_MASK(reg, field)) | \ 1337 (REG_FIELD_MASK(reg, field) & ((field_val) << REG_FIELD_SHIFT(reg, field)))) 1339 #define REG_GET_FIELD(value, reg, field) \ 1340 (((value) & REG_FIELD_MASK(reg, field)) >> REG_FIELD_SHIF [all...] |
/linux-master/kernel/trace/ |
H A D | trace_functions_graph.c | 927 print_graph_entry(struct ftrace_graph_ent_entry *field, struct trace_seq *s, argument 931 struct ftrace_graph_ent *call = &field->graph_ent; 941 leaf_ret = get_return_for_leaf(iter, field); 943 ret = print_graph_entry_leaf(iter, field, leaf_ret, s, flags); 945 ret = print_graph_entry_nested(iter, field, s, cpu, flags); 1112 struct ftrace_graph_ent_entry *field; local 1129 field = &data->ent; 1131 ret = print_graph_entry(field, s, iter, flags); 1144 * thus @field may become invalid, so we need to save it. 1149 trace_assign_type(field, entr 1154 struct ftrace_graph_ret_entry *field; local [all...] |
H A D | trace_kprobe.c | 1058 * @...: Variable number of arg (pairs), one pair for each field 1106 const char *field; local 1108 field = va_arg(args, const char *); 1109 if (!field) 1117 arg.str = field; 1131 * @...: Variable number of arg (pairs), one pair for each field 1157 const char *field; local 1159 field = va_arg(args, const char *); 1160 if (!field) 1168 arg.str = field; 1493 struct kprobe_trace_entry_head *field; local 1523 struct kretprobe_trace_entry_head *field; local 1559 struct kprobe_trace_entry_head field; local 1574 struct kretprobe_trace_entry_head field; local [all...] |
/linux-master/arch/arm64/kvm/vgic/ |
H A D | vgic-mmio-v3.c | 58 * The Revision field in the IIDR have the following meanings: 370 u64 vgic_sanitise_shareability(u64 field) argument 372 switch (field) { 376 return field; 381 u64 vgic_sanitise_inner_cacheability(u64 field) argument 383 switch (field) { 388 return field; 393 u64 vgic_sanitise_outer_cacheability(u64 field) argument 395 switch (field) { 398 return field; 407 u64 field = (reg & field_mask) >> field_shift; local [all...] |
/linux-master/drivers/phy/ti/ |
H A D | phy-j721e-wiz.c | 210 struct regmap_field *field; member in struct:wiz_clk_mux 219 struct regmap_field *field; member in struct:wiz_clk_divider 529 dev_err(dev, "POR_EN reg field init failed\n"); 536 dev_err(dev, "PHY_RESET_N reg field init failed\n"); 543 dev_err(dev, "PMA_CMN_REFCLK_INT_MODE reg field init failed\n"); 550 dev_err(dev, "PMA_CMN_REFCLK_MODE reg field init failed\n"); 557 dev_err(dev, "PMA_CMN_REFCLK_DIG_DIV reg field init failed\n"); 566 dev_err(dev, "PMA_CMN_REFCLK1_DIG_DIV reg field init failed\n"); 576 dev_err(dev, "SUP_LEGACY_CLK_OVERRIDE reg field init failed\n"); 584 dev_err(dev, "PLL0_REFCLK_SEL reg field ini 786 struct regmap_field *field = mux->field; local 796 struct regmap_field *field = mux->field; local 809 wiz_mux_clk_register(struct wiz *wiz, struct regmap_field *field, const struct wiz_clk_mux_sel *mux_sel, int clk_index) argument 870 wiz_mux_of_clk_register(struct wiz *wiz, struct device_node *node, struct regmap_field *field, const u32 *table) argument 929 struct regmap_field *field = div->field; local 949 struct regmap_field *field = div->field; local 965 wiz_div_clk_register(struct wiz *wiz, struct device_node *node, struct regmap_field *field, const struct clk_div_table *table) argument [all...] |