/linux-4.1.27/drivers/staging/sm750fb/ |
H A D | sm750_help.h | 41 #define FIELD_GET(x, reg, field) \ 43 _F_NORMALIZE((x), reg ## _ ## field) \ 46 #define FIELD_SET(x, reg, field, value) \ 48 (x & ~_F_MASK(reg ## _ ## field)) \ 49 | _F_DENORMALIZE(reg ## _ ## field ## _ ## value, reg ## _ ## field) \ 52 #define FIELD_VALUE(x, reg, field, value) \ 54 (x & ~_F_MASK(reg ## _ ## field)) \ 55 | _F_DENORMALIZE(value, reg ## _ ## field) \ 58 #define FIELD_CLEAR(reg, field) \ 60 ~ _F_MASK(reg ## _ ## field) \ 70 #define FIELD_START(field) (0 ? field) 71 #define FIELD_END(field) (1 ? field) 72 #define FIELD_SIZE(field) (1 + FIELD_END(field) - FIELD_START(field)) 73 #define FIELD_MASK(field) (((1 << (FIELD_SIZE(field)-1)) | ((1 << (FIELD_SIZE(field)-1)) - 1)) << FIELD_START(field)) 74 #define FIELD_NORMALIZE(reg, field) (((reg) & FIELD_MASK(field)) >> FIELD_START(field)) 75 #define FIELD_DENORMALIZE(field, value) (((value) << FIELD_START(field)) & FIELD_MASK(field)) 77 #define FIELD_INIT(reg, field, value) FIELD_DENORMALIZE(reg ## _ ## field, \ 78 reg ## _ ## field ## _ ## value) 79 #define FIELD_INIT_VAL(reg, field, value) \ 80 (FIELD_DENORMALIZE(reg ## _ ## field, value))
|
/linux-4.1.27/drivers/clk/st/ |
H A D | clkgen.h | 19 struct clkgen_field *field) clkgen_read() 21 return (readl(base + field->offset) >> field->shift) & field->mask; clkgen_read() 25 static inline void clkgen_write(void __iomem *base, struct clkgen_field *field, clkgen_write() argument 28 writel((readl(base + field->offset) & clkgen_write() 29 ~(field->mask << field->shift)) | (val << field->shift), clkgen_write() 30 base + field->offset); clkgen_write() 41 #define CLKGEN_READ(pll, field) clkgen_read(pll->regs_base, \ 42 &pll->data->field) 44 #define CLKGEN_WRITE(pll, field, val) clkgen_write(pll->regs_base, \ 45 &pll->data->field, val) 18 clkgen_read(void __iomem *base, struct clkgen_field *field) clkgen_read() argument
|
/linux-4.1.27/include/net/ |
H A D | snmp.h | 57 /* mibs[] must be first field of struct ipstats_mib */ 126 #define SNMP_INC_STATS_BH(mib, field) \ 127 __this_cpu_inc(mib->mibs[field]) 129 #define SNMP_INC_STATS_USER(mib, field) \ 130 this_cpu_inc(mib->mibs[field]) 132 #define SNMP_INC_STATS_ATOMIC_LONG(mib, field) \ 133 atomic_long_inc(&mib->mibs[field]) 135 #define SNMP_INC_STATS(mib, field) \ 136 this_cpu_inc(mib->mibs[field]) 138 #define SNMP_DEC_STATS(mib, field) \ 139 this_cpu_dec(mib->mibs[field]) 141 #define SNMP_ADD_STATS_BH(mib, field, addend) \ 142 __this_cpu_add(mib->mibs[field], addend) 144 #define SNMP_ADD_STATS_USER(mib, field, addend) \ 145 this_cpu_add(mib->mibs[field], addend) 147 #define SNMP_ADD_STATS(mib, field, addend) \ 148 this_cpu_add(mib->mibs[field], addend) 165 #define SNMP_ADD_STATS64_BH(mib, field, addend) \ 169 ptr->mibs[field] += addend; \ 173 #define SNMP_ADD_STATS64_USER(mib, field, addend) \ 176 SNMP_ADD_STATS64_BH(mib, field, addend); \ 180 #define SNMP_ADD_STATS64(mib, field, addend) \ 181 SNMP_ADD_STATS64_USER(mib, field, addend) 183 #define SNMP_INC_STATS64_BH(mib, field) SNMP_ADD_STATS64_BH(mib, field, 1) 184 #define SNMP_INC_STATS64_USER(mib, field) SNMP_ADD_STATS64_USER(mib, field, 1) 185 #define SNMP_INC_STATS64(mib, field) SNMP_ADD_STATS64(mib, field, 1) 202 #define SNMP_INC_STATS64_BH(mib, field) SNMP_INC_STATS_BH(mib, field) 203 #define SNMP_INC_STATS64_USER(mib, field) SNMP_INC_STATS_USER(mib, field) 204 #define SNMP_INC_STATS64(mib, field) SNMP_INC_STATS(mib, field) 205 #define SNMP_DEC_STATS64(mib, field) SNMP_DEC_STATS(mib, field) 206 #define SNMP_ADD_STATS64_BH(mib, field, addend) SNMP_ADD_STATS_BH(mib, field, addend) 207 #define SNMP_ADD_STATS64_USER(mib, field, addend) SNMP_ADD_STATS_USER(mib, field, addend) 208 #define SNMP_ADD_STATS64(mib, field, addend) SNMP_ADD_STATS(mib, field, addend)
|
H A D | icmp.h | 32 #define ICMP_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.icmp_statistics, field) 33 #define ICMP_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((net)->mib.icmp_statistics, field) 34 #define ICMPMSGOUT_INC_STATS(net, field) SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, field+256) 35 #define ICMPMSGIN_INC_STATS_BH(net, field) SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, field)
|
H A D | udp.h | 129 * (checksum field must be zeroed out) 274 #define UDP_INC_STATS_USER(net, field, is_udplite) do { \ 275 if (is_udplite) SNMP_INC_STATS_USER((net)->mib.udplite_statistics, field); \ 276 else SNMP_INC_STATS_USER((net)->mib.udp_statistics, field); } while(0) 277 #define UDP_INC_STATS_BH(net, field, is_udplite) do { \ 278 if (is_udplite) SNMP_INC_STATS_BH((net)->mib.udplite_statistics, field); \ 279 else SNMP_INC_STATS_BH((net)->mib.udp_statistics, field); } while(0) 281 #define UDP6_INC_STATS_BH(net, field, is_udplite) do { \ 282 if (is_udplite) SNMP_INC_STATS_BH((net)->mib.udplite_stats_in6, field);\ 283 else SNMP_INC_STATS_BH((net)->mib.udp_stats_in6, field); \ 285 #define UDP6_INC_STATS_USER(net, field, __lite) do { \ 286 if (__lite) SNMP_INC_STATS_USER((net)->mib.udplite_stats_in6, field); \ 287 else SNMP_INC_STATS_USER((net)->mib.udp_stats_in6, field); \ 291 #define UDPX_INC_STATS_BH(sk, field) \ 294 UDP_INC_STATS_BH(sock_net(sk), field, 0); \ 296 UDP6_INC_STATS_BH(sock_net(sk), field, 0); \ 299 #define UDPX_INC_STATS_BH(sk, field) UDP_INC_STATS_BH(sock_net(sk), field, 0)
|
H A D | firewire.h | 22 __be16 h_proto; /* packet type ID field */
|
H A D | ip.h | 192 #define IP_INC_STATS(net, field) SNMP_INC_STATS64((net)->mib.ip_statistics, field) 193 #define IP_INC_STATS_BH(net, field) SNMP_INC_STATS64_BH((net)->mib.ip_statistics, field) 194 #define IP_ADD_STATS(net, field, val) SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) 195 #define IP_ADD_STATS_BH(net, field, val) SNMP_ADD_STATS64_BH((net)->mib.ip_statistics, field, val) 196 #define IP_UPD_PO_STATS(net, field, val) SNMP_UPD_PO_STATS64((net)->mib.ip_statistics, field, val) 197 #define IP_UPD_PO_STATS_BH(net, field, val) SNMP_UPD_PO_STATS64_BH((net)->mib.ip_statistics, field, val) 198 #define NET_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.net_statistics, field) 199 #define NET_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((net)->mib.net_statistics, field) 200 #define NET_INC_STATS_USER(net, field) SNMP_INC_STATS_USER((net)->mib.net_statistics, field) 201 #define NET_ADD_STATS(net, field, adnd) SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd) 202 #define NET_ADD_STATS_BH(net, field, adnd) SNMP_ADD_STATS_BH((net)->mib.net_statistics, field, adnd) 203 #define NET_ADD_STATS_USER(net, field, adnd) SNMP_ADD_STATS_USER((net)->mib.net_statistics, field, adnd) 332 * VJ compression implementations. If the ID field ip_select_ident_segs()
|
/linux-4.1.27/drivers/scsi/aic7xxx/ |
H A D | queue.h | 127 #define SLIST_FOREACH(var, head, field) \ 130 (var) = SLIST_NEXT((var), field)) 136 #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ 137 SLIST_NEXT((elm), field) = SLIST_NEXT((slistelm), field); \ 138 SLIST_NEXT((slistelm), field) = (elm); \ 141 #define SLIST_INSERT_HEAD(head, elm, field) do { \ 142 SLIST_NEXT((elm), field) = SLIST_FIRST((head)); \ 146 #define SLIST_NEXT(elm, field) ((elm)->field.sle_next) 148 #define SLIST_REMOVE(head, elm, type, field) do { \ 150 SLIST_REMOVE_HEAD((head), field); \ 154 while (SLIST_NEXT(curelm, field) != (elm)) \ 155 curelm = SLIST_NEXT(curelm, field); \ 156 SLIST_NEXT(curelm, field) = \ 157 SLIST_NEXT(SLIST_NEXT(curelm, field), field); \ 161 #define SLIST_REMOVE_HEAD(head, field) do { \ 162 SLIST_FIRST((head)) = SLIST_NEXT(SLIST_FIRST((head)), field); \ 189 #define STAILQ_FOREACH(var, head, field) \ 192 (var) = STAILQ_NEXT((var), field)) 199 #define STAILQ_INSERT_AFTER(head, tqelm, elm, field) do { \ 200 if ((STAILQ_NEXT((elm), field) = STAILQ_NEXT((tqelm), field)) == NULL)\ 201 (head)->stqh_last = &STAILQ_NEXT((elm), field); \ 202 STAILQ_NEXT((tqelm), field) = (elm); \ 205 #define STAILQ_INSERT_HEAD(head, elm, field) do { \ 206 if ((STAILQ_NEXT((elm), field) = STAILQ_FIRST((head))) == NULL) \ 207 (head)->stqh_last = &STAILQ_NEXT((elm), field); \ 211 #define STAILQ_INSERT_TAIL(head, elm, field) do { \ 212 STAILQ_NEXT((elm), field) = NULL; \ 214 (head)->stqh_last = &STAILQ_NEXT((elm), field); \ 219 #define STAILQ_NEXT(elm, field) ((elm)->field.stqe_next) 221 #define STAILQ_REMOVE(head, elm, type, field) do { \ 223 STAILQ_REMOVE_HEAD(head, field); \ 227 while (STAILQ_NEXT(curelm, field) != (elm)) \ 228 curelm = STAILQ_NEXT(curelm, field); \ 229 if ((STAILQ_NEXT(curelm, field) = \ 230 STAILQ_NEXT(STAILQ_NEXT(curelm, field), field)) == NULL)\ 231 (head)->stqh_last = &STAILQ_NEXT((curelm), field);\ 235 #define STAILQ_REMOVE_HEAD(head, field) do { \ 237 STAILQ_NEXT(STAILQ_FIRST((head)), field)) == NULL) \ 241 #define STAILQ_REMOVE_HEAD_UNTIL(head, elm, field) do { \ 242 if ((STAILQ_FIRST((head)) = STAILQ_NEXT((elm), field)) == NULL) \ 271 #define LIST_FOREACH(var, head, field) \ 274 (var) = LIST_NEXT((var), field)) 280 #define LIST_INSERT_AFTER(listelm, elm, field) do { \ 281 if ((LIST_NEXT((elm), field) = LIST_NEXT((listelm), field)) != NULL)\ 282 LIST_NEXT((listelm), field)->field.le_prev = \ 283 &LIST_NEXT((elm), field); \ 284 LIST_NEXT((listelm), field) = (elm); \ 285 (elm)->field.le_prev = &LIST_NEXT((listelm), field); \ 288 #define LIST_INSERT_BEFORE(listelm, elm, field) do { \ 289 (elm)->field.le_prev = (listelm)->field.le_prev; \ 290 LIST_NEXT((elm), field) = (listelm); \ 291 *(listelm)->field.le_prev = (elm); \ 292 (listelm)->field.le_prev = &LIST_NEXT((elm), field); \ 295 #define LIST_INSERT_HEAD(head, elm, field) do { \ 296 if ((LIST_NEXT((elm), field) = LIST_FIRST((head))) != NULL) \ 297 LIST_FIRST((head))->field.le_prev = &LIST_NEXT((elm), field);\ 299 (elm)->field.le_prev = &LIST_FIRST((head)); \ 302 #define LIST_NEXT(elm, field) ((elm)->field.le_next) 304 #define LIST_REMOVE(elm, field) do { \ 305 if (LIST_NEXT((elm), field) != NULL) \ 306 LIST_NEXT((elm), field)->field.le_prev = \ 307 (elm)->field.le_prev; \ 308 *(elm)->field.le_prev = LIST_NEXT((elm), field); \ 336 #define TAILQ_FOREACH(var, head, field) \ 339 (var) = TAILQ_NEXT((var), field)) 341 #define TAILQ_FOREACH_REVERSE(var, head, headname, field) \ 344 (var) = TAILQ_PREV((var), headname, field)) 351 #define TAILQ_INSERT_AFTER(head, listelm, elm, field) do { \ 352 if ((TAILQ_NEXT((elm), field) = TAILQ_NEXT((listelm), field)) != NULL)\ 353 TAILQ_NEXT((elm), field)->field.tqe_prev = \ 354 &TAILQ_NEXT((elm), field); \ 356 (head)->tqh_last = &TAILQ_NEXT((elm), field); \ 357 TAILQ_NEXT((listelm), field) = (elm); \ 358 (elm)->field.tqe_prev = &TAILQ_NEXT((listelm), field); \ 361 #define TAILQ_INSERT_BEFORE(listelm, elm, field) do { \ 362 (elm)->field.tqe_prev = (listelm)->field.tqe_prev; \ 363 TAILQ_NEXT((elm), field) = (listelm); \ 364 *(listelm)->field.tqe_prev = (elm); \ 365 (listelm)->field.tqe_prev = &TAILQ_NEXT((elm), field); \ 368 #define TAILQ_INSERT_HEAD(head, elm, field) do { \ 369 if ((TAILQ_NEXT((elm), field) = TAILQ_FIRST((head))) != NULL) \ 370 TAILQ_FIRST((head))->field.tqe_prev = \ 371 &TAILQ_NEXT((elm), field); \ 373 (head)->tqh_last = &TAILQ_NEXT((elm), field); \ 375 (elm)->field.tqe_prev = &TAILQ_FIRST((head)); \ 378 #define TAILQ_INSERT_TAIL(head, elm, field) do { \ 379 TAILQ_NEXT((elm), field) = NULL; \ 380 (elm)->field.tqe_prev = (head)->tqh_last; \ 382 (head)->tqh_last = &TAILQ_NEXT((elm), field); \ 388 #define TAILQ_NEXT(elm, field) ((elm)->field.tqe_next) 390 #define TAILQ_PREV(elm, headname, field) \ 391 (*(((struct headname *)((elm)->field.tqe_prev))->tqh_last)) 393 #define TAILQ_REMOVE(head, elm, field) do { \ 394 if ((TAILQ_NEXT((elm), field)) != NULL) \ 395 TAILQ_NEXT((elm), field)->field.tqe_prev = \ 396 (elm)->field.tqe_prev; \ 398 (head)->tqh_last = (elm)->field.tqe_prev; \ 399 *(elm)->field.tqe_prev = TAILQ_NEXT((elm), field); \ 427 #define CIRCLEQ_FOREACH(var, head, field) \ 430 (var) = CIRCLEQ_NEXT((var), field)) 432 #define CIRCLEQ_FOREACH_REVERSE(var, head, field) \ 435 (var) = CIRCLEQ_PREV((var), field)) 442 #define CIRCLEQ_INSERT_AFTER(head, listelm, elm, field) do { \ 443 CIRCLEQ_NEXT((elm), field) = CIRCLEQ_NEXT((listelm), field); \ 444 CIRCLEQ_PREV((elm), field) = (listelm); \ 445 if (CIRCLEQ_NEXT((listelm), field) == (void *)(head)) \ 448 CIRCLEQ_PREV(CIRCLEQ_NEXT((listelm), field), field) = (elm);\ 449 CIRCLEQ_NEXT((listelm), field) = (elm); \ 452 #define CIRCLEQ_INSERT_BEFORE(head, listelm, elm, field) do { \ 453 CIRCLEQ_NEXT((elm), field) = (listelm); \ 454 CIRCLEQ_PREV((elm), field) = CIRCLEQ_PREV((listelm), field); \ 455 if (CIRCLEQ_PREV((listelm), field) == (void *)(head)) \ 458 CIRCLEQ_NEXT(CIRCLEQ_PREV((listelm), field), field) = (elm);\ 459 CIRCLEQ_PREV((listelm), field) = (elm); \ 462 #define CIRCLEQ_INSERT_HEAD(head, elm, field) do { \ 463 CIRCLEQ_NEXT((elm), field) = CIRCLEQ_FIRST((head)); \ 464 CIRCLEQ_PREV((elm), field) = (void *)(head); \ 468 CIRCLEQ_PREV(CIRCLEQ_FIRST((head)), field) = (elm); \ 472 #define CIRCLEQ_INSERT_TAIL(head, elm, field) do { \ 473 CIRCLEQ_NEXT((elm), field) = (void *)(head); \ 474 CIRCLEQ_PREV((elm), field) = CIRCLEQ_LAST((head)); \ 478 CIRCLEQ_NEXT(CIRCLEQ_LAST((head)), field) = (elm); \ 484 #define CIRCLEQ_NEXT(elm,field) ((elm)->field.cqe_next) 486 #define CIRCLEQ_PREV(elm,field) ((elm)->field.cqe_prev) 488 #define CIRCLEQ_REMOVE(head, elm, field) do { \ 489 if (CIRCLEQ_NEXT((elm), field) == (void *)(head)) \ 490 CIRCLEQ_LAST((head)) = CIRCLEQ_PREV((elm), field); \ 492 CIRCLEQ_PREV(CIRCLEQ_NEXT((elm), field), field) = \ 493 CIRCLEQ_PREV((elm), field); \ 494 if (CIRCLEQ_PREV((elm), field) == (void *)(head)) \ 495 CIRCLEQ_FIRST((head)) = CIRCLEQ_NEXT((elm), field); \ 497 CIRCLEQ_NEXT(CIRCLEQ_PREV((elm), field), field) = \ 498 CIRCLEQ_NEXT((elm), field); \
|
/linux-4.1.27/arch/arm/mach-at91/include/mach/ |
H A D | at91_ramc.h | 15 #define at91_ramc_read(id, field) \ 16 __raw_readl(at91_ramc_base[id] + field) 18 #define at91_ramc_write(id, field, value) \ 19 __raw_writel(value, at91_ramc_base[id] + field)
|
/linux-4.1.27/arch/mips/include/uapi/asm/ |
H A D | bitfield.h | 15 #define __BITFIELD_FIELD(field, more) \ 16 field; \ 21 #define __BITFIELD_FIELD(field, more) \ 23 field;
|
/linux-4.1.27/arch/arm/mach-pxa/include/mach/ |
H A D | bitfield.h | 29 * The macro "Fld" encodes a bit field, given its size and its shift value 35 * field's mask is cumbersome and might break the assembler (255-character 39 * Size Size of the bit field, in number of bits. 40 * Shft Shift value of the bit field with respect to bit 0. 43 * Fld Encoded bit field. 55 * bit field. 58 * Field Encoded bit field (using the macro "Fld"). 61 * FSize Size of the bit field, in number of bits. 62 * FShft Shift value of the bit field with respect to bit 0. 63 * FMsk Mask for the bit field. 64 * FAlnMsk Mask for the bit field, aligned on bit 0. 65 * F1stBit First bit of the bit field. 79 * The macro "FInsrt" inserts a value into a bit field by shifting the 83 * Value Bit-field value. 84 * Field Encoded bit field (using the macro "Fld"). 87 * FInsrt Bit-field value positioned appropriately. 98 * The macro "FExtr" extracts the value of a bit field by masking and 102 * Data Data containing the bit-field to be extracted. 103 * Field Encoded bit field (using the macro "Fld"). 106 * FExtr Bit-field value.
|
/linux-4.1.27/arch/arm/mach-sa1100/include/mach/ |
H A D | bitfield.h | 29 * The macro "Fld" encodes a bit field, given its size and its shift value 35 * field's mask is cumbersome and might break the assembler (255-character 39 * Size Size of the bit field, in number of bits. 40 * Shft Shift value of the bit field with respect to bit 0. 43 * Fld Encoded bit field. 55 * bit field. 58 * Field Encoded bit field (using the macro "Fld"). 61 * FSize Size of the bit field, in number of bits. 62 * FShft Shift value of the bit field with respect to bit 0. 63 * FMsk Mask for the bit field. 64 * FAlnMsk Mask for the bit field, aligned on bit 0. 65 * F1stBit First bit of the bit field. 79 * The macro "FInsrt" inserts a value into a bit field by shifting the 83 * Value Bit-field value. 84 * Field Encoded bit field (using the macro "Fld"). 87 * FInsrt Bit-field value positioned appropriately. 98 * The macro "FExtr" extracts the value of a bit field by masking and 102 * Data Data containing the bit-field to be extracted. 103 * Field Encoded bit field (using the macro "Fld"). 106 * FExtr Bit-field value.
|
/linux-4.1.27/scripts/ |
H A D | makelst | 14 # awk style field access 15 field() { function 21 t2=`field 6 $t1` 26 t4=`field 1 $t3` 27 t5=`field 1 $t1`
|
/linux-4.1.27/arch/cris/include/arch-v32/arch/hwregs/asm/ |
H A D | irq_nmi_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | strcop_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | strmux_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | config_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | cris_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | rt_trace_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | ata_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | bif_slave_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | mmu_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | timer_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | marb_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit 325 #define REG_FIELD( scope, reg, field, value ) \ 326 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 331 #define REG_STATE( scope, reg, field, symbolic_value ) \ 332 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 337 #define REG_MASK( scope, reg, field ) \ 338 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 343 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 347 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | bif_core_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | dma_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | gio_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | intr_vect_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | ser_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
/linux-4.1.27/arch/cris/include/arch-v32/arch/hwregs/iop/asm/ |
H A D | iop_version_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | iop_scrc_out_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | iop_fifo_in_extra_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | iop_fifo_out_extra_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | iop_scrc_in_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | iop_trigger_grp_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | iop_crc_par_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | iop_fifo_in_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | iop_mpu_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | iop_sap_in_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | iop_timer_grp_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | iop_dmc_in_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | iop_dmc_out_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | iop_fifo_out_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | iop_sap_out_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
/linux-4.1.27/arch/cris/include/arch-v32/mach-a3/mach/hwregs/iop/asm/ |
H A D | iop_version_defs_asm.h | 15 #define REG_FIELD( scope, reg, field, value ) \ 16 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 21 #define REG_STATE( scope, reg, field, symbolic_value ) \ 22 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 27 #define REG_MASK( scope, reg, field ) \ 28 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 33 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 37 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | iop_sap_in_defs_asm.h | 15 #define REG_FIELD( scope, reg, field, value ) \ 16 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 21 #define REG_STATE( scope, reg, field, symbolic_value ) \ 22 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 27 #define REG_MASK( scope, reg, field ) \ 28 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 33 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 37 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | iop_sap_out_defs_asm.h | 15 #define REG_FIELD( scope, reg, field, value ) \ 16 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 21 #define REG_STATE( scope, reg, field, symbolic_value ) \ 22 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 27 #define REG_MASK( scope, reg, field ) \ 28 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 33 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 37 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
/linux-4.1.27/sound/pci/ctxfi/ |
H A D | cthardware.c | 68 unsigned int get_field(unsigned int data, unsigned int field) get_field() argument 72 if (WARN_ON(!field)) get_field() 74 /* @field should always be greater than 0 */ get_field() 75 for (i = 0; !(field & (1 << i)); ) get_field() 78 return (data & field) >> i; get_field() 81 void set_field(unsigned int *data, unsigned int field, unsigned int value) set_field() argument 85 if (WARN_ON(!field)) set_field() 87 /* @field should always be greater than 0 */ set_field() 88 for (i = 0; !(field & (1 << i)); ) set_field() 91 *data = (*data & (~field)) | ((value << i) & field); set_field()
|
/linux-4.1.27/drivers/xen/xen-pciback/ |
H A D | conf_space.c | 44 const struct config_field *field = entry->field; conf_space_read() local 48 switch (field->size) { conf_space_read() 50 if (field->u.b.read) conf_space_read() 51 ret = field->u.b.read(dev, offset, (u8 *) value, conf_space_read() 55 if (field->u.w.read) conf_space_read() 56 ret = field->u.w.read(dev, offset, (u16 *) value, conf_space_read() 60 if (field->u.dw.read) conf_space_read() 61 ret = field->u.dw.read(dev, offset, value, entry->data); conf_space_read() 72 const struct config_field *field = entry->field; conf_space_write() local 74 switch (field->size) { conf_space_write() 76 if (field->u.b.write) conf_space_write() 77 ret = field->u.b.write(dev, offset, (u8) value, conf_space_write() 81 if (field->u.w.write) conf_space_write() 82 ret = field->u.w.write(dev, offset, (u16) value, conf_space_write() 86 if (field->u.dw.write) conf_space_write() 87 ret = field->u.dw.write(dev, offset, value, conf_space_write() 150 const struct config_field *field; xen_pcibk_config_read() local 179 field = cfg_entry->field; xen_pcibk_config_read() 184 field_end = OFFSET(cfg_entry) + field->size; xen_pcibk_config_read() 194 get_mask(field->size), xen_pcibk_config_read() 213 const struct config_field *field; xen_pcibk_config_write() local 226 field = cfg_entry->field; xen_pcibk_config_write() 231 field_end = OFFSET(cfg_entry) + field->size; xen_pcibk_config_write() 238 field->size, &tmp_val); xen_pcibk_config_write() 283 "read-only configuration space field at offset" xen_pcibk_config_write() 300 const struct config_field *field; xen_pcibk_config_free_dyn_fields() local 308 field = cfg_entry->field; xen_pcibk_config_free_dyn_fields() 310 if (field->clean) { xen_pcibk_config_free_dyn_fields() 311 field->clean((struct config_field *)field); xen_pcibk_config_free_dyn_fields() 326 const struct config_field *field; xen_pcibk_config_reset_dev() local 333 field = cfg_entry->field; xen_pcibk_config_reset_dev() 335 if (field->reset) xen_pcibk_config_reset_dev() 336 field->reset(dev, OFFSET(cfg_entry), cfg_entry->data); xen_pcibk_config_reset_dev() 344 const struct config_field *field; xen_pcibk_config_free_dev() local 353 field = cfg_entry->field; xen_pcibk_config_free_dev() 355 if (field->release) xen_pcibk_config_free_dev() 356 field->release(dev, OFFSET(cfg_entry), cfg_entry->data); xen_pcibk_config_free_dev() 363 const struct config_field *field, xen_pcibk_config_add_field_offset() 378 cfg_entry->field = field; xen_pcibk_config_add_field_offset() 386 if (field->init) { xen_pcibk_config_add_field_offset() 387 tmp = field->init(dev, OFFSET(cfg_entry)); xen_pcibk_config_add_field_offset() 397 dev_dbg(&dev->dev, "added config field at offset 0x%02x\n", xen_pcibk_config_add_field_offset() 362 xen_pcibk_config_add_field_offset(struct pci_dev *dev, const struct config_field *field, unsigned int base_offset) xen_pcibk_config_add_field_offset() argument
|
H A D | conf_space_quirks.c | 64 *field) xen_pcibk_config_quirks_add_field() 68 switch (field->size) { xen_pcibk_config_quirks_add_field() 70 field->u.b.read = xen_pcibk_read_config_byte; xen_pcibk_config_quirks_add_field() 71 field->u.b.write = xen_pcibk_write_config_byte; xen_pcibk_config_quirks_add_field() 74 field->u.w.read = xen_pcibk_read_config_word; xen_pcibk_config_quirks_add_field() 75 field->u.w.write = xen_pcibk_write_config_word; xen_pcibk_config_quirks_add_field() 78 field->u.dw.read = xen_pcibk_read_config_dword; xen_pcibk_config_quirks_add_field() 79 field->u.dw.write = xen_pcibk_write_config_dword; xen_pcibk_config_quirks_add_field() 86 xen_pcibk_config_add_field(dev, field); xen_pcibk_config_quirks_add_field() 118 void xen_pcibk_config_field_free(struct config_field *field) xen_pcibk_config_field_free() argument 120 kfree(field); xen_pcibk_config_field_free() 63 xen_pcibk_config_quirks_add_field(struct pci_dev *dev, struct config_field *field) xen_pcibk_config_quirks_add_field() argument
|
H A D | conf_space.h | 42 void (*clean) (struct config_field *field); 62 const struct config_field *field; member in struct:config_field_entry 69 #define OFFSET(cfg_entry) ((cfg_entry)->base_offset+(cfg_entry)->field->offset) 75 const struct config_field *field, 79 const struct config_field *field) xen_pcibk_config_add_field() 81 return xen_pcibk_config_add_field_offset(dev, field, 0); xen_pcibk_config_add_field() 85 const struct config_field *field) xen_pcibk_config_add_fields() 88 for (i = 0; field[i].size != 0; i++) { xen_pcibk_config_add_fields() 89 err = xen_pcibk_config_add_field(dev, &field[i]); xen_pcibk_config_add_fields() 97 const struct config_field *field, xen_pcibk_config_add_fields_offset() 101 for (i = 0; field[i].size != 0; i++) { xen_pcibk_config_add_fields_offset() 102 err = xen_pcibk_config_add_field_offset(dev, &field[i], offset); xen_pcibk_config_add_fields_offset() 78 xen_pcibk_config_add_field(struct pci_dev *dev, const struct config_field *field) xen_pcibk_config_add_field() argument 84 xen_pcibk_config_add_fields(struct pci_dev *dev, const struct config_field *field) xen_pcibk_config_add_fields() argument 96 xen_pcibk_config_add_fields_offset(struct pci_dev *dev, const struct config_field *field, unsigned int offset) xen_pcibk_config_add_fields_offset() argument
|
H A D | conf_space_quirks.h | 21 *field); 27 void xen_pcibk_config_field_free(struct config_field *field);
|
/linux-4.1.27/kernel/trace/ |
H A D | trace_output.c | 27 struct bputs_entry *field; trace_print_bputs_msg_only() local 29 trace_assign_type(field, entry); trace_print_bputs_msg_only() 31 trace_seq_puts(s, field->str); trace_print_bputs_msg_only() 40 struct bprint_entry *field; trace_print_bprintk_msg_only() local 42 trace_assign_type(field, entry); trace_print_bprintk_msg_only() 44 trace_seq_bprintf(s, field->fmt, field->buf); trace_print_bprintk_msg_only() 53 struct print_entry *field; trace_print_printk_msg_only() local 55 trace_assign_type(field, entry); trace_print_printk_msg_only() 57 trace_seq_puts(s, field->buf); trace_print_printk_msg_only() 424 * @entry: The trace entry field from the ring buffer 816 struct ftrace_entry *field; trace_fn_trace() local 819 trace_assign_type(field, iter->ent); trace_fn_trace() 821 seq_print_ip_sym(s, field->ip, flags); trace_fn_trace() 823 if ((flags & TRACE_ITER_PRINT_PARENT) && field->parent_ip) { trace_fn_trace() 825 seq_print_ip_sym(s, field->parent_ip, flags); trace_fn_trace() 836 struct ftrace_entry *field; trace_fn_raw() local 838 trace_assign_type(field, iter->ent); trace_fn_raw() 841 field->ip, trace_fn_raw() 842 field->parent_ip); trace_fn_raw() 850 struct ftrace_entry *field; trace_fn_hex() local 853 trace_assign_type(field, iter->ent); trace_fn_hex() 855 SEQ_PUT_HEX_FIELD(s, field->ip); trace_fn_hex() 856 SEQ_PUT_HEX_FIELD(s, field->parent_ip); trace_fn_hex() 864 struct ftrace_entry *field; trace_fn_bin() local 867 trace_assign_type(field, iter->ent); trace_fn_bin() 869 SEQ_PUT_FIELD(s, field->ip); trace_fn_bin() 870 SEQ_PUT_FIELD(s, field->parent_ip); trace_fn_bin() 891 struct ctx_switch_entry *field; trace_ctxwake_print() local 896 trace_assign_type(field, iter->ent); trace_ctxwake_print() 898 T = task_state_char(field->next_state); trace_ctxwake_print() 899 S = task_state_char(field->prev_state); trace_ctxwake_print() 900 trace_find_cmdline(field->next_pid, comm); trace_ctxwake_print() 903 field->prev_pid, trace_ctxwake_print() 904 field->prev_prio, trace_ctxwake_print() 906 field->next_cpu, trace_ctxwake_print() 907 field->next_pid, trace_ctxwake_print() 908 field->next_prio, trace_ctxwake_print() 928 struct ctx_switch_entry *field; trace_ctxwake_raw() local 931 trace_assign_type(field, iter->ent); trace_ctxwake_raw() 934 S = task_state_char(field->prev_state); trace_ctxwake_raw() 935 T = task_state_char(field->next_state); trace_ctxwake_raw() 937 field->prev_pid, trace_ctxwake_raw() 938 field->prev_prio, trace_ctxwake_raw() 940 field->next_cpu, trace_ctxwake_raw() 941 field->next_pid, trace_ctxwake_raw() 942 field->next_prio, trace_ctxwake_raw() 963 struct ctx_switch_entry *field; trace_ctxwake_hex() local 967 trace_assign_type(field, iter->ent); trace_ctxwake_hex() 970 S = task_state_char(field->prev_state); trace_ctxwake_hex() 971 T = task_state_char(field->next_state); trace_ctxwake_hex() 973 SEQ_PUT_HEX_FIELD(s, field->prev_pid); trace_ctxwake_hex() 974 SEQ_PUT_HEX_FIELD(s, field->prev_prio); trace_ctxwake_hex() 976 SEQ_PUT_HEX_FIELD(s, field->next_cpu); trace_ctxwake_hex() 977 SEQ_PUT_HEX_FIELD(s, field->next_pid); trace_ctxwake_hex() 978 SEQ_PUT_HEX_FIELD(s, field->next_prio); trace_ctxwake_hex() 999 struct ctx_switch_entry *field; trace_ctxwake_bin() local 1002 trace_assign_type(field, iter->ent); trace_ctxwake_bin() 1004 SEQ_PUT_FIELD(s, field->prev_pid); trace_ctxwake_bin() 1005 SEQ_PUT_FIELD(s, field->prev_prio); trace_ctxwake_bin() 1006 SEQ_PUT_FIELD(s, field->prev_state); trace_ctxwake_bin() 1007 SEQ_PUT_FIELD(s, field->next_cpu); trace_ctxwake_bin() 1008 SEQ_PUT_FIELD(s, field->next_pid); trace_ctxwake_bin() 1009 SEQ_PUT_FIELD(s, field->next_prio); trace_ctxwake_bin() 1010 SEQ_PUT_FIELD(s, field->next_state); trace_ctxwake_bin() 1044 struct stack_entry *field; trace_stack_print() local 1049 trace_assign_type(field, iter->ent); trace_stack_print() 1054 for (p = field->caller; p && *p != ULONG_MAX && p < end; p++) { trace_stack_print() 1080 struct userstack_entry *field; trace_user_stack_print() local 1083 trace_assign_type(field, iter->ent); trace_user_stack_print() 1086 seq_print_userip_objs(field, s, flags); trace_user_stack_print() 1107 struct bputs_entry *field; trace_bputs_print() local 1109 trace_assign_type(field, entry); trace_bputs_print() 1111 seq_print_ip_sym(s, field->ip, flags); trace_bputs_print() 1113 trace_seq_puts(s, field->str); trace_bputs_print() 1123 struct bputs_entry *field; trace_bputs_raw() local 1126 trace_assign_type(field, iter->ent); trace_bputs_raw() 1128 trace_seq_printf(s, ": %lx : ", field->ip); trace_bputs_raw() 1129 trace_seq_puts(s, field->str); trace_bputs_raw() 1151 struct bprint_entry *field; trace_bprint_print() local 1153 trace_assign_type(field, entry); trace_bprint_print() 1155 seq_print_ip_sym(s, field->ip, flags); trace_bprint_print() 1157 trace_seq_bprintf(s, field->fmt, field->buf); trace_bprint_print() 1167 struct bprint_entry *field; trace_bprint_raw() local 1170 trace_assign_type(field, iter->ent); trace_bprint_raw() 1172 trace_seq_printf(s, ": %lx : ", field->ip); trace_bprint_raw() 1173 trace_seq_bprintf(s, field->fmt, field->buf); trace_bprint_raw() 1192 struct print_entry *field; trace_print_print() local 1195 trace_assign_type(field, iter->ent); trace_print_print() 1197 seq_print_ip_sym(s, field->ip, flags); trace_print_print() 1198 trace_seq_printf(s, ": %s", field->buf); trace_print_print() 1206 struct print_entry *field; trace_print_raw() local 1208 trace_assign_type(field, iter->ent); trace_print_raw() 1210 trace_seq_printf(&iter->seq, "# %lx %s", field->ip, field->buf); trace_print_raw()
|
H A D | trace_export.c | 77 offsetof(typeof(field), item), \ 78 sizeof(field.item), \ 86 offsetof(typeof(field), \ 88 sizeof(field.container.item), \ 99 offsetof(typeof(field), item), \ 100 sizeof(field.item), \ 110 offsetof(typeof(field), \ 112 sizeof(field.container.item), \ 120 offsetof(typeof(field), item), \ 130 struct struct_name field; \
|
/linux-4.1.27/arch/cris/include/uapi/arch-v10/arch/ |
H A D | sv_addr_ag.h | 4 *! IO_MASK(reg,field) 5 *! IO_STATE(reg,field,state) 6 *! IO_EXTRACT(reg,field,val) 7 *! IO_STATE_VALUE(reg,field,state) 8 *! IO_BITNR(reg,field) 9 *! IO_WIDTH(reg,field) 10 *! IO_FIELD(reg,field,val) 27 Note that this macro doesn't work when field width is 32 bits. */ 28 #define IO_MASK(reg, field) IO_MASK_ (reg##_, field##_) 34 #define IO_STATE(reg, field, state) IO_STATE_ (reg##_, field##_, _##state) 40 #define IO_EXTRACT(reg, field, val) IO_EXTRACT_ (reg##_, field##_, val) 46 #define IO_STATE_VALUE(reg, field, state) \ 47 IO_STATE_VALUE_ (reg##_, field##_, _##state) 52 #define IO_FIELD(reg, field, val) IO_FIELD_ (reg##_, field##_, val) 56 LSB and the returned bitnumber is LSB of the field. */ 57 #define IO_BITNR(reg, field) IO_BITNR_ (reg##_, field##_) 61 #define IO_WIDTH(reg, field) IO_WIDTH_ (reg##_, field##_)
|
/linux-4.1.27/drivers/net/ethernet/sfc/ |
H A D | bitfield.h | 47 /* Specified attribute (e.g. LBN) of the specified field */ 48 #define EFX_VAL(field, attribute) field ## _ ## attribute 49 /* Low bit number of the specified field */ 50 #define EFX_LOW_BIT(field) EFX_VAL(field, LBN) 51 /* Bit width of the specified field */ 52 #define EFX_WIDTH(field) EFX_VAL(field, WIDTH) 53 /* High bit number of the specified field */ 54 #define EFX_HIGH_BIT(field) (EFX_LOW_BIT(field) + EFX_WIDTH(field) - 1) 55 /* Mask equal in width to the specified field. 57 * For example, a field with width 5 would have a mask of 0x1f. 65 /* Mask equal in width to the specified field. 67 * For example, a field with width 5 would have a mask of 0x1f. 112 * Extract bit field portion [low,high) from the native-endian element 117 * field occupying bits 28-45 of this 64-bit value. 133 * Extract bit field portion [low,high) from the 64-bit little-endian 140 * Extract bit field portion [low,high) from the 32-bit little-endian 171 #define EFX_OWORD_FIELD64(oword, field) \ 172 EFX_EXTRACT_OWORD64(oword, EFX_LOW_BIT(field), \ 173 EFX_HIGH_BIT(field)) 175 #define EFX_QWORD_FIELD64(qword, field) \ 176 EFX_EXTRACT_QWORD64(qword, EFX_LOW_BIT(field), \ 177 EFX_HIGH_BIT(field)) 179 #define EFX_OWORD_FIELD32(oword, field) \ 180 EFX_EXTRACT_OWORD32(oword, EFX_LOW_BIT(field), \ 181 EFX_HIGH_BIT(field)) 183 #define EFX_QWORD_FIELD32(qword, field) \ 184 EFX_EXTRACT_QWORD32(qword, EFX_LOW_BIT(field), \ 185 EFX_HIGH_BIT(field)) 187 #define EFX_DWORD_FIELD(dword, field) \ 188 EFX_EXTRACT_DWORD(dword, EFX_LOW_BIT(field), \ 189 EFX_HIGH_BIT(field)) 240 * Construct bit field portion 242 * Creates the portion of the bit field [low,high) that lies within 263 * Construct bit field portion 265 * Creates the portion of the named bit field that lies within the 268 #define EFX_INSERT_FIELD_NATIVE(min, max, field, value) \ 269 EFX_INSERT_NATIVE(min, max, EFX_LOW_BIT(field), \ 270 EFX_HIGH_BIT(field), value) 273 * Construct bit field 339 /* Populate an octword field with various numbers of arguments */ 368 /* Populate a quadword field with various numbers of arguments */ 395 /* Populate a dword field with various numbers of arguments */ 421 * Modify a named field within an already-populated structure. Used 499 #define EFX_SET_OWORD_FIELD64(oword, field, value) \ 500 EFX_SET_OWORD64(oword, EFX_LOW_BIT(field), \ 501 EFX_HIGH_BIT(field), value) 503 #define EFX_SET_QWORD_FIELD64(qword, field, value) \ 504 EFX_SET_QWORD64(qword, EFX_LOW_BIT(field), \ 505 EFX_HIGH_BIT(field), value) 507 #define EFX_SET_OWORD_FIELD32(oword, field, value) \ 508 EFX_SET_OWORD32(oword, EFX_LOW_BIT(field), \ 509 EFX_HIGH_BIT(field), value) 511 #define EFX_SET_QWORD_FIELD32(qword, field, value) \ 512 EFX_SET_QWORD32(qword, EFX_LOW_BIT(field), \ 513 EFX_HIGH_BIT(field), value) 515 #define EFX_SET_DWORD_FIELD(dword, field, value) \ 516 EFX_SET_DWORD32(dword, EFX_LOW_BIT(field), \ 517 EFX_HIGH_BIT(field), value)
|
/linux-4.1.27/tools/lib/traceevent/ |
H A D | plugin_sched_switch.c | 47 static void write_and_save_comm(struct format_field *field, write_and_save_comm() argument 54 comm = (char *)(record->data + field->offset); write_and_save_comm() 57 field->size, comm); write_and_save_comm() 64 pevent_register_comm(field->event->pevent, comm, pid); write_and_save_comm() 71 struct format_field *field; sched_wakeup_handler() local 77 field = pevent_find_any_field(event, "comm"); sched_wakeup_handler() 78 if (field) { sched_wakeup_handler() 79 write_and_save_comm(field, record, s, val); sched_wakeup_handler() 100 struct format_field *field; sched_switch_handler() local 106 field = pevent_find_any_field(event, "prev_comm"); sched_switch_handler() 107 if (field) { sched_switch_handler() 108 write_and_save_comm(field, record, s, val); sched_switch_handler() 124 field = pevent_find_any_field(event, "next_comm"); sched_switch_handler() 125 if (field) { sched_switch_handler() 126 write_and_save_comm(field, record, s, val); sched_switch_handler()
|
H A D | event-parse.c | 754 free(arg->field.name); free_arg() 757 free_arg(arg->flags.field); free_arg() 762 free_arg(arg->symbol.field); free_arg() 766 free_arg(arg->hex.field); free_arg() 770 free_arg(arg->int_array.field); free_arg() 1245 static int field_is_string(struct format_field *field) field_is_string() argument 1247 if ((field->flags & FIELD_IS_ARRAY) && field_is_string() 1248 (strstr(field->type, "char") || strstr(field->type, "u8") || field_is_string() 1249 strstr(field->type, "s8"))) field_is_string() 1255 static int field_is_dynamic(struct format_field *field) field_is_dynamic() argument 1257 if (strncmp(field->type, "__data_loc", 10) == 0) field_is_dynamic() 1263 static int field_is_long(struct format_field *field) field_is_long() argument 1266 if (strstr(field->type, "long")) field_is_long() 1302 struct format_field *field = NULL; event_read_fields() local 1319 if (test_type_token(type, token, EVENT_ITEM, "field")) event_read_fields() 1343 field = calloc(1, sizeof(*field)); event_read_fields() 1344 if (!field) event_read_fields() 1347 field->event = event; event_read_fields() 1362 field->flags |= FIELD_IS_POINTER; event_read_fields() 1364 if (field->type) { event_read_fields() 1366 new_type = realloc(field->type, event_read_fields() 1367 strlen(field->type) + event_read_fields() 1373 field->type = new_type; event_read_fields() 1374 strcat(field->type, " "); event_read_fields() 1375 strcat(field->type, last_token); event_read_fields() 1378 field->type = last_token; event_read_fields() 1386 if (!field->type) { event_read_fields() 1390 field->name = last_token; event_read_fields() 1401 field->flags |= FIELD_IS_ARRAY; event_read_fields() 1406 field->arraylen = strtoul(token, NULL, 0); event_read_fields() 1408 field->arraylen = 0; event_read_fields() 1430 field->arraylen = strtoul(token, NULL, 0); event_read_fields() 1458 new_type = realloc(field->type, event_read_fields() 1459 strlen(field->type) + event_read_fields() 1460 strlen(field->name) + event_read_fields() 1466 field->type = new_type; event_read_fields() 1467 strcat(field->type, " "); event_read_fields() 1468 strcat(field->type, field->name); event_read_fields() 1469 size_dynamic = type_size(field->name); event_read_fields() 1470 free_token(field->name); event_read_fields() 1471 strcat(field->type, brackets); event_read_fields() 1472 field->name = token; event_read_fields() 1476 new_type = realloc(field->type, event_read_fields() 1477 strlen(field->type) + event_read_fields() 1483 field->type = new_type; event_read_fields() 1484 strcat(field->type, brackets); event_read_fields() 1489 if (field_is_string(field)) event_read_fields() 1490 field->flags |= FIELD_IS_STRING; event_read_fields() 1491 if (field_is_dynamic(field)) event_read_fields() 1492 field->flags |= FIELD_IS_DYNAMIC; event_read_fields() 1493 if (field_is_long(field)) event_read_fields() 1494 field->flags |= FIELD_IS_LONG; event_read_fields() 1508 field->offset = strtoul(token, NULL, 0); event_read_fields() 1522 field->size = strtoul(token, NULL, 0); event_read_fields() 1543 field->flags |= FIELD_IS_SIGNED; event_read_fields() 1555 if (field->flags & FIELD_IS_ARRAY) { event_read_fields() 1556 if (field->arraylen) event_read_fields() 1557 field->elementsize = field->size / field->arraylen; event_read_fields() 1558 else if (field->flags & FIELD_IS_DYNAMIC) event_read_fields() 1559 field->elementsize = size_dynamic; event_read_fields() 1560 else if (field->flags & FIELD_IS_STRING) event_read_fields() 1561 field->elementsize = 1; event_read_fields() 1562 else if (field->flags & FIELD_IS_LONG) event_read_fields() 1563 field->elementsize = event->pevent ? event_read_fields() 1567 field->elementsize = field->size; event_read_fields() 1569 *fields = field; event_read_fields() 1570 fields = &field->next; event_read_fields() 1579 if (field) { event_read_fields() 1580 free(field->type); event_read_fields() 1581 free(field->name); event_read_fields() 1582 free(field); event_read_fields() 2010 char *field; process_entry() local 2018 field = token; process_entry() 2021 arg->field.name = field; process_entry() 2024 arg->field.field = pevent_find_any_field(event, arg->field.name); process_entry() 2025 arg->field.field->flags |= FIELD_IS_FLAG; process_entry() 2028 arg->field.field = pevent_find_any_field(event, arg->field.name); process_entry() 2029 arg->field.field->flags |= FIELD_IS_SYMBOLIC; process_entry() 2048 struct print_arg *field; alloc_and_process_delim() local 2053 field = alloc_arg(); alloc_and_process_delim() 2054 if (!field) { alloc_and_process_delim() 2060 type = process_arg(event, field, &token); alloc_and_process_delim() 2065 free_arg(field); alloc_and_process_delim() 2069 *print_arg = field; alloc_and_process_delim() 2378 struct print_flag_sym *field; process_fields() local 2404 field = calloc(1, sizeof(*field)); process_fields() 2405 if (!field) process_fields() 2411 field->value = strdup(value); process_fields() 2412 if (field->value == NULL) process_fields() 2428 field->str = strdup(value); process_fields() 2429 if (field->str == NULL) process_fields() 2434 *list = field; process_fields() 2435 list = &field->next; process_fields() 2445 free_flag_sym(field); process_fields() 2457 struct print_arg *field; process_flags() local 2464 field = alloc_arg(); process_flags() 2465 if (!field) { process_flags() 2470 type = process_field_arg(event, field, &token); process_flags() 2474 type = process_op(event, field, &token); process_flags() 2480 arg->flags.field = field; process_flags() 2500 free_arg(field); process_flags() 2510 struct print_arg *field; process_symbols() local 2517 field = alloc_arg(); process_symbols() 2518 if (!field) { process_symbols() 2523 type = process_field_arg(event, field, &token); process_symbols() 2528 arg->symbol.field = field; process_symbols() 2539 free_arg(field); process_symbols() 2552 if (alloc_and_process_delim(event, ",", &arg->hex.field)) process_hex() 2561 free_arg(arg->hex.field); process_hex() 2573 if (alloc_and_process_delim(event, ",", &arg->int_array.field)) process_int_array() 2587 free_arg(arg->int_array.field); process_int_array() 2596 struct format_field *field; process_dynamic_array() local 2604 * The item within the parenthesis is another field that holds process_dynamic_array() 2612 /* Find the field */ process_dynamic_array() 2614 field = pevent_find_field(event, token); process_dynamic_array() 2615 if (!field) process_dynamic_array() 2618 arg->dynarray.field = field; process_dynamic_array() 3121 * pevent_find_common_field - return a common field by event 3123 * @name: the name of the common field to return 3125 * Returns a common field from the event by the given @name. 3126 * This only searchs the common fields and not all field. 3143 * pevent_find_field - find a non-common field 3145 * @name: the name of the non-common field 3147 * Returns a non-common field by the given @name. 3165 * pevent_find_any_field - find any field by name 3167 * @name: the name of the field 3169 * Returns a field by the given @name. 3170 * This searchs the common field names first, then 3213 * @field: a handle to the field 3217 * Reads raw data according to a field offset and size, 3222 int pevent_read_number_field(struct format_field *field, const void *data, pevent_read_number_field() argument 3225 if (!field) pevent_read_number_field() 3227 switch (field->size) { pevent_read_number_field() 3232 *value = pevent_read_number(field->event->pevent, pevent_read_number_field() 3233 data + field->offset, field->size); pevent_read_number_field() 3244 struct format_field *field; get_common_info() local 3256 field = pevent_find_common_field(event, type); get_common_info() 3257 if (!field) get_common_info() 3260 *offset = field->offset; get_common_info() 3261 *size = field->size; get_common_info() 3408 if (!arg->field.field) { eval_num_arg() 3409 arg->field.field = pevent_find_any_field(event, arg->field.name); eval_num_arg() 3410 if (!arg->field.field) eval_num_arg() 3415 val = pevent_read_number(pevent, data + arg->field.field->offset, eval_num_arg() 3416 arg->field.field->size); eval_num_arg() 3459 data + larg->dynarray.field->offset, eval_num_arg() 3460 larg->dynarray.field->size); eval_num_arg() 3461 if (larg->dynarray.field->elementsize) eval_num_arg() 3462 field_size = larg->dynarray.field->elementsize; eval_num_arg() 3465 * in the top half of the field, and the offset eval_num_arg() 3466 * is in the bottom half of the 32 bit field. eval_num_arg() 3472 if (!larg->field.field) { eval_num_arg() 3473 larg->field.field = eval_num_arg() 3474 pevent_find_any_field(event, larg->field.name); eval_num_arg() 3475 if (!larg->field.field) { eval_num_arg() 3480 field_size = larg->field.field->elementsize; eval_num_arg() 3481 offset = larg->field.field->offset + eval_num_arg() 3482 right * larg->field.field->elementsize; eval_num_arg() 3587 data + arg->dynarray.field->offset, eval_num_arg() 3588 arg->dynarray.field->size); eval_num_arg() 3591 * in the top half of the field, and the offset eval_num_arg() 3592 * is in the bottom half of the 32 bit field. eval_num_arg() 3607 do_warning_event(event, "%s: field %s not found", eval_num_arg() 3608 __func__, arg->field.name); eval_num_arg() 3721 struct format_field *field; print_str_arg() local 3738 field = arg->field.field; print_str_arg() 3739 if (!field) { print_str_arg() 3740 field = pevent_find_any_field(event, arg->field.name); print_str_arg() 3741 if (!field) { print_str_arg() 3742 str = arg->field.name; print_str_arg() 3745 arg->field.field = field; print_str_arg() 3748 len = field->size ? : size - field->offset; print_str_arg() 3755 if (!(field->flags & FIELD_IS_ARRAY) && print_str_arg() 3756 field->size == pevent->long_size) { print_str_arg() 3772 *(unsigned long long *)(data + field->offset) : print_str_arg() 3773 (unsigned long long)*(unsigned int *)(data + field->offset); print_str_arg() 3789 memcpy(str, data + field->offset, len); print_str_arg() 3795 val = eval_num_arg(data, size, event, arg->flags.field); print_str_arg() 3813 val = eval_num_arg(data, size, event, arg->symbol.field); print_str_arg() 3823 if (arg->hex.field->type == PRINT_DYNAMIC_ARRAY) { print_str_arg() 3826 data + arg->hex.field->dynarray.field->offset, print_str_arg() 3827 arg->hex.field->dynarray.field->size); print_str_arg() 3830 field = arg->hex.field->field.field; print_str_arg() 3831 if (!field) { print_str_arg() 3832 str = arg->hex.field->field.name; print_str_arg() 3833 field = pevent_find_any_field(event, str); print_str_arg() 3834 if (!field) print_str_arg() 3836 arg->hex.field->field.field = field; print_str_arg() 3838 hex = data + field->offset; print_str_arg() 3852 if (arg->int_array.field->type == PRINT_DYNAMIC_ARRAY) { print_str_arg() 3854 struct format_field *field = print_str_arg() local 3855 arg->int_array.field->dynarray.field; print_str_arg() 3857 data + field->offset, print_str_arg() 3858 field->size); print_str_arg() 3861 field = arg->int_array.field->field.field; print_str_arg() 3862 if (!field) { print_str_arg() 3863 str = arg->int_array.field->field.name; print_str_arg() 3864 field = pevent_find_any_field(event, str); print_str_arg() 3865 if (!field) print_str_arg() 3867 arg->int_array.field->field.field = field; print_str_arg() 3869 num = data + field->offset; print_str_arg() 3957 do_warning_event(event, "%s: field %s not found", print_str_arg() 3958 __func__, arg->field.name); print_str_arg() 4061 struct format_field *field, *ip_field; make_bprint_args() local 4068 field = pevent->bprint_buf_field; make_bprint_args() 4071 if (!field) { make_bprint_args() 4072 field = pevent_find_field(event, "buf"); make_bprint_args() 4073 if (!field) { make_bprint_args() 4074 do_warning_event(event, "can't find buffer field for binary printk"); make_bprint_args() 4079 do_warning_event(event, "can't find ip field for binary printk"); make_bprint_args() 4082 pevent->bprint_buf_field = field; make_bprint_args() 4107 for (ptr = fmt + 5, bptr = data + field->offset; make_bprint_args() 4218 struct format_field *field; get_bprint_format() local 4222 field = pevent->bprint_fmt_field; get_bprint_format() 4224 if (!field) { get_bprint_format() 4225 field = pevent_find_field(event, "fmt"); get_bprint_format() 4226 if (!field) { get_bprint_format() 4227 do_warning_event(event, "can't find format field for binary printk"); get_bprint_format() 4230 pevent->bprint_fmt_field = field; get_bprint_format() 4233 addr = pevent_read_number(pevent, data + field->offset, field->size); get_bprint_format() 4267 if (!arg->field.field) { print_mac_arg() 4268 arg->field.field = print_mac_arg() 4269 pevent_find_any_field(event, arg->field.name); print_mac_arg() 4270 if (!arg->field.field) { print_mac_arg() 4271 do_warning_event(event, "%s: field %s not found", print_mac_arg() 4272 __func__, arg->field.name); print_mac_arg() 4276 if (arg->field.field->size != 6) { print_mac_arg() 4280 buf = data + arg->field.field->offset; print_mac_arg() 4417 if (!arg->field.field) { print_ipv4_arg() 4418 arg->field.field = print_ipv4_arg() 4419 pevent_find_any_field(event, arg->field.name); print_ipv4_arg() 4420 if (!arg->field.field) { print_ipv4_arg() 4421 do_warning("%s: field %s not found", print_ipv4_arg() 4422 __func__, arg->field.name); print_ipv4_arg() 4427 buf = data + arg->field.field->offset; print_ipv4_arg() 4429 if (arg->field.field->size != 4) { print_ipv4_arg() 4463 if (!arg->field.field) { print_ipv6_arg() 4464 arg->field.field = print_ipv6_arg() 4465 pevent_find_any_field(event, arg->field.name); print_ipv6_arg() 4466 if (!arg->field.field) { print_ipv6_arg() 4467 do_warning("%s: field %s not found", print_ipv6_arg() 4468 __func__, arg->field.name); print_ipv6_arg() 4473 buf = data + arg->field.field->offset; print_ipv6_arg() 4475 if (arg->field.field->size != 16) { print_ipv6_arg() 4521 if (!arg->field.field) { print_ipsa_arg() 4522 arg->field.field = print_ipsa_arg() 4523 pevent_find_any_field(event, arg->field.name); print_ipsa_arg() 4524 if (!arg->field.field) { print_ipsa_arg() 4525 do_warning("%s: field %s not found", print_ipsa_arg() 4526 __func__, arg->field.name); print_ipsa_arg() 4531 sa = (struct sockaddr_storage *) (data + arg->field.field->offset); print_ipsa_arg() 4536 if (arg->field.field->size < sizeof(struct sockaddr_in)) { print_ipsa_arg() 4549 if (arg->field.field->size < sizeof(struct sockaddr_in6)) { print_ipsa_arg() 4616 struct format_field *field; print_event_fields() local 4620 field = event->format.fields; print_event_fields() 4621 while (field) { print_event_fields() 4622 trace_seq_printf(s, " %s=", field->name); print_event_fields() 4623 if (field->flags & FIELD_IS_ARRAY) { print_event_fields() 4624 offset = field->offset; print_event_fields() 4625 len = field->size; print_event_fields() 4626 if (field->flags & FIELD_IS_DYNAMIC) { print_event_fields() 4632 if (field->flags & FIELD_IS_STRING && print_event_fields() 4644 field->flags &= ~FIELD_IS_STRING; print_event_fields() 4647 val = pevent_read_number(event->pevent, data + field->offset, print_event_fields() 4648 field->size); print_event_fields() 4649 if (field->flags & FIELD_IS_POINTER) { print_event_fields() 4651 } else if (field->flags & FIELD_IS_SIGNED) { print_event_fields() 4652 switch (field->size) { print_event_fields() 4655 * If field is long then print it in hex. print_event_fields() 4658 if (field->flags & FIELD_IS_LONG) print_event_fields() 4673 if (field->flags & FIELD_IS_LONG) print_event_fields() 4679 field = field->next; print_event_fields() 5373 struct format_field *field; get_event_fields() local 5380 for (field = list; field; field = field->next) { get_event_fields() 5381 fields[i++] = field; get_event_fields() 5427 static void print_fields(struct trace_seq *s, struct print_flag_sym *field) print_fields() argument 5429 trace_seq_printf(s, "{ %s, %s }", field->value, field->str); print_fields() 5430 if (field->next) { print_fields() 5432 print_fields(s, field->next); print_fields() 5450 printf("REC->%s", args->field.name); print_args() 5454 print_args(args->flags.field); print_args() 5464 print_args(args->symbol.field); print_args() 5474 print_args(args->hex.field); print_args() 5481 print_args(args->int_array.field); print_args() 5520 static void parse_header_field(const char *field, parse_header_field() argument 5531 if (read_expected(EVENT_ITEM, "field") < 0) parse_header_field() 5542 * If this is not a mandatory field, then test it first. parse_header_field() 5545 if (read_expected(EVENT_ITEM, field) < 0) parse_header_field() 5550 if (strcmp(token, field) != 0) parse_header_field() 5787 struct format_field *field; __pevent_parse_format() local 5792 for (field = event->format.fields; field; field = field->next) { __pevent_parse_format() 5799 arg->field.name = strdup(field->name); __pevent_parse_format() 5800 if (!arg->field.name) { __pevent_parse_format() 5805 arg->field.field = field; __pevent_parse_format() 5932 int get_field_val(struct trace_seq *s, struct format_field *field, get_field_val() argument 5936 if (!field) { get_field_val() 5942 if (pevent_read_number_field(field, record->data, val)) { get_field_val() 5952 * pevent_get_field_raw - return the raw pointer into the data field 5954 * @event: the event that the field is for 5955 * @name: The name of the field 5956 * @record: The record with the field name. 5957 * @len: place to store the field length. 5960 * Returns a pointer into record->data of the field and places 5961 * the length of the field in @len. 5969 struct format_field *field; pevent_get_field_raw() local 5977 field = pevent_find_field(event, name); pevent_get_field_raw() 5979 if (!field) { pevent_get_field_raw() 5989 offset = field->offset; pevent_get_field_raw() 5990 if (field->flags & FIELD_IS_DYNAMIC) { pevent_get_field_raw() 5992 data + offset, field->size); pevent_get_field_raw() 5996 *len = field->size; pevent_get_field_raw() 6002 * pevent_get_field_val - find a field and return its value 6004 * @event: the event that the field is for 6005 * @name: The name of the field 6006 * @record: The record with the field name. 6007 * @val: place to store the value of the field. 6010 * Returns 0 on success -1 on field not found. 6016 struct format_field *field; pevent_get_field_val() local 6021 field = pevent_find_field(event, name); pevent_get_field_val() 6023 return get_field_val(s, field, name, record, val, err); pevent_get_field_val() 6027 * pevent_get_common_field_val - find a common field and return its value 6029 * @event: the event that the field is for 6030 * @name: The name of the field 6031 * @record: The record with the field name. 6032 * @val: place to store the value of the field. 6035 * Returns 0 on success -1 on field not found. 6041 struct format_field *field; pevent_get_common_field_val() local 6046 field = pevent_find_common_field(event, name); pevent_get_common_field_val() 6048 return get_field_val(s, field, name, record, val, err); pevent_get_common_field_val() 6052 * pevent_get_any_field_val - find a any field and return its value 6054 * @event: the event that the field is for 6055 * @name: The name of the field 6056 * @record: The record with the field name. 6057 * @val: place to store the value of the field. 6060 * Returns 0 on success -1 on field not found. 6066 struct format_field *field; pevent_get_any_field_val() local 6071 field = pevent_find_any_field(event, name); pevent_get_any_field_val() 6073 return get_field_val(s, field, name, record, val, err); pevent_get_any_field_val() 6077 * pevent_print_num_field - print a field and a format 6079 * @fmt: The printf format to print the field with. 6080 * @event: the event that the field is for 6081 * @name: The name of the field 6082 * @record: The record with the field name. 6085 * Returns: 0 on success, -1 field not found, or 1 if buffer is full. 6091 struct format_field *field = pevent_find_field(event, name); pevent_print_num_field() local 6094 if (!field) pevent_print_num_field() 6097 if (pevent_read_number_field(field, record->data, &val)) pevent_print_num_field() 6109 * pevent_print_func_field - print a field and a format for function pointers 6111 * @fmt: The printf format to print the field with. 6112 * @event: the event that the field is for 6113 * @name: The name of the field 6114 * @record: The record with the field name. 6117 * Returns: 0 on success, -1 field not found, or 1 if buffer is full. 6123 struct format_field *field = pevent_find_field(event, name); pevent_print_func_field() local 6129 if (!field) pevent_print_func_field() 6132 if (pevent_read_number_field(field, record->data, &val)) pevent_print_func_field() 6460 void pevent_free_format_field(struct format_field *field) pevent_free_format_field() argument 6462 free(field->type); pevent_free_format_field() 6463 free(field->name); pevent_free_format_field() 6464 free(field); pevent_free_format_field() 6467 static void free_format_fields(struct format_field *field) free_format_fields() argument 6471 while (field) { free_format_fields() 6472 next = field->next; free_format_fields() 6473 pevent_free_format_field(field); free_format_fields() 6474 field = next; free_format_fields()
|
H A D | plugin_kmem.c | 29 struct format_field *field; call_site_handler() local 34 field = pevent_find_field(event, "call_site"); call_site_handler() 35 if (!field) call_site_handler() 38 if (pevent_read_number_field(field, data, &val)) call_site_handler()
|
/linux-4.1.27/arch/mips/include/asm/mach-pnx833x/ |
H A D | pnx833x.h | 33 #define PNX833X_BIT(val, reg, field) ((val) & PNX833X_##reg##_##field) 34 #define PNX833X_REGBIT(reg, field) PNX833X_BIT(PNX833X_##reg, reg, field) 36 /* Use PNX833X_FIELD to extract a field from val */ 37 #define PNX_FIELD(cpu, val, reg, field) \ 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) 41 #define PNX8330_FIELD(val, reg, field) PNX_FIELD(8330, val, reg, field) 42 #define PNX8335_FIELD(val, reg, field) PNX_FIELD(8335, val, reg, field) 44 /* Use PNX833X_REGFIELD to extract a field from a register */ 45 #define PNX833X_REGFIELD(reg, field) PNX833X_FIELD(PNX833X_##reg, reg, field) 46 #define PNX8330_REGFIELD(reg, field) PNX8330_FIELD(PNX8330_##reg, reg, field) 47 #define PNX8335_REGFIELD(reg, field) PNX8335_FIELD(PNX8335_##reg, reg, field) 50 #define PNX_WRITEFIELD(cpu, val, reg, field) \ 51 (PNX##cpu##_##reg = (PNX##cpu##_##reg & ~(PNX##cpu##_##reg##_##field##_MASK)) | \ 52 ((val) << PNX##cpu##_##reg##_##field##_SHIFT)) 53 #define PNX833X_WRITEFIELD(val, reg, field) \ 54 PNX_WRITEFIELD(833X, val, reg, field) 55 #define PNX8330_WRITEFIELD(val, reg, field) \ 56 PNX_WRITEFIELD(8330, val, reg, field) 57 #define PNX8335_WRITEFIELD(val, reg, field) \ 58 PNX_WRITEFIELD(8335, val, reg, field)
|
/linux-4.1.27/drivers/hid/ |
H A D | hid-lg2ff.c | 48 lg2ff->report->field[0]->value[0] = 0x51; play_effect() 49 lg2ff->report->field[0]->value[2] = weak; play_effect() 50 lg2ff->report->field[0]->value[4] = strong; play_effect() 52 lg2ff->report->field[0]->value[0] = 0xf3; play_effect() 53 lg2ff->report->field[0]->value[2] = 0x00; play_effect() 54 lg2ff->report->field[0]->value[4] = 0x00; play_effect() 88 report->field[0]->value[0] = 0xf3; lg2ff_init() 89 report->field[0]->value[1] = 0x00; lg2ff_init() 90 report->field[0]->value[2] = 0x00; lg2ff_init() 91 report->field[0]->value[3] = 0x00; lg2ff_init() 92 report->field[0]->value[4] = 0x00; lg2ff_init() 93 report->field[0]->value[5] = 0x00; lg2ff_init() 94 report->field[0]->value[6] = 0x00; lg2ff_init()
|
H A D | hid-gaff.c | 57 gaff->report->field[0]->value[0] = 0x51; hid_gaff_play() 58 gaff->report->field[0]->value[1] = 0x0; hid_gaff_play() 59 gaff->report->field[0]->value[2] = right; hid_gaff_play() 60 gaff->report->field[0]->value[3] = 0; hid_gaff_play() 61 gaff->report->field[0]->value[4] = left; hid_gaff_play() 62 gaff->report->field[0]->value[5] = 0; hid_gaff_play() 66 gaff->report->field[0]->value[0] = 0xfa; hid_gaff_play() 67 gaff->report->field[0]->value[1] = 0xfe; hid_gaff_play() 68 gaff->report->field[0]->value[2] = 0x0; hid_gaff_play() 69 gaff->report->field[0]->value[4] = 0x0; hid_gaff_play() 101 if (report->field[0]->report_count < 6) { gaff_init() 102 hid_err(hid, "not enough values in the field\n"); gaff_init() 119 gaff->report->field[0]->value[0] = 0x51; gaff_init() 120 gaff->report->field[0]->value[1] = 0x00; gaff_init() 121 gaff->report->field[0]->value[2] = 0x00; gaff_init() 122 gaff->report->field[0]->value[3] = 0x00; gaff_init() 125 gaff->report->field[0]->value[0] = 0xfa; gaff_init() 126 gaff->report->field[0]->value[1] = 0xfe; gaff_init()
|
H A D | hid-lg3ff.c | 33 * 0 - seems to be command field 69 * Available values in the field should always be 63, but we only use up to hid_lg3ff_play() 72 memset(report->field[0]->value, 0, hid_lg3ff_play() 73 sizeof(__s32) * report->field[0]->report_count); hid_lg3ff_play() 85 report->field[0]->value[0] = 0x51; hid_lg3ff_play() 91 report->field[0]->value[1] = (unsigned char)(-x); hid_lg3ff_play() 92 report->field[0]->value[31] = (unsigned char)(-y); hid_lg3ff_play() 110 report->field[0]->value[0] = 0x51; hid_lg3ff_set_autocenter() 111 report->field[0]->value[1] = 0x00; hid_lg3ff_set_autocenter() 112 report->field[0]->value[2] = 0x00; hid_lg3ff_set_autocenter() 113 report->field[0]->value[3] = 0x7F; hid_lg3ff_set_autocenter() 114 report->field[0]->value[4] = 0x7F; hid_lg3ff_set_autocenter() 115 report->field[0]->value[31] = 0x00; hid_lg3ff_set_autocenter() 116 report->field[0]->value[32] = 0x00; hid_lg3ff_set_autocenter() 117 report->field[0]->value[33] = 0x7F; hid_lg3ff_set_autocenter() 118 report->field[0]->value[34] = 0x7F; hid_lg3ff_set_autocenter()
|
H A D | hid-plantronics.c | 22 struct hid_field *field, plantronics_input_mapping() 26 if (field->application == HID_CP_CONSUMERCONTROL plantronics_input_mapping() 29 usage->hid, field->application); plantronics_input_mapping() 34 usage->hid, field->application); plantronics_input_mapping() 20 plantronics_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) plantronics_input_mapping() argument
|
H A D | hid-emsff.c | 49 emsff->report->field[0]->value[1] = weak; emsff_play() 50 emsff->report->field[0]->value[2] = strong; emsff_play() 80 if (report->field[0]->report_count < 7) { emsff_init() 81 hid_err(hid, "not enough values in the field\n"); emsff_init() 98 emsff->report->field[0]->value[0] = 0x01; emsff_init() 99 emsff->report->field[0]->value[1] = 0x00; emsff_init() 100 emsff->report->field[0]->value[2] = 0x00; emsff_init() 101 emsff->report->field[0]->value[3] = 0x00; emsff_init() 102 emsff->report->field[0]->value[4] = 0x00; emsff_init() 103 emsff->report->field[0]->value[5] = 0x00; emsff_init() 104 emsff->report->field[0]->value[6] = 0x00; emsff_init()
|
H A D | hid-lg4ff.h | 7 int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field, 12 static inline int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field, lg4ff_adjust_input_event() argument
|
H A D | hid-multitouch.c | 105 int cc_index; /* contact count field index in the report */ 106 int cc_value_index; /* contact count value index in the field */ 107 unsigned last_slot_field; /* the last field of a slot */ 313 struct hid_field *field, struct hid_usage *usage) mt_feature_mapping() 320 if (usage->usage_index >= field->report_count) { mt_feature_mapping() 326 td->inputmode = field->report->id; mt_feature_mapping() 332 * value in the second field. Skip the second feature mt_feature_mapping() 341 td->maxcontact_report_id = field->report->id; mt_feature_mapping() 342 td->maxcontacts = field->value[0]; mt_feature_mapping() 344 field->logical_maximum <= MT_MAX_MAXCONTACT) mt_feature_mapping() 345 td->maxcontacts = field->logical_maximum; mt_feature_mapping() 352 if (usage->usage_index >= field->report_count) { mt_feature_mapping() 357 if (field->value[usage->usage_index] == MT_BUTTONTYPE_CLICKPAD) mt_feature_mapping() 365 struct hid_field *field, int snratio) set_abs() 367 int fmin = field->logical_minimum; set_abs() 368 int fmax = field->logical_maximum; set_abs() 371 input_abs_set_res(input, code, hidinput_calc_abs_res(field, code)); set_abs() 386 struct hid_field *field, struct hid_usage *usage, mt_touch_input_mapping() 394 if (field->application == HID_DG_TOUCHSCREEN) mt_touch_input_mapping() 400 if (field->application == HID_DG_TOUCHPAD || mt_touch_input_mapping() 411 prev_usage = &field->usage[usage->usage_index - 1]; mt_touch_input_mapping() 421 set_abs(hi->input, ABS_MT_TOOL_X, field, mt_touch_input_mapping() 426 set_abs(hi->input, ABS_MT_POSITION_X, field, mt_touch_input_mapping() 436 set_abs(hi->input, ABS_MT_TOOL_Y, field, mt_touch_input_mapping() 441 set_abs(hi->input, ABS_MT_POSITION_Y, field, mt_touch_input_mapping() 472 td->mt_report_id = field->report->id; mt_touch_input_mapping() 478 set_abs(hi->input, ABS_MT_TOUCH_MAJOR, field, mt_touch_input_mapping() 486 set_abs(hi->input, ABS_MT_TOUCH_MINOR, field, mt_touch_input_mapping() 496 set_abs(hi->input, ABS_MT_PRESSURE, field, mt_touch_input_mapping() 502 if (field->index >= field->report->maxfield || mt_touch_input_mapping() 503 usage->usage_index >= field->report_count) mt_touch_input_mapping() 505 td->cc_index = field->index; mt_touch_input_mapping() 514 * Let's just ignore this field. */ mt_touch_input_mapping() 535 struct hid_field *field, struct hid_usage *usage, mt_touch_input_mapped() 625 static int mt_touch_event(struct hid_device *hid, struct hid_field *field, mt_touch_event() argument 630 hid->hiddev_hid_event(hid, field, usage, value); mt_touch_event() 635 static void mt_process_mt_event(struct hid_device *hid, struct hid_field *field, mt_process_mt_event() argument 640 struct input_dev *input = field->hidinput->input; mt_process_mt_event() 696 if (usage->usage_index + 1 == field->report_count) { mt_process_mt_event() 699 mt_complete_slot(td, field->hidinput->input); mt_process_mt_event() 708 struct hid_field *field; mt_touch_report() local 717 struct hid_field *field = report->field[td->cc_index]; mt_touch_report() local 718 int value = field->value[td->cc_value_index]; mt_touch_report() 724 field = report->field[r]; mt_touch_report() 725 count = field->report_count; mt_touch_report() 727 if (!(HID_MAIN_ITEM_VARIABLE & field->flags)) mt_touch_report() 731 mt_process_mt_event(hid, field, &field->usage[n], mt_touch_report() 732 field->value[n]); mt_touch_report() 736 mt_sync_frame(td, report->field[0]->hidinput->input); mt_touch_report() 772 struct hid_field *field, struct hid_usage *usage, mt_input_mapping() 784 field->application != HID_DG_TOUCHSCREEN && mt_input_mapping() 785 field->application != HID_DG_PEN && mt_input_mapping() 786 field->application != HID_DG_TOUCHPAD) mt_input_mapping() 793 if (field->physical == HID_DG_STYLUS) mt_input_mapping() 796 if (field->application == HID_DG_TOUCHSCREEN || mt_input_mapping() 797 field->application == HID_DG_TOUCHPAD) mt_input_mapping() 798 return mt_touch_input_mapping(hdev, hi, field, usage, bit, max); mt_input_mapping() 805 struct hid_field *field, struct hid_usage *usage, mt_input_mapped() 812 if (field->physical == HID_DG_STYLUS) mt_input_mapped() 815 if (field->application == HID_DG_TOUCHSCREEN || mt_input_mapped() 816 field->application == HID_DG_TOUCHPAD) mt_input_mapped() 817 return mt_touch_input_mapped(hdev, hi, field, usage, bit, max); mt_input_mapped() 823 static int mt_event(struct hid_device *hid, struct hid_field *field, mt_event() argument 828 if (field->report->id == td->mt_report_id) mt_event() 829 return mt_touch_event(hid, field, usage, value); mt_event() 837 struct hid_field *field = report->field[0]; mt_report() local 845 if (field && field->hidinput && field->hidinput->input) mt_report() 846 input_sync(field->hidinput->input); mt_report() 876 r->field[0]->value[td->inputmode_index] = td->inputmode_value; mt_set_input_mode() 898 fieldmax = r->field[0]->logical_maximum; mt_set_maxcontacts() 900 if (r->field[0]->value[0] != max) { mt_set_maxcontacts() 901 r->field[0]->value[0] = max; mt_set_maxcontacts() 942 struct hid_field *field = hi->report->field[0]; mt_input_configured() local 950 * field. mt_input_configured() 952 if (hi->report->field[0]->physical == HID_DG_STYLUS) { mt_input_configured() 957 switch (field->application) { mt_input_configured() 312 mt_feature_mapping(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage) mt_feature_mapping() argument 364 set_abs(struct input_dev *input, unsigned int code, struct hid_field *field, int snratio) set_abs() argument 385 mt_touch_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) mt_touch_input_mapping() argument 534 mt_touch_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) mt_touch_input_mapped() argument 771 mt_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) mt_input_mapping() argument 804 mt_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) mt_input_mapped() argument
|
H A D | hid-input.c | 109 for (j = 0; j < report->field[i]->maxusage; j++) { hidinput_find_key() 110 usage = report->field[i]->usage + j; hidinput_find_key() 198 * @field: the HID report field to calculate resolution for 211 __s32 hidinput_calc_abs_res(const struct hid_field *field, __u16 code) hidinput_calc_abs_res() argument 213 __s32 unit_exponent = field->unit_exponent; hidinput_calc_abs_res() 214 __s32 logical_extents = field->logical_maximum - hidinput_calc_abs_res() 215 field->logical_minimum; hidinput_calc_abs_res() 216 __s32 physical_extents = field->physical_maximum - hidinput_calc_abs_res() 217 field->physical_minimum; hidinput_calc_abs_res() 238 if (field->unit == 0x11) { /* If centimeters */ hidinput_calc_abs_res() 241 } else if (field->unit == 0x13) { /* If inches */ hidinput_calc_abs_res() 258 if (field->unit == 0x14) { /* If degrees */ hidinput_calc_abs_res() 265 } else if (field->unit != 0x12) { /* If not radians */ hidinput_calc_abs_res() 398 static bool hidinput_setup_battery(struct hid_device *dev, unsigned report_type, struct hid_field *field) hidinput_setup_battery() argument 405 if (field->usage->hid != HID_DC_BATTERYSTRENGTH) hidinput_setup_battery() 432 min = field->logical_minimum; hidinput_setup_battery() 433 max = field->logical_maximum; hidinput_setup_battery() 446 dev->battery_report_id = field->report->id; hidinput_setup_battery() 478 struct hid_field *field) hidinput_setup_battery() 488 static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_field *field, hidinput_configure_usage() argument 496 field->hidinput = hidinput; hidinput_configure_usage() 498 if (field->flags & HID_MAIN_ITEM_CONSTANT) hidinput_configure_usage() 502 if (field->report_count < 1) hidinput_configure_usage() 506 if (field->report_type == HID_OUTPUT_REPORT && hidinput_configure_usage() 512 int ret = device->driver->input_mapping(device, hidinput, field, hidinput_configure_usage() 538 switch (field->application) { hidinput_configure_usage() 554 switch (field->physical) { hidinput_configure_usage() 608 if (field->dpad) { hidinput_configure_usage() 609 map_abs(field->dpad); hidinput_configure_usage() 620 if (field->flags & HID_MAIN_ITEM_RELATIVE) hidinput_configure_usage() 627 if (field->flags & HID_MAIN_ITEM_RELATIVE) hidinput_configure_usage() 634 usage->hat_min = field->logical_minimum; hidinput_configure_usage() 635 usage->hat_max = field->logical_maximum; hidinput_configure_usage() 680 switch (field->physical & 0xff) { hidinput_configure_usage() 921 if (hidinput_setup_battery(device, HID_INPUT_REPORT, field)) hidinput_configure_usage() 974 if (field->report_size == 1) { hidinput_configure_usage() 975 if (field->report->type == HID_OUTPUT_REPORT) { hidinput_configure_usage() 982 if (field->flags & HID_MAIN_ITEM_RELATIVE) { hidinput_configure_usage() 992 hidinput, field, usage, &bit, &max) < 0) hidinput_configure_usage() 1006 int a = field->logical_minimum; hidinput_configure_usage() 1007 int b = field->logical_maximum; hidinput_configure_usage() 1010 a = field->logical_minimum = 0; hidinput_configure_usage() 1011 b = field->logical_maximum = 255; hidinput_configure_usage() 1014 if (field->application == HID_GD_GAMEPAD || field->application == HID_GD_JOYSTICK) hidinput_configure_usage() 1019 hidinput_calc_abs_res(field, usage->code)); hidinput_configure_usage() 1033 if (usage->hat_dir && !field->dpad) hidinput_configure_usage() 1034 field->dpad = usage->code; hidinput_configure_usage() 1041 if ((usage->type == EV_ABS) && (field->flags & HID_MAIN_ITEM_RELATIVE) && hidinput_configure_usage() 1057 void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) hidinput_hid_event() argument 1062 if (!field->hidinput) hidinput_hid_event() 1065 input = field->hidinput->input; hidinput_hid_event() 1096 int a = field->logical_minimum; hidinput_hid_event() 1097 int b = field->logical_maximum; hidinput_hid_event() 1114 if ((usage->type == EV_ABS) && (field->flags & HID_MAIN_ITEM_RELATIVE) && hidinput_hid_event() 1137 if ((field->flags & HID_MAIN_ITEM_VARIABLE) && hidinput_hid_event() 1138 (field->logical_minimum < field->logical_maximum) && hidinput_hid_event() 1139 (value < field->logical_minimum || hidinput_hid_event() 1140 value > field->logical_maximum)) { hidinput_hid_event() 1155 if (!(field->flags & (HID_MAIN_ITEM_RELATIVE | hidinput_hid_event() 1157 (field->flags & HID_MAIN_ITEM_VARIABLE) && hidinput_hid_event() 1158 usage->usage_index < field->maxusage && hidinput_hid_event() 1159 value == field->value[usage->usage_index]) hidinput_hid_event() 1168 if ((field->flags & HID_MAIN_ITEM_RELATIVE) && (usage->type == EV_KEY)) hidinput_hid_event() 1184 int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field) hidinput_find_field() argument 1191 *field = report->field[i]; hidinput_find_field() 1192 for (j = 0; j < (*field)->maxusage; j++) hidinput_find_field() 1193 if ((*field)->usage[j].type == type && (*field)->usage[j].code == code) hidinput_find_field() 1204 struct hid_field *field; hidinput_get_led_field() local 1211 field = report->field[i]; hidinput_get_led_field() 1212 for (j = 0; j < field->maxusage; j++) hidinput_get_led_field() 1213 if (field->usage[j].type == EV_LED) hidinput_get_led_field() 1214 return field; hidinput_get_led_field() 1224 struct hid_field *field; hidinput_count_leds() local 1232 field = report->field[i]; hidinput_count_leds() 1233 for (j = 0; j < field->maxusage; j++) hidinput_count_leds() 1234 if (field->usage[j].type == EV_LED && hidinput_count_leds() 1235 field->value[j]) hidinput_count_leds() 1247 struct hid_field *field; hidinput_led_worker() local 1252 field = hidinput_get_led_field(hid); hidinput_led_worker() 1253 if (!field) hidinput_led_worker() 1257 * field->report is accessed unlocked regarding HID core. So there might hidinput_led_worker() 1262 * field (even garbage). So the remote device will always get a valid hidinput_led_worker() 1269 report = field->report; hidinput_led_worker() 1294 struct hid_field *field; hidinput_input_event() local 1303 if ((offset = hidinput_find_field(hid, type, code, &field)) == -1) { hidinput_input_event() 1304 hid_warn(dev, "event field not found\n"); hidinput_input_event() 1308 hid_set_field(field, offset, value); hidinput_input_event() 1339 if (rep->field[i]->report_count < 1) report_features() 1342 for (j = 0; j < rep->field[i]->maxusage; j++) { report_features() 1344 hidinput_setup_battery(hid, HID_FEATURE_REPORT, rep->field[i]); report_features() 1347 drv->feature_mapping(hid, rep->field[i], report_features() 1348 rep->field[i]->usage + j); report_features() 1438 if (report->field[i]->hidinput == hidinput) hidinput_cleanup_hidinput() 1439 report->field[i]->hidinput = NULL; hidinput_cleanup_hidinput() 1449 * Read all reports and initialize the absolute field values. 1494 for (j = 0; j < report->field[i]->maxusage; j++) hidinput_connect() 1495 hidinput_configure_usage(hidinput, report->field[i], hidinput_connect() 1496 report->field[i]->usage + j); hidinput_connect() 477 hidinput_setup_battery(struct hid_device *dev, unsigned report_type, struct hid_field *field) hidinput_setup_battery() argument
|
H A D | hid-pl.c | 96 containing 1 field, which contains 4 ff00.0002 usages and 4 16bit plff_init() 99 The input reports also contain a field which contains plff_init() 104 separate fields and misses the extra input field, thus resembling plff_init() 129 if (report->field[0]->report_count >= 4) { plff_init() 130 report->field[0]->value[0] = 0x00; plff_init() 131 report->field[0]->value[1] = 0x00; plff_init() 132 strong = &report->field[0]->value[2]; plff_init() 133 weak = &report->field[0]->value[3]; plff_init() 134 debug("detected single-field device"); plff_init() 135 } else if (report->field[0]->maxusage == 1 && plff_init() 136 report->field[0]->usage[0].hid == plff_init() 139 report->field[0]->report_count >= 1 && plff_init() 140 report->field[1]->report_count >= 1 && plff_init() 141 report->field[2]->report_count >= 1 && plff_init() 142 report->field[3]->report_count >= 1) { plff_init() 143 report->field[0]->value[0] = 0x00; plff_init() 144 report->field[1]->value[0] = 0x00; plff_init() 145 strong = &report->field[2]->value[0]; plff_init() 146 weak = &report->field[3]->value[0]; plff_init() 149 debug("detected 4-field device"); plff_init()
|
H A D | hid-sensor-custom.c | 112 {0x200540, "data-field-custom"}, 113 {0x200541, "data-field-custom-usage"}, 114 {0x200542, "data-field-custom-boolean-array"}, 115 {0x200543, "data-field-custom-value"}, 116 {0x200544, "data-field-custom-value_1"}, 117 {0x200545, "data-field-custom-value_2"}, 118 {0x200546, "data-field-custom-value_3"}, 119 {0x200547, "data-field-custom-value_4"}, 120 {0x200548, "data-field-custom-value_5"}, 121 {0x200549, "data-field-custom-value_6"}, 122 {0x20054A, "data-field-custom-value_7"}, 123 {0x20054B, "data-field-custom-value_8"}, 124 {0x20054C, "data-field-custom-value_9"}, 125 {0x20054D, "data-field-custom-value_10"}, 126 {0x20054E, "data-field-custom-value_11"}, 127 {0x20054F, "data-field-custom-value_12"}, 128 {0x200550, "data-field-custom-value_13"}, 129 {0x200551, "data-field-custom-value_14"}, 130 {0x200552, "data-field-custom-value_15"}, 131 {0x200553, "data-field-custom-value_16"}, 132 {0x200554, "data-field-custom-value_17"}, 133 {0x200555, "data-field-custom-value_18"}, 134 {0x200556, "data-field-custom-value_19"}, 135 {0x200557, "data-field-custom-value_20"}, 136 {0x200558, "data-field-custom-value_21"}, 137 {0x200559, "data-field-custom-value_22"}, 138 {0x20055A, "data-field-custom-value_23"}, 139 {0x20055B, "data-field-custom-value_24"}, 140 {0x20055C, "data-field-custom-value_25"}, 141 {0x20055D, "data-field-custom-value_26"}, 142 {0x20055E, "data-field-custom-value_27"}, 143 {0x20055F, "data-field-custom-value_28"}, 485 struct hid_field *field) hid_sensor_custom_add_field() 500 if (field->logical) hid_sensor_custom_add_field() 501 sensor_field->attribute.attrib_id = field->logical; hid_sensor_custom_add_field() 503 sensor_field->attribute.attrib_id = field->usage[0].hid; hid_sensor_custom_add_field() 507 sensor_field->attribute.units = field->unit; hid_sensor_custom_add_field() 508 sensor_field->attribute.unit_expo = field->unit_exponent; hid_sensor_custom_add_field() 509 sensor_field->attribute.size = (field->report_size / 8); hid_sensor_custom_add_field() 510 sensor_field->attribute.logical_minimum = field->logical_minimum; hid_sensor_custom_add_field() 511 sensor_field->attribute.logical_maximum = field->logical_maximum; hid_sensor_custom_add_field() 524 sensor_inst->input_report_size += (field->report_size * hid_sensor_custom_add_field() 525 field->report_count) / 8; hid_sensor_custom_add_field() 542 struct hid_field *field; hid_sensor_custom_add_fields() local 547 field = report->field[i]; hid_sensor_custom_add_fields() 548 if (field->maxusage && hid_sensor_custom_add_fields() 549 ((field->usage[0].collection_index >= hid_sensor_custom_add_fields() 551 (field->usage[0].collection_index < hid_sensor_custom_add_fields() 558 field); hid_sensor_custom_add_fields() 622 /* For power or report field store indexes */ hid_sensor_custom_add_attributes() 482 hid_sensor_custom_add_field(struct hid_sensor_custom *sensor_inst, int index, int report_type, struct hid_report *report, struct hid_field *field) hid_sensor_custom_add_field() argument
|
H A D | hid-dr.c | 65 drff->report->field[0]->value[0] = 0x51; drff_play() 66 drff->report->field[0]->value[1] = 0x00; drff_play() 67 drff->report->field[0]->value[2] = weak; drff_play() 68 drff->report->field[0]->value[4] = strong; drff_play() 71 drff->report->field[0]->value[0] = 0xfa; drff_play() 72 drff->report->field[0]->value[1] = 0xfe; drff_play() 74 drff->report->field[0]->value[0] = 0xf3; drff_play() 75 drff->report->field[0]->value[1] = 0x00; drff_play() 78 drff->report->field[0]->value[2] = 0x00; drff_play() 79 drff->report->field[0]->value[4] = 0x00; drff_play() 108 if (report->field[0]->report_count < 7) { drff_init() 109 hid_err(hid, "not enough values in the field\n"); drff_init() 126 drff->report->field[0]->value[0] = 0xf3; drff_init() 127 drff->report->field[0]->value[1] = 0x00; drff_init() 128 drff->report->field[0]->value[2] = 0x00; drff_init() 129 drff->report->field[0]->value[3] = 0x00; drff_init() 130 drff->report->field[0]->value[4] = 0x00; drff_init() 131 drff->report->field[0]->value[5] = 0x00; drff_init() 132 drff->report->field[0]->value[6] = 0x00; drff_init()
|
H A D | hid-sensor-hub.c | 99 s32 index, s32 report_id, struct hid_field *field) sensor_hub_fill_attr_info() 103 info->units = field->unit; sensor_hub_fill_attr_info() 104 info->unit_expo = field->unit_exponent; sensor_hub_fill_attr_info() 105 info->size = (field->report_size * field->report_count)/8; sensor_hub_fill_attr_info() 106 info->logical_minimum = field->logical_minimum; sensor_hub_fill_attr_info() 107 info->logical_maximum = field->logical_maximum; sensor_hub_fill_attr_info() 224 hid_set_field(report->field[field_index], i, sensor_hub_set_feature() 232 hid_set_field(report->field[field_index], i, sensor_hub_set_feature() 256 report->field[field_index]->report_count < 1) { sensor_hub_get_feature() 263 /* calculate number of bytes required to read this field */ sensor_hub_get_feature() 264 report_size = DIV_ROUND_UP(report->field[field_index]->report_size, sensor_hub_get_feature() 266 report->field[field_index]->report_count; sensor_hub_get_feature() 272 memcpy(buffer, report->field[field_index]->value, ret); sensor_hub_get_feature() 341 struct hid_field *field; hid_sensor_get_usage_index() local 348 field = report->field[field_index]; hid_sensor_get_usage_index() 349 for (i = 0; i < field->maxusage; ++i) { hid_sensor_get_usage_index() 350 if (field->usage[i].hid == usage_id) hid_sensor_get_usage_index() 351 return field->usage[i].usage_index; hid_sensor_get_usage_index() 368 struct hid_field *field; sensor_hub_input_get_attribute_info() local 383 field = report->field[i]; sensor_hub_input_get_attribute_info() 384 if (field->maxusage) { sensor_hub_input_get_attribute_info() 385 if (field->physical == usage_id && sensor_hub_input_get_attribute_info() 386 (field->logical == attr_usage_id || sensor_hub_input_get_attribute_info() 387 field->usage[0].hid == sensor_hub_input_get_attribute_info() 389 (field->usage[0].collection_index >= sensor_hub_input_get_attribute_info() 391 (field->usage[0].collection_index < sensor_hub_input_get_attribute_info() 396 field); sensor_hub_input_get_attribute_info() 481 i, report->field[i]->usage->collection_index, sensor_hub_raw_event() 482 report->field[i]->usage->hid, sensor_hub_raw_event() 483 (report->field[i]->report_size * sensor_hub_raw_event() 484 report->field[i]->report_count)/8); sensor_hub_raw_event() 485 sz = (report->field[i]->report_size * sensor_hub_raw_event() 486 report->field[i]->report_count)/8; sensor_hub_raw_event() 488 report->field[i]->usage->collection_index]; sensor_hub_raw_event() 493 report->field[i]->physical, sensor_hub_raw_event() 494 report->field[i]->usage[0].collection_index, sensor_hub_raw_event() 501 report->field[i]->usage->hid || sensor_hub_raw_event() 503 report->field[i]->logical)) { sensor_hub_raw_event() 513 if (report->field[i]->logical) sensor_hub_raw_event() 515 report->field[i]->logical, sz, ptr, sensor_hub_raw_event() 519 report->field[i]->usage->hid, sz, ptr, sensor_hub_raw_event() 97 sensor_hub_fill_attr_info( struct hid_sensor_hub_attribute_info *info, s32 index, s32 report_id, struct hid_field *field) sensor_hub_fill_attr_info() argument
|
H A D | hid-ezkey.c | 29 struct hid_field *field, struct hid_usage *usage, ez_input_mapping() 50 static int ez_event(struct hid_device *hdev, struct hid_field *field, ez_event() argument 53 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput || ez_event() 59 struct input_dev *input = field->hidinput->input; ez_event() 28 ez_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ez_input_mapping() argument
|
H A D | hid-tmff.c | 145 struct hid_field *field = report->field[fieldnum]; list_for_each_entry() local 147 if (field->maxusage <= 0) list_for_each_entry() 150 switch (field->usage[0].hid) { list_for_each_entry() 152 if (field->report_count < 2) { list_for_each_entry() 153 hid_warn(hid, "ignoring FF field with report_count < 2\n"); list_for_each_entry() 157 if (field->logical_maximum == list_for_each_entry() 158 field->logical_minimum) { list_for_each_entry() 159 hid_warn(hid, "ignoring FF field with logical_maximum == logical_minimum\n"); list_for_each_entry() 164 hid_warn(hid, "ignoring FF field in other report\n"); list_for_each_entry() 168 if (tmff->ff_field && tmff->ff_field != field) { list_for_each_entry() 169 hid_warn(hid, "ignoring duplicate FF field\n"); list_for_each_entry() 174 tmff->ff_field = field; list_for_each_entry() 183 field->usage[0].hid); list_for_each_entry() 190 hid_err(hid, "can't find FF field in output reports\n");
|
H A D | hid-lgff.c | 85 report->field[0]->value[0] = 0x51; hid_lgff_play() 86 report->field[0]->value[1] = 0x08; hid_lgff_play() 87 report->field[0]->value[2] = x; hid_lgff_play() 88 report->field[0]->value[3] = y; hid_lgff_play() 100 report->field[0]->value[0] = 0x42; hid_lgff_play() 101 report->field[0]->value[1] = 0x00; hid_lgff_play() 102 report->field[0]->value[2] = left; hid_lgff_play() 103 report->field[0]->value[3] = right; hid_lgff_play() 116 __s32 *value = report->field[0]->value; hid_lgff_set_autocenter()
|
H A D | hid-zpff.c | 57 zpff->report->field[2]->value[0] = left; zpff_play() 58 zpff->report->field[3]->value[0] = right; zpff_play() 93 zpff->report->field[0]->value[0] = 0x00; zpff_init() 94 zpff->report->field[1]->value[0] = 0x02; zpff_init() 95 zpff->report->field[2]->value[0] = 0x00; zpff_init() 96 zpff->report->field[3]->value[0] = 0x00; zpff_init()
|
H A D | hid-gyration.c | 28 struct hid_field *field, struct hid_usage *usage, gyration_input_mapping() 57 static int gyration_event(struct hid_device *hdev, struct hid_field *field, gyration_event() argument 61 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput) gyration_event() 66 struct input_dev *input = field->hidinput->input; gyration_event() 27 gyration_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) gyration_input_mapping() argument
|
H A D | hid-picolcd_lcd.c | 42 if (!report || report->maxfield != 1 || report->field[0]->report_count != 1) picolcd_set_contrast() 47 hid_set_field(report->field[0], 0, data->lcd_contrast); picolcd_set_contrast() 72 if (report->maxfield != 1 || report->field[0]->report_count != 1 || picolcd_init_lcd() 73 report->field[0]->report_size != 8) { picolcd_init_lcd()
|
H A D | hid-picolcd_fb.c | 120 hid_set_field(report1->field[0], 0, chip << 2); picolcd_fb_send_tile() 121 hid_set_field(report1->field[0], 1, 0x02); picolcd_fb_send_tile() 122 hid_set_field(report1->field[0], 2, 0x00); picolcd_fb_send_tile() 123 hid_set_field(report1->field[0], 3, 0x00); picolcd_fb_send_tile() 124 hid_set_field(report1->field[0], 4, 0xb8 | tile); picolcd_fb_send_tile() 125 hid_set_field(report1->field[0], 5, 0x00); picolcd_fb_send_tile() 126 hid_set_field(report1->field[0], 6, 0x00); picolcd_fb_send_tile() 127 hid_set_field(report1->field[0], 7, 0x40); picolcd_fb_send_tile() 128 hid_set_field(report1->field[0], 8, 0x00); picolcd_fb_send_tile() 129 hid_set_field(report1->field[0], 9, 0x00); picolcd_fb_send_tile() 130 hid_set_field(report1->field[0], 10, 32); picolcd_fb_send_tile() 132 hid_set_field(report2->field[0], 0, (chip << 2) | 0x01); picolcd_fb_send_tile() 133 hid_set_field(report2->field[0], 1, 0x00); picolcd_fb_send_tile() 134 hid_set_field(report2->field[0], 2, 0x00); picolcd_fb_send_tile() 135 hid_set_field(report2->field[0], 3, 32); picolcd_fb_send_tile() 140 hid_set_field(report1->field[0], 11 + i, tdata[i]); picolcd_fb_send_tile() 142 hid_set_field(report2->field[0], 4 + i - 32, tdata[i]); picolcd_fb_send_tile() 208 for (j = 0; j < report->field[0]->maxusage; j++) picolcd_fb_reset() 210 hid_set_field(report->field[0], j, i << 2); picolcd_fb_reset() 212 hid_set_field(report->field[0], j, mapcmd[j]); picolcd_fb_reset() 214 hid_set_field(report->field[0], j, 0); picolcd_fb_reset()
|
H A D | hid-sjoy.c | 55 sjoyff->report->field[0]->value[1] = right; hid_sjoyff_play() 56 sjoyff->report->field[0]->value[2] = left; hid_sjoyff_play() 93 if (report->field[0]->report_count < 3) { sjoyff_init() 94 hid_err(hid, "not enough values in the field\n"); sjoyff_init() 113 sjoyff->report->field[0]->value[0] = 0x01; sjoyff_init() 114 sjoyff->report->field[0]->value[1] = 0x00; sjoyff_init() 115 sjoyff->report->field[0]->value[2] = 0x00; sjoyff_init()
|
H A D | hid-core.c | 91 * Register a new field for this report. 96 struct hid_field *field; hid_register_field() local 103 field = kzalloc((sizeof(struct hid_field) + hid_register_field() 106 if (!field) hid_register_field() 109 field->index = report->maxfield++; hid_register_field() 110 report->field[field->index] = field; hid_register_field() 111 field->usage = (struct hid_usage *)(field + 1); hid_register_field() 112 field->value = (s32 *)(field->usage + usages); hid_register_field() 113 field->report = report; hid_register_field() 115 return field; hid_register_field() 218 * Register a new field for this report. 224 struct hid_field *field; hid_add_field() local 257 field = hid_register_field(report, usages, parser->global.report_count); hid_add_field() 258 if (!field) hid_add_field() 261 field->physical = hid_lookup_collection(parser, HID_COLLECTION_PHYSICAL); hid_add_field() 262 field->logical = hid_lookup_collection(parser, HID_COLLECTION_LOGICAL); hid_add_field() 263 field->application = hid_lookup_collection(parser, HID_COLLECTION_APPLICATION); hid_add_field() 270 field->usage[i].hid = parser->local.usage[j]; hid_add_field() 271 field->usage[i].collection_index = hid_add_field() 273 field->usage[i].usage_index = i; hid_add_field() 276 field->maxusage = usages; hid_add_field() 277 field->flags = flags; hid_add_field() 278 field->report_offset = offset; hid_add_field() 279 field->report_type = report_type; hid_add_field() 280 field->report_size = parser->global.report_size; hid_add_field() 281 field->report_count = parser->global.report_count; hid_add_field() 282 field->logical_minimum = parser->global.logical_minimum; hid_add_field() 283 field->logical_maximum = parser->global.logical_maximum; hid_add_field() 284 field->physical_minimum = parser->global.physical_minimum; hid_add_field() 285 field->physical_maximum = parser->global.physical_maximum; hid_add_field() 286 field->unit_exponent = parser->global.unit_exponent; hid_add_field() 287 field->unit = parser->global.unit; hid_add_field() 556 * Free a report and all registered fields. The field->usage and 557 * field->value table's are allocated behind the field, so we need 558 * only to free(field) itself. 566 kfree(report->field[n]); hid_free_report() 851 * @field_index: which report field to examine 854 * Validate the number of values in a given field of a given report, after 899 if (report->field[field_index]->report_count < report_counts) { hid_validate_values() 900 hid_err(hid, "not enough values in %s %u field %u\n", hid_validate_values() 1053 * Extract/implement a data field from/to a little endian report (bit array). 1060 * One model of UPS is claimed to report "LINEV" as a 32-bit field. 1076 x = (x >> offset) & ((1ULL << n) - 1); /* extract bit field */ extract() 1175 static void hid_process_event(struct hid_device *hid, struct hid_field *field, hid_process_event() argument 1185 ret = hdrv->event(hid, field, usage, value); hid_process_event() 1195 hidinput_hid_event(hid, field, usage, value); hid_process_event() 1197 hid->hiddev_hid_event(hid, field, usage, value); hid_process_event() 1201 * Analyse a received field, and fetch the data from it. The field 1206 static void hid_input_field(struct hid_device *hid, struct hid_field *field, hid_input_field() argument 1210 unsigned count = field->report_count; hid_input_field() 1211 unsigned offset = field->report_offset; hid_input_field() 1212 unsigned size = field->report_size; hid_input_field() 1213 __s32 min = field->logical_minimum; hid_input_field() 1214 __s32 max = field->logical_maximum; hid_input_field() 1229 if (!(field->flags & HID_MAIN_ITEM_VARIABLE) && hid_input_field() 1231 field->usage[value[n] - min].hid == HID_UP_KEYBOARD + 1) hid_input_field() 1237 if (HID_MAIN_ITEM_VARIABLE & field->flags) { hid_input_field() 1238 hid_process_event(hid, field, &field->usage[n], value[n], interrupt); hid_input_field() 1242 if (field->value[n] >= min && field->value[n] <= max hid_input_field() 1243 && field->usage[field->value[n] - min].hid hid_input_field() 1244 && search(value, field->value[n], count)) hid_input_field() 1245 hid_process_event(hid, field, &field->usage[field->value[n] - min], 0, interrupt); hid_input_field() 1248 && field->usage[value[n] - min].hid hid_input_field() 1249 && search(field->value, value[n], count)) hid_input_field() 1250 hid_process_event(hid, field, &field->usage[value[n] - min], 1, interrupt); hid_input_field() 1253 memcpy(field->value, value, count * sizeof(__s32)); hid_input_field() 1259 * Output the field into the report. 1263 struct hid_field *field, __u8 *data) hid_output_field() 1265 unsigned count = field->report_count; hid_output_field() 1266 unsigned offset = field->report_offset; hid_output_field() 1267 unsigned size = field->report_size; hid_output_field() 1271 if (field->logical_minimum < 0) /* signed values */ hid_output_field() 1273 s32ton(field->value[n], size)); hid_output_field() 1276 field->value[n]); hid_output_field() 1294 hid_output_field(report->device, report->field[n], data); hid_output_report() 1315 * Set a field value. The report this field belongs to has to be 1320 int hid_set_field(struct hid_field *field, unsigned offset, __s32 value) hid_set_field() argument 1324 if (!field) hid_set_field() 1327 size = field->report_size; hid_set_field() 1329 hid_dump_input(field->report->device, field->usage + offset, value); hid_set_field() 1331 if (offset >= field->report_count) { hid_set_field() 1332 hid_err(field->report->device, "offset (%d) exceeds report_count (%d)\n", hid_set_field() 1333 offset, field->report_count); hid_set_field() 1336 if (field->logical_minimum < 0) { hid_set_field() 1338 hid_err(field->report->device, "value %d is out of range\n", value); hid_set_field() 1342 field->value[offset] = value; hid_set_field() 1440 hid_input_field(hid, report->field[a], cdata, interrupt); hid_report_raw_event() 1262 hid_output_field(const struct hid_device *hid, struct hid_field *field, __u8 *data) hid_output_field() argument
|
/linux-4.1.27/drivers/gpu/drm/omapdrm/ |
H A D | tcm-sita.c | 47 struct tcm_area *field, struct tcm_area *area); 50 struct tcm_area *field, struct tcm_area *area); 53 struct tcm_area *field, struct tcm_area *area); 61 struct tcm_area *field, s32 criteria, 64 static void get_nearness_factor(struct tcm_area *field, 181 struct tcm_area field = {0}; sita_reserve_1d() local 187 assign(&field, tcm->width - 1, tcm->height - 1, 0, 0); sita_reserve_1d() 189 ret = scan_r2l_b2t_one_dim(tcm, num_slots, &field, area); sita_reserve_1d() 255 * Note: In general the cordinates in the scan field area relevant to the can 257 * the p0 member of the field. Therfore, for a scan from top-left p0.x <= p1.x 264 * a 2D area of given size inside a scan field. 270 * @param field area to scan (inclusive) 275 struct tcm_area *field, struct tcm_area *area) scan_r2l_t2b() 282 start_x = field->p0.x; scan_r2l_t2b() 283 end_x = field->p1.x; scan_r2l_t2b() 284 start_y = field->p0.y; scan_r2l_t2b() 285 end_y = field->p1.y; scan_r2l_t2b() 288 if (field->p0.x < field->p1.x || scan_r2l_t2b() 289 field->p1.y < field->p0.y) scan_r2l_t2b() 304 /* scan field top-to-bottom, right-to-left */ scan_r2l_t2b() 311 if (update_candidate(tcm, x, y, w, h, field, scan_r2l_t2b() 324 /* break if you find a free area shouldering the scan field */ scan_r2l_t2b() 338 * a 2D area of given size inside a scan field. 344 * @param field area to scan (inclusive) 349 struct tcm_area *field, struct tcm_area *area) scan_l2r_t2b() 356 start_x = field->p0.x; scan_l2r_t2b() 357 end_x = field->p1.x; scan_l2r_t2b() 358 start_y = field->p0.y; scan_l2r_t2b() 359 end_y = field->p1.y; scan_l2r_t2b() 362 if (field->p1.x < field->p0.x || scan_l2r_t2b() 363 field->p1.y < field->p0.y) scan_l2r_t2b() 380 /* scan field top-to-bottom, left-to-right */ scan_l2r_t2b() 387 if (update_candidate(tcm, x, y, w, h, field, scan_l2r_t2b() 400 /* break if you find a free area shouldering the scan field */ scan_l2r_t2b() 414 * for a 1D area of given size inside a scan field. 420 * @param field area to scan (inclusive) 425 struct tcm_area *field, struct tcm_area *area) scan_r2l_b2t_one_dim() 433 if (field->p0.y < field->p1.y) scan_r2l_b2t_one_dim() 437 * Currently we only support full width 1D scan field, which makes sense scan_r2l_b2t_one_dim() 440 if (tcm->width != field->p0.x - field->p1.x + 1) scan_r2l_b2t_one_dim() 444 if (num_slots > tcm->width * LEN(field->p0.y, field->p1.y)) scan_r2l_b2t_one_dim() 447 x = field->p0.x; scan_r2l_b2t_one_dim() 448 y = field->p0.y; scan_r2l_b2t_one_dim() 492 * Find a place for a 2D area of given size inside a scan field based on its 506 struct tcm_area field = {0}; scan_areas_and_find_fit() local 521 assign(&field, 0, 0, boundary_x, boundary_y); scan_areas_and_find_fit() 522 ret = scan_l2r_t2b(tcm, w, h, align, &field, area); scan_areas_and_find_fit() 528 assign(&field, 0, 0, tcm->width - 1, tcm->height - 1); scan_areas_and_find_fit() 529 ret = scan_l2r_t2b(tcm, w, h, align, &field, area); scan_areas_and_find_fit() 542 assign(&field, tcm->width - 1, 0, boundary_x, boundary_y); scan_areas_and_find_fit() 543 ret = scan_r2l_t2b(tcm, w, h, align, &field, area); scan_areas_and_find_fit() 549 assign(&field, tcm->width - 1, 0, 0, tcm->height - 1); scan_areas_and_find_fit() 550 ret = scan_r2l_t2b(tcm, w, h, align, &field, scan_areas_and_find_fit() 595 * @param field scan field 603 struct tcm_area *field, s32 criteria, update_candidate() 621 get_nearness_factor(field, &me.a, &me.f); update_candidate() 652 * Calculate the nearness factor of an area in a search field. The nearness 655 static void get_nearness_factor(struct tcm_area *field, struct tcm_area *area, get_nearness_factor() argument 659 * Using signed math as field coordinates may be reversed if get_nearness_factor() 662 nf->x = (s32)(area->p0.x - field->p0.x) * 1000 / get_nearness_factor() 663 (field->p1.x - field->p0.x); get_nearness_factor() 664 nf->y = (s32)(area->p0.y - field->p0.y) * 1000 / get_nearness_factor() 665 (field->p1.y - field->p0.y); get_nearness_factor() 274 scan_r2l_t2b(struct tcm *tcm, u16 w, u16 h, u16 align, struct tcm_area *field, struct tcm_area *area) scan_r2l_t2b() argument 348 scan_l2r_t2b(struct tcm *tcm, u16 w, u16 h, u16 align, struct tcm_area *field, struct tcm_area *area) scan_l2r_t2b() argument 424 scan_r2l_b2t_one_dim(struct tcm *tcm, u32 num_slots, struct tcm_area *field, struct tcm_area *area) scan_r2l_b2t_one_dim() argument 602 update_candidate(struct tcm *tcm, u16 x0, u16 y0, u16 w, u16 h, struct tcm_area *field, s32 criteria, struct score *best) update_candidate() argument
|
/linux-4.1.27/arch/s390/include/asm/ |
H A D | scsw.h | 226 * scsw_key - return scsw key field 229 * Return the value of the key field of the specified scsw, regardless of 241 * scsw_eswf - return scsw eswf field 244 * Return the value of the eswf field of the specified scsw, regardless of 256 * scsw_cc - return scsw cc field 259 * Return the value of the cc field of the specified scsw, regardless of 271 * scsw_ectl - return scsw ectl field 274 * Return the value of the ectl field of the specified scsw, regardless of 286 * scsw_pno - return scsw pno field 289 * Return the value of the pno field of the specified scsw, regardless of 301 * scsw_fctl - return scsw fctl field 304 * Return the value of the fctl field of the specified scsw, regardless of 316 * scsw_actl - return scsw actl field 319 * Return the value of the actl field of the specified scsw, regardless of 331 * scsw_stctl - return scsw stctl field 334 * Return the value of the stctl field of the specified scsw, regardless of 346 * scsw_dstat - return scsw dstat field 349 * Return the value of the dstat field of the specified scsw, regardless of 361 * scsw_cstat - return scsw cstat field 364 * Return the value of the cstat field of the specified scsw, regardless of 376 * scsw_cmd_is_valid_key - check key field validity 379 * Return non-zero if the key field of the specified command mode scsw is 388 * scsw_cmd_is_valid_sctl - check fctl field validity 391 * Return non-zero if the fctl field of the specified command mode scsw is 400 * scsw_cmd_is_valid_eswf - check eswf field validity 403 * Return non-zero if the eswf field of the specified command mode scsw is 412 * scsw_cmd_is_valid_cc - check cc field validity 415 * Return non-zero if the cc field of the specified command mode scsw is 425 * scsw_cmd_is_valid_fmt - check fmt field validity 428 * Return non-zero if the fmt field of the specified command mode scsw is 437 * scsw_cmd_is_valid_pfch - check pfch field validity 440 * Return non-zero if the pfch field of the specified command mode scsw is 449 * scsw_cmd_is_valid_isic - check isic field validity 452 * Return non-zero if the isic field of the specified command mode scsw is 461 * scsw_cmd_is_valid_alcc - check alcc field validity 464 * Return non-zero if the alcc field of the specified command mode scsw is 473 * scsw_cmd_is_valid_ssi - check ssi field validity 476 * Return non-zero if the ssi field of the specified command mode scsw is 485 * scsw_cmd_is_valid_zcc - check zcc field validity 488 * Return non-zero if the zcc field of the specified command mode scsw is 498 * scsw_cmd_is_valid_ectl - check ectl field validity 501 * Return non-zero if the ectl field of the specified command mode scsw is 512 * scsw_cmd_is_valid_pno - check pno field validity 515 * Return non-zero if the pno field of the specified command mode scsw is 528 * scsw_cmd_is_valid_fctl - check fctl field validity 531 * Return non-zero if the fctl field of the specified command mode scsw is 541 * scsw_cmd_is_valid_actl - check actl field validity 544 * Return non-zero if the actl field of the specified command mode scsw is 554 * scsw_cmd_is_valid_stctl - check stctl field validity 557 * Return non-zero if the stctl field of the specified command mode scsw is 567 * scsw_cmd_is_valid_dstat - check dstat field validity 570 * Return non-zero if the dstat field of the specified command mode scsw is 580 * scsw_cmd_is_valid_cstat - check cstat field validity 583 * Return non-zero if the cstat field of the specified command mode scsw is 593 * scsw_tm_is_valid_key - check key field validity 596 * Return non-zero if the key field of the specified transport mode scsw is 605 * scsw_tm_is_valid_eswf - check eswf field validity 608 * Return non-zero if the eswf field of the specified transport mode scsw is 617 * scsw_tm_is_valid_cc - check cc field validity 620 * Return non-zero if the cc field of the specified transport mode scsw is 630 * scsw_tm_is_valid_fmt - check fmt field validity 633 * Return non-zero if the fmt field of the specified transport mode scsw is 642 * scsw_tm_is_valid_x - check x field validity 645 * Return non-zero if the x field of the specified transport mode scsw is 654 * scsw_tm_is_valid_q - check q field validity 657 * Return non-zero if the q field of the specified transport mode scsw is 666 * scsw_tm_is_valid_ectl - check ectl field validity 669 * Return non-zero if the ectl field of the specified transport mode scsw is 680 * scsw_tm_is_valid_pno - check pno field validity 683 * Return non-zero if the pno field of the specified transport mode scsw is 696 * scsw_tm_is_valid_fctl - check fctl field validity 699 * Return non-zero if the fctl field of the specified transport mode scsw is 709 * scsw_tm_is_valid_actl - check actl field validity 712 * Return non-zero if the actl field of the specified transport mode scsw is 722 * scsw_tm_is_valid_stctl - check stctl field validity 725 * Return non-zero if the stctl field of the specified transport mode scsw is 735 * scsw_tm_is_valid_dstat - check dstat field validity 738 * Return non-zero if the dstat field of the specified transport mode scsw is 748 * scsw_tm_is_valid_cstat - check cstat field validity 751 * Return non-zero if the cstat field of the specified transport mode scsw is 761 * scsw_tm_is_valid_fcxs - check fcxs field validity 764 * Return non-zero if the fcxs field of the specified transport mode scsw is 773 * scsw_tm_is_valid_schxs - check schxs field validity 776 * Return non-zero if the schxs field of the specified transport mode scsw is 788 * scsw_is_valid_actl - check actl field validity 791 * Return non-zero if the actl field of the specified scsw is valid, 793 * Return zero if the field does not contain a valid value. 804 * scsw_is_valid_cc - check cc field validity 807 * Return non-zero if the cc field of the specified scsw is valid, 809 * Return zero if the field does not contain a valid value. 820 * scsw_is_valid_cstat - check cstat field validity 823 * Return non-zero if the cstat field of the specified scsw is valid, 825 * Return zero if the field does not contain a valid value. 836 * scsw_is_valid_dstat - check dstat field validity 839 * Return non-zero if the dstat field of the specified scsw is valid, 841 * Return zero if the field does not contain a valid value. 852 * scsw_is_valid_ectl - check ectl field validity 855 * Return non-zero if the ectl field of the specified scsw is valid, 857 * Return zero if the field does not contain a valid value. 868 * scsw_is_valid_eswf - check eswf field validity 871 * Return non-zero if the eswf field of the specified scsw is valid, 873 * Return zero if the field does not contain a valid value. 884 * scsw_is_valid_fctl - check fctl field validity 887 * Return non-zero if the fctl field of the specified scsw is valid, 889 * Return zero if the field does not contain a valid value. 900 * scsw_is_valid_key - check key field validity 903 * Return non-zero if the key field of the specified scsw is valid, 905 * Return zero if the field does not contain a valid value. 916 * scsw_is_valid_pno - check pno field validity 919 * Return non-zero if the pno field of the specified scsw is valid, 921 * Return zero if the field does not contain a valid value. 932 * scsw_is_valid_stctl - check stctl field validity 935 * Return non-zero if the stctl field of the specified scsw is valid, 937 * Return zero if the field does not contain a valid value.
|
/linux-4.1.27/arch/powerpc/mm/ |
H A D | vphn.c | 28 const __be16 *field = (const __be16 *) be_packed; vphn_unpack_associativity() local 41 u16 new = be16_to_cpup(field++); vphn_unpack_associativity() 44 /* Let's concatenate the 16 bits of this field to the vphn_unpack_associativity() 45 * 15 lower bits of the previous field vphn_unpack_associativity() 54 /* Data is in the lower 15 bits of this field */ vphn_unpack_associativity() 58 /* Data is in the lower 15 bits of this field vphn_unpack_associativity() 59 * concatenated with the next 16 bit field vphn_unpack_associativity()
|
/linux-4.1.27/tools/testing/selftests/powerpc/vphn/ |
H A D | vphn.c | 28 const __be16 *field = (const __be16 *) be_packed; vphn_unpack_associativity() local 41 u16 new = be16_to_cpup(field++); vphn_unpack_associativity() 44 /* Let's concatenate the 16 bits of this field to the vphn_unpack_associativity() 45 * 15 lower bits of the previous field vphn_unpack_associativity() 54 /* Data is in the lower 15 bits of this field */ vphn_unpack_associativity() 58 /* Data is in the lower 15 bits of this field vphn_unpack_associativity() 59 * concatenated with the next 16 bit field vphn_unpack_associativity()
|
/linux-4.1.27/sound/aoa/soundbus/ |
H A D | sysfs.c | 6 #define soundbus_config_of_attr(field, format_string) \ 8 field##_show (struct device *dev, struct device_attribute *attr, \ 12 return sprintf (buf, format_string, mdev->ofdev.dev.of_node->field); \
|
/linux-4.1.27/drivers/media/dvb-core/ |
H A D | dvb_filter.h | 206 u32 pts[2]; /* [0] 1st field, [1] 2nd field */ 215 /* [0-2] 1st field, [3] 2nd field */ 217 /* [0-2] 1st field, [3] 2nd field */ 219 /* [0] 1st field, [1] 2nd field */ 222 /* [0] 1st field, [1] 2nd field */ 224 /* [0] 1st field, [1] 2nd field */ 226 /* [0] 1st field, [1] 2nd field */ 229 /* [0] 1st field, [1] 2nd field */
|
/linux-4.1.27/arch/cris/include/arch-v32/mach-a3/mach/hwregs/asm/ |
H A D | clkgen_defs_asm.h | 15 #define REG_FIELD( scope, reg, field, value ) \ 16 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 21 #define REG_STATE( scope, reg, field, symbolic_value ) \ 22 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 27 #define REG_MASK( scope, reg, field ) \ 28 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 33 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 37 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | timer_defs_asm.h | 15 #define REG_FIELD( scope, reg, field, value ) \ 16 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 21 #define REG_STATE( scope, reg, field, symbolic_value ) \ 22 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 27 #define REG_MASK( scope, reg, field ) \ 28 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 33 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 37 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | ddr2_defs_asm.h | 15 #define REG_FIELD( scope, reg, field, value ) \ 16 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 21 #define REG_STATE( scope, reg, field, symbolic_value ) \ 22 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 27 #define REG_MASK( scope, reg, field ) \ 28 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 33 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 37 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | pio_defs_asm.h | 15 #define REG_FIELD( scope, reg, field, value ) \ 16 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 21 #define REG_STATE( scope, reg, field, symbolic_value ) \ 22 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 27 #define REG_MASK( scope, reg, field ) \ 28 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 33 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 37 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
/linux-4.1.27/arch/cris/include/arch-v32/mach-fs/mach/hwregs/asm/ |
H A D | config_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | timer_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | bif_core_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
H A D | gio_defs_asm.h | 18 #define REG_FIELD( scope, reg, field, value ) \ 19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb ) 24 #define REG_STATE( scope, reg, field, symbolic_value ) \ 25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb ) 30 #define REG_MASK( scope, reg, field ) \ 31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb ) 36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb 40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
|
/linux-4.1.27/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/ |
H A D | Core.pm | 106 for my $field (keys %{$flag_fields{$event}}) { 107 print " field: $field:\n"; 108 print " delim: $flag_fields{$event}{$field}{'delim'}\n"; 109 foreach my $idx (sort {$a <=> $b} keys %{$flag_fields{$event}{$field}{"values"}}) { 110 print " value $idx: $flag_fields{$event}{$field}{'values'}{$idx}\n"; 153 for my $field (keys %{$symbolic_fields{$event}}) { 154 print " field: $field:\n"; 155 foreach my $idx (sort {$a <=> $b} keys %{$symbolic_fields{$event}{$field}{"values"}}) { 156 print " value $idx: $symbolic_fields{$event}{$field}{'values'}{$idx}\n";
|
/linux-4.1.27/include/uapi/linux/netfilter/ |
H A D | xt_DSCP.h | 1 /* x_tables module for setting the IPv4/IPv6 DSCP field 7 * See RFC2474 for a description of the DSCP field within the IP Header.
|
H A D | xt_dscp.h | 1 /* x_tables module for matching the IPv4/IPv6 DSCP field 6 * See RFC2474 for a description of the DSCP field within the IP Header.
|
H A D | xt_esp.h | 11 /* Values for "invflags" field in struct xt_esp. */
|
H A D | xt_ipcomp.h | 12 /* Values for "invflags" field in struct xt_ipcomp. */
|
H A D | xt_tcpudp.h | 16 /* Values for "inv" field in struct ipt_tcp. */ 30 /* Values for "invflags" field in struct ipt_udp. */
|
/linux-4.1.27/arch/blackfin/include/asm/ |
H A D | bfin_watchdog.h | 18 /* Masks for WDEV field in WDOG_CTL register */ 25 /* Masks for WDEN field in WDOG_CTL register */
|
/linux-4.1.27/tools/perf/tests/ |
H A D | evsel-tp-sched.c | 9 struct format_field *field = perf_evsel__field(evsel, name); perf_evsel__test_field() local 13 if (field == NULL) { perf_evsel__test_field() 14 pr_debug("%s: \"%s\" field not found!\n", evsel->name, name); perf_evsel__test_field() 18 is_signed = !!(field->flags | FIELD_IS_SIGNED); perf_evsel__test_field() 25 if (field->size != size) { perf_evsel__test_field() 27 evsel->name, name, field->size, size); perf_evsel__test_field()
|
/linux-4.1.27/drivers/acpi/acpica/ |
H A D | exprep.c | 3 * Module Name: exprep - ACPI AML (p-code) execution - field prep utilities 69 * PARAMETERS: field_bit_offset - Start of field within parent region/buffer 70 * field_bit_length - Length of field in bits 162 "Entire field can be accessed with one operation of size %u\n", acpi_ex_generate_access() 200 * Could not read/write field with one operation, acpi_ex_generate_access() 204 "Cannot access field in one operation, using width 8\n")); acpi_ex_generate_access() 220 * DESCRIPTION: Decode the access_type bits of a field definition. 281 /* Invalid field access type */ acpi_ex_decode_field_access() 283 ACPI_ERROR((AE_INFO, "Unknown field access type 0x%X", access)); acpi_ex_decode_field_access() 291 * implied by the field access type. acpi_ex_decode_field_access() 304 * PARAMETERS: obj_desc - The field object 314 * DESCRIPTION: Initialize the areas of the field object that are common 316 * code because we are solving the general case for field 344 * two pieces of information - the width of each field access and the acpi_ex_prep_common_field_object() 348 * necessary and possible in an attempt to access the whole field in one acpi_ex_prep_common_field_object() 369 * base_byte_offset is the address of the start of the field within the acpi_ex_prep_common_field_object() 370 * region. It is the byte address of the first *datum* (field-width data acpi_ex_prep_common_field_object() 371 * unit) of the field. (i.e., the first datum that contains at least the acpi_ex_prep_common_field_object() 372 * first *bit* of the field.) acpi_ex_prep_common_field_object() 384 * start_field_bit_offset is the offset of the first bit of the field within acpi_ex_prep_common_field_object() 385 * a field datum. acpi_ex_prep_common_field_object() 398 * PARAMETERS: info - Contains all field creation info 435 /* Allocate a new field object */ acpi_ex_prep_field_value() 455 /* Initialize areas of the object that are specific to the field type */ acpi_ex_prep_field_value() 460 obj_desc->field.region_obj = acpi_ex_prep_field_value() 465 obj_desc->field.access_length = info->access_length; acpi_ex_prep_field_value() 478 obj_desc->field.resource_buffer = acpi_ex_prep_field_value() 480 obj_desc->field.resource_length = acpi_ex_prep_field_value() 483 obj_desc->field.resource_buffer = info->resource_buffer; acpi_ex_prep_field_value() 484 obj_desc->field.resource_length = info->resource_length; acpi_ex_prep_field_value() 487 obj_desc->field.pin_number_index = info->pin_number_index; acpi_ex_prep_field_value() 491 if ((obj_desc->field.region_obj->region.space_id == acpi_ex_prep_field_value() 507 acpi_ut_add_reference(obj_desc->field.region_obj); acpi_ex_prep_field_value() 511 obj_desc->field.start_field_bit_offset, acpi_ex_prep_field_value() 512 obj_desc->field.base_byte_offset, acpi_ex_prep_field_value() 513 obj_desc->field.access_byte_width, acpi_ex_prep_field_value() 514 obj_desc->field.region_obj)); acpi_ex_prep_field_value() 534 obj_desc->field.access_byte_width, acpi_ex_prep_field_value() 539 * Remember location in AML stream of the field unit acpi_ex_prep_field_value() 565 "Null Index Object during field prep")); acpi_ex_prep_field_value() 579 * target field in units of the granularity of the index_field acpi_ex_prep_field_value() 602 obj_desc->field.access_byte_width, acpi_ex_prep_field_value()
|
H A D | exfield.c | 3 * Module Name: exfield - ACPI AML (p-code) execution - field manipulation 62 * field access attributes 63 * access_length - The access length of the region field 118 * obj_desc - The named field 123 * DESCRIPTION: Read from a named field. Returns either an Integer or a 124 * Buffer, depending on the size of the field. 163 (obj_desc->field.region_obj->region.space_id == acpi_ex_read_data_from_field() 165 || obj_desc->field.region_obj->region.space_id == acpi_ex_read_data_from_field() 167 || obj_desc->field.region_obj->region.space_id == acpi_ex_read_data_from_field() 175 if (obj_desc->field.region_obj->region.space_id == acpi_ex_read_data_from_field() 179 ACPI_READ | (obj_desc->field.attribute << 16); acpi_ex_read_data_from_field() 180 } else if (obj_desc->field.region_obj->region.space_id == acpi_ex_read_data_from_field() 182 accessor_type = obj_desc->field.attribute; acpi_ex_read_data_from_field() 185 field. acpi_ex_read_data_from_field() 224 * Allocate a buffer for the contents of the field. acpi_ex_read_data_from_field() 226 * If the field is larger than the current integer width, create acpi_ex_read_data_from_field() 229 * field size is equal or smaller than an Integer. acpi_ex_read_data_from_field() 234 (acpi_size) ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->field.bit_length); acpi_ex_read_data_from_field() 257 (obj_desc->field.region_obj->region.space_id == acpi_ex_read_data_from_field() 262 * pin number index. The bit_length is the length of the field, which acpi_ex_read_data_from_field() 267 obj_desc->field.pin_number_index, acpi_ex_read_data_from_field() 268 obj_desc->field.bit_length)); acpi_ex_read_data_from_field() 301 /* Read from the field */ acpi_ex_read_data_from_field() 321 * obj_desc - The named field 326 * DESCRIPTION: Write to a named field 362 (obj_desc->field.region_obj->region.space_id == acpi_ex_write_data_to_field() 364 || obj_desc->field.region_obj->region.space_id == acpi_ex_write_data_to_field() 366 || obj_desc->field.region_obj->region.space_id == acpi_ex_write_data_to_field() 369 * This is an SMBus, GSBus or IPMI write. We will bypass the entire field acpi_ex_write_data_to_field() 387 if (obj_desc->field.region_obj->region.space_id == acpi_ex_write_data_to_field() 391 ACPI_WRITE | (obj_desc->field.attribute << 16); acpi_ex_write_data_to_field() 392 } else if (obj_desc->field.region_obj->region.space_id == acpi_ex_write_data_to_field() 394 accessor_type = obj_desc->field.attribute; acpi_ex_write_data_to_field() 397 field. acpi_ex_write_data_to_field() 448 (obj_desc->field.region_obj->region.space_id == acpi_ex_write_data_to_field() 451 * For GPIO (general_purpose_io), we will bypass the entire field acpi_ex_write_data_to_field() 455 * pin number index. The bit_length is the length of the field, which acpi_ex_write_data_to_field() 468 obj_desc->field.pin_number_index, acpi_ex_write_data_to_field() 469 obj_desc->field.bit_length)); acpi_ex_write_data_to_field() 530 /* Write to the field */ acpi_ex_write_data_to_field()
|
H A D | dsfield.c | 3 * Module Name: dsfield - Dispatcher field routines 144 * create_field_op (all of which define a field in a buffer) 225 * and we need to create the field object. Otherwise, this was a lookup acpi_ds_create_buffer_field() 226 * of an existing node and we don't want to create the field object again. acpi_ds_create_buffer_field() 238 /* Create the buffer field object */ acpi_ds_create_buffer_field() 247 * Remember location in AML stream of the field unit opcode and operands -- acpi_ds_create_buffer_field() 255 /* Attach constructed field descriptors to parent node */ acpi_ds_create_buffer_field() 276 * arg - First parser arg for the field name list 280 * DESCRIPTION: Process all named fields in a field declaration. Names are 296 /* First field starts at bit zero */ acpi_ds_get_field_names() 300 /* Process all elements in the field list (of parse nodes) */ acpi_ds_get_field_names() 304 * Four types of field elements are handled: acpi_ds_get_field_names() 305 * 1) name - Enters a new named field into the namespace acpi_ds_get_field_names() 308 * 4) connection - Associate a resource template with the field acpi_ds_get_field_names() 318 "Bit offset within field too large (> 0xFFFFFFFF)")); acpi_ds_get_field_names() 329 * -- to be used for all field units that follow, until the acpi_ds_get_field_names() 330 * end-of-field or another access_as keyword is encountered. acpi_ds_get_field_names() 413 * just created and we need to create the field object. acpi_ds_get_field_names() 415 * don't want to create the field object again. acpi_ds_get_field_names() 426 /* Keep track of bit position for the next field */ acpi_ds_get_field_names() 447 "Invalid opcode in field list: 0x%X", acpi_ds_get_field_names() 468 * DESCRIPTION: Create a new field in the specified operation region 507 /* Second arg is the field flags */ acpi_ds_create_field() 532 * part of the field declaration, enter the name into the 564 * list of field elements. acpi_ds_init_field_objects() 611 * in the field names in order to enter them into the namespace. acpi_ds_init_field_objects() 633 /* Get the next field element in the list */ acpi_ds_init_field_objects() 651 * DESCRIPTION: Create a new bank field in the specified operation region 707 /* Fourth arg is the field flags */ acpi_ds_create_bank_field() 719 * It's safe because data_register_node will never be used when create bank field acpi_ds_create_bank_field() 723 * TBD: Or, should we add a field in struct acpi_create_field_info, like "void *ParentOp"? acpi_ds_create_bank_field() 741 * DESCRIPTION: Create a new index field in the specified operation region 782 /* Next arg is the field flags */ acpi_ds_create_index_field()
|
H A D | psargs.c | 70 * DESCRIPTION: Decode and return a package length field. 123 * the package. Consumes the package length field 480 * DESCRIPTION: Get next field (named_field, reserved_field, or access_field) 488 union acpi_parse_object *field; acpi_ps_get_next_field() local 504 /* Determine field type */ acpi_ps_get_next_field() 537 /* Allocate a new field op */ acpi_ps_get_next_field() 539 field = acpi_ps_alloc_op(opcode); acpi_ps_get_next_field() 540 if (!field) { acpi_ps_get_next_field() 544 field->common.aml_offset = aml_offset; acpi_ps_get_next_field() 546 /* Decode the field type */ acpi_ps_get_next_field() 554 acpi_ps_set_name(field, name); acpi_ps_get_next_field() 559 field->common.value.size = acpi_ps_get_next_field() 567 field->common.value.size = acpi_ps_get_next_field() 575 * Get access_type and access_attrib and merge into the field Op acpi_ps_get_next_field() 587 field->common.value.integer = (u8)access_type; acpi_ps_get_next_field() 588 field->common.value.integer |= (u16)(access_attribute << 8); acpi_ps_get_next_field() 596 field->common.value.integer |= acpi_ps_get_next_field() 621 acpi_ps_free_op(field); acpi_ps_get_next_field() 670 acpi_ps_free_op(field); acpi_ps_get_next_field() 682 acpi_ps_append_arg(field, arg); acpi_ps_get_next_field() 691 return_PTR(field); acpi_ps_get_next_field() 717 union acpi_parse_object *field; acpi_ps_get_next_arg() local 755 field = acpi_ps_get_next_field(parser_state); acpi_ps_get_next_arg() 756 if (!field) { acpi_ps_get_next_arg() 761 prev->common.next = field; acpi_ps_get_next_arg() 763 arg = field; acpi_ps_get_next_arg() 765 prev = field; acpi_ps_get_next_arg()
|
/linux-4.1.27/arch/arm/mach-imx/ |
H A D | iomux-imx31.c | 49 u32 field; mxc_iomux_mode() local 55 field = pin_mode & 0x3; mxc_iomux_mode() 61 l &= ~(0xff << (field * 8)); mxc_iomux_mode() 62 l |= mode << (field * 8); mxc_iomux_mode() 73 u32 field, l; mxc_iomux_set_pad() local 78 field = (pin + 2) % 3; mxc_iomux_set_pad() 80 pr_debug("%s: reg offset = 0x%x, field = %d\n", mxc_iomux_set_pad() 81 __func__, (pin + 2) / 3, field); mxc_iomux_set_pad() 86 l &= ~(0x1ff << (field * 10)); mxc_iomux_set_pad() 87 l |= config << (field * 10); mxc_iomux_set_pad()
|
H A D | ehci.h | 4 /* values for portsc field */ 15 /* values for flags field */
|
/linux-4.1.27/drivers/scsi/isci/ |
H A D | scu_task_context.h | 285 * program the SCU Task context protocol field in word 0x00. 397 * This field is the control word and it must be 0. 403 * This field specifies the primitive that is to be transmitted. 422 * field. 443 * This field is the upper 32 bits of the 64 bit physical address. 448 * This field is the lower 32 bits of the 64 bit physical address. 453 * This field is the number of bytes to transfer. 458 * This field is the address modifier to be used when a virtual function is 479 * This field is the SGL element A of the SGL pair. 485 * This field is the SGL element B of the SGL pair. 491 * This field is the upper 32 bits of the 64 bit address to the next SGL 497 * This field is the lower 32 bits of the 64 bit address to the next SGL 540 * This field must be encoded to one of the valid SCU task priority values 548 * This field must be set to true if this is an initiator generated request. 554 * This field must be set to one of the valid connection rates valid values 560 * This field muse be programed when generating an SMP response since the SMP 566 * This field must contain the logical port for the task request. 571 * This field must be set to one of the SCU_TASK_CONTEXT_PROTOCOL values 585 * This field is reserved and must be set to 0x00 596 * This field must be set to true for the SCU hardware to process the task. 601 * This field must be set to SCU_TASK_CONTEXT_TYPE 607 * This field contains the RNi that is the target of this request. 612 * This field is programmed if this is a mirrored request, which we are not 618 * This field is programmed with the direction of the SATA reqeust 625 * This field is programmsed with one of the following SCU_COMMAND_CODE 634 * This field is set to true if the remote node should be suspended. 640 * This field is programmed with one of the following command type codes 663 * This field is reserved and the must be set to 0x00 668 * This field is set to true when TLR is to be enabled 673 * This is field specifies if the SCU DMAs a response frame to host 679 * This field indicates if the SCU should DMA the response frame to 685 * This field is set to true when strict ordering is to be enabled 690 * This field indicates the type of endianess to be utilized for the 697 * This field is reserved and the driver should set to 0x00 702 * This field is set to true when the SCU hardware task timeout control is to 708 * This field is reserved and the driver should set it to 0x00 713 * This field should be set to true when block guard is to be enabled 718 * This field is reserved and the driver should set to 0x00 724 * This field is the address modifier for this io request it should be 741 * This field is reserved and the driver must set it to 0x00 746 * This field must be set to true if the mirrored request processing is to be 753 * This field is the command iu length in dwords 764 * This field is reserved and the driver must set it to 0x00 782 * This field is reserved and the driver should set it to 0x00 794 * This field is the upper 32 bits of the 64 bit physical address of the 800 * This field is the lower 32 bits of the 64 bit physical address of the 807 * This field is the upper 32 bits of the 64 bit physical address of the 813 * This field is the lower 32 bits of the 64 bit physical address of the 820 * This field is set to the task phase of the SCU hardware. The driver must 826 * This field is set to the transport layer task status. The driver must set 832 * This field is used during initiator write TLR 837 * This field is set the maximum number of retries for a STP non-data FIS 842 * This field is reserved and the driver must set it to 0x00 847 * This field is used by the SCU TL to determine when to take a snapshot when 858 * This field is reserved and the driver must set it to 0x00 880 * This field is the first SGL element pair found in the TC data structure. 885 * This field is the second SGL element pair found in the TC data structure.
|
H A D | unsolicited_frame_control.h | 72 * This field indicates if there is an Initiator Index Table entry with 78 * This field simply indicates the protocol type (i.e. SSP, STP, SMP). 83 * This field indicates if the frame is an address frame (IAF or OAF) 89 * This field simply indicates the connection rate at which the frame 97 * This field represents the actual header data received on the link. 145 * This field contains the current frame state 150 * This field points to the frame header data. 155 * This field points to the frame buffer data. 168 * This field is represents a virtual pointer to the start 175 * This field specifies the physical address location for the UF 190 * This field is the unsolicited frame data its used to manage 193 * physical_address field. 198 * This field specifies the physical address location for the UF 213 * This field represents a virtual pointer that refers to the 220 * This field specifies the physical address location for the UF 234 * This field is the software copy of the unsolicited frame queue 241 * This field contains all of the unsolicited frame header 247 * This field contains all of the unsolicited frame buffer 253 * This field contains all of the unsolicited frame address table
|
H A D | scu_remote_node_context.h | 76 * This field is the remote node index assigned for this remote node. All 85 * This field tells the SCU hardware how many simultaneous connections that 91 * This field tells the SCU hardware which logical port to associate with this 98 * This field will enable the I_T nexus loss timer for this remote node. 103 * This field is the for driver debug only and is not used. 108 * This field must be set to true when the hardware DMAs the remote node 110 * this field must be set to false. 115 * This field must be set to true. 127 * This field is the high word of the remote device SAS Address 133 * This field reprensets the function number assigned to this remote device. 141 * This field provides the driver a way to cheat on the arbitration wait time 148 * This field tells the SCU hardware how long this device may occupy the 154 * This field tells the SCU hardware how long to maintain a connection when 161 * This field allows the driver to cheat on the arbitration wait time for this 167 * This field is tells the hardware what to program for the connection rate in 173 * This field tells the SCU hardware what to program for the features in the 179 * This field tells the SCU hardware what to use for the source zone group in 186 * This field tells the SCU hardware what to use as the more capibilities in
|
H A D | phy.h | 169 * This field specifies the port that currently contains the 170 * supplied phy. This field may be set to NULL 176 * This field specifies the link rate at which the phy is 182 * This field specifies the index of the phy in relation to other 196 * This field delineates the Identify Address Frame received 202 * This field delineates the Phy capabilities structure received 217 * This field delineates the signature FIS received from the 223 * This field specifies to the user if a port selector is connected 238 * This PHY information field tracks the number of frames received. 243 * This PHY information field tracks the number of frames transmitted. 248 * This PHY information field tracks the number of DWORDs received. 253 * This PHY information field tracks the number of DWORDs transmitted. 258 * This PHY information field tracks the number of times DWORD 264 * This PHY information field tracks the number of received DWORDs with 270 * This PHY information field tracks the number of received frames with a 276 * This PHY information field tracks the number of DONE (ACK/NAK TIMEOUT) 282 * This PHY information field tracks the number of DONE (ACK/NAK TIMEOUT) 288 * This PHY information field tracks the number of times the inactivity 294 * This PHY information field tracks the number of DONE (CREDIT TIMEOUT) 300 * This PHY information field tracks the number of DONE (CREDIT TIMEOUT) 306 * This PHY information field tracks the number of CREDIT BLOCKED 314 * This PHY information field contains the number of short frames 321 * This PHY information field contains the number of frames received after 327 * This PHY information field contains the number of frames received after 333 * This PHY information field contains the number of times the phy
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
H A D | fw.c | 196 u8 field; mlx4_QUERY_FUNC() local 222 MLX4_GET(field, outbox, QUERY_FUNC_BUS_OFFSET); mlx4_QUERY_FUNC() 223 func->bus = field & 0xf; mlx4_QUERY_FUNC() 224 MLX4_GET(field, outbox, QUERY_FUNC_DEVICE_OFFSET); mlx4_QUERY_FUNC() 225 func->device = field & 0xf1; mlx4_QUERY_FUNC() 226 MLX4_GET(field, outbox, QUERY_FUNC_FUNCTION_OFFSET); mlx4_QUERY_FUNC() 227 func->function = field & 0x7; mlx4_QUERY_FUNC() 228 MLX4_GET(field, outbox, QUERY_FUNC_PHYSICAL_FUNCTION_OFFSET); mlx4_QUERY_FUNC() 229 func->physical_function = field & 0xf; mlx4_QUERY_FUNC() 234 MLX4_GET(field, outbox, QUERY_FUNC_RSVD_UARS_OFFSET); mlx4_QUERY_FUNC() 235 func->rsvd_uars = field & 0x0f; mlx4_QUERY_FUNC() 253 u8 field, port; mlx4_QUERY_FUNC_CAP_wrapper() local 322 field = vhcr->in_modifier - mlx4_QUERY_FUNC_CAP_wrapper() 324 MLX4_PUT(outbox->buf, field, QUERY_FUNC_CAP_PHYS_PORT_OFFSET); mlx4_QUERY_FUNC_CAP_wrapper() 330 field = QUERY_FUNC_CAP_FLAGS1_NIC_INFO; mlx4_QUERY_FUNC_CAP_wrapper() 334 field |= QUERY_FUNC_CAP_VF_ENABLE_QP0; mlx4_QUERY_FUNC_CAP_wrapper() 338 MLX4_PUT(outbox->buf, field, QUERY_FUNC_CAP_FLAGS1_OFFSET); mlx4_QUERY_FUNC_CAP_wrapper() 360 field = (QUERY_FUNC_CAP_FLAG_ETH | QUERY_FUNC_CAP_FLAG_RDMA | mlx4_QUERY_FUNC_CAP_wrapper() 363 MLX4_PUT(outbox->buf, field, QUERY_FUNC_CAP_FLAGS_OFFSET); mlx4_QUERY_FUNC_CAP_wrapper() 365 field = min( mlx4_QUERY_FUNC_CAP_wrapper() 368 MLX4_PUT(outbox->buf, field, QUERY_FUNC_CAP_NUM_PORTS_OFFSET); mlx4_QUERY_FUNC_CAP_wrapper() 373 field = 0; /* protected FMR support not available as yet */ mlx4_QUERY_FUNC_CAP_wrapper() 374 MLX4_PUT(outbox->buf, field, QUERY_FUNC_CAP_FMR_OFFSET); mlx4_QUERY_FUNC_CAP_wrapper() 441 u8 field, op_modifier; mlx4_QUERY_FUNC_CAP() local 463 MLX4_GET(field, outbox, QUERY_FUNC_CAP_FLAGS_OFFSET); mlx4_QUERY_FUNC_CAP() 464 if (!(field & (QUERY_FUNC_CAP_FLAG_ETH | QUERY_FUNC_CAP_FLAG_RDMA))) { mlx4_QUERY_FUNC_CAP() 469 func_cap->flags = field; mlx4_QUERY_FUNC_CAP() 472 MLX4_GET(field, outbox, QUERY_FUNC_CAP_NUM_PORTS_OFFSET); mlx4_QUERY_FUNC_CAP() 473 func_cap->num_ports = field; mlx4_QUERY_FUNC_CAP() 565 MLX4_GET(field, outbox, QUERY_FUNC_CAP_FLAGS0_OFFSET); mlx4_QUERY_FUNC_CAP() 566 if (field & QUERY_FUNC_CAP_FLAGS0_FORCE_PHY_WQE_GID) { mlx4_QUERY_FUNC_CAP() 573 MLX4_GET(field, outbox, QUERY_FUNC_CAP_PHYS_PORT_OFFSET); mlx4_QUERY_FUNC_CAP() 574 func_cap->physical_port = field; mlx4_QUERY_FUNC_CAP() 620 u8 field; mlx4_QUERY_DEV_CAP() local 727 MLX4_GET(field, outbox, QUERY_DEV_CAP_RSVD_QP_OFFSET); mlx4_QUERY_DEV_CAP() 728 dev_cap->reserved_qps = 1 << (field & 0xf); mlx4_QUERY_DEV_CAP() 729 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_QP_OFFSET); mlx4_QUERY_DEV_CAP() 730 dev_cap->max_qps = 1 << (field & 0x1f); mlx4_QUERY_DEV_CAP() 731 MLX4_GET(field, outbox, QUERY_DEV_CAP_RSVD_SRQ_OFFSET); mlx4_QUERY_DEV_CAP() 732 dev_cap->reserved_srqs = 1 << (field >> 4); mlx4_QUERY_DEV_CAP() 733 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_SRQ_OFFSET); mlx4_QUERY_DEV_CAP() 734 dev_cap->max_srqs = 1 << (field & 0x1f); mlx4_QUERY_DEV_CAP() 735 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_CQ_SZ_OFFSET); mlx4_QUERY_DEV_CAP() 736 dev_cap->max_cq_sz = 1 << field; mlx4_QUERY_DEV_CAP() 737 MLX4_GET(field, outbox, QUERY_DEV_CAP_RSVD_CQ_OFFSET); mlx4_QUERY_DEV_CAP() 738 dev_cap->reserved_cqs = 1 << (field & 0xf); mlx4_QUERY_DEV_CAP() 739 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_CQ_OFFSET); mlx4_QUERY_DEV_CAP() 740 dev_cap->max_cqs = 1 << (field & 0x1f); mlx4_QUERY_DEV_CAP() 741 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_MPT_OFFSET); mlx4_QUERY_DEV_CAP() 742 dev_cap->max_mpts = 1 << (field & 0x3f); mlx4_QUERY_DEV_CAP() 743 MLX4_GET(field, outbox, QUERY_DEV_CAP_RSVD_EQ_OFFSET); mlx4_QUERY_DEV_CAP() 744 dev_cap->reserved_eqs = 1 << (field & 0xf); mlx4_QUERY_DEV_CAP() 745 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_EQ_OFFSET); mlx4_QUERY_DEV_CAP() 746 dev_cap->max_eqs = 1 << (field & 0xf); mlx4_QUERY_DEV_CAP() 747 MLX4_GET(field, outbox, QUERY_DEV_CAP_RSVD_MTT_OFFSET); mlx4_QUERY_DEV_CAP() 748 dev_cap->reserved_mtts = 1 << (field >> 4); mlx4_QUERY_DEV_CAP() 749 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_MRW_SZ_OFFSET); mlx4_QUERY_DEV_CAP() 750 dev_cap->max_mrw_sz = 1 << field; mlx4_QUERY_DEV_CAP() 751 MLX4_GET(field, outbox, QUERY_DEV_CAP_RSVD_MRW_OFFSET); mlx4_QUERY_DEV_CAP() 752 dev_cap->reserved_mrws = 1 << (field & 0xf); mlx4_QUERY_DEV_CAP() 753 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_MTT_SEG_OFFSET); mlx4_QUERY_DEV_CAP() 754 dev_cap->max_mtt_seg = 1 << (field & 0x3f); mlx4_QUERY_DEV_CAP() 757 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_REQ_QP_OFFSET); mlx4_QUERY_DEV_CAP() 758 dev_cap->max_requester_per_qp = 1 << (field & 0x3f); mlx4_QUERY_DEV_CAP() 759 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_RES_QP_OFFSET); mlx4_QUERY_DEV_CAP() 760 dev_cap->max_responder_per_qp = 1 << (field & 0x3f); mlx4_QUERY_DEV_CAP() 761 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_GSO_OFFSET); mlx4_QUERY_DEV_CAP() 762 field &= 0x1f; mlx4_QUERY_DEV_CAP() 763 if (!field) mlx4_QUERY_DEV_CAP() 766 dev_cap->max_gso_sz = 1 << field; mlx4_QUERY_DEV_CAP() 768 MLX4_GET(field, outbox, QUERY_DEV_CAP_RSS_OFFSET); mlx4_QUERY_DEV_CAP() 769 if (field & 0x20) mlx4_QUERY_DEV_CAP() 771 if (field & 0x10) mlx4_QUERY_DEV_CAP() 773 field &= 0xf; mlx4_QUERY_DEV_CAP() 774 if (field) { mlx4_QUERY_DEV_CAP() 776 dev_cap->max_rss_tbl_sz = 1 << field; mlx4_QUERY_DEV_CAP() 779 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_RDMA_OFFSET); mlx4_QUERY_DEV_CAP() 780 dev_cap->max_rdma_global = 1 << (field & 0x3f); mlx4_QUERY_DEV_CAP() 781 MLX4_GET(field, outbox, QUERY_DEV_CAP_ACK_DELAY_OFFSET); mlx4_QUERY_DEV_CAP() 782 dev_cap->local_ca_ack_delay = field & 0x1f; mlx4_QUERY_DEV_CAP() 783 MLX4_GET(field, outbox, QUERY_DEV_CAP_VL_PORT_OFFSET); mlx4_QUERY_DEV_CAP() 784 dev_cap->num_ports = field & 0xf; mlx4_QUERY_DEV_CAP() 785 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_MSG_SZ_OFFSET); mlx4_QUERY_DEV_CAP() 786 dev_cap->max_msg_sz = 1 << (field & 0x1f); mlx4_QUERY_DEV_CAP() 787 MLX4_GET(field, outbox, QUERY_DEV_CAP_PORT_FLOWSTATS_COUNTERS_OFFSET); mlx4_QUERY_DEV_CAP() 788 if (field & 0x10) mlx4_QUERY_DEV_CAP() 790 MLX4_GET(field, outbox, QUERY_DEV_CAP_FLOW_STEERING_RANGE_EN_OFFSET); mlx4_QUERY_DEV_CAP() 791 if (field & 0x80) mlx4_QUERY_DEV_CAP() 793 dev_cap->fs_log_max_ucast_qp_range_size = field & 0x1f; mlx4_QUERY_DEV_CAP() 794 MLX4_GET(field, outbox, QUERY_DEV_CAP_PORT_BEACON_OFFSET); mlx4_QUERY_DEV_CAP() 795 if (field & 0x80) mlx4_QUERY_DEV_CAP() 797 MLX4_GET(field, outbox, QUERY_DEV_CAP_FLOW_STEERING_IPOIB_OFFSET); mlx4_QUERY_DEV_CAP() 798 if (field & 0x80) mlx4_QUERY_DEV_CAP() 800 MLX4_GET(field, outbox, QUERY_DEV_CAP_FLOW_STEERING_MAX_QP_OFFSET); mlx4_QUERY_DEV_CAP() 801 dev_cap->fs_max_num_qp_per_entry = field; mlx4_QUERY_DEV_CAP() 802 MLX4_GET(field, outbox, QUERY_DEV_CAP_ECN_QCN_VER_OFFSET); mlx4_QUERY_DEV_CAP() 803 if (field & 0x1) mlx4_QUERY_DEV_CAP() 807 MLX4_GET(field, outbox, QUERY_DEV_CAP_CQ_TS_SUPPORT_OFFSET); mlx4_QUERY_DEV_CAP() 808 if (field & 0x80) mlx4_QUERY_DEV_CAP() 813 MLX4_GET(field, outbox, QUERY_DEV_CAP_RSVD_UAR_OFFSET); mlx4_QUERY_DEV_CAP() 814 dev_cap->reserved_uars = field >> 4; mlx4_QUERY_DEV_CAP() 815 MLX4_GET(field, outbox, QUERY_DEV_CAP_UAR_SZ_OFFSET); mlx4_QUERY_DEV_CAP() 816 dev_cap->uar_size = 1 << ((field & 0x3f) + 20); mlx4_QUERY_DEV_CAP() 817 MLX4_GET(field, outbox, QUERY_DEV_CAP_PAGE_SZ_OFFSET); mlx4_QUERY_DEV_CAP() 818 dev_cap->min_page_sz = 1 << field; mlx4_QUERY_DEV_CAP() 820 MLX4_GET(field, outbox, QUERY_DEV_CAP_BF_OFFSET); mlx4_QUERY_DEV_CAP() 821 if (field & 0x80) { mlx4_QUERY_DEV_CAP() 822 MLX4_GET(field, outbox, QUERY_DEV_CAP_LOG_BF_REG_SZ_OFFSET); mlx4_QUERY_DEV_CAP() 823 dev_cap->bf_reg_size = 1 << (field & 0x1f); mlx4_QUERY_DEV_CAP() 824 MLX4_GET(field, outbox, QUERY_DEV_CAP_LOG_MAX_BF_REGS_PER_PAGE_OFFSET); mlx4_QUERY_DEV_CAP() 825 if ((1 << (field & 0x3f)) > (PAGE_SIZE / dev_cap->bf_reg_size)) mlx4_QUERY_DEV_CAP() 826 field = 3; mlx4_QUERY_DEV_CAP() 827 dev_cap->bf_regs_per_page = 1 << (field & 0x3f); mlx4_QUERY_DEV_CAP() 832 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_SG_SQ_OFFSET); mlx4_QUERY_DEV_CAP() 833 dev_cap->max_sq_sg = field; mlx4_QUERY_DEV_CAP() 837 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_QP_MCG_OFFSET); mlx4_QUERY_DEV_CAP() 838 dev_cap->max_qp_per_mcg = 1 << field; mlx4_QUERY_DEV_CAP() 839 MLX4_GET(field, outbox, QUERY_DEV_CAP_RSVD_MCG_OFFSET); mlx4_QUERY_DEV_CAP() 840 dev_cap->reserved_mgms = field & 0xf; mlx4_QUERY_DEV_CAP() 841 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_MCG_OFFSET); mlx4_QUERY_DEV_CAP() 842 dev_cap->max_mcgs = 1 << field; mlx4_QUERY_DEV_CAP() 843 MLX4_GET(field, outbox, QUERY_DEV_CAP_RSVD_PD_OFFSET); mlx4_QUERY_DEV_CAP() 844 dev_cap->reserved_pds = field >> 4; mlx4_QUERY_DEV_CAP() 845 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_PD_OFFSET); mlx4_QUERY_DEV_CAP() 846 dev_cap->max_pds = 1 << (field & 0x3f); mlx4_QUERY_DEV_CAP() 847 MLX4_GET(field, outbox, QUERY_DEV_CAP_RSVD_XRC_OFFSET); mlx4_QUERY_DEV_CAP() 848 dev_cap->reserved_xrcds = field >> 4; mlx4_QUERY_DEV_CAP() 849 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_XRC_OFFSET); mlx4_QUERY_DEV_CAP() 850 dev_cap->max_xrcds = 1 << (field & 0x1f); mlx4_QUERY_DEV_CAP() 873 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_SRQ_SZ_OFFSET); mlx4_QUERY_DEV_CAP() 874 dev_cap->max_srq_sz = 1 << field; mlx4_QUERY_DEV_CAP() 875 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_QP_SZ_OFFSET); mlx4_QUERY_DEV_CAP() 876 dev_cap->max_qp_sz = 1 << field; mlx4_QUERY_DEV_CAP() 877 MLX4_GET(field, outbox, QUERY_DEV_CAP_RSZ_SRQ_OFFSET); mlx4_QUERY_DEV_CAP() 878 dev_cap->resize_srq = field & 1; mlx4_QUERY_DEV_CAP() 879 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_SG_RQ_OFFSET); mlx4_QUERY_DEV_CAP() 880 dev_cap->max_rq_sg = field; mlx4_QUERY_DEV_CAP() 883 MLX4_GET(field, outbox, QUERY_DEV_CAP_CQ_EQ_CACHE_LINE_STRIDE); mlx4_QUERY_DEV_CAP() 884 if (field & (1 << 4)) mlx4_QUERY_DEV_CAP() 886 if (field & (1 << 5)) mlx4_QUERY_DEV_CAP() 888 if (field & (1 << 6)) mlx4_QUERY_DEV_CAP() 890 if (field & (1 << 7)) mlx4_QUERY_DEV_CAP() 896 MLX4_GET(field, outbox, QUERY_DEV_CAP_CONFIG_DEV_OFFSET); mlx4_QUERY_DEV_CAP() 897 if (field & 0x20) mlx4_QUERY_DEV_CAP() 899 if (field & (1 << 2)) mlx4_QUERY_DEV_CAP() 908 MLX4_GET(field, outbox, QUERY_DEV_CAP_FW_REASSIGN_MAC); mlx4_QUERY_DEV_CAP() 909 if (field & 1<<6) mlx4_QUERY_DEV_CAP() 911 MLX4_GET(field, outbox, QUERY_DEV_CAP_VXLAN); mlx4_QUERY_DEV_CAP() 912 if (field & 1<<3) mlx4_QUERY_DEV_CAP() 914 if (field & (1 << 5)) mlx4_QUERY_DEV_CAP() 1038 u8 field; mlx4_QUERY_PORT() local 1055 MLX4_GET(field, outbox, QUERY_DEV_CAP_VL_PORT_OFFSET); mlx4_QUERY_PORT() 1056 port_cap->max_vl = field >> 4; mlx4_QUERY_PORT() 1057 MLX4_GET(field, outbox, QUERY_DEV_CAP_MTU_WIDTH_OFFSET); mlx4_QUERY_PORT() 1058 port_cap->ib_mtu = field >> 4; mlx4_QUERY_PORT() 1059 port_cap->max_port_width = field & 0xf; mlx4_QUERY_PORT() 1060 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_GID_OFFSET); mlx4_QUERY_PORT() 1061 port_cap->max_gids = 1 << (field & 0xf); mlx4_QUERY_PORT() 1062 MLX4_GET(field, outbox, QUERY_DEV_CAP_MAX_PKEY_OFFSET); mlx4_QUERY_PORT() 1063 port_cap->max_pkeys = 1 << (field & 0xf); mlx4_QUERY_PORT() 1082 MLX4_GET(field, outbox, QUERY_PORT_SUPPORTED_TYPE_OFFSET); mlx4_QUERY_PORT() 1083 port_cap->supported_port_types = field & 3; mlx4_QUERY_PORT() 1084 port_cap->suggested_type = (field >> 3) & 1; mlx4_QUERY_PORT() 1085 port_cap->default_sense = (field >> 4) & 1; mlx4_QUERY_PORT() 1086 port_cap->dmfs_optimized_state = (field >> 5) & 1; mlx4_QUERY_PORT() 1087 MLX4_GET(field, outbox, QUERY_PORT_MTU_OFFSET); mlx4_QUERY_PORT() 1088 port_cap->ib_mtu = field & 0xf; mlx4_QUERY_PORT() 1089 MLX4_GET(field, outbox, QUERY_PORT_WIDTH_OFFSET); mlx4_QUERY_PORT() 1090 port_cap->max_port_width = field & 0xf; mlx4_QUERY_PORT() 1091 MLX4_GET(field, outbox, QUERY_PORT_MAX_GID_PKEY_OFFSET); mlx4_QUERY_PORT() 1092 port_cap->max_gids = 1 << (field >> 4); mlx4_QUERY_PORT() 1093 port_cap->max_pkeys = 1 << (field & 0xf); mlx4_QUERY_PORT() 1094 MLX4_GET(field, outbox, QUERY_PORT_MAX_VL_OFFSET); mlx4_QUERY_PORT() 1095 port_cap->max_vl = field & 0xf; mlx4_QUERY_PORT() 1096 MLX4_GET(field, outbox, QUERY_PORT_MAX_MACVLAN_OFFSET); mlx4_QUERY_PORT() 1097 port_cap->log_max_macs = field & 0xf; mlx4_QUERY_PORT() 1098 port_cap->log_max_vlans = field >> 4; mlx4_QUERY_PORT() 1126 u8 field; mlx4_QUERY_DEV_CAP_wrapper() local 1163 MLX4_GET(field, outbox->buf, QUERY_DEV_CAP_VL_PORT_OFFSET); mlx4_QUERY_DEV_CAP_wrapper() 1164 field &= ~0x0F; mlx4_QUERY_DEV_CAP_wrapper() 1165 field |= bitmap_weight(actv_ports.ports, dev->caps.num_ports) & 0x0F; mlx4_QUERY_DEV_CAP_wrapper() 1166 MLX4_PUT(outbox->buf, field, QUERY_DEV_CAP_VL_PORT_OFFSET); mlx4_QUERY_DEV_CAP_wrapper() 1169 MLX4_GET(field, outbox->buf, QUERY_DEV_CAP_CQ_TS_SUPPORT_OFFSET); mlx4_QUERY_DEV_CAP_wrapper() 1170 field &= 0x7f; mlx4_QUERY_DEV_CAP_wrapper() 1171 MLX4_PUT(outbox->buf, field, QUERY_DEV_CAP_CQ_TS_SUPPORT_OFFSET); mlx4_QUERY_DEV_CAP_wrapper() 1174 MLX4_GET(field, outbox->buf, QUERY_DEV_CAP_VXLAN); mlx4_QUERY_DEV_CAP_wrapper() 1175 field &= 0xd7; mlx4_QUERY_DEV_CAP_wrapper() 1176 MLX4_PUT(outbox->buf, field, QUERY_DEV_CAP_VXLAN); mlx4_QUERY_DEV_CAP_wrapper() 1179 MLX4_GET(field, outbox->buf, QUERY_DEV_CAP_PORT_BEACON_OFFSET); mlx4_QUERY_DEV_CAP_wrapper() 1180 field &= 0x7f; mlx4_QUERY_DEV_CAP_wrapper() 1181 MLX4_PUT(outbox->buf, field, QUERY_DEV_CAP_PORT_BEACON_OFFSET); mlx4_QUERY_DEV_CAP_wrapper() 1184 MLX4_GET(field, outbox->buf, QUERY_DEV_CAP_BF_OFFSET); mlx4_QUERY_DEV_CAP_wrapper() 1185 field &= 0x7f; mlx4_QUERY_DEV_CAP_wrapper() 1186 MLX4_PUT(outbox->buf, field, QUERY_DEV_CAP_BF_OFFSET); mlx4_QUERY_DEV_CAP_wrapper() 1196 MLX4_GET(field, outbox->buf, mlx4_QUERY_DEV_CAP_wrapper() 1198 field &= 0x7f; mlx4_QUERY_DEV_CAP_wrapper() 1199 MLX4_PUT(outbox->buf, field, mlx4_QUERY_DEV_CAP_wrapper() 1204 MLX4_GET(field, outbox->buf, QUERY_DEV_CAP_FLOW_STEERING_IPOIB_OFFSET); mlx4_QUERY_DEV_CAP_wrapper() 1205 field &= ~0x80; mlx4_QUERY_DEV_CAP_wrapper() 1206 MLX4_PUT(outbox->buf, field, QUERY_DEV_CAP_FLOW_STEERING_IPOIB_OFFSET); mlx4_QUERY_DEV_CAP_wrapper() 1215 MLX4_GET(field, outbox->buf, QUERY_DEV_CAP_ECN_QCN_VER_OFFSET); mlx4_QUERY_DEV_CAP_wrapper() 1216 field &= 0xfe; mlx4_QUERY_DEV_CAP_wrapper() 1217 MLX4_PUT(outbox->buf, field, QUERY_DEV_CAP_ECN_QCN_VER_OFFSET); mlx4_QUERY_DEV_CAP_wrapper() 1224 MLX4_GET(field, outbox->buf, QUERY_DEV_CAP_CQ_EQ_CACHE_LINE_STRIDE); mlx4_QUERY_DEV_CAP_wrapper() 1225 field &= 0xef; mlx4_QUERY_DEV_CAP_wrapper() 1226 MLX4_PUT(outbox->buf, field, QUERY_DEV_CAP_CQ_EQ_CACHE_LINE_STRIDE); mlx4_QUERY_DEV_CAP_wrapper() 1229 MLX4_GET(field, outbox->buf, QUERY_DEV_CAP_CONFIG_DEV_OFFSET); mlx4_QUERY_DEV_CAP_wrapper() 1230 field &= 0xfb; mlx4_QUERY_DEV_CAP_wrapper() 1231 MLX4_PUT(outbox->buf, field, QUERY_DEV_CAP_CONFIG_DEV_OFFSET); mlx4_QUERY_DEV_CAP_wrapper() 1313 u16 field; mlx4_get_slave_pkey_gid_tbl_len() local 1328 MLX4_GET(field, outbox, QUERY_PORT_CUR_MAX_GID_OFFSET); mlx4_get_slave_pkey_gid_tbl_len() 1329 *gid_tbl_len = field; mlx4_get_slave_pkey_gid_tbl_len() 1331 MLX4_GET(field, outbox, QUERY_PORT_CUR_MAX_PKEY_OFFSET); mlx4_get_slave_pkey_gid_tbl_len() 1332 *pkey_tbl_len = field; mlx4_get_slave_pkey_gid_tbl_len() 2093 u16 field; mlx4_INIT_PORT() local 2120 field = 128 << dev->caps.ib_mtu_cap[port]; mlx4_INIT_PORT() 2121 MLX4_PUT(inbox, field, INIT_PORT_MTU_OFFSET); mlx4_INIT_PORT() 2122 field = dev->caps.gid_table_len[port]; mlx4_INIT_PORT() 2123 MLX4_PUT(inbox, field, INIT_PORT_MAX_GID_OFFSET); mlx4_INIT_PORT() 2124 field = dev->caps.pkey_table_len[port]; mlx4_INIT_PORT() 2125 MLX4_PUT(inbox, field, INIT_PORT_MAX_PKEY_OFFSET); mlx4_INIT_PORT() 2654 * field into reg_data or a negative error code.
|
/linux-4.1.27/drivers/gpu/host1x/hw/ |
H A D | hw_host1x01_channel.h | 25 * <x>_<y>_s(void) : Returns size of field <y> of register <x> in bits. 28 * and masked to place it at field <y> of register <x>. This value 32 * <x>_<y>_m(void) : Returns a mask for field <y> of register <x>. This 33 * value can be ~'d and then &'d to clear the value of field <y> for 37 * to place it at field <y> of register <x>. This value can be |'d 40 * <x>_<y>_v(u32 r) : Returns the value of field <y> from a full register 43 * values appropriate for use in field <y> of register <x>. 46 * field <y> of register <x>. This value is suitable for direct 47 * comparison with unshifted values appropriate for use in field <y>
|
H A D | hw_host1x02_channel.h | 25 * <x>_<y>_s(void) : Returns size of field <y> of register <x> in bits. 28 * and masked to place it at field <y> of register <x>. This value 32 * <x>_<y>_m(void) : Returns a mask for field <y> of register <x>. This 33 * value can be ~'d and then &'d to clear the value of field <y> for 37 * to place it at field <y> of register <x>. This value can be |'d 40 * <x>_<y>_v(u32 r) : Returns the value of field <y> from a full register 43 * values appropriate for use in field <y> of register <x>. 46 * field <y> of register <x>. This value is suitable for direct 47 * comparison with unshifted values appropriate for use in field <y>
|
H A D | hw_host1x04_channel.h | 25 * <x>_<y>_s(void) : Returns size of field <y> of register <x> in bits. 28 * and masked to place it at field <y> of register <x>. This value 32 * <x>_<y>_m(void) : Returns a mask for field <y> of register <x>. This 33 * value can be ~'d and then &'d to clear the value of field <y> for 37 * to place it at field <y> of register <x>. This value can be |'d 40 * <x>_<y>_v(u32 r) : Returns the value of field <y> from a full register 43 * values appropriate for use in field <y> of register <x>. 46 * field <y> of register <x>. This value is suitable for direct 47 * comparison with unshifted values appropriate for use in field <y>
|
H A D | hw_host1x01_uclass.h | 25 * <x>_<y>_s(void) : Returns size of field <y> of register <x> in bits. 28 * and masked to place it at field <y> of register <x>. This value 32 * <x>_<y>_m(void) : Returns a mask for field <y> of register <x>. This 33 * value can be ~'d and then &'d to clear the value of field <y> for 37 * to place it at field <y> of register <x>. This value can be |'d 40 * <x>_<y>_v(u32 r) : Returns the value of field <y> from a full register 43 * values appropriate for use in field <y> of register <x>. 46 * field <y> of register <x>. This value is suitable for direct 47 * comparison with unshifted values appropriate for use in field <y>
|
H A D | hw_host1x02_uclass.h | 25 * <x>_<y>_s(void) : Returns size of field <y> of register <x> in bits. 28 * and masked to place it at field <y> of register <x>. This value 32 * <x>_<y>_m(void) : Returns a mask for field <y> of register <x>. This 33 * value can be ~'d and then &'d to clear the value of field <y> for 37 * to place it at field <y> of register <x>. This value can be |'d 40 * <x>_<y>_v(u32 r) : Returns the value of field <y> from a full register 43 * values appropriate for use in field <y> of register <x>. 46 * field <y> of register <x>. This value is suitable for direct 47 * comparison with unshifted values appropriate for use in field <y>
|
H A D | hw_host1x04_uclass.h | 25 * <x>_<y>_s(void) : Returns size of field <y> of register <x> in bits. 28 * and masked to place it at field <y> of register <x>. This value 32 * <x>_<y>_m(void) : Returns a mask for field <y> of register <x>. This 33 * value can be ~'d and then &'d to clear the value of field <y> for 37 * to place it at field <y> of register <x>. This value can be |'d 40 * <x>_<y>_v(u32 r) : Returns the value of field <y> from a full register 43 * values appropriate for use in field <y> of register <x>. 46 * field <y> of register <x>. This value is suitable for direct 47 * comparison with unshifted values appropriate for use in field <y>
|
/linux-4.1.27/drivers/gpu/drm/bridge/ |
H A D | dw_hdmi.h | 548 /* IH_FC_INT2 field values */ 553 /* IH_FC_STAT2 field values */ 558 /* IH_PHY_STAT0 field values */ 566 /* IH_MUTE_I2CMPHY_STAT0 field values */ 570 /* IH_AHBDMAAUD_STAT0 field values */ 578 /* IH_MUTE_FC_STAT2 field values */ 583 /* IH_MUTE_AHBDMAAUD_STAT0 field values */ 591 /* IH_MUTE field values */ 595 /* TX_INVID0 field values */ 602 /* TX_INSTUFFING field values */ 613 /* VP_PR_CD field values */ 619 /* VP_STUFF field values */ 636 /* VP_CONF field values */ 657 /* VP_REMAP field values */ 663 /* FC_INVIDCONF field values */ 686 /* FC_AUDICONF0 field values */ 692 /* FC_AUDICONF1 field values */ 698 /* FC_AUDICONF3 field values */ 706 /* FC_AUDSCHNLS0 field values */ 712 /* FC_AUDSCHNLS3-6 field values */ 731 /* HDMI_FC_AUDSCHNLS7 field values */ 735 /* HDMI_FC_AUDSCHNLS8 field values */ 741 /* FC_AUDSCONF field values */ 749 /* FC_STAT2 field values */ 754 /* FC_INT2 field values */ 759 /* FC_MASK2 field values */ 764 /* FC_PRCONF field values */ 770 /* FC_AVICONF0-FC_AVICONF3 field values */ 831 /* FC_DBGFORCE field values */ 835 /* PHY_CONF0 field values */ 853 /* PHY_TST0 field values */ 861 /* PHY_STAT0 field values */ 869 /* PHY_I2CM_SLAVE_ADDR field values */ 873 /* PHY_I2CM_OPERATION_ADDR field values */ 887 /* AUD_CTS3 field values */ 901 /* AHB_DMA_CONF0 field values */ 914 /* HDMI_AHB_DMA_START field values */ 918 /* HDMI_AHB_DMA_STOP field values */ 922 /* AHB_DMA_STAT, AHB_DMA_INT, AHB_DMA_MASK, AHB_DMA_POL field values */ 935 /* MC_CLKDIS field values */ 944 /* MC_SWRSTZ field values */ 947 /* MC_FLOWCTRL field values */ 952 /* MC_PHYRSTZ field values */ 956 /* MC_HEACPHY_RST field values */ 960 /* CSC_CFG field values */ 973 /* CSC_SCALE field values */ 981 /* A_HDCPCFG0 field values */ 1007 /* A_HDCPCFG1 field values */ 1020 /* A_VIDPOLCFG field values */
|
/linux-4.1.27/drivers/macintosh/ |
H A D | macio_sysfs.c | 6 #define macio_config_of_attr(field, format_string) \ 8 field##_show (struct device *dev, struct device_attribute *attr, \ 12 return sprintf (buf, format_string, mdev->ofdev.dev.of_node->field); \
|
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/ |
H A D | rtl819x_BA.h | 34 }field; member in union:_SEQUENCE_CONTROL 45 } field; member in union:_BA_PARAM_SET 55 } field; member in union:_DELBA_PARAM_SET
|
/linux-4.1.27/security/selinux/include/ |
H A D | audit.h | 23 * @field: the field this rule refers to 32 int selinux_audit_rule_init(u32 field, u32 op, char *rulestr, void **rule); 46 * @field: the field this rule refers to 54 int selinux_audit_rule_match(u32 sid, u32 field, u32 op, void *rule,
|
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/ |
H A D | layout.c | 779 * \a RMF_F_STRUCT_ARRAY flag is set the field is also variable-length, 790 * The field is a string, must be NUL-terminated. 794 * The field's buffer size need not match the declared \a rmf_size. 798 * The field's buffer size must be a whole multiple of the declared \a 1056 * OST request field. 1636 * field of RQFs and the \a rmf_offset field of RMFs. 1651 struct req_msg_field *field; req_layout_init() local 1653 field = (typeof(field))rf->rf_fields[j].d[k]; req_layout_init() 1654 LASSERT(!(field->rmf_flags & RMF_F_STRUCT_ARRAY) req_layout_init() 1655 || field->rmf_size > 0); req_layout_init() 1656 LASSERT(field->rmf_offset[i][j] == 0); req_layout_init() 1658 * k + 1 to detect unused format/field req_layout_init() 1661 field->rmf_offset[i][j] = k + 1; req_layout_init() 1677 * Actual/expected field sizes are set elsewhere in functions in this file: 1768 * variable-sized fields. The field sizes come from the declared \a rmf_size 1769 * field of a \a pill's \a rc_fmt's RMF's. 1830 * corresponding to the given RMF (\a field). 1833 const struct req_msg_field *field, __req_capsule_offset() 1838 offset = field->rmf_offset[pill->rc_fmt->rf_idx][loc]; __req_capsule_offset() 1841 field->rmf_name, offset, loc); __req_capsule_offset() 1855 const struct req_msg_field *field, swabber_dumper_helper() 1866 swabber = swabber ?: field->rmf_swabber; swabber_dumper_helper() 1874 if (!field->rmf_dumper) swabber_dumper_helper() 1877 if (!(field->rmf_flags & RMF_F_STRUCT_ARRAY)) { swabber_dumper_helper() 1880 do_swab ? "unswabbed " : "", field->rmf_name); swabber_dumper_helper() 1881 field->rmf_dumper(value); swabber_dumper_helper() 1888 CDEBUG(D_RPCTRACE, "Dump of swabbed field %s follows\n", swabber_dumper_helper() 1889 field->rmf_name); swabber_dumper_helper() 1890 field->rmf_dumper(value); swabber_dumper_helper() 1900 LASSERT((len % field->rmf_size) == 0); swabber_dumper_helper() 1901 for (p = value, i = 0, n = len / field->rmf_size; swabber_dumper_helper() 1903 i++, p += field->rmf_size) { swabber_dumper_helper() 1905 CDEBUG(D_RPCTRACE, "Dump of %sarray field %s, element %d follows\n", swabber_dumper_helper() 1906 do_swab ? "unswabbed " : "", field->rmf_name, i); swabber_dumper_helper() 1907 field->rmf_dumper(p); swabber_dumper_helper() 1913 CDEBUG(D_RPCTRACE, "Dump of swabbed array field %s, element %d follows\n", swabber_dumper_helper() 1914 field->rmf_name, i); swabber_dumper_helper() 1915 field->rmf_dumper(value); swabber_dumper_helper() 1924 * corresponding to the given RMF (\a field). 1933 const struct req_msg_field *field, __req_capsule_get() 1958 offset = __req_capsule_offset(pill, field, loc); __req_capsule_get() 1963 getter = (field->rmf_flags & RMF_F_STRING) ? __req_capsule_get() 1966 if (field->rmf_flags & RMF_F_STRUCT_ARRAY) { __req_capsule_get() 1968 * We've already asserted that field->rmf_size > 0 in __req_capsule_get() 1972 if ((len % field->rmf_size) != 0) { __req_capsule_get() 1973 CERROR("%s: array field size mismatch %d modulo %d != 0 (%d)\n", __req_capsule_get() 1974 field->rmf_name, len, field->rmf_size, loc); __req_capsule_get() 1980 len = max(field->rmf_size, 0); __req_capsule_get() 1986 "Wrong buffer for field `%s' (%d of %d) in format `%s': %d vs. %d (%s)\n", __req_capsule_get() 1987 field->rmf_name, offset, lustre_msg_bufcount(msg), __req_capsule_get() 1991 swabber_dumper_helper(pill, field, loc, offset, value, len, __req_capsule_get() 2004 const struct req_msg_field *field; __req_capsule_dump() local 2012 field = FMT_FIELD(fmt, loc, i); __req_capsule_dump() 2013 if (field->rmf_dumper == NULL) { __req_capsule_dump() 2018 len = req_capsule_get_size(pill, field, loc); __req_capsule_dump() 2019 CDEBUG(D_RPCTRACE, "Field %s has no dumper function; field size is %d\n", __req_capsule_dump() 2020 field->rmf_name, len); __req_capsule_dump() 2023 (void) __req_capsule_get(pill, field, loc, NULL, 1); __req_capsule_dump() 2049 * buffer corresponding to the given RMF (\a field) of a \a pill. 2052 const struct req_msg_field *field) req_capsule_client_get() 2054 return __req_capsule_get(pill, field, RCL_CLIENT, NULL, 0); req_capsule_client_get() 2065 const struct req_msg_field *field, req_capsule_client_swab_get() 2068 return __req_capsule_get(pill, field, RCL_CLIENT, swabber, 0); req_capsule_client_swab_get() 2075 * First the \a pill's request \a field's size is set (\a rc_area) using 2080 const struct req_msg_field *field, req_capsule_client_sized_get() 2083 req_capsule_set_size(pill, field, RCL_CLIENT, len); req_capsule_client_sized_get() 2084 return __req_capsule_get(pill, field, RCL_CLIENT, NULL, 0); req_capsule_client_sized_get() 2090 * buffer corresponding to the given RMF (\a field) of a \a pill. 2093 const struct req_msg_field *field) req_capsule_server_get() 2095 return __req_capsule_get(pill, field, RCL_SERVER, NULL, 0); req_capsule_server_get() 2106 const struct req_msg_field *field, req_capsule_server_swab_get() 2109 return __req_capsule_get(pill, field, RCL_SERVER, swabber, 0); req_capsule_server_swab_get() 2116 * First the \a pill's request \a field's size is set (\a rc_area) using 2121 const struct req_msg_field *field, req_capsule_server_sized_get() 2124 req_capsule_set_size(pill, field, RCL_SERVER, len); req_capsule_server_sized_get() 2125 return __req_capsule_get(pill, field, RCL_SERVER, NULL, 0); req_capsule_server_sized_get() 2130 const struct req_msg_field *field, req_capsule_server_sized_swab_get() 2133 req_capsule_set_size(pill, field, RCL_SERVER, len); req_capsule_server_sized_swab_get() 2134 return __req_capsule_get(pill, field, RCL_SERVER, swabber, 0); req_capsule_server_sized_swab_get() 2139 * Returns the buffer of a \a pill corresponding to the given \a field from the 2147 const struct req_msg_field *field) req_capsule_other_get() 2149 return __req_capsule_get(pill, field, pill->rc_loc ^ 1, NULL, 0); req_capsule_other_get() 2155 * field of the given \a pill. 2161 const struct req_msg_field *field, req_capsule_set_size() 2166 if ((size != field->rmf_size) && req_capsule_set_size() 2167 (field->rmf_size != -1) && req_capsule_set_size() 2168 !(field->rmf_flags & RMF_F_NO_SIZE_CHECK) && req_capsule_set_size() 2170 if ((field->rmf_flags & RMF_F_STRUCT_ARRAY) && req_capsule_set_size() 2171 (size % field->rmf_size != 0)) { req_capsule_set_size() 2172 CERROR("%s: array field size mismatch %d %% %d != 0 (%d)\n", req_capsule_set_size() 2173 field->rmf_name, size, field->rmf_size, loc); req_capsule_set_size() 2175 } else if (!(field->rmf_flags & RMF_F_STRUCT_ARRAY) && req_capsule_set_size() 2176 size < field->rmf_size) { req_capsule_set_size() 2177 CERROR("%s: field size mismatch %d != %d (%d)\n", req_capsule_set_size() 2178 field->rmf_name, size, field->rmf_size, loc); req_capsule_set_size() 2183 pill->rc_area[loc][__req_capsule_offset(pill, field, loc)] = size; req_capsule_set_size() 2189 * for the given \a pill's given \a field. 2196 const struct req_msg_field *field, req_capsule_get_size() 2202 __req_capsule_offset(pill, field, loc)); req_capsule_get_size() 2208 * given \a pill's request or reply (\a loc) given the field size recorded in 2264 * OBD_SET_INFO has a key field and an opaque value field that gets interpreted 2265 * according to the key field. When the value, according to the key, contains a 2267 * one where the value field has \a rmf_size/rmf_flags/rmf_swabber set 2298 * Last field in old format can be shorter than in new. req_capsule_extend() 2309 * This function returns a non-zero value if the given \a field is present in 2314 const struct req_msg_field *field, req_capsule_has_field() 2319 return field->rmf_offset[pill->rc_fmt->rf_idx][loc]; req_capsule_has_field() 2324 * Returns a non-zero value if the given \a field is present in the given \a 2328 const struct req_msg_field *field, req_capsule_field_present() 2334 LASSERT(req_capsule_has_field(pill, field, loc)); req_capsule_field_present() 2336 offset = __req_capsule_offset(pill, field, loc); req_capsule_field_present() 2348 const struct req_msg_field *field, req_capsule_shrink() 2360 LASSERT(req_capsule_has_field(pill, field, loc)); req_capsule_shrink() 2361 LASSERT(req_capsule_field_present(pill, field, loc)); req_capsule_shrink() 2363 offset = __req_capsule_offset(pill, field, loc); req_capsule_shrink() 2368 fmt->rf_name, field->rmf_name, len, newlen); req_capsule_shrink() 2380 const struct req_msg_field *field, req_capsule_server_grow() 2389 LASSERT(req_capsule_has_field(pill, field, RCL_SERVER)); req_capsule_server_grow() 2390 LASSERT(req_capsule_field_present(pill, field, RCL_SERVER)); req_capsule_server_grow() 2392 len = req_capsule_get_size(pill, field, RCL_SERVER); req_capsule_server_grow() 2393 offset = __req_capsule_offset(pill, field, RCL_SERVER); req_capsule_server_grow() 2399 req_capsule_set_size(pill, field, RCL_SERVER, newlen); req_capsule_server_grow() 1832 __req_capsule_offset(const struct req_capsule *pill, const struct req_msg_field *field, enum req_location loc) __req_capsule_offset() argument 1854 swabber_dumper_helper(struct req_capsule *pill, const struct req_msg_field *field, enum req_location loc, int offset, void *value, int len, int dump, void (*swabber)(void *)) swabber_dumper_helper() argument 1932 __req_capsule_get(struct req_capsule *pill, const struct req_msg_field *field, enum req_location loc, void (*swabber)(void *), int dump) __req_capsule_get() argument 2051 req_capsule_client_get(struct req_capsule *pill, const struct req_msg_field *field) req_capsule_client_get() argument 2064 req_capsule_client_swab_get(struct req_capsule *pill, const struct req_msg_field *field, void *swabber) req_capsule_client_swab_get() argument 2079 req_capsule_client_sized_get(struct req_capsule *pill, const struct req_msg_field *field, int len) req_capsule_client_sized_get() argument 2092 req_capsule_server_get(struct req_capsule *pill, const struct req_msg_field *field) req_capsule_server_get() argument 2105 req_capsule_server_swab_get(struct req_capsule *pill, const struct req_msg_field *field, void *swabber) req_capsule_server_swab_get() argument 2120 req_capsule_server_sized_get(struct req_capsule *pill, const struct req_msg_field *field, int len) req_capsule_server_sized_get() argument 2129 req_capsule_server_sized_swab_get(struct req_capsule *pill, const struct req_msg_field *field, int len, void *swabber) req_capsule_server_sized_swab_get() argument 2146 req_capsule_other_get(struct req_capsule *pill, const struct req_msg_field *field) req_capsule_other_get() argument 2160 req_capsule_set_size(struct req_capsule *pill, const struct req_msg_field *field, enum req_location loc, int size) req_capsule_set_size() argument 2195 req_capsule_get_size(const struct req_capsule *pill, const struct req_msg_field *field, enum req_location loc) req_capsule_get_size() argument 2313 req_capsule_has_field(const struct req_capsule *pill, const struct req_msg_field *field, enum req_location loc) req_capsule_has_field() argument 2327 req_capsule_field_present(const struct req_capsule *pill, const struct req_msg_field *field, enum req_location loc) req_capsule_field_present() argument 2347 req_capsule_shrink(struct req_capsule *pill, const struct req_msg_field *field, unsigned int newlen, enum req_location loc) req_capsule_shrink() argument 2379 req_capsule_server_grow(struct req_capsule *pill, const struct req_msg_field *field, unsigned int newlen) req_capsule_server_grow() argument
|
/linux-4.1.27/tools/perf/arch/powerpc/util/ |
H A D | header.c | 15 #define PVR_VER(pvr) (((pvr) >> 16) & 0xFFFF) /* Version field */ 16 #define PVR_REV(pvr) (((pvr) >> 0) & 0xFFFF) /* Revison field */
|
/linux-4.1.27/tools/perf/util/ |
H A D | data-convert-bt.c | 74 struct bt_ctf_field *field; value_set() local 78 field = bt_ctf_field_create(type); value_set() 79 if (!field) { value_set() 80 pr_err("failed to create a field %s\n", name); value_set() 85 ret = bt_ctf_field_signed_integer_set_value(field, val); value_set() 87 pr_err("failed to set field value %s\n", name); value_set() 91 ret = bt_ctf_field_unsigned_integer_set_value(field, val); value_set() 93 pr_err("failed to set field value %s\n", name); value_set() 98 ret = bt_ctf_event_set_payload(event, name, field); value_set() 107 bt_ctf_field_put(field); value_set() 130 get_tracepoint_field_type(struct ctf_writer *cw, struct format_field *field) get_tracepoint_field_type() argument 132 unsigned long flags = field->flags; get_tracepoint_field_type() 144 if (field->size == 8) get_tracepoint_field_type() 150 if (field->size == 8) get_tracepoint_field_type() 164 struct bt_ctf_field *field; add_tracepoint_field_value() local 217 field = bt_ctf_field_array_get_field(array_field, i); add_tracepoint_field_value() 219 field = bt_ctf_field_create(type); add_tracepoint_field_value() 221 if (!field) { add_tracepoint_field_value() 222 pr_err("failed to create a field %s\n", name); add_tracepoint_field_value() 227 ret = bt_ctf_field_string_set_value(field, add_tracepoint_field_value() 231 field, value_int); add_tracepoint_field_value() 234 field, value_int); add_tracepoint_field_value() 240 ret = bt_ctf_event_set_payload(event, name, field); add_tracepoint_field_value() 246 bt_ctf_field_put(field); add_tracepoint_field_value() 259 bt_ctf_field_put(field); add_tracepoint_field_value() 269 struct format_field *field; add_tracepoint_fields_values() local 272 for (field = fields; field; field = field->next) { add_tracepoint_fields_values() 274 field); add_tracepoint_fields_values() 436 struct format_field *field; add_tracepoint_fields_types() local 439 for (field = fields; field; field = field->next) { add_tracepoint_fields_types() 441 unsigned long flags = field->flags; add_tracepoint_fields_types() 443 pr2(" field '%s'\n", field->name); add_tracepoint_fields_types() 445 type = get_tracepoint_field_type(cw, field); add_tracepoint_fields_types() 458 type = bt_ctf_field_type_array_create(type, field->arraylen); add_tracepoint_fields_types() 461 field->name); add_tracepoint_fields_types() 467 pr_err("Failed to add field '%s\n", field->name); add_tracepoint_fields_types() 509 pr2(" field '%s'\n", n); \ add_generic_types() 511 pr_err("Failed to add field '%s;\n", n); \ add_generic_types()
|
/linux-4.1.27/drivers/infiniband/hw/mthca/ |
H A D | mthca_cmd.c | 991 u8 field; mthca_QUERY_DEV_LIM() local 1068 MTHCA_GET(field, outbox, QUERY_DEV_LIM_RSVD_QP_OFFSET); mthca_QUERY_DEV_LIM() 1069 dev_lim->reserved_qps = 1 << (field & 0xf); mthca_QUERY_DEV_LIM() 1070 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_QP_OFFSET); mthca_QUERY_DEV_LIM() 1071 dev_lim->max_qps = 1 << (field & 0x1f); mthca_QUERY_DEV_LIM() 1072 MTHCA_GET(field, outbox, QUERY_DEV_LIM_RSVD_SRQ_OFFSET); mthca_QUERY_DEV_LIM() 1073 dev_lim->reserved_srqs = 1 << (field >> 4); mthca_QUERY_DEV_LIM() 1074 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_SRQ_OFFSET); mthca_QUERY_DEV_LIM() 1075 dev_lim->max_srqs = 1 << (field & 0x1f); mthca_QUERY_DEV_LIM() 1076 MTHCA_GET(field, outbox, QUERY_DEV_LIM_RSVD_EEC_OFFSET); mthca_QUERY_DEV_LIM() 1077 dev_lim->reserved_eecs = 1 << (field & 0xf); mthca_QUERY_DEV_LIM() 1078 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_EEC_OFFSET); mthca_QUERY_DEV_LIM() 1079 dev_lim->max_eecs = 1 << (field & 0x1f); mthca_QUERY_DEV_LIM() 1080 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_CQ_SZ_OFFSET); mthca_QUERY_DEV_LIM() 1081 dev_lim->max_cq_sz = 1 << field; mthca_QUERY_DEV_LIM() 1082 MTHCA_GET(field, outbox, QUERY_DEV_LIM_RSVD_CQ_OFFSET); mthca_QUERY_DEV_LIM() 1083 dev_lim->reserved_cqs = 1 << (field & 0xf); mthca_QUERY_DEV_LIM() 1084 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_CQ_OFFSET); mthca_QUERY_DEV_LIM() 1085 dev_lim->max_cqs = 1 << (field & 0x1f); mthca_QUERY_DEV_LIM() 1086 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_MPT_OFFSET); mthca_QUERY_DEV_LIM() 1087 dev_lim->max_mpts = 1 << (field & 0x3f); mthca_QUERY_DEV_LIM() 1088 MTHCA_GET(field, outbox, QUERY_DEV_LIM_RSVD_EQ_OFFSET); mthca_QUERY_DEV_LIM() 1089 dev_lim->reserved_eqs = 1 << (field & 0xf); mthca_QUERY_DEV_LIM() 1090 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_EQ_OFFSET); mthca_QUERY_DEV_LIM() 1091 dev_lim->max_eqs = 1 << (field & 0x7); mthca_QUERY_DEV_LIM() 1092 MTHCA_GET(field, outbox, QUERY_DEV_LIM_RSVD_MTT_OFFSET); mthca_QUERY_DEV_LIM() 1094 dev_lim->reserved_mtts = ALIGN((1 << (field >> 4)) * sizeof(u64), mthca_QUERY_DEV_LIM() 1097 dev_lim->reserved_mtts = 1 << (field >> 4); mthca_QUERY_DEV_LIM() 1098 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_MRW_SZ_OFFSET); mthca_QUERY_DEV_LIM() 1099 dev_lim->max_mrw_sz = 1 << field; mthca_QUERY_DEV_LIM() 1100 MTHCA_GET(field, outbox, QUERY_DEV_LIM_RSVD_MRW_OFFSET); mthca_QUERY_DEV_LIM() 1101 dev_lim->reserved_mrws = 1 << (field & 0xf); mthca_QUERY_DEV_LIM() 1102 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_MTT_SEG_OFFSET); mthca_QUERY_DEV_LIM() 1103 dev_lim->max_mtt_seg = 1 << (field & 0x3f); mthca_QUERY_DEV_LIM() 1104 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_REQ_QP_OFFSET); mthca_QUERY_DEV_LIM() 1105 dev_lim->max_requester_per_qp = 1 << (field & 0x3f); mthca_QUERY_DEV_LIM() 1106 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_RES_QP_OFFSET); mthca_QUERY_DEV_LIM() 1107 dev_lim->max_responder_per_qp = 1 << (field & 0x3f); mthca_QUERY_DEV_LIM() 1108 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_RDMA_OFFSET); mthca_QUERY_DEV_LIM() 1109 dev_lim->max_rdma_global = 1 << (field & 0x3f); mthca_QUERY_DEV_LIM() 1110 MTHCA_GET(field, outbox, QUERY_DEV_LIM_ACK_DELAY_OFFSET); mthca_QUERY_DEV_LIM() 1111 dev_lim->local_ca_ack_delay = field & 0x1f; mthca_QUERY_DEV_LIM() 1112 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MTU_WIDTH_OFFSET); mthca_QUERY_DEV_LIM() 1113 dev_lim->max_mtu = field >> 4; mthca_QUERY_DEV_LIM() 1114 dev_lim->max_port_width = field & 0xf; mthca_QUERY_DEV_LIM() 1115 MTHCA_GET(field, outbox, QUERY_DEV_LIM_VL_PORT_OFFSET); mthca_QUERY_DEV_LIM() 1116 dev_lim->max_vl = field >> 4; mthca_QUERY_DEV_LIM() 1117 dev_lim->num_ports = field & 0xf; mthca_QUERY_DEV_LIM() 1118 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_GID_OFFSET); mthca_QUERY_DEV_LIM() 1119 dev_lim->max_gids = 1 << (field & 0xf); mthca_QUERY_DEV_LIM() 1122 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_PKEY_OFFSET); mthca_QUERY_DEV_LIM() 1123 dev_lim->max_pkeys = 1 << (field & 0xf); mthca_QUERY_DEV_LIM() 1125 MTHCA_GET(field, outbox, QUERY_DEV_LIM_RSVD_UAR_OFFSET); mthca_QUERY_DEV_LIM() 1126 dev_lim->reserved_uars = field >> 4; mthca_QUERY_DEV_LIM() 1127 MTHCA_GET(field, outbox, QUERY_DEV_LIM_UAR_SZ_OFFSET); mthca_QUERY_DEV_LIM() 1128 dev_lim->uar_size = 1 << ((field & 0x3f) + 20); mthca_QUERY_DEV_LIM() 1129 MTHCA_GET(field, outbox, QUERY_DEV_LIM_PAGE_SZ_OFFSET); mthca_QUERY_DEV_LIM() 1130 dev_lim->min_page_sz = 1 << field; mthca_QUERY_DEV_LIM() 1131 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_SG_OFFSET); mthca_QUERY_DEV_LIM() 1132 dev_lim->max_sg = field; mthca_QUERY_DEV_LIM() 1137 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_QP_MCG_OFFSET); mthca_QUERY_DEV_LIM() 1138 dev_lim->max_qp_per_mcg = 1 << field; mthca_QUERY_DEV_LIM() 1139 MTHCA_GET(field, outbox, QUERY_DEV_LIM_RSVD_MCG_OFFSET); mthca_QUERY_DEV_LIM() 1140 dev_lim->reserved_mgms = field & 0xf; mthca_QUERY_DEV_LIM() 1141 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_MCG_OFFSET); mthca_QUERY_DEV_LIM() 1142 dev_lim->max_mcgs = 1 << field; mthca_QUERY_DEV_LIM() 1143 MTHCA_GET(field, outbox, QUERY_DEV_LIM_RSVD_PD_OFFSET); mthca_QUERY_DEV_LIM() 1144 dev_lim->reserved_pds = field >> 4; mthca_QUERY_DEV_LIM() 1145 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_PD_OFFSET); mthca_QUERY_DEV_LIM() 1146 dev_lim->max_pds = 1 << (field & 0x3f); mthca_QUERY_DEV_LIM() 1147 MTHCA_GET(field, outbox, QUERY_DEV_LIM_RSVD_RDD_OFFSET); mthca_QUERY_DEV_LIM() 1148 dev_lim->reserved_rdds = field >> 4; mthca_QUERY_DEV_LIM() 1149 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_RDD_OFFSET); mthca_QUERY_DEV_LIM() 1150 dev_lim->max_rdds = 1 << (field & 0x3f); mthca_QUERY_DEV_LIM() 1170 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_SRQ_SZ_OFFSET); mthca_QUERY_DEV_LIM() 1171 dev_lim->max_srq_sz = 1 << field; mthca_QUERY_DEV_LIM() 1172 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_QP_SZ_OFFSET); mthca_QUERY_DEV_LIM() 1173 dev_lim->max_qp_sz = 1 << field; mthca_QUERY_DEV_LIM() 1174 MTHCA_GET(field, outbox, QUERY_DEV_LIM_RSZ_SRQ_OFFSET); mthca_QUERY_DEV_LIM() 1175 dev_lim->hca.arbel.resize_srq = field & 1; mthca_QUERY_DEV_LIM() 1176 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_SG_RQ_OFFSET); mthca_QUERY_DEV_LIM() 1177 dev_lim->max_sg = min_t(int, field, dev_lim->max_sg); mthca_QUERY_DEV_LIM() 1182 MTHCA_GET(field, outbox, QUERY_DEV_LIM_PBL_SZ_OFFSET); mthca_QUERY_DEV_LIM() 1183 dev_lim->hca.arbel.max_pbl_sz = 1 << (field & 0x3f); mthca_QUERY_DEV_LIM() 1188 MTHCA_GET(field, outbox, QUERY_DEV_LIM_LAMR_OFFSET); mthca_QUERY_DEV_LIM() 1189 dev_lim->hca.arbel.lam_required = field & 1; mthca_QUERY_DEV_LIM() 1205 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_SRQ_SZ_OFFSET); mthca_QUERY_DEV_LIM() 1206 dev_lim->max_srq_sz = (1 << field) - 1; mthca_QUERY_DEV_LIM() 1207 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_QP_SZ_OFFSET); mthca_QUERY_DEV_LIM() 1208 dev_lim->max_qp_sz = (1 << field) - 1; mthca_QUERY_DEV_LIM() 1209 MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_AV_OFFSET); mthca_QUERY_DEV_LIM() 1210 dev_lim->hca.tavor.max_avs = 1 << (field & 0x3f); mthca_QUERY_DEV_LIM()
|
/linux-4.1.27/arch/arm/mach-iop13xx/include/mach/ |
H A D | adma.h | 249 struct iop13xx_adma_desc_ctrl field; iop_desc_init_memcpy() member in union:__anon215 253 u_desc_ctrl.field.xfer_dir = 3; /* local to internal bus */ iop_desc_init_memcpy() 254 u_desc_ctrl.field.int_en = flags & DMA_PREP_INTERRUPT; iop_desc_init_memcpy() 265 struct iop13xx_adma_desc_ctrl field; iop_desc_init_memset() member in union:__anon216 269 u_desc_ctrl.field.xfer_dir = 3; /* local to internal bus */ iop_desc_init_memset() 270 u_desc_ctrl.field.block_fill_en = 1; iop_desc_init_memset() 271 u_desc_ctrl.field.int_en = flags & DMA_PREP_INTERRUPT; iop_desc_init_memset() 284 struct iop13xx_adma_desc_ctrl field; iop_desc_init_xor() member in union:__anon217 288 u_desc_ctrl.field.src_select = src_cnt - 1; iop_desc_init_xor() 289 u_desc_ctrl.field.xfer_dir = 3; /* local to internal bus */ iop_desc_init_xor() 290 u_desc_ctrl.field.int_en = flags & DMA_PREP_INTERRUPT; iop_desc_init_xor() 305 struct iop13xx_adma_desc_ctrl field; iop_desc_init_zero_sum() member in union:__anon218 309 u_desc_ctrl.field.src_select = src_cnt - 1; iop_desc_init_zero_sum() 310 u_desc_ctrl.field.xfer_dir = 3; /* local to internal bus */ iop_desc_init_zero_sum() 311 u_desc_ctrl.field.zero_result = 1; iop_desc_init_zero_sum() 312 u_desc_ctrl.field.status_write_back_en = 1; iop_desc_init_zero_sum() 313 u_desc_ctrl.field.int_en = flags & DMA_PREP_INTERRUPT; iop_desc_init_zero_sum() 327 struct iop13xx_adma_desc_ctrl field; iop_desc_init_pq() member in union:__anon219 331 u_desc_ctrl.field.src_select = src_cnt - 1; iop_desc_init_pq() 332 u_desc_ctrl.field.xfer_dir = 3; /* local to internal bus */ iop_desc_init_pq() 333 u_desc_ctrl.field.pq_xfer_en = 1; iop_desc_init_pq() 334 u_desc_ctrl.field.p_xfer_dis = !!(flags & DMA_PREP_PQ_DISABLE_P); iop_desc_init_pq() 335 u_desc_ctrl.field.int_en = flags & DMA_PREP_INTERRUPT; iop_desc_init_pq() 346 struct iop13xx_adma_desc_ctrl field; iop_desc_init_pq_zero_sum() member in union:__anon220 350 u_desc_ctrl.field.src_select = src_cnt - 1; iop_desc_init_pq_zero_sum() 351 u_desc_ctrl.field.xfer_dir = 3; /* local to internal bus */ iop_desc_init_pq_zero_sum() 352 u_desc_ctrl.field.zero_result = 1; iop_desc_init_pq_zero_sum() 353 u_desc_ctrl.field.status_write_back_en = 1; iop_desc_init_pq_zero_sum() 354 u_desc_ctrl.field.pq_xfer_en = 1; iop_desc_init_pq_zero_sum() 355 u_desc_ctrl.field.p_xfer_dis = !!(flags & DMA_PREP_PQ_DISABLE_P); iop_desc_init_pq_zero_sum() 356 u_desc_ctrl.field.int_en = flags & DMA_PREP_INTERRUPT; iop_desc_init_pq_zero_sum()
|
/linux-4.1.27/drivers/scsi/be2iscsi/ |
H A D | be.h | 161 #define AMAP_BIT_OFFSET(_struct, field) \ 162 (((size_t)&(((_struct *)0)->field))%32) 164 /* Returns the bit mask of the field that is NOT shifted into location. */ amap_mask() 178 #define AMAP_SET_BITS(_struct, field, ptr, val) \ 180 offsetof(_struct, field)/32, \ 181 amap_mask(sizeof(((_struct *)0)->field)), \ 182 AMAP_BIT_OFFSET(_struct, field), \ 191 #define AMAP_GET_BITS(_struct, field, ptr) \ 193 offsetof(_struct, field)/32, \ 194 amap_mask(sizeof(((_struct *)0)->field)), \ 195 AMAP_BIT_OFFSET(_struct, field))
|
/linux-4.1.27/arch/arm/mach-omap2/ |
H A D | vp.h | 47 * @vpconfig_erroroffset_shift: ERROROFFSET field shift in PRM_VP*_CONFIG reg 48 * @vpconfig_errorgain_shift: ERRORGAIN field shift in PRM_VP*_CONFIG reg 49 * @vpconfig_initvoltage_shift: INITVOLTAGE field shift in PRM_VP*_CONFIG reg 50 * @vstepmin_stepmin_shift: VSTEPMIN field shift in the PRM_VP*_VSTEPMIN reg 51 * @vstepmin_smpswaittimemin_shift: SMPSWAITTIMEMIN field shift in PRM_VP*_VSTEPMIN reg 52 * @vstepmax_stepmax_shift: VSTEPMAX field shift in the PRM_VP*_VSTEPMAX reg 53 * @vstepmax_smpswaittimemax_shift: SMPSWAITTIMEMAX field shift in PRM_VP*_VSTEPMAX reg 54 * @vlimitto_vddmin_shift: VDDMIN field shift in PRM_VP*_VLIMITTO reg 55 * @vlimitto_vddmax_shift: VDDMAX field shift in PRM_VP*_VLIMITTO reg 56 * @vlimitto_timeout_shift: TIMEOUT field shift in PRM_VP*_VLIMITTO reg 57 * @vpvoltage_mask: VPVOLTAGE field mask in PRM_VP*_VOLTAGE reg
|
H A D | sdram-nokia.c | 183 #define SDRC_SET_ONE(reg, st, end, field, rate) \ 185 memory_timings->field, (rate), #field) < 0) \ 188 #define SDRC_SET_ONE(reg, st, end, field, rate) \ 190 memory_timings->field) < 0) \ 221 #define SDRC_SET_ONE_PS(reg, st, end, field, rate) \ 223 memory_timings->field, \ 224 (rate), #field) < 0) \ 228 #define SDRC_SET_ONE_PS(reg, st, end, field, rate) \ 230 memory_timings->field, (rate)) < 0) \
|
H A D | vc.h | 29 * @data_shift: DATA field shift in PRM_VC_BYPASS_VAL register 30 * @slaveaddr_shift: SLAVEADDR field shift in PRM_VC_BYPASS_VAL register 31 * @regaddr_shift: REGADDR field shift in PRM_VC_BYPASS_VAL register 32 * @cmd_on_shift: ON field shift in PRM_VC_CMD_VAL_* register 33 * @cmd_onlp_shift: ONLP field shift in PRM_VC_CMD_VAL_* register 34 * @cmd_ret_shift: RET field shift in PRM_VC_CMD_VAL_* register 35 * @cmd_off_shift: OFF field shift in PRM_VC_CMD_VAL_* register 38 * @i2c_cfg_hsen_mask: high-speed mode bit field mask in I2C config register 39 * @i2c_mcode_mask: MCODE field mask for I2C config register
|
/linux-4.1.27/drivers/hid/usbhid/ |
H A D | hiddev.c | 135 struct hid_field *field; hiddev_lookup_usage() local 146 field = report->field[i]; hiddev_lookup_usage() 147 for (j = 0; j < field->maxusage; j++) { hiddev_lookup_usage() 148 if (field->usage[j].hid == uref->usage_code) { hiddev_lookup_usage() 152 return field; hiddev_lookup_usage() 187 void hiddev_hid_event(struct hid_device *hid, struct hid_field *field, hiddev_hid_event() argument 190 unsigned type = field->report_type; hiddev_hid_event() 197 uref.report_id = field->report->id; hiddev_hid_event() 198 uref.field_index = field->index; hiddev_hid_event() 199 uref.usage_index = (usage - field->usage); hiddev_hid_event() 456 struct hid_field *field; hiddev_ioctl_usage() local 482 field = report->field[uref->field_index]; hiddev_ioctl_usage() 483 if (uref->usage_index >= field->maxusage) hiddev_ioctl_usage() 486 uref->usage_code = field->usage[uref->usage_index].hid; hiddev_ioctl_usage() 500 field = hiddev_lookup_usage(hid, uref); hiddev_ioctl_usage() 501 if (field == NULL) hiddev_ioctl_usage() 512 field = report->field[uref->field_index]; hiddev_ioctl_usage() 515 if (uref->usage_index >= field->maxusage) hiddev_ioctl_usage() 517 } else if (uref->usage_index >= field->report_count) hiddev_ioctl_usage() 522 uref->usage_index + uref_multi->num_values > field->report_count)) hiddev_ioctl_usage() 528 uref->value = field->value[uref->usage_index]; hiddev_ioctl_usage() 534 field->value[uref->usage_index] = uref->value; hiddev_ioctl_usage() 538 i = field->usage[uref->usage_index].collection_index; hiddev_ioctl_usage() 544 field->value[uref->usage_index + i]; hiddev_ioctl_usage() 551 field->value[uref->usage_index + i] = hiddev_ioctl_usage() 606 struct hid_field *field; hiddev_ioctl() local 765 field = report->field[finfo.field_index]; hiddev_ioctl() 769 finfo.field_index = field->report_count - 1; hiddev_ioctl() 770 finfo.maxusage = field->maxusage; hiddev_ioctl() 771 finfo.flags = field->flags; hiddev_ioctl() 772 finfo.physical = field->physical; hiddev_ioctl() 773 finfo.logical = field->logical; hiddev_ioctl() 774 finfo.application = field->application; hiddev_ioctl() 775 finfo.logical_minimum = field->logical_minimum; hiddev_ioctl() 776 finfo.logical_maximum = field->logical_maximum; hiddev_ioctl() 777 finfo.physical_minimum = field->physical_minimum; hiddev_ioctl() 778 finfo.physical_maximum = field->physical_maximum; hiddev_ioctl() 779 finfo.unit_exponent = field->unit_exponent; hiddev_ioctl() 780 finfo.unit = field->unit; hiddev_ioctl()
|
H A D | hid-pidff.c | 61 the only field in that report */ 121 /* Special field key tables used to put special field keys into arrays */ 152 struct hid_field *field; member in struct:pidff_usage 174 /* Special field is a field that is not composed of 177 /* Special field in create_new_effect */ 184 /* Special field in device_control */ 187 /* Special field in block_load */ 190 /* Special field in effect_operation */ 202 * Scale an unsigned value with range 0..max for the given field 204 static int pidff_rescale(int i, int max, struct hid_field *field) pidff_rescale() argument 206 return i * (field->logical_maximum - field->logical_minimum) / max + pidff_rescale() 207 field->logical_minimum; pidff_rescale() 211 * Scale a signed value in range -0x8000..0x7fff for the given field 213 static int pidff_rescale_signed(int i, struct hid_field *field) pidff_rescale_signed() argument 216 0 ? i * field->logical_maximum / 0x7fff : i * pidff_rescale_signed() 217 field->logical_minimum / -0x8000; pidff_rescale_signed() 222 usage->value[0] = pidff_rescale(value, 0xffff, usage->field); pidff_set() 228 if (usage->field->logical_minimum < 0) pidff_set_signed() 229 usage->value[0] = pidff_rescale_signed(value, usage->field); pidff_set_signed() 233 pidff_rescale(-value, 0x8000, usage->field); pidff_set_signed() 236 pidff_rescale(value, 0x7fff, usage->field); pidff_set_signed() 253 pidff->set_envelope[PID_ATTACK_LEVEL].field); pidff_set_envelope_report() 257 pidff->set_envelope[PID_FADE_LEVEL].field); pidff_set_envelope_report() 321 pidff->set_effect[PID_GAIN].field->logical_maximum; pidff_set_effect_report() 733 struct hid_field *field = pidff_autocenter() local 734 pidff->block_load[PID_EFFECT_BLOCK_INDEX].field; pidff_autocenter() 737 pidff_playback_pid(pidff, field->logical_minimum, 0); pidff_autocenter() 741 pidff_playback_pid(pidff, field->logical_minimum, 1); pidff_autocenter() 744 pidff->block_load[PID_EFFECT_BLOCK_INDEX].field->logical_minimum; pidff_autocenter() 778 if (report->field[i]->maxusage != pidff_find_fields() 779 report->field[i]->report_count) { pidff_find_fields() 783 for (j = 0; j < report->field[i]->maxusage; j++) { pidff_find_fields() 784 if (report->field[i]->usage[j].hid == pidff_find_fields() 788 usage[k].field = report->field[i]; pidff_find_fields() 790 &report->field[i]->value[j]; pidff_find_fields() 834 ret = pidff_check_usage(report->field[0]->logical); pidff_find_reports() 836 hid_dbg(hid, "found usage 0x%02x from field->logical\n", pidff_find_reports() 844 * different usages for the report and the field, in which pidff_find_reports() 849 i = report->field[0]->usage[0].collection_index; pidff_find_reports() 881 * Find a field with a specific usage within a report 889 if (report->field[i]->logical == (HID_UP_PID | usage) && pidff_find_special_field() 890 report->field[i]->report_count > 0) { pidff_find_special_field() 892 report->field[i]->logical_minimum == 1) pidff_find_special_field() 893 return report->field[i]; pidff_find_special_field() 925 #define PIDFF_FIND_SPECIAL_KEYS(keys, field, name) \ 926 pidff_find_special_keys(pidff->keys, pidff->field, pidff_ ## name, \ 963 hid_err(pidff->hid, "direction field not found\n"); pidff_find_special_fields() 968 hid_err(pidff->hid, "device control field not found\n"); pidff_find_special_fields() 973 hid_err(pidff->hid, "block load status field not found\n"); pidff_find_special_fields() 978 hid_err(pidff->hid, "effect operation field not found\n"); pidff_find_special_fields() 1220 pidff->block_load[PID_EFFECT_BLOCK_INDEX].field->logical_minimum + 1) { pidff_check_autocenter() 1289 pidff->block_load[PID_EFFECT_BLOCK_INDEX].field->logical_maximum - hid_pidff_init() 1290 pidff->block_load[PID_EFFECT_BLOCK_INDEX].field->logical_minimum + hid_pidff_init()
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | bootparam_utils.h | 17 * Note: efi_info is commonly left uninitialized, but that field has a 24 * this field. The purpose of this field is to guarantee sanitize_boot_params() 33 * (or any other) individual field, or you will soon have sanitize_boot_params()
|
/linux-4.1.27/include/uapi/linux/netfilter_ipv4/ |
H A D | ipt_ah.h | 13 /* Values for "invflags" field in struct ipt_ah. */
|
/linux-4.1.27/include/uapi/linux/netfilter_ipv6/ |
H A D | ip6t_mh.h | 12 /* Values for "invflags" field in struct ip6t_mh. */
|
H A D | ip6t_opts.h | 20 /* Values for "invflags" field in struct ip6t_rt. */
|
H A D | ip6t_ah.h | 17 /* Values for "invflags" field in struct ip6t_ah. */
|
H A D | ip6t_frag.h | 20 /* Values for "invflags" field in struct ip6t_frag. */
|
/linux-4.1.27/arch/mips/mm/ |
H A D | fault.c | 45 const int field = sizeof(unsigned long) * 2; __do_page_fault() local 54 current->comm, current->pid, field, address, write, __do_page_fault() 55 field, regs->cp0_epc); __do_page_fault() 131 field, address, write, __do_page_fault() 132 field, regs->cp0_epc); __do_page_fault() 141 field, address, write, __do_page_fault() 142 field, regs->cp0_epc); __do_page_fault() 217 field, address); __do_page_fault() 218 pr_info("epc = %0*lx in", field, __do_page_fault() 221 pr_info("ra = %0*lx in", field, __do_page_fault() 249 raw_smp_processor_id(), field, address, field, regs->cp0_epc, __do_page_fault() 250 field, regs->regs[31]); __do_page_fault() 280 field, address, __do_page_fault() 281 field, (unsigned long) regs->cp0_epc, __do_page_fault() 282 field, (unsigned long) regs->regs[31]); __do_page_fault()
|
/linux-4.1.27/drivers/media/platform/davinci/ |
H A D | vpif_capture.h | 31 #define VPIF_VALID_FIELD(field) (((V4L2_FIELD_ANY == field) || \ 32 (V4L2_FIELD_NONE == field)) || \ 33 (((V4L2_FIELD_INTERLACED == field) || \ 34 (V4L2_FIELD_SEQ_TB == field)) || \ 35 (V4L2_FIELD_SEQ_BT == field))) 96 /* Indicates id of the field which is being displayed */
|
H A D | vpif_display.h | 28 #define VPIF_VALID_FIELD(field) \ 29 (((V4L2_FIELD_ANY == field) || (V4L2_FIELD_NONE == field)) || \ 30 (((V4L2_FIELD_INTERLACED == field) || (V4L2_FIELD_SEQ_TB == field)) || \ 31 (V4L2_FIELD_SEQ_BT == field))) 105 u32 field_id; /* Indicates id of the field
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
H A D | radeon_acpi.h | 74 * WORD - structure size in bytes (includes size field) 104 * WORD - structure size in bytes (includes size field) 110 * WORD - structure size in bytes (includes size field) 128 * WORD - structure size in bytes (includes size field) 164 * WORD - structure size in bytes (includes size field) 168 * WORD - structure size in bytes (includes size field) 187 * WORD - structure size in bytes (includes size field) 197 * WORD - structure size in bytes (includes size field) 212 * WORD - structure size in bytes (includes size field) 221 * WORD - structure size in bytes (includes size field) 227 * WORD - structure size in bytes (includes size field) 234 * WORD - structure size in bytes (includes size field) 244 * WORD - device structure size in bytes (excludes device size field) 260 * WORD - structure size in bytes (includes size field) 277 * WORD - structure size in bytes (includes size field) 297 * WORD - structure size in bytes (includes size field) 304 * WORD - structure size in bytes (includes size field) 313 * WORD - structure size in bytes (includes size field) 320 * WORD - structure size in bytes (includes size field) 327 * WORD - structure size in bytes (includes size field) 336 * WORD - connector structure size in bytes (excludes connector size field) 351 * WORD - port structure size in bytes (excludes port size field) 382 * WORD - structure size in bytes (includes size field) 395 * WORD - structure size in bytes (includes size field) 404 * WORD - structure size in bytes (includes size field) 411 * WORD - structure size in bytes (includes size field) 437 * WORD - structure size in bytes (includes size field) 441 * WORD - structure size in bytes (includes size field)
|
/linux-4.1.27/include/trace/events/ |
H A D | v4l2.h | 34 #define show_field(field) \ 35 __print_symbolic(field, SHOW_FIELD) 107 __field(u32, field) \ 128 __entry->field = buf->field; \ 153 "field = %s, timestamp = %llu, timecode = { " \ 161 show_field(__entry->field), \
|
/linux-4.1.27/drivers/message/fusion/lsi/ |
H A D | mpi_sas.h | 18 * Added PrimFlags and Primitive field to SAS IO Unit 22 * Added DevHandle field to SAS IO Unit Control request and 24 * 10-11-06 01.05.04 Fixed the name of a define for Operation field of SAS IO 64 * Values for the SAS DeviceInfo field used in SAS Device Status Change Event 118 /* values for PassthroughFlags field */ 121 /* values for ConnectionRate field */ 173 /* values for PassthroughFlags field */ 184 /* values for ConnectionRate field */ 238 /* values for the Operation field */ 253 /* values for the PrimFlags field */
|
/linux-4.1.27/drivers/scsi/fcoe/ |
H A D | fcoe_sysfs.c | 148 #define fcoe_ctlr_show_function(field, format_string, sz, cast) \ 149 static ssize_t show_fcoe_ctlr_device_##field(struct device *dev, \ 154 if (ctlr->f->get_fcoe_ctlr_##field) \ 155 ctlr->f->get_fcoe_ctlr_##field(ctlr); \ 157 cast fcoe_ctlr_##field(ctlr)); \ 160 #define fcoe_fcf_show_function(field, format_string, sz, cast) \ 161 static ssize_t show_fcoe_fcf_device_##field(struct device *dev, \ 167 if (ctlr->f->get_fcoe_fcf_##field) \ 168 ctlr->f->get_fcoe_fcf_##field(fcf); \ 170 cast fcoe_fcf_##field(fcf)); \ 173 #define fcoe_ctlr_private_show_function(field, format_string, sz, cast) \ 174 static ssize_t show_fcoe_ctlr_device_##field(struct device *dev, \ 179 return snprintf(buf, sz, format_string, cast fcoe_ctlr_##field(ctlr)); \ 182 #define fcoe_fcf_private_show_function(field, format_string, sz, cast) \ 183 static ssize_t show_fcoe_fcf_device_##field(struct device *dev, \ 188 return snprintf(buf, sz, format_string, cast fcoe_fcf_##field(fcf)); \ 191 #define fcoe_ctlr_private_rd_attr(field, format_string, sz) \ 192 fcoe_ctlr_private_show_function(field, format_string, sz, ) \ 193 static FCOE_DEVICE_ATTR(ctlr, field, S_IRUGO, \ 194 show_fcoe_ctlr_device_##field, NULL) 196 #define fcoe_ctlr_rd_attr(field, format_string, sz) \ 197 fcoe_ctlr_show_function(field, format_string, sz, ) \ 198 static FCOE_DEVICE_ATTR(ctlr, field, S_IRUGO, \ 199 show_fcoe_ctlr_device_##field, NULL) 201 #define fcoe_fcf_rd_attr(field, format_string, sz) \ 202 fcoe_fcf_show_function(field, format_string, sz, ) \ 203 static FCOE_DEVICE_ATTR(fcf, field, S_IRUGO, \ 204 show_fcoe_fcf_device_##field, NULL) 206 #define fcoe_fcf_private_rd_attr(field, format_string, sz) \ 207 fcoe_fcf_private_show_function(field, format_string, sz, ) \ 208 static FCOE_DEVICE_ATTR(fcf, field, S_IRUGO, \ 209 show_fcoe_fcf_device_##field, NULL) 211 #define fcoe_ctlr_private_rd_attr_cast(field, format_string, sz, cast) \ 212 fcoe_ctlr_private_show_function(field, format_string, sz, (cast)) \ 213 static FCOE_DEVICE_ATTR(ctlr, field, S_IRUGO, \ 214 show_fcoe_ctlr_device_##field, NULL) 216 #define fcoe_fcf_private_rd_attr_cast(field, format_string, sz, cast) \ 217 fcoe_fcf_private_show_function(field, format_string, sz, (cast)) \ 218 static FCOE_DEVICE_ATTR(fcf, field, S_IRUGO, \ 219 show_fcoe_fcf_device_##field, NULL)
|
/linux-4.1.27/drivers/net/ethernet/apm/xgene/ |
H A D | xgene_enet_main.h | 154 /* Set the specified value into a bit-field defined by its starting position 162 #define SET_VAL(field, val) \ 163 xgene_enet_set_field_value(field ## _POS, field ## _LEN, val) 165 #define SET_BIT(field) \ 166 xgene_enet_set_field_value(field ## _POS, 1, 1) 168 /* Get the value from a bit-field defined by its starting position 176 #define GET_VAL(field, src) \ 177 xgene_enet_get_field_value(field ## _POS, field ## _LEN, src)
|
/linux-4.1.27/include/media/ |
H A D | tvp7002.h | 41 * 0 - The field ID output is set to logic 1 for an odd field 42 * (field 1) and set to logic 0 for an even field (field 0).
|
/linux-4.1.27/tools/perf/util/scripting-engines/ |
H A D | trace-event-perl.c | 96 static void define_symbolic_values(struct print_flag_sym *field, define_symbolic_values() argument 100 define_symbolic_value(ev_name, field_name, field->value, field->str); define_symbolic_values() 101 if (field->next) define_symbolic_values() 102 define_symbolic_values(field->next, ev_name, field_name); define_symbolic_values() 154 static void define_flag_values(struct print_flag_sym *field, define_flag_values() argument 158 define_flag_value(ev_name, field_name, field->value, field->str); define_flag_values() 159 if (field->next) define_flag_values() 160 define_flag_values(field->next, ev_name, field_name); define_flag_values() 200 cur_field_name = strdup(args->field.name); define_event_symbols() 203 define_event_symbols(event, ev_name, args->flags.field); define_event_symbols() 208 define_event_symbols(event, ev_name, args->symbol.field); define_event_symbols() 214 define_event_symbols(event, ev_name, args->hex.field); define_event_symbols() 218 define_event_symbols(event, ev_name, args->int_array.field); define_event_symbols() 252 struct format_field *field; perl_process_tracepoint() local 297 for (field = event->format.fields; field; field = field->next) { perl_process_tracepoint() 298 if (field->flags & FIELD_IS_STRING) { perl_process_tracepoint() 300 if (field->flags & FIELD_IS_DYNAMIC) { perl_process_tracepoint() 301 offset = *(int *)(data + field->offset); perl_process_tracepoint() 304 offset = field->offset; perl_process_tracepoint() 307 val = read_size(event, data + field->offset, perl_process_tracepoint() 308 field->size); perl_process_tracepoint() 309 if (field->flags & FIELD_IS_SIGNED) { perl_process_tracepoint()
|
/linux-4.1.27/drivers/scsi/ |
H A D | scsi_transport_sas.c | 453 #define sas_phy_show_simple(field, name, format_string, cast) \ 460 return snprintf(buf, 20, format_string, cast phy->field); \ 463 #define sas_phy_simple_attr(field, name, format_string, type) \ 464 sas_phy_show_simple(field, name, format_string, (type)) \ 467 #define sas_phy_show_protocol(field, name) \ 474 if (!phy->field) \ 476 return get_sas_protocol_names(phy->field, buf); \ 479 #define sas_phy_protocol_attr(field, name) \ 480 sas_phy_show_protocol(field, name) \ 483 #define sas_phy_show_linkspeed(field) \ 485 show_sas_phy_##field(struct device *dev, \ 490 return get_sas_linkspeed_names(phy->field, buf); \ 494 #define sas_phy_store_linkspeed(field) \ 496 store_sas_phy_##field(struct device *dev, \ 510 rates.field = value; \ 516 #define sas_phy_linkspeed_rw_attr(field) \ 517 sas_phy_show_linkspeed(field) \ 518 sas_phy_store_linkspeed(field) \ 519 static DEVICE_ATTR(field, S_IRUGO, show_sas_phy_##field, \ 520 store_sas_phy_##field) 522 #define sas_phy_linkspeed_attr(field) \ 523 sas_phy_show_linkspeed(field) \ 524 static DEVICE_ATTR(field, S_IRUGO, show_sas_phy_##field, NULL) 527 #define sas_phy_show_linkerror(field) \ 529 show_sas_phy_##field(struct device *dev, \ 540 return snprintf(buf, 20, "%u\n", phy->field); \ 543 #define sas_phy_linkerror_attr(field) \ 544 sas_phy_show_linkerror(field) \ 545 static DEVICE_ATTR(field, S_IRUGO, show_sas_phy_##field, NULL) 820 #define sas_port_show_simple(field, name, format_string, cast) \ 827 return snprintf(buf, 20, format_string, cast port->field); \ 830 #define sas_port_simple_attr(field, name, format_string, type) \ 831 sas_port_show_simple(field, name, format_string, (type)) \ 1167 #define sas_rphy_show_simple(field, name, format_string, cast) \ 1174 return snprintf(buf, 20, format_string, cast rphy->field); \ 1177 #define sas_rphy_simple_attr(field, name, format_string, type) \ 1178 sas_rphy_show_simple(field, name, format_string, (type)) \ 1182 #define sas_rphy_show_protocol(field, name) \ 1189 if (!rphy->field) \ 1191 return get_sas_protocol_names(rphy->field, buf); \ 1194 #define sas_rphy_protocol_attr(field, name) \ 1195 sas_rphy_show_protocol(field, name) \ 1311 #define sas_end_dev_show_simple(field, name, format_string, cast) \ 1319 return snprintf(buf, 20, format_string, cast rdev->field); \ 1322 #define sas_end_dev_simple_attr(field, name, format_string, type) \ 1323 sas_end_dev_show_simple(field, name, format_string, (type)) \ 1340 #define sas_expander_show_simple(field, name, format_string, cast) \ 1348 return snprintf(buf, 20, format_string, cast edev->field); \ 1351 #define sas_expander_simple_attr(field, name, format_string, type) \ 1352 sas_expander_show_simple(field, name, format_string, (type)) \ 1735 #define SETUP_TEMPLATE(attrb, field, perm, test) \ 1736 i->private_##attrb[count] = dev_attr_##field; \ 1742 #define SETUP_TEMPLATE_RW(attrb, field, perm, test, ro_test, ro_perm) \ 1743 i->private_##attrb[count] = dev_attr_##field; \ 1753 #define SETUP_RPORT_ATTRIBUTE(field) \ 1754 SETUP_TEMPLATE(rphy_attrs, field, S_IRUGO, 1) 1756 #define SETUP_OPTIONAL_RPORT_ATTRIBUTE(field, func) \ 1757 SETUP_TEMPLATE(rphy_attrs, field, S_IRUGO, i->f->func) 1759 #define SETUP_PHY_ATTRIBUTE(field) \ 1760 SETUP_TEMPLATE(phy_attrs, field, S_IRUGO, 1) 1762 #define SETUP_PHY_ATTRIBUTE_RW(field) \ 1763 SETUP_TEMPLATE_RW(phy_attrs, field, S_IRUGO | S_IWUSR, 1, \ 1766 #define SETUP_OPTIONAL_PHY_ATTRIBUTE_RW(field, func) \ 1767 SETUP_TEMPLATE_RW(phy_attrs, field, S_IRUGO | S_IWUSR, 1, \ 1770 #define SETUP_PORT_ATTRIBUTE(field) \ 1771 SETUP_TEMPLATE(port_attrs, field, S_IRUGO, 1) 1773 #define SETUP_OPTIONAL_PHY_ATTRIBUTE(field, func) \ 1774 SETUP_TEMPLATE(phy_attrs, field, S_IRUGO, i->f->func) 1776 #define SETUP_PHY_ATTRIBUTE_WRONLY(field) \ 1777 SETUP_TEMPLATE(phy_attrs, field, S_IWUSR, 1) 1779 #define SETUP_OPTIONAL_PHY_ATTRIBUTE_WRONLY(field, func) \ 1780 SETUP_TEMPLATE(phy_attrs, field, S_IWUSR, i->f->func) 1782 #define SETUP_END_DEV_ATTRIBUTE(field) \ 1783 SETUP_TEMPLATE(end_dev_attrs, field, S_IRUGO, 1) 1785 #define SETUP_EXPANDER_ATTRIBUTE(field) \ 1786 SETUP_TEMPLATE(expander_attrs, expander_##field, S_IRUGO, 1)
|
H A D | scsi_transport_fc.c | 699 #define fc_rport_show_function(field, format_string, sz, cast) \ 701 show_fc_rport_##field (struct device *dev, \ 707 if ((i->f->get_rport_##field) && \ 711 i->f->get_rport_##field(rport); \ 712 return snprintf(buf, sz, format_string, cast rport->field); \ 715 #define fc_rport_store_function(field) \ 717 store_fc_rport_##field(struct device *dev, \ 733 i->f->set_rport_##field(rport, val); \ 737 #define fc_rport_rd_attr(field, format_string, sz) \ 738 fc_rport_show_function(field, format_string, sz, ) \ 739 static FC_DEVICE_ATTR(rport, field, S_IRUGO, \ 740 show_fc_rport_##field, NULL) 742 #define fc_rport_rd_attr_cast(field, format_string, sz, cast) \ 743 fc_rport_show_function(field, format_string, sz, (cast)) \ 744 static FC_DEVICE_ATTR(rport, field, S_IRUGO, \ 745 show_fc_rport_##field, NULL) 747 #define fc_rport_rw_attr(field, format_string, sz) \ 748 fc_rport_show_function(field, format_string, sz, ) \ 749 fc_rport_store_function(field) \ 750 static FC_DEVICE_ATTR(rport, field, S_IRUGO | S_IWUSR, \ 751 show_fc_rport_##field, \ 752 store_fc_rport_##field) 755 #define fc_private_rport_show_function(field, format_string, sz, cast) \ 757 show_fc_rport_##field (struct device *dev, \ 761 return snprintf(buf, sz, format_string, cast rport->field); \ 764 #define fc_private_rport_rd_attr(field, format_string, sz) \ 765 fc_private_rport_show_function(field, format_string, sz, ) \ 766 static FC_DEVICE_ATTR(rport, field, S_IRUGO, \ 767 show_fc_rport_##field, NULL) 769 #define fc_private_rport_rd_attr_cast(field, format_string, sz, cast) \ 770 fc_private_rport_show_function(field, format_string, sz, (cast)) \ 771 static FC_DEVICE_ATTR(rport, field, S_IRUGO, \ 772 show_fc_rport_##field, NULL) 791 #define SETUP_RPORT_ATTRIBUTE_RD(field) \ 792 i->private_rport_attrs[count] = device_attr_rport_##field; \ 796 if (i->f->show_rport_##field) \ 799 #define SETUP_PRIVATE_RPORT_ATTRIBUTE_RD(field) \ 800 i->private_rport_attrs[count] = device_attr_rport_##field; \ 806 #define SETUP_RPORT_ATTRIBUTE_RW(field) \ 807 i->private_rport_attrs[count] = device_attr_rport_##field; \ 808 if (!i->f->set_rport_##field) { \ 813 if (i->f->show_rport_##field) \ 816 #define SETUP_PRIVATE_RPORT_ATTRIBUTE_RW(field) \ 818 i->private_rport_attrs[count] = device_attr_rport_##field; \ 1014 #define fc_starget_show_function(field, format_string, sz, cast) \ 1016 show_fc_starget_##field (struct device *dev, \ 1024 fc_starget_##field(starget) = rport->field; \ 1025 else if (i->f->get_starget_##field) \ 1026 i->f->get_starget_##field(starget); \ 1028 cast fc_starget_##field(starget)); \ 1031 #define fc_starget_rd_attr(field, format_string, sz) \ 1032 fc_starget_show_function(field, format_string, sz, ) \ 1033 static FC_DEVICE_ATTR(starget, field, S_IRUGO, \ 1034 show_fc_starget_##field, NULL) 1036 #define fc_starget_rd_attr_cast(field, format_string, sz, cast) \ 1037 fc_starget_show_function(field, format_string, sz, (cast)) \ 1038 static FC_DEVICE_ATTR(starget, field, S_IRUGO, \ 1039 show_fc_starget_##field, NULL) 1041 #define SETUP_STARGET_ATTRIBUTE_RD(field) \ 1042 i->private_starget_attrs[count] = device_attr_starget_##field; \ 1046 if (i->f->show_starget_##field) \ 1049 #define SETUP_STARGET_ATTRIBUTE_RW(field) \ 1050 i->private_starget_attrs[count] = device_attr_starget_##field; \ 1051 if (!i->f->set_starget_##field) { \ 1056 if (i->f->show_starget_##field) \ 1069 #define fc_vport_show_function(field, format_string, sz, cast) \ 1071 show_fc_vport_##field (struct device *dev, \ 1077 if ((i->f->get_vport_##field) && \ 1079 i->f->get_vport_##field(vport); \ 1080 return snprintf(buf, sz, format_string, cast vport->field); \ 1083 #define fc_vport_store_function(field) \ 1085 store_fc_vport_##field(struct device *dev, \ 1099 i->f->set_vport_##field(vport, val); \ 1103 #define fc_vport_store_str_function(field, slen) \ 1105 store_fc_vport_##field(struct device *dev, \ 1119 memcpy(vport->field, buf, cnt); \ 1120 i->f->set_vport_##field(vport); \ 1124 #define fc_vport_rd_attr(field, format_string, sz) \ 1125 fc_vport_show_function(field, format_string, sz, ) \ 1126 static FC_DEVICE_ATTR(vport, field, S_IRUGO, \ 1127 show_fc_vport_##field, NULL) 1129 #define fc_vport_rd_attr_cast(field, format_string, sz, cast) \ 1130 fc_vport_show_function(field, format_string, sz, (cast)) \ 1131 static FC_DEVICE_ATTR(vport, field, S_IRUGO, \ 1132 show_fc_vport_##field, NULL) 1134 #define fc_vport_rw_attr(field, format_string, sz) \ 1135 fc_vport_show_function(field, format_string, sz, ) \ 1136 fc_vport_store_function(field) \ 1137 static FC_DEVICE_ATTR(vport, field, S_IRUGO | S_IWUSR, \ 1138 show_fc_vport_##field, \ 1139 store_fc_vport_##field) 1141 #define fc_private_vport_show_function(field, format_string, sz, cast) \ 1143 show_fc_vport_##field (struct device *dev, \ 1147 return snprintf(buf, sz, format_string, cast vport->field); \ 1150 #define fc_private_vport_store_u32_function(field) \ 1152 store_fc_vport_##field(struct device *dev, \ 1164 vport->field = val; \ 1169 #define fc_private_vport_rd_attr(field, format_string, sz) \ 1170 fc_private_vport_show_function(field, format_string, sz, ) \ 1171 static FC_DEVICE_ATTR(vport, field, S_IRUGO, \ 1172 show_fc_vport_##field, NULL) 1174 #define fc_private_vport_rd_attr_cast(field, format_string, sz, cast) \ 1175 fc_private_vport_show_function(field, format_string, sz, (cast)) \ 1176 static FC_DEVICE_ATTR(vport, field, S_IRUGO, \ 1177 show_fc_vport_##field, NULL) 1179 #define fc_private_vport_rw_u32_attr(field, format_string, sz) \ 1180 fc_private_vport_show_function(field, format_string, sz, ) \ 1181 fc_private_vport_store_u32_function(field) \ 1182 static FC_DEVICE_ATTR(vport, field, S_IRUGO | S_IWUSR, \ 1183 show_fc_vport_##field, \ 1184 store_fc_vport_##field) 1204 #define SETUP_VPORT_ATTRIBUTE_RD(field) \ 1205 i->private_vport_attrs[count] = device_attr_vport_##field; \ 1209 if (i->f->get_##field) \ 1213 #define SETUP_PRIVATE_VPORT_ATTRIBUTE_RD(field) \ 1214 i->private_vport_attrs[count] = device_attr_vport_##field; \ 1220 #define SETUP_VPORT_ATTRIBUTE_WR(field) \ 1221 i->private_vport_attrs[count] = device_attr_vport_##field; \ 1223 if (i->f->field) \ 1227 #define SETUP_VPORT_ATTRIBUTE_RW(field) \ 1228 i->private_vport_attrs[count] = device_attr_vport_##field; \ 1229 if (!i->f->set_vport_##field) { \ 1237 #define SETUP_PRIVATE_VPORT_ATTRIBUTE_RW(field) \ 1239 i->private_vport_attrs[count] = device_attr_vport_##field; \ 1338 #define fc_host_show_function(field, format_string, sz, cast) \ 1340 show_fc_host_##field (struct device *dev, \ 1345 if (i->f->get_host_##field) \ 1346 i->f->get_host_##field(shost); \ 1347 return snprintf(buf, sz, format_string, cast fc_host_##field(shost)); \ 1350 #define fc_host_store_function(field) \ 1352 store_fc_host_##field(struct device *dev, \ 1364 i->f->set_host_##field(shost, val); \ 1368 #define fc_host_store_str_function(field, slen) \ 1370 store_fc_host_##field(struct device *dev, \ 1383 memcpy(fc_host_##field(shost), buf, cnt); \ 1384 i->f->set_host_##field(shost); \ 1388 #define fc_host_rd_attr(field, format_string, sz) \ 1389 fc_host_show_function(field, format_string, sz, ) \ 1390 static FC_DEVICE_ATTR(host, field, S_IRUGO, \ 1391 show_fc_host_##field, NULL) 1393 #define fc_host_rd_attr_cast(field, format_string, sz, cast) \ 1394 fc_host_show_function(field, format_string, sz, (cast)) \ 1395 static FC_DEVICE_ATTR(host, field, S_IRUGO, \ 1396 show_fc_host_##field, NULL) 1398 #define fc_host_rw_attr(field, format_string, sz) \ 1399 fc_host_show_function(field, format_string, sz, ) \ 1400 fc_host_store_function(field) \ 1401 static FC_DEVICE_ATTR(host, field, S_IRUGO | S_IWUSR, \ 1402 show_fc_host_##field, \ 1403 store_fc_host_##field) 1422 #define SETUP_HOST_ATTRIBUTE_RD(field) \ 1423 i->private_host_attrs[count] = device_attr_host_##field; \ 1427 if (i->f->show_host_##field) \ 1430 #define SETUP_HOST_ATTRIBUTE_RD_NS(field) \ 1431 i->private_host_attrs[count] = device_attr_host_##field; \ 1437 #define SETUP_HOST_ATTRIBUTE_RW(field) \ 1438 i->private_host_attrs[count] = device_attr_host_##field; \ 1439 if (!i->f->set_host_##field) { \ 1444 if (i->f->show_host_##field) \ 1448 #define fc_private_host_show_function(field, format_string, sz, cast) \ 1450 show_fc_host_##field (struct device *dev, \ 1454 return snprintf(buf, sz, format_string, cast fc_host_##field(shost)); \ 1457 #define fc_private_host_rd_attr(field, format_string, sz) \ 1458 fc_private_host_show_function(field, format_string, sz, ) \ 1459 static FC_DEVICE_ATTR(host, field, S_IRUGO, \ 1460 show_fc_host_##field, NULL) 1462 #define fc_private_host_rd_attr_cast(field, format_string, sz, cast) \ 1463 fc_private_host_show_function(field, format_string, sz, (cast)) \ 1464 static FC_DEVICE_ATTR(host, field, S_IRUGO, \ 1465 show_fc_host_##field, NULL) 1467 #define SETUP_PRIVATE_HOST_ATTRIBUTE_RD(field) \ 1468 i->private_host_attrs[count] = device_attr_host_##field; \ 1474 #define SETUP_PRIVATE_HOST_ATTRIBUTE_RW(field) \ 1476 i->private_host_attrs[count] = device_attr_host_##field; \ 3595 /* we're only returning the result field in the reply */ fc_bsg_jobdone()
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A D | perf_event_server.h | 99 * Select field: this expresses the constraint that some set of bits 101 * select field, the mask contains 1s in every bit of the field, and 104 * that set the same field in their masks have the same value in their 107 * Add field: this expresses the constraint that there can be at most 108 * N events in a particular class. A field of k bits can be used for 109 * N <= 2^(k-1) - 1. The mask has the most significant bit of the field 111 * bit of the field set. In addition, the 'add_fields' and 'test_adder' 113 * add_fields value contains 1 in the LSB of the field, and the 114 * test_adder contains 2^(k-1) - 1 - N in the field. 116 * NAND field: this expresses the constraint that you may not have events 119 * possible.) For N classes, the field is N+1 bits wide, and each class 123 * bit set in the field. 126 * field, then it will have 0 in both the mask and value for that field.
|
H A D | dbdma.h | 48 __le32 cmd_dep; /* command-dependent field */ 53 /* DBDMA command values in command field */ 63 /* Key values in command field */ 72 /* Interrupt control values in command field */ 78 /* Branch control values in command field */ 84 /* Wait control values in command field */
|
/linux-4.1.27/include/trace/ |
H A D | ftrace.h | 209 * struct ftrace_raw_<call> *field; <-- defined in stage 1 221 * field = (typeof(field))entry; 239 #define __entry field 245 #define __get_dynamic_array(field) \ 246 ((void *)__entry + (__entry->__data_loc_##field & 0xffff)) 249 #define __get_dynamic_array_len(field) \ 250 ((__entry->__data_loc_##field >> 16) & 0xffff) 253 #define __get_str(field) (char *)__get_dynamic_array(field) 256 #define __get_bitmask(field) \ 258 void *__bitmask = __get_dynamic_array(field); \ 260 __bitmask_size = __get_dynamic_array_len(field); \ 312 struct ftrace_raw_##call *field; \ 315 field = (typeof(field))iter->ent; \ 335 struct ftrace_raw_##template *field; \ 346 field = (typeof(field))entry; \ 360 offsetof(typeof(field), item), \ 361 sizeof(field.item), \ 369 offsetof(typeof(field), item), \ 370 sizeof(field.item), \ 387 offsetof(typeof(field), item), \ 388 sizeof(field.item), \ 397 offsetof(typeof(field), __data_loc_##item), \ 398 sizeof(field.__data_loc_##item), \ 412 struct ftrace_raw_##call field; \ 640 #define __get_bitmask(field) (char *)__get_dynamic_array(field) 776 #define __get_dynamic_array(field) \ 777 ((void *)__entry + (__entry->__data_loc_##field & 0xffff)) 780 #define __get_dynamic_array_len(field) \ 781 ((__entry->__data_loc_##field >> 16) & 0xffff) 784 #define __get_str(field) (char *)__get_dynamic_array(field) 787 #define __get_bitmask(field) (char *)__get_dynamic_array(field)
|
/linux-4.1.27/arch/m32r/kernel/ |
H A D | module.c | 110 /* RELA must has 0 at relocation field. */ apply_relocate_add() 118 /* RELA must has 0 at relocation field. */ apply_relocate_add() 125 /* RELA must has 0 at relocation field. */ apply_relocate_add() 133 /* RELA must has 0 at relocation field. */ apply_relocate_add() 140 /* RELA must has 0 at relocation field. */ apply_relocate_add() 155 /* RELA must has 0 at relocation field. */ apply_relocate_add() 156 printk(KERN_ERR "module %s: illegal relocation field: %u\n", apply_relocate_add() 187 /* RELA must has 0 at relocation field. */ apply_relocate_add() 188 printk(KERN_ERR "module %s: illegal relocation field: %u\n", apply_relocate_add()
|
/linux-4.1.27/sound/soc/atmel/ |
H A D | atmel_ssc_dai.h | 56 /* START bit field values */ 67 /* CKI bit field values */ 71 /* CKO bit field values */ 76 /* CKS bit field values */ 81 /* FSEDGE bit field values */ 85 /* FSOS bit field values */
|
/linux-4.1.27/drivers/ata/ |
H A D | libata-transport.c | 204 #define ata_port_show_simple(field, name, format_string, cast) \ 211 return snprintf(buf, 20, format_string, cast ap->field); \ 214 #define ata_port_simple_attr(field, name, format_string, type) \ 215 ata_port_show_simple(field, name, format_string, (type)) \ 327 #define ata_link_show_linkspeed(field, format) \ noop() 329 show_ata_link_##field(struct device *dev, \ noop() 334 return sprintf(buf, "%s\n", sata_spd_string(format(link->field))); \ noop() 337 #define ata_link_linkspeed_attr(field, format) \ 338 ata_link_show_linkspeed(field, format) \ 339 static DEVICE_ATTR(field, S_IRUGO, show_ata_link_##field, NULL) 453 #define ata_dev_show_class(title, field) \ 455 show_ata_dev_##field(struct device *dev, \ 460 return get_ata_##title##_names(ata_dev->field, buf); \ 463 #define ata_dev_attr(title, field) \ 464 ata_dev_show_class(title, field) \ 465 static DEVICE_ATTR(field, S_IRUGO, show_ata_dev_##field, NULL) 473 #define ata_dev_show_simple(field, format_string, cast) \ 475 show_ata_dev_##field(struct device *dev, \ 480 return snprintf(buf, 20, format_string, cast ata_dev->field); \ 483 #define ata_dev_simple_attr(field, format_string, type) \ 484 ata_dev_show_simple(field, format_string, (type)) \ 485 static DEVICE_ATTR(field, S_IRUGO, \ 486 show_ata_dev_##field, NULL) 689 #define SETUP_TEMPLATE(attrb, field, perm, test) \ 690 i->private_##attrb[count] = dev_attr_##field; \ 696 #define SETUP_LINK_ATTRIBUTE(field) \ 697 SETUP_TEMPLATE(link_attrs, field, S_IRUGO, 1) 699 #define SETUP_PORT_ATTRIBUTE(field) \ 700 SETUP_TEMPLATE(port_attrs, field, S_IRUGO, 1) 702 #define SETUP_DEV_ATTRIBUTE(field) \ 703 SETUP_TEMPLATE(dev_attrs, field, S_IRUGO, 1)
|
/linux-4.1.27/arch/arm/include/asm/hardware/ |
H A D | iop3xx-adma.h | 466 struct iop3xx_dma_desc_ctrl field; iop_desc_init_memcpy() member in union:__anon162 470 u_desc_ctrl.field.mem_to_mem_en = 1; iop_desc_init_memcpy() 471 u_desc_ctrl.field.pci_transaction = 0xe; /* memory read block */ iop_desc_init_memcpy() 472 u_desc_ctrl.field.int_en = flags & DMA_PREP_INTERRUPT; iop_desc_init_memcpy() 484 struct iop3xx_aau_desc_ctrl field; iop_desc_init_memset() member in union:__anon163 488 u_desc_ctrl.field.blk1_cmd_ctrl = 0x2; /* memory block fill */ iop_desc_init_memset() 489 u_desc_ctrl.field.dest_write_en = 1; iop_desc_init_memset() 490 u_desc_ctrl.field.int_en = flags & DMA_PREP_INTERRUPT; iop_desc_init_memset() 502 struct iop3xx_aau_desc_ctrl field; iop3xx_desc_init_xor() member in union:__anon164 508 u_desc_ctrl.field.blk_ctrl = 0x3; /* use EDCR[2:0] */ iop3xx_desc_init_xor() 519 if (!u_desc_ctrl.field.blk_ctrl) { iop3xx_desc_init_xor() 521 u_desc_ctrl.field.blk_ctrl = 0x3; /* use EDCR[2:0] */ iop3xx_desc_init_xor() 533 if (!u_desc_ctrl.field.blk_ctrl) iop3xx_desc_init_xor() 534 u_desc_ctrl.field.blk_ctrl = 0x2; /* use EDCR0 */ iop3xx_desc_init_xor() 551 if (!u_desc_ctrl.field.blk_ctrl && src_cnt > 4) iop3xx_desc_init_xor() 552 u_desc_ctrl.field.blk_ctrl = 0x1; /* use mini-desc */ iop3xx_desc_init_xor() 555 u_desc_ctrl.field.dest_write_en = 1; iop3xx_desc_init_xor() 556 u_desc_ctrl.field.blk1_cmd_ctrl = 0x7; /* direct fill */ iop3xx_desc_init_xor() 557 u_desc_ctrl.field.int_en = flags & DMA_PREP_INTERRUPT; iop3xx_desc_init_xor() 579 struct iop3xx_aau_desc_ctrl field; iop_desc_init_zero_sum() member in union:__anon165 589 u_desc_ctrl.field.dest_write_en = 0; iop_desc_init_zero_sum() 590 u_desc_ctrl.field.zero_result_en = 1; iop_desc_init_zero_sum() 591 u_desc_ctrl.field.int_en = flags & DMA_PREP_INTERRUPT; iop_desc_init_zero_sum() 615 struct iop3xx_aau_desc_ctrl field; iop_desc_init_null_xor() member in union:__anon166 621 u_desc_ctrl.field.blk_ctrl = 0x3; /* use EDCR[2:0] */ iop_desc_init_null_xor() 625 if (!u_desc_ctrl.field.blk_ctrl) { iop_desc_init_null_xor() 627 u_desc_ctrl.field.blk_ctrl = 0x3; /* use EDCR[2:0] */ iop_desc_init_null_xor() 632 if (!u_desc_ctrl.field.blk_ctrl) iop_desc_init_null_xor() 633 u_desc_ctrl.field.blk_ctrl = 0x2; /* use EDCR0 */ iop_desc_init_null_xor() 637 if (!u_desc_ctrl.field.blk_ctrl && src_cnt > 4) iop_desc_init_null_xor() 638 u_desc_ctrl.field.blk_ctrl = 0x1; /* use mini-desc */ iop_desc_init_null_xor() 641 u_desc_ctrl.field.dest_write_en = 0; iop_desc_init_null_xor() 642 u_desc_ctrl.field.int_en = flags & DMA_PREP_INTERRUPT; iop_desc_init_null_xor()
|
/linux-4.1.27/drivers/sh/superhyway/ |
H A D | superhyway-sysfs.c | 17 #define superhyway_ro_attr(name, fmt, field) \ 21 return sprintf(buf, fmt, s->field); \
|
/linux-4.1.27/drivers/staging/fsl-mc/include/ |
H A D | mc-cmd.h | 70 #define MC_CMD_HDR_CMDID_O 52 /* Command ID field offset */ 71 #define MC_CMD_HDR_CMDID_S 12 /* Command ID field size */ 72 #define MC_CMD_HDR_TOKEN_O 38 /* Token field offset */ 73 #define MC_CMD_HDR_TOKEN_S 10 /* Token field size */ 74 #define MC_CMD_HDR_STATUS_O 16 /* Status field offset */ 75 #define MC_CMD_HDR_STATUS_S 8 /* Status field size*/ 76 #define MC_CMD_HDR_PRI_O 15 /* Priority field offset */ 77 #define MC_CMD_HDR_PRI_S 1 /* Priority field size */
|
/linux-4.1.27/drivers/staging/rtl8188eu/include/ |
H A D | drv_types.h | 137 #define RGTRY_OFT(field) ((u32)FIELD_OFFSET(struct registry_priv, field)) 138 #define RGTRY_SZ(field) sizeof(((struct registry_priv *)0)->field) 139 #define BSSID_OFT(field) ((u32)FIELD_OFFSET(struct wlan_bssid_ex, field)) 140 #define BSSID_SZ(field) sizeof(((struct wlan_bssid_ex *)0)->field)
|
/linux-4.1.27/arch/x86/tools/ |
H A D | test_get_len.c | 60 struct insn_field *field) dump_field() 64 indent, field->value, field->bytes[0], field->bytes[1], dump_field() 65 field->bytes[2], field->bytes[3]); dump_field() 67 field->got, field->nbytes); dump_field() 59 dump_field(FILE *fp, const char *name, const char *indent, struct insn_field *field) dump_field() argument
|
/linux-4.1.27/arch/ia64/sn/include/ |
H A D | tio.h | 19 #define TIO_ITTE_OFFSET_BITS 8 /* size of offset field */ 23 #define TIO_ITTE_WIDGET_BITS 2 /* size of widget field */
|
/linux-4.1.27/arch/m68k/include/asm/ |
H A D | dsp56k.h | 21 int dir; /* Bit field. 1 = write output bit, 0 = do nothing. 26 int out; /* Bit field like above. */
|
/linux-4.1.27/drivers/isdn/hardware/eicon/ |
H A D | pr_pc.h | 34 byte XLock; /* Lock field for arbitration */ 38 byte Reserved1[2]; /* reserved field, do not use */ 39 byte ReadyInt; /* request field for ready interrupt */ 40 byte Reserved2[12]; /* reserved field, do not use */
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
H A D | i2c.h | 4 /* matches bios type field prior to ccb 4.1 */
|
/linux-4.1.27/include/uapi/linux/ |
H A D | socket.h | 15 /* Following field(s) are implementation specific */
|
H A D | videodev2.h | 93 V4L2_FIELD_TOP = 2, /* top field only */ 94 V4L2_FIELD_BOTTOM = 3, /* bottom field only */ 101 V4L2_FIELD_INTERLACED_TB = 8, /* both fields interlaced, top field 102 first and the top field is 104 V4L2_FIELD_INTERLACED_BT = 9, /* both fields interlaced, top field 105 first and the bottom field is 108 #define V4L2_FIELD_HAS_TOP(field) \ 109 ((field) == V4L2_FIELD_TOP ||\ 110 (field) == V4L2_FIELD_INTERLACED ||\ 111 (field) == V4L2_FIELD_INTERLACED_TB ||\ 112 (field) == V4L2_FIELD_INTERLACED_BT ||\ 113 (field) == V4L2_FIELD_SEQ_TB ||\ 114 (field) == V4L2_FIELD_SEQ_BT) 115 #define V4L2_FIELD_HAS_BOTTOM(field) \ 116 ((field) == V4L2_FIELD_BOTTOM ||\ 117 (field) == V4L2_FIELD_INTERLACED ||\ 118 (field) == V4L2_FIELD_INTERLACED_TB ||\ 119 (field) == V4L2_FIELD_INTERLACED_BT ||\ 120 (field) == V4L2_FIELD_SEQ_TB ||\ 121 (field) == V4L2_FIELD_SEQ_BT) 122 #define V4L2_FIELD_HAS_BOTH(field) \ 123 ((field) == V4L2_FIELD_INTERLACED ||\ 124 (field) == V4L2_FIELD_INTERLACED_TB ||\ 125 (field) == V4L2_FIELD_INTERLACED_BT ||\ 126 (field) == V4L2_FIELD_SEQ_TB ||\ 127 (field) == V4L2_FIELD_SEQ_BT) 128 #define V4L2_FIELD_HAS_T_OR_B(field) \ 129 ((field) == V4L2_FIELD_BOTTOM ||\ 130 (field) == V4L2_FIELD_TOP ||\ 131 (field) == V4L2_FIELD_ALTERNATE) 322 /* Values for 'capabilities' field */ 356 #define V4L2_CAP_DEVICE_CAPS 0x80000000 /* sets device capabilities field */ 365 __u32 field; /* enum v4l2_field */ member in struct:v4l2_pix_format 540 /* priv field value to indicates that subsequent fields are valid. */ 737 * @field: enum v4l2_field; field order of the image in the buffer 764 __u32 field; member in struct:v4l2_buffer 782 /* Flags for 'flags' field */ 797 /* timecode field is valid */ 828 * reserved fields must be set to zero. The field reserved0 is expected to 830 * content. Therefore this field should not be used for any other extensions. 854 __u32 field; /* enum v4l2_field */ member in struct:v4l2_framebuffer::__anon13756 858 __u32 priv; /* reserved field, set to 0 */ 861 /* Flags for the 'capability' field. Read only */ 870 /* Flags for the 'flags' field. */ 886 __u32 field; /* enum v4l2_field */ member in struct:v4l2_window 908 #define V4L2_CAP_TIMEPERFRAME 0x1000 /* timeperframe field is supported */ 1113 * @il_vfrontporch:Vertical front porch for the even field 1114 * (aka field 2) of interlaced field formats 1115 * @il_vsync: Vertical Sync length for the even field 1116 * (aka field 2) of interlaced field formats 1117 * @il_vbackporch:Vertical back porch for the even field 1118 * (aka field 2) of interlaced field formats 1125 * to the blanking of each field. So the height of the total frame is 1131 * The active height of each field is height / 2. 1186 /* Specific to interlaced formats: if set, then field 1 is really one half-line 1187 longer and field 2 is really one half-line shorter, so each field has 1221 /* Values for the type field */ 1303 /* Values for the 'type' field */ 1307 /* field 'status' - general */ 1312 /* field 'status' - sensor orientation */ 1317 /* field 'status' - analog */ 1321 /* field 'status' - digital */ 1326 /* field 'status' - VCR and set-top box */ 1350 /* Values for the 'type' field */ 1505 /* Flags for the 'capability' field */ 1521 /* Flags for the 'rxsubchans' field */ 1529 /* Values for the 'audmode' field */ 1602 /* Flags for the 'capability' field */ 1606 /* Flags for the 'mode' field */ 1736 /* ITU-R start lines for each field */ 1751 /* service_lines[0][...] specifies lines 0-23 (1-23 used) of the first field 1752 service_lines[1][...] specifies lines 0-23 (1-23 used) of the second field 1775 /* service_lines[0][...] specifies lines 0-23 (1-23 used) of the first field 1776 service_lines[1][...] specifies lines 0-23 (1-23 used) of the second field 1786 __u32 field; /* 0: first field, 1: second field */ member in struct:v4l2_sliced_vbi_data 1861 * @field: enum v4l2_field; field order (for interlaced video) 1873 __u32 field; member in struct:v4l2_pix_format_mplane 1945 __u8 field; member in struct:v4l2_event_vsync 1982 * frame_sequence field is valid.
|
H A D | nfs4_mount.h | 14 * a new field is required then add it to the end. The version field 58 /* bits in the flags field */
|
H A D | nfs_mount.h | 18 * a new field is required then add it to the end. The version field 48 /* bits in the flags field visible to user space */
|
H A D | ptp_clock.h | 27 /* PTP_xxx bits, for the flags field within the request structures. */ 35 * The sign of the seconds field applies to the whole value. The 36 * nanoseconds field is always unsigned. The reserved field is 59 unsigned int flags; /* Bit field for PTP_xxx flags. */ 93 * Hardware specific human readable pin name. This field is 108 * This corresponds to the 'index' field of the
|
/linux-4.1.27/drivers/staging/rtl8192e/ |
H A D | rtl819x_BA.h | 44 } field; member in union:sequence_control 55 } field; member in union:ba_param_set 65 } field; member in union:delba_param_set
|
H A D | rtl819x_BAProc.c | 156 DelbaParamSet.field.Initiator = (TxRxSelect == TX_DIR) ? 1 : 0; rtllib_DELBA() 157 DelbaParamSet.field.TID = pBA->BaParamSet.field.TID; rtllib_DELBA() 279 (u8)(pBaParamSet->field.TID), RX_DIR, true)) { rtllib_rx_ADDBAReq() 286 if (pBaParamSet->field.BAPolicy == BA_POLICY_DELAYED) { rtllib_rx_ADDBAReq() 303 pBA->BaParamSet.field.BufferSize = 1; rtllib_rx_ADDBAReq() 305 pBA->BaParamSet.field.BufferSize = 32; rtllib_rx_ADDBAReq() 319 BA.BaParamSet.field.BAPolicy = BA_POLICY_IMMEDIATE; rtllib_rx_ADDBAReq() 366 (u8)(pBaParamSet->field.TID), TX_DIR, false)) { rtllib_rx_ADDBARsp() 396 if (pBaParamSet->field.BAPolicy == BA_POLICY_DELAYED) { rtllib_rx_ADDBARsp() 460 if (pDelBaParamSet->field.Initiator == 1) { rtllib_rx_DELBA() 464 (u8)pDelBaParamSet->field.TID, RX_DIR, false)) { rtllib_rx_DELBA() 468 (u8)pDelBaParamSet->field.TID); rtllib_rx_DELBA() 477 (u8)pDelBaParamSet->field.TID, TX_DIR, false)) { rtllib_rx_DELBA() 504 pBA->BaParamSet.field.AMSDU_Support = 0; TsInitAddBA() 505 pBA->BaParamSet.field.BAPolicy = Policy; TsInitAddBA() 506 pBA->BaParamSet.field.TID = TsInitAddBA() 507 pTS->TsCommonInfo.TSpec.f.TSInfo.field.ucTSID; TsInitAddBA() 508 pBA->BaParamSet.field.BufferSize = 32; TsInitAddBA() 510 pBA->BaStartSeqCtrl.field.SeqNum = (pTS->TxCurSeq + 3) % 4096; TsInitAddBA()
|
/linux-4.1.27/drivers/pinctrl/freescale/ |
H A D | pinctrl-mxs.h | 26 * pinmux-id bit field definitions 39 * pin config bit field definitions 45 * MSB of each field is presence bit for the config.
|
/linux-4.1.27/arch/sparc/include/asm/ |
H A D | machines.h | 22 * The ARCH field determines the architecture line (sun4m, etc). 23 * The MACH field determines the machine make within that architecture. 37 * something if the value in the ARCH field is SM_SUN4M, if it is
|
/linux-4.1.27/arch/sparc/include/uapi/asm/ |
H A D | psr.h | 22 #define PSR_ET 0x00000020 /* enable traps field */ 35 #define PSR_VERS 0x0f000000 /* cpu-version field */ 36 #define PSR_IMPL 0xf0000000 /* cpu-implementation field */
|
H A D | psrcompat.h | 8 #define PSR_ET 0x00000020 /* enable traps field */ 21 #define PSR_VERS 0x0f000000 /* cpu-version field */ 22 #define PSR_IMPL 0xf0000000 /* cpu-implementation field */
|
/linux-4.1.27/arch/s390/include/uapi/asm/ |
H A D | tape390.h | 49 /* Macros for "capable" field */ 54 /* Macros for "status" field */ 58 /* Macros for "medium status" field */
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | err_impl.h | 34 * Manipulate a field from a register given it's name. defines 37 * EXTRACT(u, f) - extracts the field and places it at bit position 0 38 * GEN_MASK(f) - creates an in-position mask for the field
|
/linux-4.1.27/fs/cifs/ |
H A D | cifs_spnego.h | 29 * The version field should always be set to CIFS_SPNEGO_UPCALL_VERSION. 30 * The flags field is for future use. The request-key callout should set 32 * and stuff it in the data field.
|
/linux-4.1.27/kernel/sched/ |
H A D | stats.h | 32 # define schedstat_inc(rq, field) do { (rq)->field++; } while (0) 33 # define schedstat_add(rq, field, amt) do { (rq)->field += (amt); } while (0) 45 # define schedstat_inc(rq, field) do { } while (0) 46 # define schedstat_add(rq, field, amt) do { } while (0) 204 * @cputime: Time value by which to increment the utime field of the 208 * running CPU and update the utime field there. 227 * @cputime: Time value by which to increment the stime field of the 231 * running CPU and update the stime field there. 250 * @ns: Time value by which to increment the sum_exec_runtime field 254 * running CPU and update the sum_exec_runtime field there.
|
/linux-4.1.27/arch/tile/include/arch/ |
H A D | mpipe.h | 49 * This field of the address selects the region (address space) to be 50 * accessed. For the iDMA release region, this field must be 4. 55 /* This field of the address indexes the 32 entry service domain table. */ 126 * This field of the address selects the region (address space) to be 127 * accessed. For the buffer stack manager region, this field must be 6. 132 /* This field of the address indexes the 32 entry service domain table. */ 182 * mPIPE instances, this field indicates the buffer owner. If the INST 183 * field does not match the mPIPE's instance number when a packet is 187 * whether the INST field in the buffer descriptor is populated by iDMA 188 * hardware. This field is ignored on writes. 250 * This field of the address selects the region (address space) to be 251 * accessed. For the egress DMA post region, this field must be 5. 256 /* This field of the address indexes the 32 entry service domain table. */ 302 * single MMIO store. A zero in this field on a write will "wake up" an 306 * For reads, this field provides a rolling count of the number of
|
/linux-4.1.27/include/linux/ |
H A D | sh_dma.h | 41 * @dmars_bit: channel DMARS field offset within the register 58 * @ts_low_shift: shift of the low part of the TS field 59 * @ts_low_mask: low TS field mask 60 * @ts_high_shift: additional shift of the high part of the TS field 61 * @ts_high_mask: high TS field mask
|
/linux-4.1.27/include/media/davinci/ |
H A D | vpbe_display.h | 41 #define VPBE_DISPLAY_VALID_FIELD(field) ((V4L2_FIELD_NONE == field) || \ 42 (V4L2_FIELD_ANY == field) || (V4L2_FIELD_INTERLACED == field)) 103 /* Indicates id of the field which is being displayed */
|
/linux-4.1.27/arch/sh/drivers/dma/ |
H A D | dma-sysfs.c | 112 #define dma_ro_attr(field, fmt) \ 113 static ssize_t dma_show_##field(struct device *dev, \ 117 return sprintf(buf, fmt, channel->field); \ 119 static DEVICE_ATTR(field, S_IRUGO, dma_show_##field, NULL);
|
/linux-4.1.27/drivers/scsi/mpt2sas/mpi/ |
H A D | mpi2_raid.h | 30 * 07-26-12 02.00.09 Added ElapsedSeconds field to MPI2_RAID_VOL_INDICATOR. 85 /* defines for the RAIDFunction field */ 90 /* defines for the Flags field */ 105 /* defines for the RAIDFunction field */ 110 /* defines for the Flags field */ 211 /* defines for the PhysDiskMap field */ 235 /* defines for the VolumeCreationFlags field */ 273 /* defines for RAID Compatibility Structure Flags field */ 289 /* defines for RAID Volume Indicator Flags field */ 314 /* defines for RAID Compatibility Result Structure State field */ 318 /* defines for RAID Compatibility Result Structure GenericAttributes field */
|
H A D | mpi2_sas.h | 58 * Values for the SAS DeviceInfo field used in SAS Device Status Change Event 112 /* values for PassthroughFlags field */ 115 /* use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */ 140 /* values for PassthroughFlags field */ 143 /* values for SASStatus field are at the top of this file */ 171 /* values for PassthroughFlags field */ 179 /* use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */ 204 /* values for SASStatus field are at the top of this file */ 239 /* values for the Operation field */ 254 /* values for the PrimFlags field */ 259 /* values for the LookupMethod field */
|
H A D | mpi2_tool.h | 21 * 07-30-09 02.00.04 Added ExtendedType field to DiagnosticBufferPost request 28 * 05-25-11 02.00.07 Added Flags field and related defines to 99 /* values for the Flags field */ 159 /* use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */ 206 /* values for the Action field */ 214 /* use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */ 216 /* values for the Flags field */ 268 /* values for the Flags field */ 303 /* use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */ 353 /* defines for the Console field */ 361 /* defines for the Flags field */ 398 /* values for the ExtendedType field */ 401 /* values for the BufferType field */ 408 /* values for the Flags field */
|
H A D | mpi2_cnfg.h | 32 * Added new value for AccessStatus field of SAS Device 34 * 10-31-07 02.00.04 Added missing SEPDevHandle field to 38 * Modified IOC Page 7 to use masks and added field for 50 * Added missing MaxNumRoutedSasAddresses field to 60 * bits in the Flags field of Manufacturing Page 4. 67 * VolumeStatusFlags field. 70 * Added SupportedPhysDisks field to RAID Volume Page 1 and 72 * Added PhysDiskAttributes field (and related defines) to 78 * Added BootDeviceWaitTime field to SAS IO Unit Page 4. 80 * Expander Page 0 Flags field. 84 * 01-19-09 02.00.10 Fixed defines for GPIOVal field of IO Unit Page 3. 85 * Inserted missing reserved field into structure for IOC 107 * to SAS Device Page 0 Flags field. 114 * should use the "count" field in the page data (e.g. the 115 * NumPhys field) to determine the number of valid elements 119 * Added PortWidthModGroup field to 130 * 11-10-10 02.00.17 Added ReceptacleID field (replacing Reserved1) to 132 * the Pinout field. 137 * 02-23-11 02.00.18 Added ProxyVF_ID field to MPI2_CONFIG_REQUEST. 140 * Added SASNotifyPrimitiveMasks field to 146 * Added SpinupFlags field containing a Disable Spin-up 150 * Added UEFIVersion field to BIOS Page 1 and defined new 166 * Added EnclosureLevel field to 170 * 01-08-14 02.00.28 Added more defines for the BiosOptions field of 172 * 06-13-14 02.00.29 Added SSUTimeout field to MPI2_CONFIG_PAGE_BIOS_1, and 173 * more defines for the BiosOptions field. 228 /* PageType field values */ 246 /* ExtPageType field values */ 379 /* values for the Action field */ 389 /* use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */ 545 /* defines for the PowerSaveFlags field */ 580 /* Manufacturing Page 4 Flags field */ 668 /* defines for the Pinout field */ 688 /* defines for the Location field */ 722 /* defines for the Flags field */ 832 /* defines for IO Unit Page 3 GPIOVal field */ 868 /* defines for IO Unit Page 5 DmaEngineCapabilities field */ 894 /* defines for IO Unit Page 6 Flags field */ 922 /* defines for IO Unit Page 7 PCIeWidth field */ 928 /* defines for IO Unit Page 7 PCIeSpeed field */ 933 /* defines for IO Unit Page 7 ProcessorState field */ 941 /* defines for IO Unit Page 7 PowerManagementCapabilities field */ 948 /* defines for IO Unit Page 7 IOCTemperatureUnits field */ 953 /* defines for IO Unit Page 7 IOCSpeed field */ 959 /* defines for IO Unit Page 7 BoardTemperatureUnits field */ 979 /* defines for IO Unit Page 8 Sensor Flags field */ 1021 /* defines for IO Unit Page 9 Sensor Flags field */ 1123 /* defines for IOC Page 1 Flags field */ 1214 /* defines for IOC Page 8 Flags field */ 1257 /* values for BIOS Page 1 BiosOptions field */ 1283 /* values for BIOS Page 1 IOCSettings field */ 1301 /* values for BIOS Page 1 DeviceSettings field */ 1308 /* defines for BIOS Page 1 UEFIVersion field */ 1484 /* defines for the PhysDiskMap field */ 1563 /* values for RAID Volume Page 0 VolumeStatusFlags field */ 1584 /* values for RAID Volume Page 0 SupportedPhysDisks field */ 1590 /* values for RAID Volume Page 0 InactiveStatus field */ 1632 /* use MPI2_RAID_HOT_SPARE_POOL_ defines for the HotSparePool field */ 1742 /* RAID Physical Disk Page 1 Physical Disk Path Flags field defines */ 1918 /* use MPI2_SAS_NEG_LINK_RATE_ defines for the NegotiatedLinkRate field */ 2083 /* defines for Flags field */ 2086 /* defines for PHY field */ 2108 /* defines for ControlFlags field */ 2114 /* defines for PortWidthModeGroup field */ 2117 /* defines for InactivityTimerExponent field */ 2172 /* defines for CurrentStatus field */ 2182 /* defines for CurrentModulation field */ 2227 /* defines for Flags field */ 2271 /* defines for PowerManagementCapabilities field */ 2344 /* values for SAS Expander Page 0 DiscoveryStatus field */ 2366 /* values for SAS Expander Page 0 Flags field */ 2412 /* use MPI2_SAS_PRATE_ defines for the ProgrammedLinkRate field */ 2414 /* use MPI2_SAS_HWRATE_ defines for the HwLinkRate field */ 2416 /* use MPI2_SAS_PHYINFO_ for the PhyInfo field */ 2418 /* see mpi2_sas.h for the MPI2_SAS_DEVICE_INFO_ defines used for the AttachedDeviceInfo field */ 2420 /* use MPI2_SAS_NEG_LINK_RATE_ defines for the NegotiatedLinkRate field */ 2422 /* values for SAS Expander Page 1 DiscoveryInfo field */ 2427 /* use MPI2_SAS_APHYINFO_ defines for AttachedPhyInfo field */ 2463 /* values for SAS Device Page 0 AccessStatus field */ 2487 /* values for SAS Device Page 0 Flags field */ 2548 /* use MPI2_SAS_APHYINFO_ defines for AttachedPhyInfo field */ 2550 /* use MPI2_SAS_PRATE_ defines for the ProgrammedLinkRate field */ 2552 /* use MPI2_SAS_HWRATE_ defines for the HwLinkRate field */ 2554 /* values for SAS PHY Page 0 Flags field */ 2557 /* use MPI2_SAS_PHYINFO_ for the PhyInfo field */ 2559 /* use MPI2_SAS_NEG_LINK_RATE_ defines for the NegotiatedLinkRate field */ 2588 /* use MPI2_SASPHY3_EVENT_CODE_ for the PhyEventCode field */ 2629 /* values for PhyEventCode field */ 2668 /* values for the CounterType field */ 2673 /* values for the TimeUnits field */ 2679 /* values for the ThresholdFlags field */ 2718 /* values for the Flags field */ 2779 /* values for SAS Enclosure Page 0 Flags field */ 2819 /* values for Log Page 0 LogEntry LogEntryQualifier field */ 2865 /* values for the ElementFlags field */ 2893 /* values for RAID Configuration Page 0 Flags field */ 2924 /* values for Driver Persistent Mapping Page 0 MappingInformation field */ 2970 /* values for Ethernet Page 0 Status field */ 2984 /* values for Ethernet Page 0 MediaState field */ 3024 /* values for Ethernet Page 1 Flags field */ 3035 /* values for Ethernet Page 1 MediaState field */
|
/linux-4.1.27/drivers/scsi/mpt3sas/mpi/ |
H A D | mpi2_raid.h | 31 * 07-26-12 02.00.09 Added ElapsedSeconds field to MPI2_RAID_VOL_INDICATOR. 86 /*defines for the RAIDFunction field */ 91 /*defines for the Flags field */ 105 /*defines for the RAIDFunction field */ 110 /*defines for the Flags field */ 207 /*defines for the PhysDiskMap field */ 232 /*defines for the VolumeCreationFlags field */ 268 /*defines for RAID Compatibility Structure Flags field */ 282 /*defines for RAID Volume Indicator Flags field */ 306 /*defines for RAID Compatibility Result Structure State field */ 310 /*defines for RAID Compatibility Result Structure GenericAttributes field */
|
H A D | mpi2_sas.h | 67 *Values for the SAS DeviceInfo field used in SAS Device Status Change Event 119 /*values for PassthroughFlags field */ 122 /*MPI v2.0: use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */ 145 /*values for PassthroughFlags field */ 148 /*values for SASStatus field are at the top of this file */ 184 /*values for PassthroughFlags field */ 192 /*MPI v2.0: use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */ 215 /*values for SASStatus field are at the top of this file */ 249 /*values for the Operation field */ 268 /*values for the PrimFlags field */ 273 /*values for the LookupMethod field */
|
H A D | mpi2_tool.h | 21 * 07-30-09 02.00.04 Added ExtendedType field to DiagnosticBufferPost request 28 * 05-25-11 02.00.07 Added Flags field and related defines to 97 /*values for the Flags field */ 154 /*use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */ 199 /*values for the Action field */ 207 /*use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */ 209 /*values for the Flags field */ 259 /*values for the Flags field */ 292 /*use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */ 362 /* defines for the Console field */ 370 /* defines for the Flags field */ 405 /*values for the ExtendedType field */ 408 /*values for the BufferType field */ 415 /*values for the Flags field */
|
/linux-4.1.27/drivers/gpu/ipu-v3/ |
H A D | ipu-dmfc.c | 179 u32 val, field; ipu_dmfc_setup_channel() local 187 field = DMFC_FIFO_SIZE_64; ipu_dmfc_setup_channel() 190 field = DMFC_FIFO_SIZE_128; ipu_dmfc_setup_channel() 193 field = DMFC_FIFO_SIZE_256; ipu_dmfc_setup_channel() 196 field = DMFC_FIFO_SIZE_512; ipu_dmfc_setup_channel() 204 field |= DMFC_BURSTSIZE_16; ipu_dmfc_setup_channel() 207 field |= DMFC_BURSTSIZE_32; ipu_dmfc_setup_channel() 210 field |= DMFC_BURSTSIZE_64; ipu_dmfc_setup_channel() 213 field |= DMFC_BURSTSIZE_128; ipu_dmfc_setup_channel() 217 field |= DMFC_SEGMENT(segment); ipu_dmfc_setup_channel() 222 val |= field << dmfc->data->shift; ipu_dmfc_setup_channel()
|
/linux-4.1.27/drivers/firmware/ |
H A D | dmi-id.c | 18 int field; member in struct:dmi_device_attribute 27 int field = to_dmi_dev_attr(attr)->field; sys_dmi_field_show() local 29 len = scnprintf(page, PAGE_SIZE, "%s\n", dmi_get_system_info(field)); sys_dmi_field_show() 36 .field = _field } 75 int field; get_modalias() member in struct:mafield 103 c = dmi_get_system_info(f->field); get_modalias()
|
/linux-4.1.27/drivers/clk/qcom/ |
H A D | clk-rcg.h | 42 * @mnctr_mode_shift: lowest bit of mn counter mode field 43 * @n_val_shift: lowest bit of n value field 44 * @m_val_shift: lowest bit of m value field 62 * @pre_div_shift: lowest bit of pre divider field 72 * @src_sel_shift: lowest bit of source selection field 73 * @parent_map: map from software's parent index to hardware's src_sel field 154 * @parent_map: map from software's parent index to hardware's src_sel field
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/ |
H A D | lustre_req_layout.h | 90 const struct req_msg_field *field); 92 const struct req_msg_field *field, 95 const struct req_msg_field *field, 98 const struct req_msg_field *field); 100 const struct req_msg_field *field, 103 const struct req_msg_field *field, 106 const struct req_msg_field *field, 109 const struct req_msg_field *field); 112 const struct req_msg_field *field, 115 const struct req_msg_field *field, 123 const struct req_msg_field *field, 126 const struct req_msg_field *field, 129 const struct req_msg_field *field, 133 const struct req_msg_field *field,
|
/linux-4.1.27/drivers/media/pci/ivtv/ |
H A D | ivtv-vbi.c | 34 data.field = 0; ivtv_set_vps() 51 data.field = 0; ivtv_set_cc() 56 data.field = 1; ivtv_set_cc() 79 data.field = 0; ivtv_set_wss() 102 if (d->field) { ivtv_write_vbi_line() 110 } else if (d->id == V4L2_SLICED_VPS && d->line == 16 && d->field == 0) { ivtv_write_vbi_line() 123 d->line == 23 && d->field == 0) { ivtv_write_vbi_line() 209 f = itv->vbi.sliced_data[i].field; copy_vbi_data() 292 itv->vbi.sliced_dec_data[line].field = i >= 18; ivtv_convert_ivtv_vbi() 302 itv->vbi.sliced_dec_data[line].field = 0; ivtv_convert_ivtv_vbi() 309 field. 366 itv->vbi.sliced_data[line].field = vbi.is_second_field; compress_sliced_buf() 392 /* second field of the frame? */ ivtv_process_vbi_data() 409 /* first field */ ivtv_process_vbi_data() 412 /* second field */ ivtv_process_vbi_data() 421 itv->vbi.sliced_data[0].field = 0; ivtv_process_vbi_data() 484 data.field = 0; ivtv_vbi_work_handler() 499 data.field = 0; ivtv_vbi_work_handler() 505 data.field = 1; ivtv_vbi_work_handler()
|
/linux-4.1.27/drivers/media/v4l2-core/ |
H A D | videobuf-core.c | 148 enum v4l2_field field, videobuf_queue_core_init() 160 q->field = field; videobuf_queue_core_init() 300 enum v4l2_field field = q->field; videobuf_next_field() local 302 BUG_ON(V4L2_FIELD_ANY == field); videobuf_next_field() 304 if (V4L2_FIELD_ALTERNATE == field) { videobuf_next_field() 306 field = V4L2_FIELD_BOTTOM; videobuf_next_field() 309 field = V4L2_FIELD_TOP; videobuf_next_field() 313 return field; videobuf_next_field() 367 b->field = vb->field; videobuf_status() 531 enum v4l2_field field; videobuf_qbuf() local 581 buf->field = b->field; videobuf_qbuf() 603 dprintk(1, "qbuf: requesting next field\n"); videobuf_qbuf() 604 field = videobuf_next_field(q); videobuf_qbuf() 605 retval = q->ops->buf_prepare(q, buf, field); videobuf_qbuf() 790 enum v4l2_field field; videobuf_read_zerocopy() local 805 field = videobuf_next_field(q); videobuf_read_zerocopy() 806 retval = q->ops->buf_prepare(q, q->read_buf, field); videobuf_read_zerocopy() 878 enum v4l2_field field; videobuf_read_one() local 909 field = videobuf_next_field(q); videobuf_read_one() 910 retval = q->ops->buf_prepare(q, q->read_buf, field); videobuf_read_one() 963 enum v4l2_field field; __videobuf_read_start() local 982 field = videobuf_next_field(q); __videobuf_read_start() 983 err = q->ops->buf_prepare(q, q->bufs[i], field); __videobuf_read_start() 143 videobuf_queue_core_init(struct videobuf_queue *q, const struct videobuf_queue_ops *ops, struct device *dev, spinlock_t *irqlock, enum v4l2_buf_type type, enum v4l2_field field, unsigned int msize, void *priv, struct videobuf_qtype_ops *int_ops, struct mutex *ext_lock) videobuf_queue_core_init() argument
|