• Home
  • Raw
  • Download

Lines Matching refs:code

365 static int gen_mjpeghdr_to_package(struct go7007 *go, __le16 *code, int space)  in gen_mjpeghdr_to_package()  argument
390 code[off + 1] = __cpu_to_le16(0x8000 | mem); in gen_mjpeghdr_to_package()
399 code[off] = __cpu_to_le16(0x4000 | chunk); in gen_mjpeghdr_to_package()
400 code[off + 31] = __cpu_to_le16(addr++); in gen_mjpeghdr_to_package()
403 code[off] = __cpu_to_le16(0x1000 | 28); in gen_mjpeghdr_to_package()
404 code[off + 31] = 0; in gen_mjpeghdr_to_package()
408 memcpy(&code[off + 2], buf + i, chunk * 2); in gen_mjpeghdr_to_package()
632 __le16 *code, int space, int *framelen) in gen_mpeg1hdr_to_package() argument
679 code[off + 1] = __cpu_to_le16(0x8000 | mem); in gen_mpeg1hdr_to_package()
688 code[off] = __cpu_to_le16(0x4000 | chunk); in gen_mpeg1hdr_to_package()
689 code[off + 31] = __cpu_to_le16(addr); in gen_mpeg1hdr_to_package()
695 code[off] = __cpu_to_le16(0x1000 | 28); in gen_mpeg1hdr_to_package()
696 code[off + 31] = 0; in gen_mpeg1hdr_to_package()
700 memcpy(&code[off + 2], buf + i, chunk * 2); in gen_mpeg1hdr_to_package()
818 __le16 *code, int space, int *framelen) in gen_mpeg4hdr_to_package() argument
847 code[off + 1] = __cpu_to_le16(0x8000 | mem); in gen_mpeg4hdr_to_package()
856 code[off] = __cpu_to_le16(0x4000 | chunk); in gen_mpeg4hdr_to_package()
857 code[off + 31] = __cpu_to_le16(addr); in gen_mpeg4hdr_to_package()
863 code[off] = __cpu_to_le16(0x1000 | 28); in gen_mpeg4hdr_to_package()
864 code[off + 31] = 0; in gen_mpeg4hdr_to_package()
868 memcpy(&code[off + 2], buf + i, chunk * 2); in gen_mpeg4hdr_to_package()
890 code[off + 1] = __cpu_to_le16(0x8000 | mem); in gen_mpeg4hdr_to_package()
899 code[off] = __cpu_to_le16(0x4000 | chunk); in gen_mpeg4hdr_to_package()
900 code[off + 31] = __cpu_to_le16(addr); in gen_mpeg4hdr_to_package()
906 code[off] = __cpu_to_le16(0x1000 | 28); in gen_mpeg4hdr_to_package()
907 code[off + 31] = 0; in gen_mpeg4hdr_to_package()
911 memcpy(&code[off + 2], buf + i, chunk * 2); in gen_mpeg4hdr_to_package()
920 __le16 *code, int space, int *framelen) in brctrl_to_package() argument
1073 return copy_packages(code, pack, 6, space); in brctrl_to_package()
1076 static int config_package(struct go7007 *go, __le16 *code, int space) in config_package() argument
1195 return copy_packages(code, pack, 5, space); in config_package()
1198 static int seqhead_to_package(struct go7007 *go, __le16 *code, int space, in seqhead_to_package() argument
1262 return copy_packages(code, pack, 3, space); in seqhead_to_package()
1277 static int avsync_to_package(struct go7007 *go, __le16 *code, int space) in avsync_to_package() argument
1305 return copy_packages(code, pack, 1, space); in avsync_to_package()
1308 static int final_package(struct go7007 *go, __le16 *code, int space) in final_package() argument
1368 return copy_packages(code, pack, 1, space); in final_package()
1371 static int audio_to_package(struct go7007 *go, __le16 *code, int space) in audio_to_package() argument
1418 return copy_packages(code, pack, 2, space); in audio_to_package()
1421 static int modet_to_package(struct go7007 *go, __le16 *code, int space) in modet_to_package() argument
1448 ret = copy_packages(code, thresholds, 1, space); in modet_to_package()
1465 ret = copy_packages(code + cnt, pack, 1, space - cnt); in modet_to_package()
1483 ret = copy_packages(code + cnt, pack, 1, space - cnt); in modet_to_package()
1495 __le16 *code, int space, int *framelen) in do_special() argument
1501 return gen_mjpeghdr_to_package(go, code, space); in do_special()
1504 return gen_mpeg1hdr_to_package(go, code, space, in do_special()
1507 return gen_mpeg4hdr_to_package(go, code, space, in do_special()
1514 return brctrl_to_package(go, code, space, framelen); in do_special()
1516 return config_package(go, code, space); in do_special()
1521 return seqhead_to_package(go, code, space, in do_special()
1524 return seqhead_to_package(go, code, space, in do_special()
1530 return avsync_to_package(go, code, space); in do_special()
1532 return final_package(go, code, space); in do_special()
1534 return audio_to_package(go, code, space); in do_special()
1536 return modet_to_package(go, code, space); in do_special()
1546 __le16 *code, *src; in go7007_construct_fw_image() local
1574 code = kcalloc(codespace, 2, GFP_KERNEL); in go7007_construct_fw_image()
1575 if (code == NULL) in go7007_construct_fw_image()
1592 &code[i], codespace - i, framelen); in go7007_construct_fw_image()
1605 memcpy(&code[i], &src[2], chunk_len * 2); in go7007_construct_fw_image()
1613 *fw = (u8 *)code; in go7007_construct_fw_image()
1618 kfree(code); in go7007_construct_fw_image()