/drivers/usb/misc/ |
D | emi26.c | 83 const struct ihex_binrec *rec; in emi26_load_firmware() local 123 rec = (const struct ihex_binrec *)loader_fw->data; in emi26_load_firmware() 125 while (rec) { in emi26_load_firmware() 126 err = emi26_writememory(dev, be32_to_cpu(rec->addr), in emi26_load_firmware() 127 rec->data, be16_to_cpu(rec->len), in emi26_load_firmware() 133 rec = ihex_next_binrec(rec); in emi26_load_firmware() 147 rec = (const struct ihex_binrec *)bitstream_fw->data; in emi26_load_firmware() 150 addr = be32_to_cpu(rec->addr); in emi26_load_firmware() 153 while (rec && (i + be16_to_cpu(rec->len) < FW_LOAD_SIZE)) { in emi26_load_firmware() 154 memcpy(buf + i, rec->data, be16_to_cpu(rec->len)); in emi26_load_firmware() [all …]
|
D | emi62.c | 92 const struct ihex_binrec *rec; in emi62_load_firmware() local 129 rec = (const struct ihex_binrec *)loader_fw->data; in emi62_load_firmware() 132 while (rec) { in emi62_load_firmware() 133 err = emi62_writememory(dev, be32_to_cpu(rec->addr), in emi62_load_firmware() 134 rec->data, be16_to_cpu(rec->len), in emi62_load_firmware() 140 rec = ihex_next_binrec(rec); in emi62_load_firmware() 154 rec = (const struct ihex_binrec *)bitstream_fw->data; in emi62_load_firmware() 157 addr = be32_to_cpu(rec->addr); in emi62_load_firmware() 160 while (rec && (i + be16_to_cpu(rec->len) < FW_LOAD_SIZE)) { in emi62_load_firmware() 161 memcpy(buf + i, rec->data, be16_to_cpu(rec->len)); in emi62_load_firmware() [all …]
|
/drivers/infiniband/core/ |
D | multicast.c | 95 struct ib_sa_mcmember_rec rec; member 121 static void join_handler(int status, struct ib_sa_mcmember_rec *rec, 123 static void leave_handler(int status, struct ib_sa_mcmember_rec *rec, 135 ret = memcmp(mgid->raw, group->rec.mgid.raw, sizeof *mgid); in mcast_find() 160 ret = memcmp(group->rec.mgid.raw, cur_group->rec.mgid.raw, in mcast_insert() 161 sizeof group->rec.mgid); in mcast_insert() 248 return leave_state & group->rec.join_state; in get_leave_state() 334 &member->multicast.rec, in send_join() 348 struct ib_sa_mcmember_rec rec; in send_leave() local 351 rec = group->rec; in send_leave() [all …]
|
D | sa_query.c | 490 struct ib_sa_path_rec *rec, struct ib_ah_attr *ah_attr) in ib_init_ah_from_path() argument 496 ah_attr->dlid = be16_to_cpu(rec->dlid); in ib_init_ah_from_path() 497 ah_attr->sl = rec->sl; in ib_init_ah_from_path() 498 ah_attr->src_path_bits = be16_to_cpu(rec->slid) & in ib_init_ah_from_path() 501 ah_attr->static_rate = rec->rate; in ib_init_ah_from_path() 503 if (rec->hop_limit > 1) { in ib_init_ah_from_path() 505 ah_attr->grh.dgid = rec->dgid; in ib_init_ah_from_path() 507 ret = ib_find_cached_gid(device, &rec->sgid, &port_num, in ib_init_ah_from_path() 513 ah_attr->grh.flow_label = be32_to_cpu(rec->flow_label); in ib_init_ah_from_path() 514 ah_attr->grh.hop_limit = rec->hop_limit; in ib_init_ah_from_path() [all …]
|
D | cma.c | 304 struct ib_sa_mcmember_rec rec; in cma_set_qkey() local 312 ib_addr_get_mgid(dev_addr, &rec.mgid); in cma_set_qkey() 313 ret = ib_sa_get_mcmember_rec(device, port_num, &rec.mgid, &rec); in cma_set_qkey() 314 *qkey = be32_to_cpu(rec.qkey); in cma_set_qkey() 2637 status = ib_attach_mcast(id_priv->id.qp, &multicast->rec.mgid, in cma_ib_mc_handler() 2638 multicast->rec.mlid); in cma_ib_mc_handler() 2647 id_priv->id.port_num, &multicast->rec, in cma_ib_mc_handler() 2650 event.param.ud.qkey = be32_to_cpu(multicast->rec.qkey); in cma_ib_mc_handler() 2692 struct ib_sa_mcmember_rec rec; in cma_join_ib_multicast() local 2697 ib_addr_get_mgid(dev_addr, &rec.mgid); in cma_join_ib_multicast() [all …]
|
D | sa.h | 54 struct ib_sa_mcmember_rec *rec,
|
/drivers/s390/scsi/ |
D | zfcp_dbf.c | 137 struct zfcp_hba_dbf_record *rec = &adapter->hba_dbf_buf; in zfcp_hba_dbf_event_fsf_response() local 138 struct zfcp_hba_dbf_record_response *response = &rec->u.response; in zfcp_hba_dbf_event_fsf_response() 143 memset(rec, 0, sizeof(*rec)); in zfcp_hba_dbf_event_fsf_response() 144 strncpy(rec->tag, "resp", ZFCP_DBF_TAG_SIZE); in zfcp_hba_dbf_event_fsf_response() 148 strncpy(rec->tag2, "perr", ZFCP_DBF_TAG_SIZE); in zfcp_hba_dbf_event_fsf_response() 151 strncpy(rec->tag2, "ferr", ZFCP_DBF_TAG_SIZE); in zfcp_hba_dbf_event_fsf_response() 155 strncpy(rec->tag2, "open", ZFCP_DBF_TAG_SIZE); in zfcp_hba_dbf_event_fsf_response() 158 strncpy(rec->tag2, "qtcb", ZFCP_DBF_TAG_SIZE); in zfcp_hba_dbf_event_fsf_response() 161 strncpy(rec->tag2, "norm", ZFCP_DBF_TAG_SIZE); in zfcp_hba_dbf_event_fsf_response() 227 debug_event(adapter->hba_dbf, level, rec, sizeof(*rec)); in zfcp_hba_dbf_event_fsf_response() [all …]
|
/drivers/infiniband/ulp/ipoib/ |
D | ipoib_multicast.c | 290 status = ipoib_mcast_join_finish(mcast, &multicast->rec); in ipoib_mcast_sendonly_join_complete() 316 struct ib_sa_mcmember_rec rec = { in ipoib_mcast_sendonly_join() local 335 rec.mgid = mcast->mcmember.mgid; in ipoib_mcast_sendonly_join() 336 rec.port_gid = priv->local_gid; in ipoib_mcast_sendonly_join() 337 rec.pkey = cpu_to_be16(priv->pkey); in ipoib_mcast_sendonly_join() 340 priv->port, &rec, in ipoib_mcast_sendonly_join() 391 status = ipoib_mcast_join_finish(mcast, &multicast->rec); in ipoib_mcast_join_complete() 443 struct ib_sa_mcmember_rec rec = { in ipoib_mcast_join() local 451 rec.mgid = mcast->mcmember.mgid; in ipoib_mcast_join() 452 rec.port_gid = priv->local_gid; in ipoib_mcast_join() [all …]
|
/drivers/staging/wlan-ng/ |
D | prism2sta.c | 1570 hfa384x_AssocStatus_t rec; in prism2sta_inf_assocstatus() local 1575 memcpy(&rec, &inf->info.assocstatus, sizeof(rec)); in prism2sta_inf_assocstatus() 1576 rec.assocstatus = hfa384x2host_16(rec.assocstatus); in prism2sta_inf_assocstatus() 1577 rec.reason = hfa384x2host_16(rec.reason); in prism2sta_inf_assocstatus() 1591 if (memcmp(rec.sta_addr, hw->authlist.addr[i], WLAN_ADDR_LEN) == 0) in prism2sta_inf_assocstatus() 1595 if (rec.assocstatus != HFA384x_ASSOCSTATUS_AUTHFAIL) in prism2sta_inf_assocstatus() 1599 (rec.assocstatus == HFA384x_ASSOCSTATUS_STAASSOC || in prism2sta_inf_assocstatus() 1600 rec.assocstatus == HFA384x_ASSOCSTATUS_REASSOC); in prism2sta_inf_assocstatus() 1602 if (rec.assocstatus == HFA384x_ASSOCSTATUS_AUTHFAIL) in prism2sta_inf_assocstatus() 1653 hfa384x_authenticateStation_data_t rec; in prism2sta_inf_authreq_defer() local [all …]
|
/drivers/media/video/ |
D | dabusb.c | 329 const struct ihex_binrec *rec; in dabusb_loadmem() local 341 for (rec = (const struct ihex_binrec *)fw->data; rec; in dabusb_loadmem() 342 rec = ihex_next_binrec(rec)) { in dabusb_loadmem() 343 dbg("dabusb_writemem: %04X %p %d)", be32_to_cpu(rec->addr), in dabusb_loadmem() 344 rec->data, be16_to_cpu(rec->len)); in dabusb_loadmem() 346 ret = dabusb_writemem(s, be32_to_cpu(rec->addr), rec->data, in dabusb_loadmem() 347 be16_to_cpu(rec->len)); in dabusb_loadmem() 350 be32_to_cpu(rec->addr), rec->data, in dabusb_loadmem() 351 be16_to_cpu(rec->len)); in dabusb_loadmem()
|
/drivers/usb/serial/ |
D | io_edgeport.c | 295 const struct ihex_binrec *rec; in update_edgeport_E2PROM() local 319 rec = (const struct ihex_binrec *)fw->data; in update_edgeport_E2PROM() 320 BootMajorVersion = rec->data[0]; in update_edgeport_E2PROM() 321 BootMinorVersion = rec->data[1]; in update_edgeport_E2PROM() 322 BootBuildNumber = (rec->data[2] << 8) | rec->data[3]; in update_edgeport_E2PROM() 348 for (rec = ihex_next_binrec(rec); rec; in update_edgeport_E2PROM() 349 rec = ihex_next_binrec(rec)) { in update_edgeport_E2PROM() 350 Bootaddr = be32_to_cpu(rec->addr); in update_edgeport_E2PROM() 354 be16_to_cpu(rec->len), in update_edgeport_E2PROM() 355 &rec->data[0]); in update_edgeport_E2PROM() [all …]
|
/drivers/atm/ |
D | ambassador.c | 1825 const struct ihex_binrec *rec) { in loader_write() argument 1830 tb->address = rec->addr; in loader_write() 1831 tb->count = cpu_to_be32(be16_to_cpu(rec->len) / 4); in loader_write() 1832 memcpy(tb->data, rec->data, be16_to_cpu(rec->len)); in loader_write() 1840 const struct ihex_binrec *rec) { in loader_verify() argument 1846 tb->address = rec->addr; in loader_verify() 1847 tb->count = cpu_to_be32(be16_to_cpu(rec->len) / 4); in loader_verify() 1849 if (!res && memcmp(tb->data, rec->data, be16_to_cpu(rec->len))) in loader_verify() 1935 const struct ihex_binrec *rec; in ucode_init() local 1945 rec = (const struct ihex_binrec *)fw->data; in ucode_init() [all …]
|
/drivers/isdn/hisax/ |
D | netjet.c | 401 u_int *pend = bcs->hw.tiger.rec +NETJET_DMA_RXSIZE -1; in read_raw() 422 p = bcs->hw.tiger.rec; in read_raw() 593 p = cs->bcs[0].hw.tiger.rec + NETJET_DMA_RXSIZE - 1; in read_tiger() 595 p = cs->bcs[0].hw.tiger.rec + cnt - 1; in read_tiger() 935 if (!(cs->bcs[0].hw.tiger.rec = kmalloc(NETJET_DMA_RXSIZE * sizeof(unsigned int), in inittiger() 941 debugl1(cs, "tiger: rec buf %p - %p", cs->bcs[0].hw.tiger.rec, in inittiger() 942 cs->bcs[0].hw.tiger.rec + NETJET_DMA_RXSIZE - 1); in inittiger() 943 cs->bcs[1].hw.tiger.rec = cs->bcs[0].hw.tiger.rec; in inittiger() 944 memset(cs->bcs[0].hw.tiger.rec, 0xff, NETJET_DMA_RXSIZE * sizeof(unsigned int)); in inittiger() 945 outl(virt_to_bus(cs->bcs[0].hw.tiger.rec), in inittiger() [all …]
|
D | hisax.h | 432 u_int *rec; member
|
/drivers/media/video/usbvideo/ |
D | vicam.c | 193 const struct ihex_binrec *rec; in initialize_camera() local 203 for (rec = (void *)fw->data; rec; rec = ihex_next_binrec(rec)) { in initialize_camera() 204 memcpy(cam->cntrlbuf, rec->data, be16_to_cpu(rec->len)); in initialize_camera() 207 cam->cntrlbuf, be16_to_cpu(rec->len)); in initialize_camera()
|
/drivers/net/wireless/orinoco/ |
D | hermes.h | 480 __le16 rec; in hermes_read_wordrec() local 483 err = HERMES_READ_RECORD(hw, bap, rid, &rec); in hermes_read_wordrec() 484 *word = le16_to_cpu(rec); in hermes_read_wordrec() 490 __le16 rec = cpu_to_le16(word); in hermes_write_wordrec() local 491 return HERMES_WRITE_RECORD(hw, bap, rid, &rec); in hermes_write_wordrec()
|
/drivers/scsi/ |
D | aha1740.h | 122 :2, rec:1,:1; /* Error Recovery */
|
/drivers/net/wireless/hostap/ |
D | hostap_hw.c | 812 struct hfa384x_rid_hdr rec; in hfa384x_get_rid() local 845 res = hfa384x_from_bap(dev, BAP0, &rec, sizeof(rec)); in hfa384x_get_rid() 847 if (le16_to_cpu(rec.len) == 0) { in hfa384x_get_rid() 852 rlen = (le16_to_cpu(rec.len) - 1) * 2; in hfa384x_get_rid() 884 struct hfa384x_rid_hdr rec; in hfa384x_set_rid() local 901 rec.rid = cpu_to_le16(rid); in hfa384x_set_rid() 903 rec.len = cpu_to_le16(len / 2 + len % 2 + 1); in hfa384x_set_rid() 912 res = hfa384x_to_bap(dev, BAP0, &rec, sizeof(rec)); in hfa384x_set_rid()
|