• Home
  • Raw
  • Download

Lines Matching refs:code

373 static int gen_mjpeghdr_to_package(struct go7007 *go, __le16 *code, int space)  in gen_mjpeghdr_to_package()  argument
398 code[off + 1] = __cpu_to_le16(0x8000 | mem); in gen_mjpeghdr_to_package()
407 code[off] = __cpu_to_le16(0x4000 | chunk); in gen_mjpeghdr_to_package()
408 code[off + 31] = __cpu_to_le16(addr++); in gen_mjpeghdr_to_package()
411 code[off] = __cpu_to_le16(0x1000 | 28); in gen_mjpeghdr_to_package()
412 code[off + 31] = 0; in gen_mjpeghdr_to_package()
416 memcpy(&code[off + 2], buf + i, chunk * 2); in gen_mjpeghdr_to_package()
640 __le16 *code, int space, int *framelen) in gen_mpeg1hdr_to_package() argument
687 code[off + 1] = __cpu_to_le16(0x8000 | mem); in gen_mpeg1hdr_to_package()
696 code[off] = __cpu_to_le16(0x4000 | chunk); in gen_mpeg1hdr_to_package()
697 code[off + 31] = __cpu_to_le16(addr); in gen_mpeg1hdr_to_package()
703 code[off] = __cpu_to_le16(0x1000 | 28); in gen_mpeg1hdr_to_package()
704 code[off + 31] = 0; in gen_mpeg1hdr_to_package()
708 memcpy(&code[off + 2], buf + i, chunk * 2); in gen_mpeg1hdr_to_package()
826 __le16 *code, int space, int *framelen) in gen_mpeg4hdr_to_package() argument
855 code[off + 1] = __cpu_to_le16(0x8000 | mem); in gen_mpeg4hdr_to_package()
864 code[off] = __cpu_to_le16(0x4000 | chunk); in gen_mpeg4hdr_to_package()
865 code[off + 31] = __cpu_to_le16(addr); in gen_mpeg4hdr_to_package()
871 code[off] = __cpu_to_le16(0x1000 | 28); in gen_mpeg4hdr_to_package()
872 code[off + 31] = 0; in gen_mpeg4hdr_to_package()
876 memcpy(&code[off + 2], buf + i, chunk * 2); in gen_mpeg4hdr_to_package()
898 code[off + 1] = __cpu_to_le16(0x8000 | mem); in gen_mpeg4hdr_to_package()
907 code[off] = __cpu_to_le16(0x4000 | chunk); in gen_mpeg4hdr_to_package()
908 code[off + 31] = __cpu_to_le16(addr); in gen_mpeg4hdr_to_package()
914 code[off] = __cpu_to_le16(0x1000 | 28); in gen_mpeg4hdr_to_package()
915 code[off + 31] = 0; in gen_mpeg4hdr_to_package()
919 memcpy(&code[off + 2], buf + i, chunk * 2); in gen_mpeg4hdr_to_package()
928 __le16 *code, int space, int *framelen) in brctrl_to_package() argument
1081 return copy_packages(code, pack, 6, space); in brctrl_to_package()
1084 static int config_package(struct go7007 *go, __le16 *code, int space) in config_package() argument
1203 return copy_packages(code, pack, 5, space); in config_package()
1206 static int seqhead_to_package(struct go7007 *go, __le16 *code, int space, in seqhead_to_package() argument
1270 return copy_packages(code, pack, 3, space); in seqhead_to_package()
1285 static int avsync_to_package(struct go7007 *go, __le16 *code, int space) in avsync_to_package() argument
1313 return copy_packages(code, pack, 1, space); in avsync_to_package()
1316 static int final_package(struct go7007 *go, __le16 *code, int space) in final_package() argument
1376 return copy_packages(code, pack, 1, space); in final_package()
1379 static int audio_to_package(struct go7007 *go, __le16 *code, int space) in audio_to_package() argument
1426 return copy_packages(code, pack, 2, space); in audio_to_package()
1429 static int modet_to_package(struct go7007 *go, __le16 *code, int space) in modet_to_package() argument
1456 ret = copy_packages(code, thresholds, 1, space); in modet_to_package()
1473 ret = copy_packages(code + cnt, pack, 1, space - cnt); in modet_to_package()
1491 ret = copy_packages(code + cnt, pack, 1, space - cnt); in modet_to_package()
1502 static int do_special(struct go7007 *go, u16 type, __le16 *code, int space, in do_special() argument
1509 return gen_mjpeghdr_to_package(go, code, space); in do_special()
1512 return gen_mpeg1hdr_to_package(go, code, space, in do_special()
1515 return gen_mpeg4hdr_to_package(go, code, space, in do_special()
1519 return brctrl_to_package(go, code, space, framelen); in do_special()
1521 return config_package(go, code, space); in do_special()
1526 return seqhead_to_package(go, code, space, in do_special()
1529 return seqhead_to_package(go, code, space, in do_special()
1535 return avsync_to_package(go, code, space); in do_special()
1537 return final_package(go, code, space); in do_special()
1539 return audio_to_package(go, code, space); in do_special()
1541 return modet_to_package(go, code, space); in do_special()
1551 __le16 *code, *src; in go7007_construct_fw_image() local
1579 code = kzalloc(codespace * 2, GFP_KERNEL); in go7007_construct_fw_image()
1580 if (code == NULL) in go7007_construct_fw_image()
1597 &code[i], codespace - i, framelen); in go7007_construct_fw_image()
1610 memcpy(&code[i], &src[2], chunk_len * 2); in go7007_construct_fw_image()
1618 *fw = (u8 *)code; in go7007_construct_fw_image()
1623 kfree(code); in go7007_construct_fw_image()