/drivers/s390/scsi/ |
D | zfcp_dbf.c | 73 struct zfcp_dbf_hba *rec = &dbf->hba_buf; in zfcp_dbf_hba_fsf_res() local 77 memset(rec, 0, sizeof(*rec)); in zfcp_dbf_hba_fsf_res() 79 memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); in zfcp_dbf_hba_fsf_res() 80 rec->id = ZFCP_DBF_HBA_RES; in zfcp_dbf_hba_fsf_res() 81 rec->fsf_req_id = req->req_id; in zfcp_dbf_hba_fsf_res() 82 rec->fsf_req_status = req->status; in zfcp_dbf_hba_fsf_res() 83 rec->fsf_cmd = req->fsf_command; in zfcp_dbf_hba_fsf_res() 84 rec->fsf_seq_no = req->seq_no; in zfcp_dbf_hba_fsf_res() 85 rec->u.res.req_issued = req->issued; in zfcp_dbf_hba_fsf_res() 86 rec->u.res.prot_status = q_pref->prot_status; in zfcp_dbf_hba_fsf_res() [all …]
|
/drivers/staging/lustre/lustre/mdc/ |
D | mdc_lib.c | 141 struct mdt_rec_create *rec; in mdc_create_pack() local 146 rec = req_capsule_client_get(&req->rq_pill, &RMF_REC_REINT); in mdc_create_pack() 149 rec->cr_opcode = REINT_CREATE; in mdc_create_pack() 150 rec->cr_fsuid = uid; in mdc_create_pack() 151 rec->cr_fsgid = gid; in mdc_create_pack() 152 rec->cr_cap = cap_effective; in mdc_create_pack() 153 rec->cr_fid1 = op_data->op_fid1; in mdc_create_pack() 154 rec->cr_fid2 = op_data->op_fid2; in mdc_create_pack() 155 rec->cr_mode = mode; in mdc_create_pack() 156 rec->cr_rdev = rdev; in mdc_create_pack() [all …]
|
D | mdc_request.c | 392 struct mdt_rec_setxattr *rec; in mdc_xattr_common() local 396 rec = req_capsule_client_get(&req->rq_pill, &RMF_REC_REINT); in mdc_xattr_common() 397 rec->sx_opcode = REINT_SETXATTR; in mdc_xattr_common() 398 rec->sx_fsuid = from_kuid(&init_user_ns, current_fsuid()); in mdc_xattr_common() 399 rec->sx_fsgid = from_kgid(&init_user_ns, current_fsgid()); in mdc_xattr_common() 400 rec->sx_cap = cfs_curproc_cap_pack(); in mdc_xattr_common() 401 rec->sx_suppgid1 = suppgid; in mdc_xattr_common() 402 rec->sx_suppgid2 = -1; in mdc_xattr_common() 403 rec->sx_fid = *fid; in mdc_xattr_common() 404 rec->sx_valid = valid | OBD_MD_FLCTIME; in mdc_xattr_common() [all …]
|
/drivers/usb/misc/ |
D | emi26.c | 79 const struct ihex_binrec *rec; in emi26_load_firmware() local 112 rec = (const struct ihex_binrec *)loader_fw->data; in emi26_load_firmware() 114 while (rec) { in emi26_load_firmware() 115 err = emi26_writememory(dev, be32_to_cpu(rec->addr), in emi26_load_firmware() 116 rec->data, be16_to_cpu(rec->len), in emi26_load_firmware() 120 rec = ihex_next_binrec(rec); in emi26_load_firmware() 132 rec = (const struct ihex_binrec *)bitstream_fw->data; in emi26_load_firmware() 135 addr = be32_to_cpu(rec->addr); in emi26_load_firmware() 138 while (rec && (i + be16_to_cpu(rec->len) < FW_LOAD_SIZE)) { in emi26_load_firmware() 139 memcpy(buf + i, rec->data, be16_to_cpu(rec->len)); in emi26_load_firmware() [all …]
|
D | emi62.c | 87 const struct ihex_binrec *rec; in emi62_load_firmware() local 118 rec = (const struct ihex_binrec *)loader_fw->data; in emi62_load_firmware() 121 while (rec) { in emi62_load_firmware() 122 err = emi62_writememory(dev, be32_to_cpu(rec->addr), in emi62_load_firmware() 123 rec->data, be16_to_cpu(rec->len), in emi62_load_firmware() 127 rec = ihex_next_binrec(rec); in emi62_load_firmware() 139 rec = (const struct ihex_binrec *)bitstream_fw->data; in emi62_load_firmware() 142 addr = be32_to_cpu(rec->addr); in emi62_load_firmware() 145 while (rec && (i + be16_to_cpu(rec->len) < FW_LOAD_SIZE)) { in emi62_load_firmware() 146 memcpy(buf + i, rec->data, be16_to_cpu(rec->len)); in emi62_load_firmware() [all …]
|
/drivers/gpu/drm/radeon/ |
D | radeon_i2c.c | 94 struct radeon_i2c_bus_rec *rec = &i2c->rec; in pre_xfer() local 103 if (rec->hw_capable) { in pre_xfer() 116 if (rec->a_clk_reg == reg) { in pre_xfer() 128 if (ASIC_IS_DCE3(rdev) && rec->hw_capable) { in pre_xfer() 129 temp = RREG32(rec->mask_clk_reg); in pre_xfer() 131 WREG32(rec->mask_clk_reg, temp); in pre_xfer() 135 temp = RREG32(rec->a_clk_reg) & ~rec->a_clk_mask; in pre_xfer() 136 WREG32(rec->a_clk_reg, temp); in pre_xfer() 138 temp = RREG32(rec->a_data_reg) & ~rec->a_data_mask; in pre_xfer() 139 WREG32(rec->a_data_reg, temp); in pre_xfer() [all …]
|
/drivers/staging/lustre/lustre/obdclass/ |
D | llog.c | 302 struct llog_rec_hdr *rec; in llog_process_thread() local 327 for (rec = (struct llog_rec_hdr *)buf; in llog_process_thread() 328 (char *)rec < buf + LLOG_CHUNK_SIZE; in llog_process_thread() 329 rec = (struct llog_rec_hdr *)((char *)rec + rec->lrh_len)){ in llog_process_thread() 332 rec, rec->lrh_type); in llog_process_thread() 334 if (LLOG_REC_HDR_NEEDS_SWABBING(rec)) in llog_process_thread() 335 lustre_swab_llog_rec(rec); in llog_process_thread() 338 rec->lrh_type, rec->lrh_index); in llog_process_thread() 340 if (rec->lrh_index == 0) { in llog_process_thread() 347 if (rec->lrh_len == 0 || in llog_process_thread() [all …]
|
D | llog_cat.c | 68 struct llog_logid_rec rec = { { 0 }, }; in llog_cat_new_log() local 123 rec.lid_hdr.lrh_len = sizeof(rec); in llog_cat_new_log() 124 rec.lid_hdr.lrh_index = index; in llog_cat_new_log() 125 rec.lid_hdr.lrh_type = LLOG_LOGID_MAGIC; in llog_cat_new_log() 126 rec.lid_id = loghandle->lgh_id; in llog_cat_new_log() 127 rec.lid_tail.lrt_len = sizeof(rec); in llog_cat_new_log() 128 rec.lid_tail.lrt_index = index; in llog_cat_new_log() 131 rc = llog_write_rec(env, cathandle, &rec.lid_hdr, in llog_cat_new_log() 325 struct llog_rec_hdr *rec, struct llog_cookie *reccookie, in llog_cat_add_rec() argument 331 LASSERT(rec->lrh_len <= LLOG_CHUNK_SIZE); in llog_cat_add_rec() [all …]
|
D | llog_swab.c | 129 void lustre_swab_llog_rec(struct llog_rec_hdr *rec) in lustre_swab_llog_rec() argument 133 __swab32s(&rec->lrh_len); in lustre_swab_llog_rec() 134 __swab32s(&rec->lrh_index); in lustre_swab_llog_rec() 135 __swab32s(&rec->lrh_type); in lustre_swab_llog_rec() 136 __swab32s(&rec->lrh_id); in lustre_swab_llog_rec() 138 switch (rec->lrh_type) { in lustre_swab_llog_rec() 142 (struct llog_size_change_rec *)rec; in lustre_swab_llog_rec() 151 struct llog_unlink_rec *lur = (struct llog_unlink_rec *)rec; in lustre_swab_llog_rec() 162 (struct llog_unlink64_rec *)rec; in lustre_swab_llog_rec() 171 struct llog_changelog_rec *cr = (struct llog_changelog_rec *)rec; in lustre_swab_llog_rec() [all …]
|
/drivers/infiniband/core/ |
D | multicast.c | 97 struct ib_sa_mcmember_rec rec; member 125 static void join_handler(int status, struct ib_sa_mcmember_rec *rec, 127 static void leave_handler(int status, struct ib_sa_mcmember_rec *rec, 139 ret = memcmp(mgid->raw, group->rec.mgid.raw, sizeof *mgid); in mcast_find() 164 ret = memcmp(group->rec.mgid.raw, cur_group->rec.mgid.raw, in mcast_insert() 165 sizeof group->rec.mgid); in mcast_insert() 252 return leave_state & group->rec.join_state; in get_leave_state() 338 &member->multicast.rec, in send_join() 352 struct ib_sa_mcmember_rec rec; in send_leave() local 355 rec = group->rec; in send_leave() [all …]
|
D | sa_query.c | 529 struct ib_sa_path_rec *rec, struct ib_ah_attr *ah_attr) in ib_init_ah_from_path() argument 536 ah_attr->dlid = be16_to_cpu(rec->dlid); in ib_init_ah_from_path() 537 ah_attr->sl = rec->sl; in ib_init_ah_from_path() 538 ah_attr->src_path_bits = be16_to_cpu(rec->slid) & in ib_init_ah_from_path() 541 ah_attr->static_rate = rec->rate; in ib_init_ah_from_path() 545 if (rec->hop_limit > 1 || force_grh) { in ib_init_ah_from_path() 547 ah_attr->grh.dgid = rec->dgid; in ib_init_ah_from_path() 549 ret = ib_find_cached_gid(device, &rec->sgid, &port_num, in ib_init_ah_from_path() 555 ah_attr->grh.flow_label = be32_to_cpu(rec->flow_label); in ib_init_ah_from_path() 556 ah_attr->grh.hop_limit = rec->hop_limit; in ib_init_ah_from_path() [all …]
|
/drivers/gpu/drm/mga/ |
D | mga_warp.c | 56 const struct ihex_binrec *rec; in mga_warp_install_microcode() local 90 for (rec = (const struct ihex_binrec *)fw->data; in mga_warp_install_microcode() 91 rec; in mga_warp_install_microcode() 92 rec = ihex_next_binrec(rec)) { in mga_warp_install_microcode() 93 size += WARP_UCODE_SIZE(be16_to_cpu(rec->len)); in mga_warp_install_microcode() 114 for (rec = (const struct ihex_binrec *)fw->data; in mga_warp_install_microcode() 115 rec; in mga_warp_install_microcode() 116 rec = ihex_next_binrec(rec)) { in mga_warp_install_microcode() 121 src_size = be16_to_cpu(rec->len); in mga_warp_install_microcode() 123 memcpy(vcbase, rec->data, src_size); in mga_warp_install_microcode()
|
/drivers/gpu/drm/i915/ |
D | intel_overlay.c | 870 struct drm_intel_overlay_put_image *rec) in check_overlay_dst() argument 874 if (rec->dst_x < mode->hdisplay && in check_overlay_dst() 875 rec->dst_x + rec->dst_width <= mode->hdisplay && in check_overlay_dst() 876 rec->dst_y < mode->vdisplay && in check_overlay_dst() 877 rec->dst_y + rec->dst_height <= mode->vdisplay) in check_overlay_dst() 883 static int check_overlay_scaling(struct put_image_params *rec) in check_overlay_scaling() argument 888 tmp = ((rec->src_scan_h << 16) / rec->dst_h) >> 16; in check_overlay_scaling() 891 tmp = ((rec->src_scan_w << 16) / rec->dst_w) >> 16; in check_overlay_scaling() 899 struct drm_intel_overlay_put_image *rec, in check_overlay_src() argument 902 int uv_hscale = uv_hsubsampling(rec->flags); in check_overlay_src() [all …]
|
/drivers/infiniband/hw/mlx4/ |
D | alias_GUID.c | 207 struct mlx4_sriov_alias_guid_info_rec_det *rec; in aliasguid_query_handler() local 215 rec = &dev->sriov.alias_guid.ports_guid[port_index]. in aliasguid_query_handler() 219 rec->status = MLX4_GUID_INFO_STATUS_IDLE; in aliasguid_query_handler() 235 rec = &dev->sriov.alias_guid.ports_guid[port_index]. in aliasguid_query_handler() 238 rec->status = MLX4_GUID_INFO_STATUS_SET; in aliasguid_query_handler() 239 rec->method = MLX4_GUID_INFO_RECORD_SET; in aliasguid_query_handler() 253 guid_rec->block_num, rec->ownership); in aliasguid_query_handler() 254 if (rec->ownership == MLX4_GUID_DRIVER_ASSIGN) { in aliasguid_query_handler() 256 *(__be64 *)&rec->all_recs[i * GUID_REC_SIZE] = in aliasguid_query_handler() 261 rec->status = MLX4_GUID_INFO_STATUS_IDLE; in aliasguid_query_handler() [all …]
|
D | mcg.c | 98 struct ib_sa_mcmember_data rec; member 167 ret = memcmp(mgid->raw, group->rec.mgid.raw, sizeof *mgid); in mcast_find() 191 ret = memcmp(group->rec.mgid.raw, cur_group->rec.mgid.raw, in mcast_insert() 192 sizeof group->rec.mgid); in mcast_insert() 296 *sa_data = group->rec; in send_leave_to_wire() 336 *sa_data = group->rec; in send_reply_to_slave() 450 nzgroup = memcmp(&group->rec.mgid, &mgid0, sizeof mgid0); in release_group() 487 return leave_state & (group->rec.scope_join_state & 7); in get_leave_state() 551 if (memcmp(&group->rec.mgid, &mgid0, sizeof mgid0)) { in mlx4_ib_mcg_timeout_handler() 562 if (group->rec.scope_join_state & 7) in mlx4_ib_mcg_timeout_handler() [all …]
|
/drivers/staging/lustre/lnet/lnet/ |
D | api-ni.c | 449 lnet_res_container_cleanup(struct lnet_res_container *rec) in lnet_res_container_cleanup() argument 453 if (rec->rec_type == 0) /* not set yet, it's uninitialized */ in lnet_res_container_cleanup() 456 while (!list_empty(&rec->rec_active)) { in lnet_res_container_cleanup() 457 struct list_head *e = rec->rec_active.next; in lnet_res_container_cleanup() 460 if (rec->rec_type == LNET_COOKIE_TYPE_EQ) { in lnet_res_container_cleanup() 463 } else if (rec->rec_type == LNET_COOKIE_TYPE_MD) { in lnet_res_container_cleanup() 477 count, lnet_res_type2str(rec->rec_type)); in lnet_res_container_cleanup() 481 lnet_freelist_fini(&rec->rec_freelist); in lnet_res_container_cleanup() 483 if (rec->rec_lh_hash != NULL) { in lnet_res_container_cleanup() 484 LIBCFS_FREE(rec->rec_lh_hash, in lnet_res_container_cleanup() [all …]
|
/drivers/infiniband/ulp/ipoib/ |
D | ipoib_multicast.c | 285 status = ipoib_mcast_join_finish(mcast, &multicast->rec); in ipoib_mcast_sendonly_join_complete() 311 struct ib_sa_mcmember_rec rec = { in ipoib_mcast_sendonly_join() local 330 rec.mgid = mcast->mcmember.mgid; in ipoib_mcast_sendonly_join() 331 rec.port_gid = priv->local_gid; in ipoib_mcast_sendonly_join() 332 rec.pkey = cpu_to_be16(priv->pkey); in ipoib_mcast_sendonly_join() 335 priv->port, &rec, in ipoib_mcast_sendonly_join() 395 status = ipoib_mcast_join_finish(mcast, &multicast->rec); in ipoib_mcast_join_complete() 449 struct ib_sa_mcmember_rec rec = { in ipoib_mcast_join() local 457 rec.mgid = mcast->mcmember.mgid; in ipoib_mcast_join() 458 rec.port_gid = priv->local_gid; in ipoib_mcast_join() [all …]
|
/drivers/staging/wlan-ng/ |
D | prism2sta.c | 1465 hfa384x_AssocStatus_t rec; in prism2sta_inf_assocstatus() local 1468 memcpy(&rec, &inf->info.assocstatus, sizeof(rec)); in prism2sta_inf_assocstatus() 1469 rec.assocstatus = le16_to_cpu(rec.assocstatus); in prism2sta_inf_assocstatus() 1470 rec.reason = le16_to_cpu(rec.reason); in prism2sta_inf_assocstatus() 1485 if (memcmp(rec.sta_addr, hw->authlist.addr[i], ETH_ALEN) == 0) in prism2sta_inf_assocstatus() 1489 if (rec.assocstatus != HFA384x_ASSOCSTATUS_AUTHFAIL) in prism2sta_inf_assocstatus() 1494 (rec.assocstatus == HFA384x_ASSOCSTATUS_STAASSOC || in prism2sta_inf_assocstatus() 1495 rec.assocstatus == HFA384x_ASSOCSTATUS_REASSOC); in prism2sta_inf_assocstatus() 1497 if (rec.assocstatus == HFA384x_ASSOCSTATUS_AUTHFAIL) in prism2sta_inf_assocstatus() 1541 hfa384x_authenticateStation_data_t rec; in prism2sta_inf_authreq_defer() local [all …]
|
D | prism2fw.c | 108 hfa384x_pdrec_t *rec[HFA384x_PDA_RECS_MAX]; member 268 pda.rec[0] = (hfa384x_pdrec_t *) pda.buf; in prism2_fwapply() 269 pda.rec[0]->len = cpu_to_le16(2); /* len in words */ in prism2_fwapply() 270 pda.rec[0]->code = cpu_to_le16(HFA384x_PDR_END_OF_PDA); in prism2_fwapply() 594 pda->rec[pda->nrec] = (hfa384x_pdrec_t *) &(pda16[curroff]); in mkpdrlist() 596 if (le16_to_cpu(pda->rec[pda->nrec]->code) == in mkpdrlist() 598 memcpy(&nicid, &pda->rec[pda->nrec]->data.nicid, in mkpdrlist() 605 if (le16_to_cpu(pda->rec[pda->nrec]->code) == in mkpdrlist() 607 memcpy(&rfid, &pda->rec[pda->nrec]->data.mfisuprange, in mkpdrlist() 614 if (le16_to_cpu(pda->rec[pda->nrec]->code) == in mkpdrlist() [all …]
|
/drivers/staging/lustre/lustre/include/ |
D | lustre_log.h | 121 struct llog_rec_hdr *rec, void *data); 177 struct llog_rec_hdr *rec, struct llog_cookie *reccookie, 181 struct llog_rec_hdr *rec, struct thandle *th); 183 struct llog_rec_hdr *rec, struct llog_cookie *reccookie, 265 struct llog_rec_hdr *rec, 269 struct llog_rec_hdr *rec, 278 struct llog_rec_hdr *rec, struct thandle *th); 280 struct llog_rec_hdr *rec, struct llog_cookie *cookie, 520 struct llog_rec_hdr *rec, int idx, 523 struct llog_rec_hdr *rec, struct llog_cookie *logcookies, [all …]
|
/drivers/media/usb/gspca/ |
D | vicam.c | 241 const struct ihex_binrec *rec; in sd_init() local 257 for (rec = (void *)fw->data; rec; rec = ihex_next_binrec(rec)) { in sd_init() 258 memcpy(firmware_buf, rec->data, be16_to_cpu(rec->len)); in sd_init() 260 be16_to_cpu(rec->len)); in sd_init()
|
/drivers/staging/lustre/lustre/include/lustre/ |
D | lustre_user.h | 797 #define CHANGELOG_REC_EXTENDED(rec) \ argument 798 (((rec)->cr_flags & CLF_VERMASK) == CLF_EXT_VERSION) 800 static inline int changelog_rec_size(struct changelog_rec *rec) in changelog_rec_size() argument 802 return CHANGELOG_REC_EXTENDED(rec) ? sizeof(struct changelog_ext_rec): in changelog_rec_size() 803 sizeof(*rec); in changelog_rec_size() 806 static inline char *changelog_rec_name(struct changelog_rec *rec) in changelog_rec_name() argument 808 return CHANGELOG_REC_EXTENDED(rec) ? in changelog_rec_name() 809 ((struct changelog_ext_rec *)rec)->cr_name: rec->cr_name; in changelog_rec_name() 812 static inline int changelog_rec_snamelen(struct changelog_ext_rec *rec) in changelog_rec_snamelen() argument 814 return rec->cr_namelen - strlen(rec->cr_name) - 1; in changelog_rec_snamelen() [all …]
|
/drivers/staging/lustre/include/linux/lnet/ |
D | lib-lnet.h | 219 struct lnet_res_container *rec = &the_lnet.ln_eq_container; in lnet_eq_alloc() local 225 eq = (lnet_eq_t *)lnet_freelist_alloc(&rec->rec_freelist); in lnet_eq_alloc() 235 struct lnet_res_container *rec = &the_lnet.ln_eq_container; in lnet_eq_free_locked() local 238 lnet_freelist_free(&rec->rec_freelist, eq); in lnet_eq_free_locked() 253 struct lnet_res_container *rec = the_lnet.ln_md_containers[0]; in lnet_md_alloc() local 259 md = (lnet_libmd_t *)lnet_freelist_alloc(&rec->rec_freelist); in lnet_md_alloc() 272 struct lnet_res_container *rec = the_lnet.ln_md_containers[0]; in lnet_md_free_locked() local 275 lnet_freelist_free(&rec->rec_freelist, md); in lnet_md_free_locked() 290 struct lnet_res_container *rec = the_lnet.ln_me_containers[0]; in lnet_me_alloc() local 296 me = (lnet_me_t *)lnet_freelist_alloc(&rec->rec_freelist); in lnet_me_alloc() [all …]
|
/drivers/usb/serial/ |
D | io_edgeport.c | 284 const struct ihex_binrec *rec; in update_edgeport_E2PROM() local 308 rec = (const struct ihex_binrec *)fw->data; in update_edgeport_E2PROM() 309 BootMajorVersion = rec->data[0]; in update_edgeport_E2PROM() 310 BootMinorVersion = rec->data[1]; in update_edgeport_E2PROM() 311 BootBuildNumber = (rec->data[2] << 8) | rec->data[3]; in update_edgeport_E2PROM() 337 for (rec = ihex_next_binrec(rec); rec; in update_edgeport_E2PROM() 338 rec = ihex_next_binrec(rec)) { in update_edgeport_E2PROM() 339 Bootaddr = be32_to_cpu(rec->addr); in update_edgeport_E2PROM() 343 be16_to_cpu(rec->len), in update_edgeport_E2PROM() 344 &rec->data[0]); in update_edgeport_E2PROM() [all …]
|
/drivers/atm/ |
D | ambassador.c | 1815 const struct ihex_binrec *rec) in loader_write() argument 1821 tb->address = rec->addr; in loader_write() 1822 tb->count = cpu_to_be32(be16_to_cpu(rec->len) / 4); in loader_write() 1823 memcpy(tb->data, rec->data, be16_to_cpu(rec->len)); in loader_write() 1830 const struct ihex_binrec *rec) in loader_verify() argument 1837 tb->address = rec->addr; in loader_verify() 1838 tb->count = cpu_to_be32(be16_to_cpu(rec->len) / 4); in loader_verify() 1840 if (!res && memcmp(tb->data, rec->data, be16_to_cpu(rec->len))) in loader_verify() 1927 const struct ihex_binrec *rec; in ucode_init() local 1938 rec = (const struct ihex_binrec *)fw->data; in ucode_init() [all …]
|