Home
last modified time | relevance | path

Searched refs:offsetof (Results 1 – 25 of 769) sorted by relevance

12345678910>>...31

/illumos-gate/usr/src/cmd/dtrace/test/tst/common/offsetof/
H A Dtst.OffsetofArith.d49 add = offsetof(record_t, c) + offsetof(record_t, x) +
50 offsetof(record_t, y);
51 sub = offsetof(record_t, y) - offsetof(record_t, x);
52 mul = offsetof(record_t, x) * offsetof(record_t, c);
53 div = offsetof(record_t, y) / offsetof(record_t, x);
55 printf("offsetof(record_t, c) = %d\n", offsetof(record_t, c));
56 printf("offsetof(record_t, x) = %d\n", offsetof(record_t, x));
57 printf("offsetof(record_t, y) = %d\n", offsetof(record_t, y));
68 /(8 != offsetof(record_t, y)) || (4 != offsetof(record_t, x)) ||
69 (0 != offsetof(record_t, c)) || (12 != add) || (4 != sub) || (0 != mul)
H A Dtst.OffsetofAlias.d48 printf("offsetof(record_t, c) = %d\n", offsetof(record_t, c));
49 printf("offsetof(record_t, x) = %d\n", offsetof(record_t, x));
50 printf("offsetof(record_t, y) = %d\n", offsetof(record_t, y));
55 /(8 != offsetof(record_t, y)) || (4 != offsetof(record_t, x)) ||
56 (0 != offsetof(record_t, c))/
H A Dtst.OffsetofUnion.d48 printf("offsetof(record, x) = %d\n", offsetof(union D`record, x));
49 printf("offsetof(record, y) = %d\n", offsetof(union D`record, y));
50 printf("offsetof(record, c) = %d\n", offsetof(union D`record, c));
55 /(0 != offsetof(union D`record, y)) && (0 != offsetof(union D`record, x)) &&
56 (0 != offsetof(union D`record, c))/
/illumos-gate/usr/src/cmd/connstat/
H A Dconnstat_tcp.c86 offsetof(tcp_fields_buf_t, t_laddr), print_string },
88 offsetof(tcp_fields_buf_t, t_raddr), print_string },
90 offsetof(tcp_fields_buf_t, t_lport), print_uint16 },
92 offsetof(tcp_fields_buf_t, t_rport), print_uint16 },
110 offsetof(tcp_fields_buf_t, t_suna), print_uint32 },
114 offsetof(tcp_fields_buf_t, t_swnd), print_uint32 },
116 offsetof(tcp_fields_buf_t, t_cwnd), print_uint32 },
118 offsetof(tcp_fields_buf_t, t_rwnd), print_uint32 },
120 offsetof(tcp_fields_buf_t, t_mss), print_uint32 },
122 offsetof(tcp_fields_buf_t, t_rto), print_uint32 },
[all …]
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/
H A Dses2_pages.c76 if (pagelen < offsetof(ses2_aes_page_impl_t, sapi_data)) in ses2_aes_index()
86 offsetof(ses2_aes_descr_eip_impl_t, sadei_length) + in ses2_aes_index()
221 *len + offsetof(ses2_elem_descriptor_impl_t, sedi_descriptor), in ses2_element_index()
242 offsetof(ses2_status_page_impl_t, sspi_data) > pagelen) in ses2_status_index()
256 offsetof(ses2_control_page_impl_t, scpi_data[0])); in ses2_ctl_len()
348 offsetof(ses2_substring_out_page_impl_t, ssopi_data[0])); in ses2_substrout_len()
360 offsetof(ses2_ucode_ctl_page_impl_t, sucpi_ucode_data[0]); in ses2_ucodeout_len()
432 offsetof(ses2_threshold_in_page_impl_t, stipi_generation_code)
444 .spd_gcoff = offsetof(ses2_aes_page_impl_t, sapi_generation_code)
509 offsetof(ses2_ucode_ctl_page_impl_t, sucpi_generation_code)
[all …]
/illumos-gate/usr/src/cmd/dlstat/
H A Ddlstat.c158 offsetof(total_fields_buf_t, t_rbytes), print_default_cb},
162 offsetof(total_fields_buf_t, t_obytes), print_default_cb},
181 offsetof(ring_fields_buf_t, r_type), print_default_cb},
183 offsetof(ring_fields_buf_t, r_id), print_default_cb},
185 offsetof(ring_fields_buf_t, r_index), print_default_cb},
189 offsetof(ring_fields_buf_t, r_bytes), print_default_cb},
262 offsetof(lane_fields_buf_t, l_type), print_default_cb},
264 offsetof(lane_fields_buf_t, l_id), print_default_cb},
266 offsetof(lane_fields_buf_t, l_index), print_default_cb},
270 offsetof(lane_fields_buf_t, l_bytes), print_default_cb},
[all …]
/illumos-gate/usr/src/cmd/prtconf/
H A Dprt_xxx.c75 offsetof(struct ddi_parent_private_data, par_reg),
76 offsetof(struct ddi_parent_private_data, par_nreg),
79 offsetof(struct ddi_parent_private_data, par_intr),
83 offsetof(struct ddi_parent_private_data, par_rng),
84 offsetof(struct ddi_parent_private_data, par_nrng),
95 offsetof(struct pcmcia_parent_private, ppd_reg),
96 offsetof(struct pcmcia_parent_private, ppd_nreg),
100 offsetof(struct pcmcia_parent_private, ppd_intr),
112 offsetof(struct ddi_parent_private_data, par_reg),
113 offsetof(struct ddi_parent_private_data, par_nreg),
[all …]
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/
H A Dfake_vnode.c125 VOPNAME_OPEN, offsetof(struct vnodeops, vop_open),
128 VOPNAME_CLOSE, offsetof(struct vnodeops, vop_close),
131 VOPNAME_READ, offsetof(struct vnodeops, vop_read),
134 VOPNAME_WRITE, offsetof(struct vnodeops, vop_write),
161 VOPNAME_LINK, offsetof(struct vnodeops, vop_link),
188 VOPNAME_FID, offsetof(struct vnodeops, vop_fid),
198 VOPNAME_SEEK, offsetof(struct vnodeops, vop_seek),
201 VOPNAME_CMP, offsetof(struct vnodeops, vop_cmp),
219 VOPNAME_MAP, offsetof(struct vnodeops, vop_map),
230 VOPNAME_POLL, offsetof(struct vnodeops, vop_poll),
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dmmd.c307 patbkt + i + offsetof(patbkt_t, in multidata_stats()
378 VA_OFF(addr, offsetof(pdesc_t, pd_magic))); in pdesc_count()
404 patbkt + i + offsetof(patbkt_t, in pdesc_count()
458 VA_OFF(addr, offsetof(pdesc_t, pd_magic))); in pdesc_print()
611 offsetof(multidata_t, mmd_pd_slab_q)); in pdesc_slab_walk_init()
679 offsetof(multidata_t, mmd_pd_q)); in pdesc_walk_init()
750 VA_OFF(addr, offsetof(pattr_t, pat_magic))); in pattr_count()
836 -offsetof(patbkt_t, pbkt_lock)) + in pattr_walk_init()
837 offsetof(patbkt_t, pbkt_pattr_q); in pattr_walk_init()
893 VA_OFF(addr, offsetof(pdesc_t, pd_magic))); in pdesc2slab()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_vlan.h43 #define ENCAP_ETHERTYPE_OFF (offsetof(struct ether_vlan_header, ether_type) -\
44 offsetof(struct ether_vlan_header, ether_tpid))
50 #define VLAN_ID_OFFSET (offsetof(struct ether_vlan_header, ether_tci) -\
51 offsetof(struct ether_vlan_header, ether_dhost))
/illumos-gate/usr/src/uts/common/sys/
H A Dstddef.h27 #if !defined(offsetof)
29 #define offsetof(s, m) __builtin_offsetof(s, m) macro
32 #define offsetof(s, m) (std::size_t)(&(((s *)NULL)->m))
34 #define offsetof(s, m) ((size_t)(&(((s *)NULL)->m)))
H A Ddirent.h81 ((offsetof(dirent64_t, d_name[0]) + 1 + (namelen) + 7) & ~ 7)
83 ((reclen) - (offsetof(dirent64_t, d_name[0])))
85 ((offsetof(dirent32_t, d_name[0]) + 1 + (namelen) + 3) & ~ 3)
87 ((reclen) - (offsetof(dirent32_t, d_name[0])))
/illumos-gate/usr/src/uts/sun4u/serengeti/sys/
H A Dsgsgn.h66 (offsetof(sg_sgnblk_t, magic))
68 (offsetof(sg_sgnblk_t, version))
70 (offsetof(sg_sgnblk_t, domainsig))
72 (offsetof(sg_sgnblk_t, cpusig) + (cpuid)*sizeof (uint32_t))
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/bitfields/
H A Derr.D_OFFSETOF_BITFIELD.d46 offsetof(struct bitRecord, a));
48 offsetof(struct bitRecord, b));
50 offsetof(struct bitRecord, c));
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_scheme.c217 { "fmd_fmri_init", offsetof(fmd_scheme_ops_t, sop_init) },
218 { "fmd_fmri_fini", offsetof(fmd_scheme_ops_t, sop_fini) },
219 { "fmd_fmri_nvl2str", offsetof(fmd_scheme_ops_t, sop_nvl2str) },
220 { "fmd_fmri_expand", offsetof(fmd_scheme_ops_t, sop_expand) },
221 { "fmd_fmri_present", offsetof(fmd_scheme_ops_t, sop_present) },
222 { "fmd_fmri_replaced", offsetof(fmd_scheme_ops_t, sop_replaced) },
223 { "fmd_fmri_service_state", offsetof(fmd_scheme_ops_t,
225 { "fmd_fmri_unusable", offsetof(fmd_scheme_ops_t, sop_unusable) },
226 { "fmd_fmri_contains", offsetof(fmd_scheme_ops_t, sop_contains) },
227 { "fmd_fmri_translate", offsetof(fmd_scheme_ops_t, sop_translate) },
/illumos-gate/usr/src/common/smbios/
H A Dsmb_info.c109 offsetof(smb_system_t, smbsi_serial),
120 offsetof(smb_bboard_t, smbbb_serial),
121 offsetof(smb_bboard_t, smbbb_asset),
124 offsetof(smb_bboard_t, smbbb_cn),
126 offsetof(smb_bboard_t, smbbb_cv) },
132 offsetof(smb_chassis_t, smbch_asset),
155 offsetof(smb_cache_t, smbca_socket),
166 offsetof(smb_port_t, smbpo_iref),
177 offsetof(smb_slot_t, smbsl_name),
215 offsetof(smb_battery_t, smbbat_loc),
[all …]
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_lancfg.c59 (offsetof(ipmi_cmd_lan_set_config_t, ilsc_data) + (dlen))
83 offsetof(ipmi_lan_config_t, ilc_ipaddr), sizeof (uint32_t) },
85 offsetof(ipmi_lan_config_t, ilc_ipaddr_source), sizeof (uint8_t) },
87 offsetof(ipmi_lan_config_t, ilc_macaddr), 6 * sizeof (uint8_t) },
89 offsetof(ipmi_lan_config_t, ilc_subnet), sizeof (uint32_t) },
91 offsetof(ipmi_lan_config_t, ilc_gateway_addr), sizeof (uint32_t) }
/illumos-gate/usr/src/grub/grub-0.97/stage2/zfs-include/
H A Dvdev_impl.h28 #undef offsetof
29 #define offsetof(t, m) ((int)&(((t *)0)->m)) macro
43 offsetof(vdev_label_t, vl_uberblock[(n) << VDEV_UBERBLOCK_SHIFT(sh)])
/illumos-gate/usr/src/cmd/mdb/common/modules/idm/
H A Didm.c337 offsetof(iscsit_global_t, global_tpg_list); in iscsi_tpg()
1149 offsetof(iscsit_tgt_t, target_refcnt); in iscsi_tgt_impl()
1165 offsetof(iscsit_tgt_t, target_tpgt_list); in iscsi_tgt_impl()
1383 rc_addr = addr + offsetof(iscsit_portal_t, in iscsi_portal_impl()
1520 offsetof(iscsit_sess_t, ist_refcnt); in iscsi_sess_impl()
1833 offsetof(iscsit_conn_t, ict_login_sm) + in iscsi_conn_impl()
1877 offsetof(iscsit_conn_t, ict_refcnt); in iscsi_conn_impl()
2026 offsetof(iser_svc_t, is_refcnt); in iscsi_svc_impl()
2244 offsetof(idm_task_t, idt_refcnt); in iscsi_i_task_impl()
3043 offsetof(isns_target_info_t, ti_refcnt); in iscsi_isns_targets_cb()
[all …]
/illumos-gate/usr/src/lib/libinetutil/common/
H A Dinetutil.c121 addr += offsetof(struct sockaddr_in, sin_addr); in plen2mask()
127 addr += offsetof(struct sockaddr_in6, sin6_addr); in plen2mask()
160 addr += offsetof(struct sockaddr_in, sin_addr); in mask2plen()
164 addr += offsetof(struct sockaddr_in6, sin6_addr); in mask2plen()
/illumos-gate/usr/src/uts/common/io/mlxcx/
H A Dmlxcx_cmd.c676 offsetof(mlxcx_cmd_mbox_t, mlbox_node)); in mlxcx_cmd_init()
678 offsetof(mlxcx_cmd_mbox_t, mlbox_node)); in mlxcx_cmd_init()
1290 outsize = offsetof(mlxcx_cmd_manage_pages_out_t, in mlxcx_cmd_return_pages()
2492 offsetof(mlxcx_rq_ctx_t, mlrqc_wq) + in mlxcx_cmd_create_rq()
2493 offsetof(mlxcx_workq_ctx_t, mlwqc_pas) + in mlxcx_cmd_create_rq()
3375 offsetof(mlxcx_sq_ctx_t, mlsqc_wq) + in mlxcx_cmd_create_sq()
3376 offsetof(mlxcx_workq_ctx_t, mlwqc_pas) + in mlxcx_cmd_create_sq()
3726 CTASSERT(offsetof(mlxcx_ppcnt_ieee_802_3_t,
3728 CTASSERT(offsetof(mlxcx_ppcnt_ieee_802_3_t,
3734 CTASSERT(offsetof(mlxcx_cmd_access_register_in_t,
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/ufs/
H A Dufs.c323 { offsetof(si_t, aowner), "USER_OBJ" },
324 { offsetof(si_t, agroup), "GROUP_OBJ" },
325 { offsetof(si_t, aother), "OTHER_OBJ" },
326 { offsetof(si_t, ausers), "USER" },
327 { offsetof(si_t, agroups), "GROUP" },
328 { offsetof(si_t, downer), "DEF_USER_OBJ" },
329 { offsetof(si_t, dgroup), "DEF_GROUP_OBJ" },
330 { offsetof(si_t, dother), "DEF_OTHER_OBJ" },
331 { offsetof(si_t, dusers), "DEF_USER" },
332 { offsetof(si_t, dgroups), "DEF_GROUP" },
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dshiocmd_solaris.c402 { "atime", NV_INTEGER|NV_RDONLY, offsetof(struct stat,st_atime), sizeof(Sp->st_atime), make_time},
403 { "ctime", NV_INTEGER|NV_RDONLY, offsetof(struct stat,st_ctime), sizeof(Sp->st_ctime), make_time},
404 { "dev", NV_INTEGER|NV_RDONLY, offsetof(struct stat,st_dev),sizeof(Sp->st_dev)},
405 { "fd", NV_INTEGER|NV_RDONLY, offsetof(struct filedata,fd), sizeof(int)},
406 { "gid", NV_INTEGER|NV_RDONLY, offsetof(struct stat,st_gid), sizeof(Sp->st_gid)},
407 { "ino", NV_LONG|NV_INTEGER|NV_RDONLY, offsetof(struct stat,st_ino), sizeof(Sp->st_ino)},
408 { "mode", NV_INTEGER|NV_RDONLY, offsetof(struct stat,st_mode), sizeof(Sp->st_mode), make_mode},
410 { "name", NV_RDONLY, offsetof(struct filedata,name), -1 },
411 { "nlink", NV_INTEGER|NV_RDONLY, offsetof(struct stat,st_nlink), sizeof(Sp->st_nlink)},
412 { "size", NV_LONG|NV_INTEGER|NV_RDONLY, offsetof(struct stat,st_size), sizeof(Sp->st_size)},
[all …]
/illumos-gate/usr/src/cmd/pools/poolstat/
H A Dpoolstat.c76 offsetof(statistic_bag_t, sb_sysid),
79 offsetof(statistic_bag_t, sb_name),
82 offsetof(statistic_bag_t, sb_type),
88 offsetof(statistic_bag_t, sb_name),
91 offsetof(pset_statistic_bag_t, pset_sb_min),
94 offsetof(pset_statistic_bag_t, pset_sb_max),
97 offsetof(pset_statistic_bag_t, pset_sb_size),
100 offsetof(pset_statistic_bag_t, pset_sb_used),
103 offsetof(pset_statistic_bag_t, pset_sb_load),
111 offsetof(statistic_bag_t, sb_sysid),
[all …]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_handle.c353 offsetof(dtrace_status_t, dtst_dyndrops),
357 offsetof(dtrace_status_t, dtst_dyndrops_rinsing),
361 offsetof(dtrace_status_t, dtst_dyndrops_dirty),
365 offsetof(dtrace_status_t, dtst_specdrops),
369 offsetof(dtrace_status_t, dtst_specdrops_busy),
373 offsetof(dtrace_status_t, dtst_specdrops_unavail),
377 offsetof(dtrace_status_t, dtst_stkstroverflows),
381 offsetof(dtrace_status_t, dtst_dblerrors),

12345678910>>...31